JPH113484A - Signal transmitter having communication function - Google Patents

Signal transmitter having communication function

Info

Publication number
JPH113484A
JPH113484A JP15464197A JP15464197A JPH113484A JP H113484 A JPH113484 A JP H113484A JP 15464197 A JP15464197 A JP 15464197A JP 15464197 A JP15464197 A JP 15464197A JP H113484 A JPH113484 A JP H113484A
Authority
JP
Japan
Prior art keywords
signal
communication
terminal
microprocessor
signal transmitter
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.)
Granted
Application number
JP15464197A
Other languages
Japanese (ja)
Other versions
JP3446870B2 (en
Inventor
Masanori Hondo
雅則 本道
Tetsuo Ando
哲男 安藤
Takashi Kawano
高志 川野
Masami Wada
正巳 和田
Hirohide Tsutsui
弘英 筒井
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP15464197A priority Critical patent/JP3446870B2/en
Publication of JPH113484A publication Critical patent/JPH113484A/en
Application granted granted Critical
Publication of JP3446870B2 publication Critical patent/JP3446870B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

PROBLEM TO BE SOLVED: To eliminate communication trouble that occurs at the time of inspection at a job site by identifying a 1st communication signal which is sent from a 1st communication terminal that is connected to a transmission line to a signal transmitter and a 2nd communication signal which is sent from a 2nd communication terminal that is directly connected to the signal transmitter. SOLUTION: A digital communication signal SM1 that is sent from a sending port TR2 of a microprocessor μP3 and a digital communication signal SL1 which is transmitted from an output terminal TI are inputted to an input end of a NOR gate Q3 that functions as a 1st theoretical element. On the other hand, a communication signal SH1 that is outputted from a hand-held terminal 15 through a terminal T4 and a communication signal which is acquired at an output end of the gate Q3 are inputted to an input end of a NOR gate Q4 . And they are outputted to a receiving port R1 of the microprocessor μP3 . Such an interface circuit IFC3 is provided and either of them is transmitted to the microprocessor.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、流量などの物理量を検
出して信号処理して負荷側に伝送線を介して電流信号と
して伝送すると共にこの電流信号にデジタル信号を重畳
して互いに通信する通信機能を有する信号伝送器に係
り、特に、伝送線上から送出した通信信号或いは伝送線
上に混入する通信信号以外のノイズと、信号変換器から
直接送出した通信信号とが競合しないように改良した通
信機能を有する信号伝送器に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention detects a physical quantity such as a flow rate, performs signal processing, transmits the current signal to a load side as a current signal via a transmission line, and superimposes a digital signal on the current signal to communicate with each other. The present invention relates to a signal transmitter having a communication function, and in particular, communication improved in such a manner that noise other than the communication signal transmitted from the transmission line or the communication signal mixed in the transmission line does not compete with the communication signal transmitted directly from the signal converter. The present invention relates to a signal transmitter having a function.

【0002】[0002]

【従来の技術】図7は通信機能を有する従来の信号伝送
器の構成を示すブロック図である。この場合の信号伝送
器の例として流量パルスを出力する3線式の信号伝送器
を示してある。10は流量などの物理量を電気信号に変
換して伝送する信号伝送器であり、信号伝送器10は直
流電源11から負荷12を介して出力端子T1、T2と接
続され、ここから信号伝送器10に電力が供給される。
直流電源11と負荷12は遠方に配置した受信計器側に
配置されている。
2. Description of the Related Art FIG. 7 is a block diagram showing a configuration of a conventional signal transmitter having a communication function. As an example of the signal transmitter in this case, a three-wire signal transmitter that outputs a flow pulse is shown. Reference numeral 10 denotes a signal transmitter for converting a physical quantity such as a flow rate into an electric signal and transmitting the signal. The signal transmitter 10 is connected to output terminals T 1 and T 2 from a DC power supply 11 via a load 12, and transmits a signal therefrom. Power is supplied to the vessel 10.
The DC power supply 11 and the load 12 are located on the receiving instrument side located far away.

【0003】電気信号は信号伝送器10の出力端子
1、T2に接続された伝送線L1、L2を介してアナログ
の電流信号ILとして負荷12に伝送され、流量は負荷
12の両端に生じるアナログの電圧変化を検出すること
により得られる。
An electric signal is transmitted as an analog current signal IL to a load 12 via transmission lines L 1 and L 2 connected to output terminals T 1 and T 2 of a signal transmitter 10. It is obtained by detecting an analog voltage change occurring at both ends.

【0004】電流信号ILは、例えば流量範囲に対応し
たレンジに設定された信号伝送器10により4〜20m
Aの統一電流に変換されて負荷12側に伝送されると共
に内蔵のモニタに例えば4桁のデジタル表示される。
[0004] 4~20m by the current signal I L, the signal transmitter 10 which is set in the range corresponding to, for example, the flow rate range
The current is converted to a unified current of A and transmitted to the load 12 side, and is displayed on a built-in monitor in, for example, a 4-digit digital form.

【0005】この場合に、例えば流量レンジを変更した
り、各種のパラメータを変更したり、或いはモニタした
いときには信号伝送器10の外部から操作できれば便利
である。
In this case, for example, when it is desired to change the flow rate range, change various parameters, or monitor, it is convenient if the signal transmitter 10 can be operated from outside.

【0006】このため、第1通信端末として機能するハ
ンドヘルドターミナル14を必要に応じて伝送線L11
21に接続し、かつ信号伝送器10にハンドヘルドター
ミナル14との専用のデータ通信機能を持たせて、ハン
ドヘルドターミナル14から信号伝送器10にパラメー
タ変更などのデジタルデータを送信する。
For this reason, the handheld terminal 14 functioning as the first communication terminal is connected to the transmission line L 11 , if necessary.
L 21 , and the signal transmitter 10 has a dedicated data communication function with the handheld terminal 14, and transmits digital data such as parameter changes from the handheld terminal 14 to the signal transmitter 10.

【0007】以上の全体構成に対して、信号伝送器10
の内部は、次のように構成されている。SNRは流量な
どを検出して測定信号に変換する検出器(センサ)であ
り、変換された測定信号はアナログ/デジタル変換器A
/Dでデジタル信号に変換され、マイクロプロセッサμ
1を介してメモリMEM1の中のランダムアクセスメモ
リ部分に格納される。
[0007] The signal transmitter 10
Is configured as follows. The SNR is a detector (sensor) that detects a flow rate or the like and converts it into a measurement signal, and the converted measurement signal is converted into an analog / digital converter A
/ D is converted to a digital signal by the microprocessor μ
Via P 1 is stored in the random access memory portion in the memory MEM 1.

【0008】マイクロプロセッサμP1は、これらの格
納されたデジタル信号を用いてメモリMEM1の例えば
リードオンリメモリ部分に書き込まれた演算手順により
リニアライズなどの所定の演算を実行し、その結果をデ
ジタル/アナログ変換器D/Aを介して出力回路OPC
に出力する。
The microprocessor μP 1 uses the stored digital signals to execute a predetermined operation such as linearization according to an operation procedure written in, for example, a read-only memory portion of the memory MEM 1 , and converts the result into a digital signal. / Output circuit OPC via analog converter D / A
Output to

【0009】出力回路OPCはデジタル/アナログ変換
器D/Aでアナログ信号に変換された電圧信号を4〜2
0mAの統一された電流信号ILに変換して伝送線L1
2を介して伝送する。また、出力回路OPCは直流電
源10側から伝送される電流信号ILの一部を用いて信
号伝送器10の内部回路の電源を作る。
The output circuit OPC converts the voltage signal converted into an analog signal by the digital / analog converter D / A into 4 to 2
Transmission line L 1 is converted into a unified current signal I L of 0 mA,
Transmitted via the L 2. Further, the output circuit OPC make power of the internal circuit of the signal transmitter 10 with a portion of the current signal I L that is transmitted from the DC power supply 10 side.

【0010】IFC1はハンドヘルドターミナル14と
データ通信をするためのインターフエイスであり、伝送
線L1、L2とマイクロプロセッサμP1との間に接続さ
れている。
The IFC 1 is an interface for performing data communication with the handheld terminal 14 and is connected between the transmission lines L 1 and L 2 and the microprocessor μP 1 .

【0011】出力端子T1とT2に接続された伝送線
1、L2に送出されたデジタル信号は、共通電位点CO
Mと加算増幅器Q1の入力端の一端に印加され、図示し
ない直列/並列変換器を介して端子T3を経由して並列
信号としてマイクロプロセッサμP1に伝送される。
The digital signals transmitted to the transmission lines L 1 and L 2 connected to the output terminals T 1 and T 2 are connected to the common potential point CO.
M and is applied to one end of the input terminal of the summing amplifier Q 1, it is transmitted as parallel signals via the terminals T 3 through the serial / parallel converter (not shown) in the microprocessor .mu.P 1.

【0012】逆に、マイクロプロセッサμP1からのデ
ジタルデータは直列信号として出力回路OPCに伝送さ
れ、出力回路OPCはアナログの4〜20mAの電流信
号I Lに重畳して伝送線L1、L2を介して負荷12側に
送出される。
Conversely, the microprocessor μP1De from
Digital data is transmitted to the output circuit OPC as a serial signal.
The output circuit OPC is an analog 4 to 20 mA current signal.
Issue I LTo the transmission line L1, LTwoTo the load 12 side via
Sent out.

【0013】さらに、信号伝送器10で故障などが生じ
たときなどのために、インターフエイスIFC1には、
加算増幅器Q1の入力端の他端と接続された端子T4を設
け、これと共通電位点COMに接続された端子TCとの
間に保守用のハンドヘルドターミナル14と同様な第2
通信端末として機能するハンドヘルドターミナル15を
接続して、現場でパラメータ変更などの作業ができるよ
うにしている。
Further, in the event that a failure or the like occurs in the signal transmitter 10, the interface IFC 1 includes:
The terminal T 4 connected to the other end of the input terminal of the summing amplifier Q 1 provided which a common potential point handheld terminal 14 similar to that of the second for maintenance between the connected terminal T C to COM
A handheld terminal 15 functioning as a communication terminal is connected so that operations such as parameter changes can be performed on site.

【0014】また、マイクロプロセッサμP1で演算さ
れたデジタルの流量信号は、インターフエイスIFC1
の端子T5を介して並列/直列変換器P/Sで直列信号
に変換されて電界効果トランジスタQ2のゲートに印加
される。
The digital flow signal calculated by the microprocessor μP 1 is provided by the interface IFC 1
It is in parallel via a terminal T 5 / serial converter P / S conversion into a serial signal and is applied to the gate of the field effect transistor Q 2.

【0015】電界効果トランジスタQ2は、直流電源1
1とプルアップ抵抗16、端子T6を介して電界効果ト
ランジスタQ2のドレインに接続されてオープンコレク
タとして構成され、電界効果トランジスタQ2のゲート
に印加された信号に対応する流量パルス信号QPを負荷
側に配置された端子T7とT8との間に出力する。
The field effect transistor Q 2 is connected to the DC power source 1
1 and the pull-up resistor 16, is connected to the drain of the field effect transistor Q 2 through a terminal T 6 is constructed as open collector, the flow rate pulse signals Q P corresponding to a signal applied to the gate of the field effect transistor Q 2 Is output between the terminals T 7 and T 8 arranged on the load side.

【0016】次に、ハンドヘルドターミナル14の内部
構成について説明する。SERはオペレータが操作する
設定器であり、モニタが内蔵され、信号伝送器10のゼ
ロ調とスパン調とを切換えるモード変更、モデル要求、
表示分解能の変更、レンジの変更、異常の検出、或いは
電流信号ILの値の表示など各種の設定或いは要求をす
ることができる。
Next, the internal configuration of the handheld terminal 14 will be described. SER is a setting device operated by an operator, has a built-in monitor, and changes the mode of switching the signal transmitter 10 between zero adjustment and span adjustment, requests a model,
Can change the display resolution, change of range, abnormality detection, or display various settings or requests, such as the value of the current signal I L.

【0017】μP2はマイクロプロセッサであり、例え
ば設定器SERからのデータが入力され、メモリMEM
2に格納された処理手順に従ってインターフエイスIF
2を介して信号伝送器10にデジタル信号を送出す
る。
ΜP 2 is a microprocessor, for example, to which data from a setter SER is inputted and which is stored in a memory MEM
2 according to the processing procedure stored in
It sends a digital signal to the signal transmitter 10 through the C 2.

【0018】また、マイクロプロセッサμP2は信号伝
送器10からの応答データをインターフエイスIFC2
を介してメモリMEM2に取り込み、さらにメモリME
2に格納された処理手順に従ってこれを解読し、設定
器SERのモニタに表示する。
The microprocessor μP 2 converts the response data from the signal transmitter 10 into an interface IFC 2
To the memory MEM 2 via the
It decrypts it according to the processing procedure stored in M 2, is displayed on the monitor of the setter SER.

【0019】[0019]

【発明が解決しようとする課題】しかしながら、以上の
ような信号伝送器10は、ハンドヘルドターミナル14
側から送出された通信信号或いは伝送線上に混入する通
信信号以外のノイズと、信号伝送器10の内部の端子T
4に接続されたハンドヘルドターミナル15から送出さ
れた通信信号とが同時に競合して出力されると正常な通
信が出来ないという問題がある。
However, the signal transmitter 10 as described above is provided with a handheld terminal 14.
Other than the communication signal transmitted from the communication side or the communication signal mixed into the transmission line, and the terminal T inside the signal transmitter 10.
If a communication signal transmitted from the hand-held terminal 15 connected to the terminal 4 and a communication signal are simultaneously output, a problem arises in that normal communication cannot be performed.

【0020】この結果、現場で信号伝送器10のパラメ
ータなどの調整を行おうとしても、ハンドヘルドターミ
ナル14側に何らかの形で送信ストップを指示しない
と、パラメータ調整などが行えないという不具合が生じ
る。
As a result, even if it is attempted to adjust the parameters of the signal transmitter 10 on site, a problem arises that the parameter adjustment and the like cannot be performed unless transmission stop is instructed to the handheld terminal 14 in some form.

【0021】[0021]

【課題を解決するための手段】本発明は、以上の課題を
解決するための主な構成として、物理量を検出してこの
物理量に関連する電流信号を伝送線を介して負荷に伝送
すると共にこの電流信号にデジタル信号を重畳して通信
端末と互いに通信するマイクロプロセッサを搭載した通
信機能を有する信号伝送器において、先の伝送線に接続
された第1通信端末から先の信号伝送器に送出される第
1通信信号と先の信号伝送器に直接接続された第2通信
端末から送信された第2通信信号とを識別して何れか一
方を先のマイクロプロセッサに伝送するインターフエイ
ス回路を具備するようにしたものである。
According to the present invention, as a main configuration for solving the above-mentioned problems, a physical quantity is detected, a current signal related to the physical quantity is transmitted to a load via a transmission line, and the load is controlled. In a signal transmitter having a communication function equipped with a microprocessor which superimposes a digital signal on a current signal and communicates with a communication terminal, a signal is transmitted from the first communication terminal connected to the previous transmission line to the previous signal transmitter. An interface circuit for identifying the first communication signal and the second communication signal transmitted from the second communication terminal directly connected to the previous signal transmitter, and transmitting one of them to the preceding microprocessor. It is like that.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施の形態につい
て図を用いて説明する。図1は本発明の1実施形態の構
成を示すブロック図である。なお、図7に示す従来の信
号伝送器と同一の機能を有する部分には同一の符号を付
して適宜にその説明を省略する。本発明についても信号
伝送器として3線式の信号伝送器を例にとって説明す
る。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention. Portions having the same functions as those of the conventional signal transmitter shown in FIG. 7 are denoted by the same reference numerals, and description thereof will be omitted as appropriate. The present invention will also be described by taking a three-wire signal transmitter as an example of the signal transmitter.

【0023】信号伝送器17は、検出器SNR、アナロ
グ/デジタル変換器A/D、デジタル/アナログ変換器
D/A、出力回路OPC、などを有している点は、信号
伝送器10と同一であるが、メモリMEM1がメモリM
EM3に、マイクロプロセッサμP1がマイクロプロセッ
サμP3に、インターフエイス回路IFC1がインターフ
エイス回路IFC3に、それぞれ変更されている。
The signal transmitter 17 is the same as the signal transmitter 10 in that it has a detector SNR, an analog / digital converter A / D, a digital / analog converter D / A, an output circuit OPC, and the like. However, the memory MEM 1 is the memory M
In EM 3, the microprocessor .mu.P 1 is a microprocessor .mu.P 3, interferons chair circuit IFC 1 is to Interferon chair circuit IFC 3, are changed respectively.

【0024】このメモリMEM3には、メモリMEM1
は異なった内容の演算プログラムが格納されており、イ
ンターフエイス回路IFC3も異なっているので、マイ
クロプロセッサμP3による演算は従来とは異なった演
算内容となる。
The memory MEM 3 stores an operation program having a different content from that of the memory MEM 1 and the interface circuit IFC 3 is also different, so that the operation by the microprocessor μP 3 is different from the conventional one. This is the operation content.

【0025】先ず、インターフエイス回路IFC3の内
部構成について説明する。マイクロプロセッサμP3
送信ポートTR2から送出されるデジタルの通信信号SM1
と出力端子T1から伝送されるデジタルの通信信号SL1
とは第1論理素子として機能するノアゲートQ3の入力
端に入力されている。
[0025] First, describes the internal structure of the interferons chair circuit IFC 3. Digital communication signal S M1 transmitted from transmission port TR 2 of microprocessor μP 3
And a digital communication signal S L1 transmitted from the output terminal T 1
It is input to the input terminal of the NOR gate Q 3 which functions as a first logic element and.

【0026】一方、ハンドヘルドターミナル15から端
子T4を介して出力される通信信号SH1と、ノアゲート
3の出力端に得られる通信信号とは、第2論理素子と
して機能するノアゲートQ4の入力端に入力され、その
出力端からマイクロプロセッサμP3の受信ポートR1
出力されている。
On the other hand, the communication signal S H1 output via a terminal T 4 from the handheld terminal 15, the communication signal obtained at the output terminal of the NOR gate Q 3, input NOR gate Q 4 which acts as a second logic element The output terminal of the microprocessor μP 3 outputs the signal to the receiving port R 1 of the microprocessor μP 3 .

【0027】フリップフロップFFのデータ端子Dは電
源+VDによりハイレベルHに保持されており、そのク
ロック端子CKにはハンドヘルドターミナル15から端
子T 4を介して出力されるデジタルの通信信号SH1が印
加されている。
The data terminal D of the flip-flop FF is
Source + VDIs held at high level H by
The lock terminal CK has an end from the handheld terminal 15
Child T FourCommunication signal S output throughH1Mark
Has been added.

【0028】通信信号SH1の立上りに同期してデータ端
子Dの論理レベルに対応して出力端Qに得られた論理デ
ータがマイクロプロセッサμP3の受信ポートR2に出力
されている。
The logical data obtained at the output terminal Q corresponding to the logical level of the data terminal D in synchronization with the rise of the communication signal S H1 is output to the receiving port R 2 of the microprocessor μP 3 .

【0029】さらに、フリップフロップFFのクリア端
子<CLR>(<>で反転を意味する)には、マイクロ
プロセッサμP3の送信ポートTR1からクリア信号CR
が必要に応じて送出される。
Furthermore, the clear terminal of the flip-flop FF <CLR> (meaning inverted by <>), the clear signal from the transmission port T R1 of the microprocessor .mu.P 3 CR
Is sent as needed.

【0030】なお、マイクロプロセッサμP3の送信ポ
ートTR3から出力回路OPCに出力されるデジタル信号
D1は、分岐されて端子T9、増幅器Q5でインピーダン
ス変換されてハンドヘルドターミナル15が接続される
端子T4に送出される。
[0030] Note that the digital signal S D1 output from the transmission port T R3 of the microprocessor .mu.P 3 to the output circuit OPC handheld terminal 15 is connected is impedance converted by the terminal T 9, amplifier Q 5 is branched It is sent to the terminal T 4.

【0031】次に、以上のように構成された信号伝送器
17のマイクロプロセッサμP3が実行する通信機能に
ついてフローチャート図2、図3、図4、図5、図6を
用いて説明する。
Next, the communication function executed by the microprocessor μP 3 of the signal transmitter 17 configured as described above will be described with reference to the flowcharts of FIGS. 2, 3, 4, 5, and 6.

【0032】図2はタスク選択をする流れを制御するタ
スク選択手順を示すフローチャート図、図3は通信のソ
フト割込みを行う割込手順を示すフローチャート図、図
4は通信の競合を判別する競合判別手順を示すフローチ
ャート図、図5は状態保持のためのハード割込みを行う
1秒タスクを示すフローチャート図、図6は通信ロック
解除のためのハード割込みを行う250mSタスクを示
すフローチャート図である。
FIG. 2 is a flowchart showing a task selection procedure for controlling the flow of task selection, FIG. 3 is a flowchart showing an interrupt procedure for performing a software soft interrupt, and FIG. 4 is a conflict determination for determining a communication conflict. FIG. 5 is a flowchart showing the procedure, FIG. 5 is a flowchart showing a one-second task for performing a hard interrupt for holding a state, and FIG. 6 is a flowchart showing a 250 ms task for performing a hard interrupt for releasing communication lock.

【0033】これ等のタスク選択手順、割込手順、競合
判別手順、1秒タスク、及び250mSタスクの各手順
は予めメモリMEM3の所定領域に格納されており、図
示しないシステムクロックにしたがってマイクロプロセ
ッサμP3の制御の基に各プログラムが実行される。
[0033] It like task selection procedure, the interruption procedure, contention determination procedure, one second task, and the procedure of 250mS task is prestored in a predetermined area of the memory MEM 3, the microprocessor in accordance with a system clock (not shown) Each program is executed under the control of μP 3 .

【0034】先ず、図2に示すタスク選択手順であるメ
インのプログラムから実行が開始される。ステップ1で
イニシャル処理を行うが、ここではマイクロプロセッサ
μP 3がその送信ポートTR1からクリア信号CR(ロー
レベルL)をフリップフロップFFのクリア端子<CL
R>に送出してその出力端QをローレベルLに設定し、
その後ハイレベルHとして通信の待機状態とする。
First, the task selection procedure shown in FIG.
The execution is started from the in-program. In step 1
Initial processing is performed, but here the microprocessor
μP ThreeIs the transmission port TR1From the clear signal CR (low
Level L) is set to the clear terminal <CL of the flip-flop FF.
R> to set its output terminal Q to low level L,
After that, the state is set to the high level H and the communication standby state is set.

【0035】次に、マイクロプロセッサμP3は送信ポ
ートTR2をローレベルLに設定してノアゲートQ3の入
力端の一端をローレベルLに設定して、ステップ1のイ
ニシャル処理を終了する。
Next, the microprocessor μP 3 sets the transmission port T R2 to the low level L, sets one end of the input terminal of the NOR gate Q 3 to the low level L, and ends the initial processing of Step 1.

【0036】この後、ステップ2に移行する。ステップ
2では、複数のタスクをそのウエイトにしたがって切り
換えるタスクビット判別を行うが、ここでは、通信処理
に関連するタスクとして通信タスク、250mSタス
ク、1秒タスクについて説明する。
Thereafter, the process proceeds to step 2. In step 2, task bit determination for switching a plurality of tasks according to their weights is performed. Here, a communication task, a 250 mS task, and a one-second task will be described as tasks related to communication processing.

【0037】メモリMEM3の中に、例えば16ビット
のタスク選択領域が設けられ、ここに例えばビット1が
立てば通信タスクへ、ビット2が立てば250mSタス
クへ、ビット4が立てば1秒タスクへと移行する。
[0037] Some memory MEM 3, for example, provided a 16-bit task selection area, where the communication task you stand example bits 1, you stand the bit 2 to 250mS task, one second task you stand bit 4 Move to.

【0038】このうち、通信タスクは通信信号の到来に
よるソフト割込みで、250mSタスクと1秒タスクは
内蔵カウンタの計数による所定時間の経過によるハード
割込みでそれぞれ実行される。
Of these, the communication task is a soft interrupt due to the arrival of a communication signal, and the 250 ms task and the one second task are each executed by a hard interrupt due to the elapse of a predetermined time by counting of a built-in counter.

【0039】通信タスク、250mSタスク、或いは1
秒タスクが実行される度に、Return経路を経由してステ
ップ2に戻り、ここで再びタスク選択領域でのタスク選
択がなされ、選択されたタスクが実行される。以後、こ
れを繰り返す。
Communication task, 250 ms task, or 1
Every time the second task is executed, the process returns to step 2 via the return path, where the task is selected again in the task selection area, and the selected task is executed. Thereafter, this is repeated.

【0040】次に、通信タスクが選択される場合の動作
について説明する。最初に、通信があるとそのソフト割
込みが発生(図3のステップ1)し、通信データを受信
してメモリMEM3の所定領域に格納するが、この場
合、通信データの受信が終了したか否かの判断がステッ
プ3で実行される。
Next, the operation when the communication task is selected will be described. First, communication is the its software interrupt is generated (Step 1 in FIG. 3), but receives and stores communication data in a predetermined area of the memory MEM 3, whether this case, whether the received communication data is completed Is determined in step 3.

【0041】ステップ3で通信データの受信が終了して
いると、ステップ4に移行してタスク選択領域に通信タ
スクを選択するビット1を立てるか、或いは前回に1が
立っていればそのビットをそのまま維持し、ステップ5
のReturn、つまり図2に示すReturn経路に移行する。
If the reception of the communication data has been completed in step 3, the process proceeds to step 4 and sets the bit 1 for selecting the communication task in the task selection area, or sets the bit to 1 if it has been set previously. Step 5
, That is, the return path shown in FIG.

【0042】ステップ3で通信データの受信が終了して
いないときは、ステップ5のReturn、つまり図2に示す
Return経路に移行して再び図2に示す通信タスクを実行
して図3のステップ3で通信データの受信が終了するま
で実行される。従って、通信データの受信が終了してい
れば、タスクビットとしてビット1、つまり通信タスク
が選定されることになる。
If the reception of the communication data has not been completed in step 3, the return in step 5, that is, as shown in FIG.
After returning to the return path, the communication task shown in FIG. 2 is executed again and executed until the reception of communication data is completed in step 3 of FIG. Therefore, if the reception of the communication data has been completed, bit 1 as the task bit, that is, the communication task is selected.

【0043】次に、通信タスクが選定されたときの処理
について図4を用いて説明する。図4のステップ1にお
いて通信データが正常か否かの判断がなされる。具体的
には、スタートビット、ストップビットが存在するか、
或いはパリテイチエックが正常かどうかなどによって判
断がなされる。
Next, processing when a communication task is selected will be described with reference to FIG. In step 1 of FIG. 4, it is determined whether the communication data is normal. Specifically, whether there are start bits and stop bits,
Alternatively, the determination is made based on whether the parity check is normal.

【0044】エラーがある(Y)ときは、図2に示すRe
turn経路に移行し、さらに図3に示すステップ1〜ステ
ップ5に示すフローにしたがって通信データの受信を行
い、図4の通信タスクに戻る。
When there is an error (Y), Re shown in FIG.
The process moves to a turn route, and further receives communication data in accordance with the flow shown in steps 1 to 5 shown in FIG. 3 and returns to the communication task in FIG.

【0045】エラーがないとき(N)は、図4のステッ
プ2に移行する。このステップ2ではデジタル信号がハ
ンドヘルドターミナル15から端子T4を介して送出さ
れたのか、それとも伝送線L1、L2を介して送出された
のかの判別を実行する。
If there is no error (N), the flow shifts to step 2 in FIG. Do In step 2 digital signal is sent via a terminal T 4 from the handheld terminal 15, or to perform the determination of whether the sent through the transmission line L 1, L 2.

【0046】フリップフロップFFのデータ端子Dはハ
イレベルHに保持されているので、ハンドヘルドターミ
ナル15からのデジタル通信がある場合は、その立ち上
がりのエッジによって出力端Qの論理レベルがハイレベ
ルHになる。
Since the data terminal D of the flip-flop FF is held at the high level H, if there is digital communication from the handheld terminal 15, the logical level of the output terminal Q becomes high level H by the rising edge thereof. .

【0047】マイクロプロセッサμP3は、その受信ポ
ートR2の論理レベルをチエックしておりその論理レベ
ルがハイレベルHであることを検知すると、ハンドヘル
ドターミナル15側からデジタル通信が行われたことを
知り、ステップ3に至り、マイクロプロセッサμP3
送信ポートTR2から出力されるデジタル信号SM1をハイ
レベルHに保持する。
The microprocessor μP 3 checks the logical level of the receiving port R 2 and, when detecting that the logical level is at the high level H, knows that the digital communication has been performed from the handheld terminal 15 side. , And the microprocessor μP 3 holds the digital signal S M1 output from the transmission port T R2 at the high level H.

【0048】このようにして、ノアゲートQ3の入力端
の一端はハイレベルHに保持されるので、ノアゲートQ
3の出力端はローレベルLに固定され、ハンドヘルドタ
ーミナル14側から伝送線L1、L2を介して入力される
通信信号SL1は遮断される。
[0048] Thus, since one end of the input terminal of the NOR gate Q 3 are held at the high level H, NOR gate Q
The output terminal 3 is fixed at the low level L, and the communication signal S L1 input from the handheld terminal 14 via the transmission lines L 1 and L 2 is cut off.

【0049】このようにしてノアゲートQ4の入力端の
一端はローレベルLに固定されるので、ハンドヘルドタ
ーミナル15から出力される通信信号SH1は、ノアゲー
トQ 4を通過してマイクロプロセッサμP3の受信ポート
1で受信される。
Thus, the NOR gate QFourOf the input end of
One end is fixed at low level L, so
Communication signal S output from the terminal 15H1Is Noah
Q FourThrough the microprocessor μPThreeReceiving port
R1Received at.

【0050】次に、ステップ2において、マイクロプロ
セッサμP3は受信ポートR2の論理レベルがローレベル
Lであると、伝送線L1、L2側から通信信号SL1が伝送
されているものとして、ステップ4に至り、マイクロプ
ロセッサμP3の送信ポートTR1からクリア信号CR
(ローレベルL)をフリップフロップFFのクリア端子
<CLR>に出力して出力端Qの論理レベルをローレベ
ルLに固定する。
Next, in step 2, the microprocessor .mu.P 3 is the logic level of the reception port R 2 is at low level L, as the communication signal S L1 is transmitted from the transmission line L 1, L 2 side leads to step 4, the clear signal CR from the transmission port T R1 of the microprocessor .mu.P 3
(Low level L) is output to the clear terminal <CLR> of the flip-flop FF, and the logic level of the output terminal Q is fixed at Low level L.

【0051】この状態では、マイクロプロセッサμP3
は送信ポートTR2から出力されるデジタル信号SM1をロ
ーレベルLに設定するので、伝送線L1、L2側からの通
信信号SL1はノアゲートQ3を通過してノアゲートQ4
入力端の一端に出力される。
In this state, the microprocessor μP 3
Sets the digital signal S M1 output from the transmission port T R2 to low level L, so that the communication signal S L1 from the transmission lines L 1 and L 2 passes through the NOR gate Q 3 and the input terminal of the NOR gate Q 4 Is output to one end of

【0052】また、ハンドヘルドターミナル15からの
通信信号SH1はないので、ローレベルLになっており、
このためハンドヘルドターミナル15からの通信信号S
L1はノアゲートQ4を通過して受信ポートR1で受信され
る。
Further, since there is no communication signal S H1 from the handheld terminal 15, it is at the low level L,
Therefore, the communication signal S from the handheld terminal 15
L1 is received by the reception port R 1 through the NOR gate Q 4.

【0053】以上の処理の後、ステップ5に移行する。
ステップ5では後述する1秒タスクでのタイマ設定時間
である変数timを設定する。この設定の後、ステップ6
に移行し、マイクロプロセッサμP3は受信した通信信
号SH1、SL1の内容を解読・実行して送信ポートTR3
介して通信信号SD1として出力回路OPC及び端子T 4
に出力する。
After the above processing, the process proceeds to step S5.
In step 5, the timer set time for the one-second task described later
Set the variable tim. After this setting, step 6
To the microprocessor μPThreeIs the received communication
No. SH1, SL1Decrypts and executes the contents of transmission port TR3To
Communication signal S viaD1Output circuit OPC and terminal T Four
Output to

【0054】次に、図4のステップ5に示す1秒タスク
について図5を用いて説明する。この1秒タスクは状態
保持の管理のために通信とは無関係にハード割込みを行
うものであり、具体的には図4のステップ3、ステップ
4の論理レベルを維持するための時間設定を行なう。
Next, the one-second task shown in step 5 of FIG. 4 will be described with reference to FIG. This one-second task is for performing a hardware interrupt irrespective of communication in order to manage state maintenance, and specifically, sets a time for maintaining the logic level in steps 3 and 4 in FIG.

【0055】図5のステップ1では、図4のステップ5
において変数timとして例えば100秒にカウンタの初
期設定が行われたとして、この内容がゼロか否かの判断
を1秒毎に実行し、ゼロであればステップ3に移行し、
ゼロでなければステップ2に移行して、ここで1秒を減
算する。この結果ゼロであればステップ3に移行し、ゼ
ロでなければReturnに移行して再度繰り返される。
In step 1 of FIG. 5, step 5 of FIG.
Assuming that the counter is initialized at, for example, 100 seconds as a variable tim, a determination is made every second as to whether or not this content is zero.
If it is not zero, the process proceeds to step 2 where 1 second is subtracted. If the result is zero, the flow shifts to step 3; if not, the flow shifts to Return and repeats again.

【0056】ステップ3は、カウンタに設定した設定時
間がタイムアップしたので、図2のステップ1で示す初
期状態に戻す処理を実行して、Returnに移行して再度繰
り返される。この場合、TR1を一旦ローレベルLにし、
この後ハイレベルHに変更して、ロック状態を解消し、
待機状態にしている。
In step 3, since the set time set in the counter has elapsed, the process of returning to the initial state shown in step 1 of FIG. 2 is executed, and the process returns to Return and is repeated again. In this case, TR1 is once set to low level L,
After that, change to high level H to cancel the locked state,
In standby mode.

【0057】次に、図6に示す250秒タスクについて
説明する。この250秒タスクは、初期状態でナンドゲ
ートQ3の入力端がともにローレベルLでナンドゲート
3の出力がハイレベルHになっていると、ナンドゲー
トQ4の出力がローレベルLに固定され、ハンドヘルド
ターミナル15からの通信信号SH1が受信ポートR1
入力されなくなるのを回避するための処理を行うもので
ある。
Next, the 250 second task shown in FIG. 6 will be described. In the 250-second task, when the input terminals of the NAND gate Q 3 are both at the low level L and the output of the NAND gate Q 3 is at the high level H in the initial state, the output of the NAND gate Q 4 is fixed at the low level L, and performs processing for avoiding the communication signals S H1 from the terminal 15 is not input to the receive port R 1.

【0058】具体的には、マイクロプロセッサμP
3が、一定周期単位、例えば250msごとにハード割
込みを行って受信ポートR2の状態を調べ、これがハイ
レベルHであれば、ハンドヘルドターミナル15からの
通信信号SH1による通信が行われていることになるの
で、送信ポートTR2をハイレベルH(ステップ2)とし
て伝送線L1、L2からの通信信号SL1をノアゲートQ3
でカットし、ローレベルLであれば通信信号SH1による
通信が行われていないということなのでそのままReturn
に移行する処理をする。以後、これを再度繰り返して実
行する。
Specifically, the microprocessor μP
3, performs hard interrupts at fixed cycle unit, for example, 250ms examine the state of the reception port R 2, if this is the high level H, the communication by the communication signals S H1 from the handheld terminal 15 is being carried out since the NOR gates Q 3 communication signals S L1 from the transmission line L 1, L 2 the transmission port T R2 a high level H (step 2)
And if it is at low level L, it means that communication by the communication signal S H1 is not being performed.
Perform processing to shift to. Thereafter, this is repeated and executed again.

【0059】さらに、図1において、マイクロプロセッ
サμP3は、検出器SNRで流量を検出してこれを取り
込んで流量演算を実行し、その流量信号はアナログデー
タとして4〜20mAの電流信号として負荷12に伝送
するが、この他に流量パルス信号Pfとして端子T8、T
7に出力したいという場合がある。
Further, in FIG. 1, the microprocessor μP 3 detects the flow rate by the detector SNR, takes in the flow rate, executes the flow rate calculation, and converts the flow rate signal into a load signal as a current signal of 4 to 20 mA as analog data. To the terminals T 8 and T 8 as a flow pulse signal P f.
Sometimes you want to output to 7 .

【0060】このようなときは、マイクロプロセッサμ
3は、流量信号を端子T5を介して並列/直列変換器P
/Sを介して電界効果トランジスタQ2をオン/オフし
て端子T8、T7に流量パルス信号Qfを出力する。
In such a case, the microprocessor μ
P 3 is parallel flow signal through a terminal T 5 / serial converter P
/ ON / OFF the field effect transistor Q 2 through the S outputs a flow rate pulse signals Q f to the terminal T 8, T 7.

【0061】この場合でも、伝送線L1、L2の伝送距離
が短く、ライン抵抗RLLが小さいときは、この両端に発
生するパルス電圧は小さいので、伝送線L1、L2にハン
ドヘルドターミナル14から送出される通信信号SL1
このパルス電圧による影響は少なく、問題なく作動す
る。
Even in this case, when the transmission distance between the transmission lines L 1 and L 2 is short and the line resistance R LL is small, the pulse voltage generated at both ends is small, so that the hand-held terminal is connected to the transmission lines L 1 and L 2. The communication signal S L1 sent from 14 is less affected by the pulse voltage and operates without any problem.

【0062】[0062]

【発明の効果】以上、実施例と共に具体的に説明したよ
うに本発明によれば、伝送線に接続された第1通信端末
から信号伝送器に送出される第1通信信号と信号伝送器
に直接接続された第2通信端末から送信された第2通信
信号とを識別して何れか一方をマイクロプロセッサに伝
送して、通信の競合を回避するようにしたので、現場で
の保守点検の際に発生する通信トラブルを有効に除去す
ることができるメリットがある。また、第2通信端末を
用いるときは、伝送線上に混入する通信信号以外のノイ
ズを除去しながら現場での保守点検を実行することがで
きるので、迅速でかつ正確な現場調整が可能である。
As described above, according to the present invention, the first communication signal transmitted from the first communication terminal connected to the transmission line to the signal transmitter and the signal transmitter are transmitted. Since the second communication signal transmitted from the directly connected second communication terminal is distinguished from the second communication signal and one of the signals is transmitted to the microprocessor to avoid a communication conflict, a maintenance and inspection at the site is performed. There is an advantage that communication troubles occurring in the system can be effectively removed. In addition, when the second communication terminal is used, on-site maintenance and inspection can be performed while removing noise other than communication signals mixed on the transmission line, so that quick and accurate on-site adjustment is possible.

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

【図1】本発明の1実施形態の構成を示すブロック図で
ある。
FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention.

【図2】タスク選択をする流れを制御するタスク選択手
順を示すフローチャート図である。
FIG. 2 is a flowchart illustrating a task selection procedure for controlling the flow of task selection.

【図3】通信のソフト割込みを行う割込手順を示すフロ
ーチャート図である。
FIG. 3 is a flowchart illustrating an interrupt procedure for performing a software soft interrupt.

【図4】通信の競合を判別する競合判別手順を示すフロ
ーチャート図である。
FIG. 4 is a flowchart illustrating a conflict determination procedure for determining a communication conflict.

【図5】状態保持のためのハード割込みを行う1秒タス
クを示すフローチャート図である。
FIG. 5 is a flowchart showing a one-second task for performing a hard interrupt for holding a state.

【図6】通信ロック解除のためのハード割込みを行う2
50mSタスクを示すフローチャート図である。
FIG. 6 shows a case where a hardware interrupt for communication lock release is performed.
It is a flowchart figure which shows a 50mS task.

【図7】従来の信号伝送器の構成を示すブロック図であ
る。
FIG. 7 is a block diagram showing a configuration of a conventional signal transmitter.

【符号の説明】 10、17 信号伝送器 11 直流電源 12 負荷 14、15 ハンドヘルドターミナル SNR 検出器 MEM1、MEM2、MEM3 メモリ μP1、μP2、μP3 マイクロプロセッサ IFC1、IFC2、IFC3 インターフエイス回路 FF フリップフロップ[Description of Reference Numerals] 10, 17 signal transmitter 11 DC power supply 12 load 15 handheld terminal SNR detector MEM 1, MEM 2, MEM 3 memory μP 1, μP 2, μP 3 microprocessor IFC 1, IFC 2, IFC 3 interface circuit FF flip-flop

───────────────────────────────────────────────────── フロントページの続き (72)発明者 和田 正巳 東京都武蔵野市中町2丁目9番32号 横河 電機株式会社内 (72)発明者 筒井 弘英 東京都武蔵野市中町2丁目9番32号 横河 電機株式会社内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Masami Wada 2-9-132 Nakamachi, Musashino-shi, Tokyo Inside Yokogawa Electric Corporation (72) Inventor Hirohide Tsutsui 2-9-132 Nakamachi, Musashino-shi, Tokyo Yokogawa Electric Corporation

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】物理量を検出してこの物理量に関連する電
流信号を伝送線を介して負荷に伝送すると共にこの電流
信号にデジタル信号を重畳して通信端末と互いに通信す
るマイクロプロセッサを搭載した通信機能を有する信号
伝送器において、前記伝送線に接続された第1通信端末
から前記信号伝送器に送出される第1通信信号と前記信
号伝送器に直接接続された第2通信端末から送信された
第2通信信号とを識別して何れか一方を前記マイクロプ
ロセッサに伝送するインターフエイス回路を具備するこ
とを特徴とする通信機能を有する信号伝送器。
A communication system comprising a microprocessor for detecting a physical quantity, transmitting a current signal related to the physical quantity to a load via a transmission line, and superimposing a digital signal on the current signal to communicate with a communication terminal. In a signal transmitter having a function, a first communication signal transmitted from the first communication terminal connected to the transmission line to the signal transmitter and a first communication signal transmitted from the second communication terminal directly connected to the signal transmitter. A signal transmitter having a communication function, comprising: an interface circuit that identifies a second communication signal and transmits one of the signals to the microprocessor.
【請求項2】前記マイクロプロセッサで初期設定され前
記第2デジタル信号の受信か否かを検知するフリップフ
ロップと、この受信状態を前記マイクロプロセッサが検
知して状態設定され前記第1通信信号を遮断或いは通過
させる第1論理素子と、この第1論理素子の出力により
前記第2通信信号或いは前記第1通信信号の通過を制御
する第2論理素子とを具備することを特徴とする請求項
1記載の通信機能を有する信号伝送器。
2. A flip-flop which is initialized by the microprocessor and detects whether or not the second digital signal is received, and the microprocessor detects a reception state of the second digital signal and sets the state to cut off the first communication signal. 2. The device according to claim 1, further comprising: a first logic element that allows the signal to pass therethrough; and a second logic element that controls passage of the second communication signal or the first communication signal based on an output of the first logic element. A signal transmitter having a communication function.
JP15464197A 1997-06-12 1997-06-12 Signal transmitter with communication function Expired - Lifetime JP3446870B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15464197A JP3446870B2 (en) 1997-06-12 1997-06-12 Signal transmitter with communication function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15464197A JP3446870B2 (en) 1997-06-12 1997-06-12 Signal transmitter with communication function

Publications (2)

Publication Number Publication Date
JPH113484A true JPH113484A (en) 1999-01-06
JP3446870B2 JP3446870B2 (en) 2003-09-16

Family

ID=15588663

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15464197A Expired - Lifetime JP3446870B2 (en) 1997-06-12 1997-06-12 Signal transmitter with communication function

Country Status (1)

Country Link
JP (1) JP3446870B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002367069A (en) * 2001-06-11 2002-12-20 Yamatake Corp Field equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002367069A (en) * 2001-06-11 2002-12-20 Yamatake Corp Field equipment

Also Published As

Publication number Publication date
JP3446870B2 (en) 2003-09-16

Similar Documents

Publication Publication Date Title
JP6140459B2 (en) Sensor data transmission device
JP3898694B2 (en) Serial data transmission device
JPH08265308A (en) Method and device for fully bidirectional communication and programmable controller using the same
JPH113484A (en) Signal transmitter having communication function
US20050114463A1 (en) Multi-microprocessor apparatus and slave reset method for the same
JP2001034301A (en) Field bus system
US5528760A (en) Data transmission/receive system and control method using dummy data to signify transmission/reception state and to detect transmission error
JPH04178047A (en) Skew compensation system
JP2924166B2 (en) Signal transmitter
JP3191247B2 (en) Signal processing device
JP3347987B2 (en) Serial communication controller
JP2914219B2 (en) Analog video signal transmission device
JP2714976B2 (en) Data communication method of electric fuse
KR960016274B1 (en) Home bus interface apparatus
JP3409242B2 (en) Sensor device remote control method, sensor control system, and sensor device
JP2773637B2 (en) Line test pulse generator
JP2000113362A (en) Two-wire signal transmitter
JP3057619B2 (en) 2-wire signal transmitter
JP2941266B1 (en) Encoder data output method for bus communication type encoder device
JP2575920Y2 (en) Switching information issuing circuit
JPH0465600B2 (en)
JPS62192667A (en) Automatic measuring instrument
KR950008484Y1 (en) Inputting/outputting apparatus of data
JPS6243211B2 (en)
JPH05159191A (en) Measuring device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080704

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090704

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100704

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110704

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120704

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130704

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140704

Year of fee payment: 11

EXPY Cancellation because of completion of term