JP2000293206A - Duplex pulse width output device - Google Patents

Duplex pulse width output device

Info

Publication number
JP2000293206A
JP2000293206A JP11095901A JP9590199A JP2000293206A JP 2000293206 A JP2000293206 A JP 2000293206A JP 11095901 A JP11095901 A JP 11095901A JP 9590199 A JP9590199 A JP 9590199A JP 2000293206 A JP2000293206 A JP 2000293206A
Authority
JP
Japan
Prior art keywords
pulse width
output
control
control right
completion notification
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
JP11095901A
Other languages
Japanese (ja)
Other versions
JP3800386B2 (en
Inventor
Tatsumi Azuma
龍巳 東
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 JP09590199A priority Critical patent/JP3800386B2/en
Publication of JP2000293206A publication Critical patent/JP2000293206A/en
Application granted granted Critical
Publication of JP3800386B2 publication Critical patent/JP3800386B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Safety Devices In Control Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a duplex pulse width output device which can output pulse width in spite of the timing of the switch of control right while reliability is maintained. SOLUTION: In a device, a duplex pulse width output device outputting pulse width is improved. A control side pulse width output part counting pulse width, outputting the start and the end of the pulse width based on control right and outputting the completion notice of pulse width and a waiting side pulse width output part counting the pulse width and outputting the start and the end of the pulse width based on the control right and the completion notice of the control side pulse width output part are installed. The pulse width is outputted by the start and the end of pulse width.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、パルス幅を出力す
る二重化パルス幅出力装置に関し、信頼性を維持しつ
つ、制御権の切り替わりのタイミングによらず、パルス
幅を出力できる二重化パルス幅出力装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dual pulse width output device for outputting a pulse width, and more particularly to a dual pulse width output device capable of outputting a pulse width irrespective of a control right switching timing while maintaining reliability. It is about.

【0002】[0002]

【従来の技術】プロセス制御装置等において、電動弁等
の動作方向(弁の開閉)および動作量を制御するため
に、2接点のパルス幅出力が行われている。このような
二重化パルス幅出力装置を図10に示し以下に説明す
る。
2. Description of the Related Art In a process control device or the like, a pulse width output of two contacts is performed to control an operation direction (opening / closing of a valve) and an operation amount of an electric valve or the like. Such a dual pulse width output device is shown in FIG. 10 and will be described below.

【0003】図において、1,2はホストプロセッサ、
3,4はI/Oバスインターフェース、5はI/Oカー
ドである。ホストプロセッサ1はI/Oバスインターフ
ェース3に接続し、I/Oバスインターフェース3はI
/Oカード5に接続する。ホストプロセッサ2はI/O
バスインターフェース4に接続し、I/Oバスインター
フェース4はI/Oカード5に接続する。I/Oカード
は、図示しない電動弁等に接点出力を行っている。
In the figure, reference numerals 1 and 2 denote a host processor,
Reference numerals 3 and 4 denote I / O bus interfaces, and reference numeral 5 denotes an I / O card. The host processor 1 is connected to the I / O bus interface 3, and the I / O bus interface 3
/ O card 5 The host processor 2 is an I / O
The I / O bus interface 4 is connected to an I / O card 5. The I / O card outputs a contact to a motor-operated valve or the like (not shown).

【0004】このような装置の動作を以下に説明する。
図11,12は、図10に示す装置の動作を示したタイ
ミングチャートである。図11は、待機側のホストプロ
セッサ2がパルス幅のカウントを行わない場合、図12
は、待機側のホストプロセッサ2がパルス幅のカウント
を行う場合である。
[0004] The operation of such a device will be described below.
11 and 12 are timing charts showing the operation of the device shown in FIG. FIG. 11 shows a case where the host processor 2 on the standby side does not count the pulse width.
Is a case where the host processor 2 on the standby side counts the pulse width.

【0005】ホストプロセッサ1,2とI/Oバスイン
ターフェース3,4とが二重化され、動作している。そ
して、制御側となったホストプロセッサ1がパルス幅の
カウントを行い、I/Oバスインターフェース3を介し
て、I/Oカード5の接点出力回路を、パルス幅の開始
と終了とにより制御し、所望のパルス幅を出力する。
The host processors 1, 2 and the I / O bus interfaces 3, 4 are duplicated and operate. Then, the host processor 1 on the control side counts the pulse width, controls the contact output circuit of the I / O card 5 via the I / O bus interface 3 by the start and end of the pulse width, A desired pulse width is output.

【0006】まず、待機側のホストプロセッサ2がパル
ス幅のカウントを行わない場合について説明する。図1
1(a)に示されるように、t1でパルス幅のカウント
が開始され、待機側のホストプロセッサ2はパルス幅の
カウントを行わないため、t2で、パルス幅出力中に制
御権が切り換わり、t2でパルス幅が終了し、本当の終
了時点であるt4までパルス幅出力を継続することがで
きない。
First, a case where the host processor 2 on the standby side does not count the pulse width will be described. FIG.
As shown in FIG. 1 (a), the counting of the pulse width is started at t1, and since the host processor 2 on the standby side does not count the pulse width, the control right is switched during the output of the pulse width at t2. The pulse width ends at t2, and the pulse width output cannot be continued until t4, which is the true end point.

【0007】また、図11(b)に示されるように、t
1でカウントが開始され、t2で制御権が切り換わった
後、新たに制御側となったホストプロセッサ2が、t3
でパルス幅のカウントを再実行すると、パルス幅をt5
までカウントし、出力するパルス幅が長くなってしま
う。
Further, as shown in FIG.
After the counting is started at 1 and the control right is switched at t2, the host processor 2 which has newly become the control side
When the pulse width counting is executed again, the pulse width becomes t5.
Counting, and the output pulse width becomes long.

【0008】そこで、図12に示すように、待機側のホ
ストプロセッサ2でも、t1で、制御側のホストプロセ
ッサ1と同時にパルス幅のカウントを開始した場合は、
制御側および待機側の動作クロックに誤差があるため、
待機側のホストプロセッサ2の動作クロックが速い場合
には、図12(c)に示すように、t2で、制御権が切
り替わる前にパルス幅のカウントが終了してしまう。こ
のため、図12(a),(b)に示すように、t2より
後の制御権の切り替わり後にパルス出力を落とすための
動作を実行できないため、パルス幅の終了時点であるt
3で、パルス出力を落とすことができなくなってしまう
という問題点があった。
Therefore, as shown in FIG. 12, when the standby host processor 2 starts counting the pulse width at the same time as the control host processor 1 at t1,
Because there is an error in the operation clock on the control side and standby side,
When the operation clock of the host processor 2 on the standby side is fast, as shown in FIG. 12C, the counting of the pulse width ends at t2 before the control right is switched. For this reason, as shown in FIGS. 12A and 12B, since the operation for lowering the pulse output cannot be executed after the switching of the control right after t2, the pulse width end time t is reached.
In No. 3, there was a problem that the pulse output could not be reduced.

【0009】そこで、ホストプロセッサからパルス幅の
カウント機能をI/Oカードに持たせ、パルス幅出力を
行う装置を図13に示し、以下に説明する。
Therefore, an apparatus for providing a pulse width counting function from the host processor to the I / O card and outputting a pulse width is shown in FIG. 13 and will be described below.

【0010】図において、6,7はホストプロセッサ、
8はI/Oカードである。ホストプロセッサ6はI/O
カード8に接続し、ホストプロセッサ7はI/Oカード
8に接続する。I/Oカード8は、図示しない電動弁等
に接点出力を行っている。
In the figure, 6 and 7 are host processors,
Reference numeral 8 denotes an I / O card. The host processor 6 is an I / O
The host processor 7 connects to the I / O card 8. The I / O card 8 outputs a contact to a motor-operated valve or the like (not shown).

【0011】このような装置の動作を以下に説明する。
ホストプロセッサ6,7を二重化する。そして、制御側
のホストプロセッサ6がI/Oカード8へパルス幅出力
コマンドを与える。コマンドを受け取ったI/Oカード
8がパルス幅出力コマンドに基づいて、パルス幅のカウ
ントを行い、パルス幅を出力する。
The operation of such an apparatus will be described below.
The host processors 6 and 7 are duplicated. Then, the host processor 6 on the control side gives a pulse width output command to the I / O card 8. The I / O card 8 receiving the command counts the pulse width based on the pulse width output command, and outputs the pulse width.

【0012】しかし、パルス幅出力機能部分であるI/
Oカード8はシングル構成となり、信頼性が劣ってしま
うという問題点がある。
However, the pulse width output function part I /
The O-card 8 has a single configuration, and has a problem that reliability is deteriorated.

【0013】[0013]

【発明が解決しようとする課題】そこで、本発明の目的
は、信頼性を維持しつつ、制御権の切り替わりのタイミ
ングによらず、パルス幅を出力できる二重化パルス幅出
力装置を実現することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a dual pulse width output device capable of outputting a pulse width irrespective of the timing of switching the control right while maintaining reliability. .

【0014】[0014]

【課題を解決するための手段】本発明は、パルス幅を出
力する二重化パルス幅出力装置において、前記パルス幅
をカウントして、制御権に基づいて、パルス幅の開始と
終了とを出力し、パルス幅の完了通知を出力する制御側
パルス幅出力部と、前記パルス幅をカウントして、前記
制御権と前記制御側パルス幅出力部の完了通知とに基づ
いて、パルス幅の開始と終了とを出力する待機側パルス
幅出力部とを有し、パルス幅の開始と終了とにより、パ
ルス幅を出力することを特徴とするものである。
According to the present invention, there is provided a dual pulse width output device for outputting a pulse width, wherein the pulse width is counted, and a start and an end of the pulse width are output based on a control right. A control-side pulse width output unit that outputs a pulse width completion notification, and counts the pulse width, and based on the control right and a completion notification of the control-side pulse width output unit, starts and ends the pulse width. And outputs a pulse width based on the start and end of the pulse width.

【0015】このような本発明では、制御側パルス幅出
力部は、制御権に基づいて、パルス幅の開始と終了とを
出力し、パルス幅の完了通知を出力する。そして、待機
側パルス幅出力部は、パルス幅をカウントして、制御権
と制御側パルス幅出力部の完了通知とに基づいて、パル
ス幅の開始と終了とを出力する。
According to the present invention, the control-side pulse width output section outputs the start and end of the pulse width based on the control right, and outputs the completion notification of the pulse width. Then, the standby-side pulse width output unit counts the pulse width, and outputs the start and end of the pulse width based on the control right and the completion notification of the control-side pulse width output unit.

【0016】[0016]

【発明の実施の形態】以下図面を用いて本発明の実施の
形態を説明する。図1は本発明の一実施例を示した構成
図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a configuration diagram showing one embodiment of the present invention.

【0017】図において、ホストプロセッサ10,20
は、二重化され、システムバス30に接続する。I/O
通信インターフェース40,50は、二重化され、シス
テムバス30に接続すると共に、I/O通信バス60に
接続する。I/Oカード70は接点出力部で、I/O通
信バス60に接続し、図示しない電動弁等に接点出力を
行っている。
In the figure, host processors 10, 20
Are duplexed and connected to the system bus 30. I / O
The communication interfaces 40 and 50 are duplicated and connected to the system bus 30 and to the I / O communication bus 60. The I / O card 70 is a contact output unit which is connected to the I / O communication bus 60 and outputs a contact to an electric valve (not shown).

【0018】I/O通信インターフェース40,50は
パルス幅出力部で、それぞれ制御権フラグレジスタ4
1,51、完了通知レジスタ42,52、コマンドレジ
スタ43,53、パルス幅演算部44,54、I/O通
信バスインターフェース45,55を有する。
The I / O communication interfaces 40 and 50 are pulse width output units, each of which has a control right flag register 4
1, 51, completion notification registers 42 and 52, command registers 43 and 53, pulse width calculation units 44 and 54, and I / O communication bus interfaces 45 and 55.

【0019】制御権フラグレジスタ41,51は制御権
通知手段で、システムバス30に接続し、制御権フラグ
を保持する。
The control right flag registers 41 and 51 are control right notifying means connected to the system bus 30 and hold control right flags.

【0020】完了通知レジスタ42,52は完了通知手
段で、システムバス30に接続し、完了通知フラグを保
持し、ホストプロセッサ10,20に通知する。
Completion notification registers 42 and 52 are completion notification means which are connected to the system bus 30, hold a completion notification flag, and notify the host processors 10 and 20.

【0021】コマンドレジスタ43,53はコマンド保
持手段で、システムバス30に接続し、パルス幅のパラ
メータを保持する。コマンドレジスタ43,53は、図
2に示すように構成される。S(スタートビット)は、
1:コマンドセット、0:コマンド完了を規定する。P
(ビジービット)は、1:パルス出力中、0:パルス出
力完了を規定する。パルス幅量は、出力するパルスの時
間を設定する。
The command registers 43 and 53 are command holding means which are connected to the system bus 30 and hold parameters of the pulse width. The command registers 43 and 53 are configured as shown in FIG. S (start bit) is
1: Command set, 0: Command completion. P
(Busy bit) specifies 1: pulse output, 0: pulse output complete. The amount of pulse width sets the time of the output pulse.

【0022】また、スタートビットとビジービットの操
作は、図3に示されるように行われ、スタートビットと
ビジービットの値とパルス出力状態は、図4に示される
ようになる。ここで、ホストとは、ホストプロセッサ1
0,20を示し、I/O通信I/Fとは、I/O通信イ
ンターフェース40,50を示す。
The operation of the start bit and the busy bit is performed as shown in FIG. 3, and the values of the start bit and the busy bit and the pulse output state are as shown in FIG. Here, the host is the host processor 1
0 and 20, and the I / O communication I / F indicates the I / O communication interfaces 40 and 50.

【0023】パルス幅演算部44,54は、それぞれ制
御権フラグレジスタ41,51、完了通知レジスタ4
2,52、コマンドレジスタ43,53に接続し、コマ
ンドレジスタ43,53のパルス幅量に基づいて、カウ
ントを行い、パルス幅の開始と終了とを出力する。
The pulse width calculation units 44 and 54 are respectively provided with control right flag registers 41 and 51 and a completion notification register 4
2, 52, which are connected to the command registers 43, 53, count based on the pulse width amounts of the command registers 43, 53, and output the start and end of the pulse width.

【0024】I/O通信バスインターフェース45,5
5は出力部で、それぞれ制御権フラグレジスタ41,5
1、パルス幅演算部44,54に接続すると共に、I/
O通信バス60に接続し、制御権フラグレジスタ41,
51の制御権に基づいて、パルス幅演算部44,54の
出力を通過させる。
I / O communication bus interfaces 45 and 5
Reference numeral 5 denotes an output unit which is a control right flag register 41, 5 respectively.
1. Connected to the pulse width calculation units 44 and 54,
O communication bus 60, control right flag register 41,
Based on the control right of 51, the outputs of the pulse width calculators 44 and 54 are passed.

【0025】このような装置の動作を以下で説明する。
ここで、ホストプロセッサ10,20の制御側は、ホス
トプロセッサ10とし、I/0通信インターフェース4
0,50の制御側は、I/O通信インターフェース40
とする。
The operation of such a device will be described below.
Here, the control side of the host processors 10 and 20 is the host processor 10 and the I / O communication interface 4
The control side of 0, 50 is the I / O communication interface 40
And

【0026】図5は、制御側ホストプロセッサ10の動
作を示したフローチャートである。図6は、制御側I/
O通信インターフェース40の動作を示したフローチャ
ートである。図7は、待機側I/O通信インターフェー
ス50の動作を示したフローチャートである。
FIG. 5 is a flowchart showing the operation of the control host processor 10. FIG. 6 shows the control I / O
5 is a flowchart showing the operation of the O communication interface 40. FIG. 7 is a flowchart showing the operation of the standby-side I / O communication interface 50.

【0027】ホストプロセッサ10は、制御側のコマン
ドレジスタ43にパラメータ、つまり、スタートビッ
ト”1”、パルス幅量を設定し、(S11)、待機側の
コマンドレジスタ53にパラメータ、つまり、スタート
ビット”1”、パルス幅量を設定する(S12)。そし
て、ホストプロセッサ10は、完了通知割り込みを待つ
(S13)。なお、待機側のホストプロセッサ20も、
ホストプロセッサ10と同じ動作を行い、制御動作は行
わずに、ホストプロセッサ10が故障等になった場合
に、ホストプロセッサ20が制御側となって、動作する
ため、説明を省略する。また、ホストプロセッサ10,
20の二重化構成及び動作は、本発明の特徴部分でない
ため、説明を省略する。
The host processor 10 sets a parameter, that is, a start bit "1", and a pulse width amount in the command register 43 on the control side, and (S11) sets a parameter, that is, a start bit, in the command register 53 on the standby side. 1 ", the pulse width amount is set (S12). Then, the host processor 10 waits for a completion notification interrupt (S13). Note that the host processor 20 on the standby side also
The same operation as that of the host processor 10 is performed, and the control operation is not performed. When the host processor 10 becomes faulty or the like, the host processor 20 operates as the control side and operates, and thus the description is omitted. Further, the host processor 10,
20 is not a characteristic part of the present invention, and the description is omitted.

【0028】パルス幅演算部44は、コマンドレジスタ
43のスタートビット”1”と制御権フラグレジスタ4
1の制御権フラグ”1”とにより、パルスを出力する接
点をオンする指示(パルス幅の開始)を、I/O通信バ
スインターフェース45を介して、I/Oカード70に
与える(S21)。ここで、I/O通信バスインターフ
ェース45は、制御権フラグ”1”により、パルス幅演
算部44の出力を通過させている。そして、パルス幅演
算部44は、コマンドレジスタ43のパルス幅量でパル
ス幅を計算、つまり、カウントを行う(S22,S2
3)。ここで、カウントは、例えば、足し算計算により
行っている。
The pulse width calculation unit 44 controls the start bit “1” of the command register 43 and the control right flag register 4
With the control right flag "1" of 1, the instruction to turn on the contact for outputting the pulse (start of the pulse width) is given to the I / O card 70 via the I / O communication bus interface 45 (S21). Here, the I / O communication bus interface 45 allows the output of the pulse width calculation unit 44 to pass by the control right flag “1”. Then, the pulse width calculator 44 calculates the pulse width based on the pulse width amount of the command register 43, that is, performs the counting (S22, S2).
3). Here, the counting is performed by, for example, addition calculation.

【0029】このとき、パルス幅演算部54も、コマン
ドレジスタ53のスタートビット”1”により、コマン
ドレジスタ53のパルス幅量を計算、つまり、カウント
を行う(S31,S32)。ここで、パルス幅演算部5
4も、パルス幅の開始を出力するが、I/O通信バスイ
ンターフェース55は、制御フラグレジスタ51の制御
フラグ”0”により、パルス幅演算部54の出力を通過
させない。
At this time, the pulse width calculation section 54 also calculates the pulse width amount of the command register 53, that is, counts, based on the start bit "1" of the command register 53 (S31, S32). Here, the pulse width calculation unit 5
4 also outputs the start of the pulse width, but the I / O communication bus interface 55 does not allow the output of the pulse width calculation unit 54 to pass due to the control flag “0” of the control flag register 51.

【0030】パルス幅演算部44は、カウントが終了し
たら、接点をオフする指示(パルス幅の終了)を、I/
O通信バスインターフェース45を介して、I/Oカー
ド70に与える(S23,S24)。そして、パルス幅
演算部44は、コマンドレジスタ43のスタートビット
とビジービットとをクリア、つまり、”0”,”0”に
する(S25)。また、パルス幅演算部44は、完了通
知レジスタ42を”1”にし、システムバス30を介し
て、ホストプロセッサ10,20に通知する(S2
6)。
When the counting is completed, the pulse width calculating section 44 issues an instruction to turn off the contact (end of the pulse width) to the I / O
It is given to the I / O card 70 via the O communication bus interface 45 (S23, S24). Then, the pulse width calculator 44 clears the start bit and the busy bit of the command register 43, that is, sets them to “0” and “0” (S25). Further, the pulse width calculation unit 44 sets the completion notification register 42 to “1” and notifies the host processors 10 and 20 via the system bus 30 (S2).
6).

【0031】この通知により、ホストプロセッサ10
は、待機側コマンドレジスタ53のスタートビットとビ
ジービットとをクリア、つまり、”0”,”0”にする
(S13,S14)。
The host processor 10 receives this notification.
Clears the start bit and busy bit of the standby side command register 53, that is, sets them to "0", "0" (S13, S14).

【0032】このとき、パルス幅演算部54は、制御権
フラグレジスタ51の制御権フラグ”0”により、コマ
ンドレジスタ53のスタートビットとビジービットとが
クリアされたかを確認する(S33)。クリアされてい
れば、パルス幅演算部54は処理を終了する。クリアさ
れていなければ、パルス幅演算部54は、内部タイマー
(図示せず)の設定を行う(S34)。
At this time, the pulse width calculator 54 checks whether the start bit and the busy bit of the command register 53 have been cleared by the control right flag "0" of the control right flag register 51 (S33). If cleared, the pulse width calculation unit 54 ends the processing. If not cleared, the pulse width calculation unit 54 sets an internal timer (not shown) (S34).

【0033】再び、パルス幅演算部54は、コマンドレ
ジスタ53のスタートビットとビジービットとがクリア
されたかを確認する(S35)。クリアされていれば、
パルス幅演算部54は処理を終了する。クリアされてい
なければ、パルス幅演算部54は、制御権フラグレジス
タ51を確認する(S36)。
Again, the pulse width calculator 54 checks whether the start bit and the busy bit of the command register 53 have been cleared (S35). If cleared
The pulse width calculator 54 ends the processing. If not cleared, the pulse width calculation unit 54 checks the control right flag register 51 (S36).

【0034】制御権が切り替わっていれば、パルス幅演
算部54は、I/O通信バスインターフェース55を介
して、接点オフ(パルス幅終了)をI/Oカード70に
指示する(S37)。ここで、制御権フラグレジスタ5
1の制御権フラグが”1”になり、I/O通信バスイン
ターフェース55が、パルス幅演算部54の出力を通過
させる。そして、パルス幅演算部54は、制御権フラグ
が”1”であるので、コマンドレジスタ53のスタート
ビットとビジービットとをクリアする(S38)。ま
た、パルス幅演算部54は、完了通知レジスタ52を”
1”にし、完了通知レジスタ52は、ホストプロセッサ
10,20に通知し(S39)、処理を終了する。
If the control right has been switched, the pulse width calculation unit 54 instructs the I / O card 70 to turn off the contact (end the pulse width) via the I / O communication bus interface 55 (S37). Here, the control right flag register 5
The control right flag of "1" becomes "1", and the I / O communication bus interface 55 passes the output of the pulse width calculation unit 54. Then, since the control right flag is "1", the pulse width calculation unit 54 clears the start bit and the busy bit of the command register 53 (S38). The pulse width calculation unit 54 sets the completion notification register 52 to “
1 ", the completion notification register 52 notifies the host processors 10 and 20 (S39), and ends the processing.

【0035】制御権が切り替わっていなければ、パルス
演算部54は、タイマーがタイムアップしたか確認する
(S40)。タイムアップしていなければ、再び、パル
ス演算部54は、コマンドレジスタ53のスタートビッ
トとビジービットとがクリアされたか確認を行い(S3
5)、上記の動作を繰返す。タイムアップしていれば、
パルス演算部54は、コマンドレジスタ53のスタート
ビットとビジービットとをクリアし(S41)、処理を
終了する。
If the control right has not been switched, the pulse calculator 54 checks whether the timer has expired (S40). If the time has not elapsed, the pulse arithmetic unit 54 checks again whether the start bit and the busy bit of the command register 53 have been cleared (S3).
5) Repeat the above operation. If the time is up,
The pulse calculator 54 clears the start bit and the busy bit of the command register 53 (S41), and ends the processing.

【0036】以上のようなI/O通信インターフェース
40,50からのパルス幅の開始と終了の指示により、
I/Oカード70は、接点出力を行う。
By the start and end instructions of the pulse width from the I / O communication interfaces 40 and 50 as described above,
The I / O card 70 performs contact output.

【0037】次に、具体的動作を、図8,9を用いて以
下に説明する。図8,9は、図1に示す装置の動作を示
したタイミングチャートである。(a)は制御側、
(b)は待機側のタイミングチャートを示す。なお、タ
イミングチャートは、概念図であり、実際の信号出力を
表したものではない。
Next, a specific operation will be described below with reference to FIGS. 8 and 9 are timing charts showing the operation of the device shown in FIG. (A) is the control side,
(B) shows a timing chart on the standby side. Note that the timing chart is a conceptual diagram and does not represent an actual signal output.

【0038】図8において、ホストプロセッサ10が、
コマンドレジスタ43,53にスタートビットとビジー
ビットとパルス幅量とを設定する(S11)。
In FIG. 8, the host processor 10
A start bit, a busy bit, and a pulse width amount are set in the command registers 43 and 53 (S11).

【0039】そして、待機側のI/O通信インターフェ
ース50は、t1で、パルス幅の開始を出力し、パルス
幅のカウントを行い、t2で、カウントが終了し、コマ
ンドレジスタ53のスタートビットとビジービットがク
リアされたか、確認する(S31〜S33)。そして、
パルス幅演算部54が、内部タイマーを設定し、コマン
ドレジスタ53のスタートビットとビジービットがクリ
アされたか、制御権が切り替わったか、タイムアップか
を繰返し、確認する(S35,S36,S40)。
Then, the I / O communication interface 50 on the standby side outputs the start of the pulse width at t1, counts the pulse width, ends the count at t2, and is busy with the start bit of the command register 53. It is confirmed whether the bit has been cleared (S31 to S33). And
The pulse width calculation unit 54 sets the internal timer, and repeatedly checks whether the start bit and the busy bit of the command register 53 are cleared, the control right is switched, or the time is up (S35, S36, S40).

【0040】このとき、制御側のI/O通信インターフ
ェース40は、t1から、パルス幅出力のカウントを行
い、カウントが終了し、t3で、パルス幅の終了を出力
する(S21〜S24)。パルス幅演算部44が、コマ
ンドレジスタ43のスタートビットとビジービットをク
リアにし、完了通知レジスタ42を”1”にし、ホスト
プロセッサ10,20に完了を通知する(S25,S2
6)。
At this time, the control-side I / O communication interface 40 counts the pulse width output from t1, ends the counting, and outputs the end of the pulse width at t3 (S21 to S24). The pulse width calculator 44 clears the start bit and busy bit of the command register 43, sets the completion notification register 42 to "1", and notifies the host processors 10 and 20 of the completion (S25, S2).
6).

【0041】完了通知により、ホストプロセッサ10
は、コマンドレジスタ53のスタートビットとビジービ
ットとをクリアする(S14)。
Upon completion notification, the host processor 10
Clears the start bit and the busy bit of the command register 53 (S14).

【0042】これにより、I/O通信インターフェース
50のパルス幅演算部54は、t3で、パルス幅の終了
を出力する。
Thus, the pulse width calculator 54 of the I / O communication interface 50 outputs the end of the pulse width at t3.

【0043】また、図9において、ホストプロセッサ1
0が、コマンドレジスタ43,53にスタートビットと
ビジービットとパルス幅量とを設定する(S11)。
In FIG. 9, the host processor 1
0 sets a start bit, a busy bit, and a pulse width amount in the command registers 43 and 53 (S11).

【0044】そして、待機側のI/O通信インターフェ
ース50は、t1から、パルス幅のカウントを行い、t
2で、カウントが終了し、コマンドレジスタ53のスタ
ートビットとビジービットがクリアされたか、確認する
(S31〜S33)。そして、パルス幅演算部54が、
内部タイマーを設定し、コマンドレジスタ53のスター
トビットとビジービットがクリアされたか、制御権が切
り替わったか、タイムアップかを繰返し、確認する(S
35,S36,S40)。
Then, the I / O communication interface 50 on the standby side counts the pulse width from t1, and
At 2, the counting is completed, and it is confirmed whether the start bit and the busy bit of the command register 53 have been cleared (S31 to S33). Then, the pulse width calculation unit 54
An internal timer is set, and it is repeatedly checked whether the start bit and the busy bit of the command register 53 have been cleared, the control right has been switched, or the time has expired (S
35, S36, S40).

【0045】このとき、制御側のI/O通信インターフ
ェース40は、t1から、パルス幅出力のカウントを行
う(S21〜S23)。そして、t3で、制御権の切り
替えが起こると、制御権フラグレジスタ41が”0”、
制御権フラグレジスタ51が”1”となる。ここで、制
御権の切り替えは、ホストプロセッサ10が、レジスタ
41〜43を読みに行き、読み出しに失敗すると、I/
O通信インターフェース40の故障とみなして、制御権
フラグレジスタ41を”0”にし、I/O通信インター
フェース50の制御権フラグレジスタ51を”1”にす
ることにより、切り替えを行っている。
At this time, the control-side I / O communication interface 40 counts the pulse width output from t1 (S21 to S23). At t3, when the control right is switched, the control right flag register 41 is set to "0",
The control right flag register 51 becomes "1". Here, the switching of the control right is performed by the host processor 10 reading the registers 41 to 43 and, if reading fails, the I / O
Switching is performed by regarding the O communication interface 40 as a failure and setting the control right flag register 41 to "0" and setting the control right flag register 51 of the I / O communication interface 50 to "1".

【0046】これにより、t3で、パルス幅演算部54
は、パルス幅出力を終了し、スタートビットとビジービ
ットとをクリアし、完了通知レジスタ52を”1”にす
る(S37〜S39)。
As a result, at t3, the pulse width calculation unit 54
Ends the pulse width output, clears the start bit and the busy bit, and sets the completion notification register 52 to "1" (S37 to S39).

【0047】完了通知により、ホストプロセッサ10
は、コマンドレジスタ43のスタートビットとビジービ
ットとをクリアする(S14)。
Upon completion notification, the host processor 10
Clears the start bit and the busy bit of the command register 43 (S14).

【0048】これにより、待機側となったI/O通信イ
ンターフェース40のパルス幅演算部44は、t4で、
パルス幅の終了を出力する(S31〜S33)。なお、
制御権フラグレジスタ41が”0”であるので、I/O
通信バスインターフェース45により、出力はされな
い。
As a result, the pulse width calculator 44 of the I / O communication interface 40 on the standby side outputs
The end of the pulse width is output (S31 to S33). In addition,
Since the control right flag register 41 is "0", the I / O
No output is made by the communication bus interface 45.

【0049】このように、制御側I/O通信インターフ
ェース40は、パルス幅のカウントの完了を通知し、こ
の通知により、待機側I/O通信インターフェース50
は、パルス幅のカウントを終了するので、I/O通信イ
ンターフェース40,50の処理速度にずれがあって
も、二重化の切り替わりのタイミングによらず、パルス
出力を継続して行うことができる。また、I/O通信イ
ンターフェース40,50は、二重化されているので、
信頼性も維持できる。
As described above, the control-side I / O communication interface 40 notifies the completion of the pulse width counting, and, based on this notification, the standby-side I / O communication interface 50.
Ends the pulse width counting, so that even if the processing speeds of the I / O communication interfaces 40 and 50 are shifted, the pulse output can be continuously performed irrespective of the switching timing of the duplexing. Also, since the I / O communication interfaces 40 and 50 are duplicated,
Reliability can be maintained.

【0050】なお、本発明はこれに限定されるものでは
なく、以下のようなものでもよい。I/O通信バスイン
ターフェース45,55により、パルス幅演算部44,
54の出力を制御する構成を示したが、パルス幅演算部
44,54に制御権により出力を制御する構成を含む構
成でもよい。
The present invention is not limited to this, but may be as follows. The pulse width calculation unit 44,
Although the configuration for controlling the output of 54 has been described, a configuration including a configuration in which the pulse width calculation units 44 and 54 control the output with the control right may be used.

【0051】また、完了通知レジスタ42,52の完了
通知は、ホストプロセッサ10,20を介して、I/O
通信インターフェース50,40に通知する構成を示し
たが、ホストプロセッサ10,20を介さずに、直接、
I/O通信インターフェース50,40に通知する構成
にしてもよい。
The completion notification of the completion notification registers 42 and 52 is sent to the I / O via the host processors 10 and 20.
Although the configuration for notifying the communication interfaces 50 and 40 has been described, it is possible to directly
The configuration may be such that the I / O communication interfaces 50 and 40 are notified.

【0052】そして、ホストプロセッサ10,20で、
二重化した構成を示したが、本発明の特徴部分は、I/
O通信インターフェース40,50による二重化である
ので、ホストプロセッサ10,20はシングル構成でも
よい。
Then, in the host processors 10 and 20,
Although a duplicated configuration is shown, the feature of the present invention is that the I / O
Since the O communication interfaces 40 and 50 are used for redundancy, the host processors 10 and 20 may have a single configuration.

【0053】[0053]

【発明の効果】本発明によれば、以下のような効果があ
る。制御側パルス幅出力部は、パルス幅のカウントの完
了を通知し、この通知により、待機側パルス幅出力部
は、パルス幅のカウントを終了するので、パルス幅出力
部の処理速度にずれがあっても、二重化の切り替わりの
タイミングによらず、パルス出力を継続して行うことが
できる。また、制御側及び待機側パルス幅出力部は、二
重化されているので、信頼性も維持できる。
According to the present invention, the following effects can be obtained. The control-side pulse width output unit notifies the completion of the pulse width counting, and this notification causes the standby-side pulse width output unit to end the pulse width counting. However, the pulse output can be continuously performed irrespective of the switching timing of the duplexing. Further, since the control side and standby side pulse width output units are duplicated, reliability can be maintained.

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

【図1】本発明の一実施例を示した構成図である。FIG. 1 is a configuration diagram showing one embodiment of the present invention.

【図2】コマンドレジスタ43,53の構成を示した図
である。
FIG. 2 is a diagram showing a configuration of command registers 43 and 53.

【図3】コマンドレジスタ43,53の操作対応表を示
した図である。
FIG. 3 is a diagram showing an operation correspondence table of command registers 43 and 53;

【図4】コマンドレジスタ43,53のパルス出力状態
対応表を示した図である。
FIG. 4 is a diagram showing a pulse output state correspondence table of command registers 43 and 53.

【図5】制御側ホストプロセッサ10の動作を示したフ
ローチャートである。
FIG. 5 is a flowchart showing the operation of the control-side host processor 10.

【図6】制御側I/O通信インターフェース40の動作
を示したフローチャートである。
FIG. 6 is a flowchart showing the operation of the control-side I / O communication interface 40.

【図7】待機側I/O通信インターフェース50の動作
を示したフローチャートである。
FIG. 7 is a flowchart showing an operation of the standby-side I / O communication interface 50;

【図8】図1に示す装置の動作を示したタイミングチャ
ートである。
FIG. 8 is a timing chart showing the operation of the device shown in FIG.

【図9】図1に示す装置の動作を示したタイミングチャ
ートである。
FIG. 9 is a timing chart showing the operation of the device shown in FIG.

【図10】従来の二重化パルス幅出力装置を示した構成
図である。
FIG. 10 is a configuration diagram showing a conventional duplex pulse width output device.

【図11】図10に示す装置の動作を示したタイミング
チャートである。
11 is a timing chart showing the operation of the device shown in FIG.

【図12】図10に示す装置の動作を示したタイミング
チャートである。
12 is a timing chart showing the operation of the device shown in FIG.

【図13】従来の他の二重化パルス幅出力装置を示した
構成図である。
FIG. 13 is a configuration diagram showing another conventional duplex pulse width output device.

【符号の説明】[Explanation of symbols]

10,20 ホストプロセッサ 30 システムバス 40,50 I/O通信インターフェース 41,51 制御権フラグレジスタ 42,52 完了通知レジスタ 43,53 コマンドレジスタ 44,54 パルス幅演算部 45,55 I/O通信バスインターフェース 60 I/O通信バス 70 I/Oカード 10, 20 Host processor 30 System bus 40, 50 I / O communication interface 41, 51 Control right flag register 42, 52 Completion notification register 43, 53 Command register 44, 54 Pulse width calculation unit 45, 55 I / O communication bus interface 60 I / O communication bus 70 I / O card

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 パルス幅を出力する二重化パルス幅出力
装置において、 前記パルス幅をカウントして、制御権に基づいて、パル
ス幅の開始と終了とを出力し、パルス幅の完了通知を出
力する制御側パルス幅出力部と、 前記パルス幅をカウントして、前記制御権と前記制御側
パルス幅出力部の完了通知とに基づいて、パルス幅の開
始と終了とを出力する待機側パルス幅出力部とを有し、
パルス幅の開始と終了とにより、パルス幅を出力するこ
とを特徴とする二重化パルス幅出力装置。
1. A dual pulse width output device for outputting a pulse width, wherein the pulse width is counted, a start and an end of the pulse width are output based on a control right, and a completion notification of the pulse width is output. A control-side pulse width output unit, a standby-side pulse width output that counts the pulse width, and outputs a start and end of the pulse width based on the control right and a completion notification of the control-side pulse width output unit. Part and
A duplex pulse width output device which outputs a pulse width at the start and end of the pulse width.
【請求項2】 制御側及び待機側パルス幅出力部は、 制御権を通知する制御権通知手段と、 パルス幅の完了通知を通知する完了通知手段と、 前記パルス幅のパルス幅量を保持するコマンド保持手段
と、 このコマンド保持手段のパルス幅量に基づいて、パルス
幅のカウントを行い、前記制御権通知手段からの制御権
があるとき、パルス幅の開始と終了とを出力し、制御権
通知手段からの制御権がないとき、制御側の前記完了通
知手段の完了通知に基づいて、パルス幅のカウントを終
了するパルス幅演算部とを有することを特徴とする請求
項1記載の二重化パルス幅出力装置。
2. The control-side and standby-side pulse width output units include: a control right notification unit that notifies a control right; a completion notification unit that notifies a completion notification of a pulse width; and a pulse width amount of the pulse width. A command holding means for counting the pulse width based on the pulse width of the command holding means, and outputting the start and end of the pulse width when the control right is given from the control right notifying means; 2. The duplex pulse according to claim 1, further comprising: a pulse width calculation unit that terminates counting of a pulse width based on a completion notification from the completion notification unit on the control side when there is no control right from the notification unit. Width output device.
【請求項3】 制御側及び待機側パルス幅出力部は、 パルス幅演算部の出力を、制御権通知手段からの制御権
に基づいて、出力する出力部を有することを特徴とする
請求項2記載の二重化パルス幅出力装置。
3. The control-side and standby-side pulse width output units each have an output unit that outputs an output of the pulse width calculation unit based on a control right from a control right notification unit. A dual pulse width output device as described.
【請求項4】 制御側パルス幅出力部の完了通知を、待
機側パルス幅出力部に通知するホストプロセッサを有す
ることを特徴とする請求項1〜3記載の二重化パルス幅
出力装置。
4. The duplex pulse width output device according to claim 1, further comprising a host processor for notifying the standby pulse width output unit of the completion notification of the control side pulse width output unit.
【請求項5】 制御側及び待機側パルス幅出力部のパル
ス幅の開始と終了とに基づいて、接点出力を行う接点出
力部を有することを特徴とする請求項1〜4記載の二重
化パルス出力装置。
5. The dual pulse output according to claim 1, further comprising a contact output section for performing a contact output based on the start and end of the pulse width of the control-side and standby-side pulse width output sections. apparatus.
JP09590199A 1999-04-02 1999-04-02 Dual pulse width output device Expired - Fee Related JP3800386B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP09590199A JP3800386B2 (en) 1999-04-02 1999-04-02 Dual pulse width output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP09590199A JP3800386B2 (en) 1999-04-02 1999-04-02 Dual pulse width output device

Publications (2)

Publication Number Publication Date
JP2000293206A true JP2000293206A (en) 2000-10-20
JP3800386B2 JP3800386B2 (en) 2006-07-26

Family

ID=14150210

Family Applications (1)

Application Number Title Priority Date Filing Date
JP09590199A Expired - Fee Related JP3800386B2 (en) 1999-04-02 1999-04-02 Dual pulse width output device

Country Status (1)

Country Link
JP (1) JP3800386B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822594A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Interaction method and system based on Bluetooth headset

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822594A (en) * 2021-01-14 2021-05-18 深圳市芯中芯科技有限公司 Interaction method and system based on Bluetooth headset

Also Published As

Publication number Publication date
JP3800386B2 (en) 2006-07-26

Similar Documents

Publication Publication Date Title
JP2000293206A (en) Duplex pulse width output device
JPH0644093A (en) System for changing-over duplicating device
JP4431262B2 (en) Control device
JPH0675653A (en) Computer redundancy control system
JPH0944277A (en) Microcomputer
JPH05341803A (en) Duplex switching device for programmable controller
JPS633346B2 (en)
JP3125864B2 (en) Redundant system
JP2775536B2 (en) Power supply device and power supply control method
JP2557538B2 (en) Duplex system
JPH05100882A (en) Information processor
JPH04167043A (en) Portable electronic equipment
KR100216354B1 (en) Methode of duplex system in the telecomunication system
JPH04364510A (en) Power supply system
JPH04140810A (en) Information processor
JPS61184619A (en) Power source control system
JPH01142833A (en) Data processor
JPS59200531A (en) Dual switching system
JPH07146846A (en) Multiprocessor system
JPH07202860A (en) Communication controller
JPH0331921A (en) Data processor
JPH1139103A (en) Magnetic tape processor and processing method therefor
KR20020091589A (en) Dual device and method of bts control processor
JPH01124033A (en) Information processor
JPH02272667A (en) Input/output signal processing system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050519

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050523

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050722

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050823

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051006

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060406

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060419

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130512

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130512

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140512

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees