JPS62278659A - Data processor - Google Patents

Data processor

Info

Publication number
JPS62278659A
JPS62278659A JP12188886A JP12188886A JPS62278659A JP S62278659 A JPS62278659 A JP S62278659A JP 12188886 A JP12188886 A JP 12188886A JP 12188886 A JP12188886 A JP 12188886A JP S62278659 A JPS62278659 A JP S62278659A
Authority
JP
Japan
Prior art keywords
switch
processor
signal
changeover
switching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP12188886A
Other languages
Japanese (ja)
Inventor
Toshifumi Tanaka
敏文 田中
Toyohiro Asahara
豊廣 朝原
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.)
Nissin Electric Co Ltd
Original Assignee
Nissin Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissin Electric Co Ltd filed Critical Nissin Electric Co Ltd
Priority to JP12188886A priority Critical patent/JPS62278659A/en
Publication of JPS62278659A publication Critical patent/JPS62278659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To completely avoid the occurrence of control errors of an I/O device caused by the switching of processors by preventing such a case where the processing of the I/O device is forcibly finished halfway when the switch signal is supplied for the changeover of processors which control the I/O device. CONSTITUTION:When a processor is performing a series of control actions for an I/O device 7 in case of operating a control switch 9, the supply of the switch signal is prevented by the lock signal to a changeover switch 5 from a switch 8. Thus it is possible to avoid completely the interruption of a series of control actions for the device 7 that is carried out by the processor. Then the output of the lock signal is discontinued after said control actions of the device 7 are over via the processor. Then the switch signal is supplied to the switch 5 from the switch 8 and the device 7 is connected to another processor. Hereafter this new processor controls the device 7.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〈産業上の刊舟分野〉 この発明はデータ処理装置に関し、さらに詳細にいえば
、複数のプロセッサを有し、何れのプロセッサによって
も同一のI/O8i器を制御することができるようにし
たデータ処理装置に関する。
[Detailed Description of the Invention] 3. Detailed Description of the Invention (Industrial Publication Field) This invention relates to a data processing device, and more specifically, it has a plurality of processors, and any The present invention relates to a data processing device capable of controlling an I/O8i device.

〈従来の技術〉 従来からデータ処理装置として、単一のプロセッサのみ
により特定のI/O機器を制御するようにしたものの他
に、複数のプロセッサを有し、何れのプロセッサによっ
ても同一のI/O1器を制御することができるようにし
たものが提供されている。
<Prior Art> Conventionally, as a data processing device, in addition to those in which a specific I/O device is controlled by only a single processor, there are also devices that have multiple processors and each processor controls the same I/O device. There have been provided devices that can control the O1 device.

後者の構成のデータ処′@装置は、主として、1台のプ
ロセッサに故障が発生した場合、或は窓明点検を行なう
場合等に、他のプロセッサにより空調義烈等の運転制御
を行ない、環境制御が中断されることがないようにする
場合等に好適に使用されるものである。
Data processing equipment with the latter configuration mainly uses other processors to control the operation of air conditioners, etc. when a failure occurs in one processor, or when performing a window inspection. This is suitable for use in cases where the system is not interrupted.

そして、具体的な構成としては、例えば、第4図に示す
ように、2台のプロセッサ(11)(12)に対して接
続されテイルI/Oハス(13)(14)8I/O機器
(15)とを、切替スイッチ(16)、およびI/Oイ
ンターフェース(17)を介して選択的に接続し、さら
に外部操作される操作スイッチ(18)が制御入力端子
間に接続される切替器(19)から上記各プロセッサ(
11)(12)に対して切替信号が供給されているとと
もに、上記切替スイッチ(16)に対しても切替信号が
供給されている。
As a specific configuration, for example, as shown in FIG. 15) is selectively connected to the switch (16) and the I/O interface (17), and an externally operated operation switch (18) is connected between the control input terminals. 19) to each of the above processors (
11) A switching signal is supplied to (12), and a switching signal is also supplied to the changeover switch (16).

そして、上記の41戊のデータ処理装置においては、第
5図のフローチャートに示すように、操作スイッチ(1
8)が操作された場合には、自動的に切替スイッチ(1
6)を動作させて他方のプロセッサとI/OR器(15
)とを接続することにより、Iloぼ器(15)を制御
するプロセッサを交替させることができる。
In the above-mentioned 41 data processing devices, as shown in the flowchart of FIG.
8) is operated, the changeover switch (1
6) and the other processor and I/OR device (15
), the processor that controls the Ilobo device (15) can be replaced.

したがって、上記交替動作までl/O111器(15)
と接続されていたプロセッサはI /O8N器(15)
と切離されることになり、l/O1fl器(15)の制
御を行なわせている状態のままで、故障発生時の修理、
或は定期点検等を行なわせることができる。
Therefore, up to the above alternating operation, the l/O111 unit (15)
The processor connected to is an I/O8N device (15)
This means that the l/O1fl unit (15) can be repaired and repaired in the event of a failure while still being controlled.
Alternatively, periodic inspections etc. can be performed.

〈発明が解決しようとする問題点〉 上記の構成のデータ処理装置においては、プロセッサに
よるl/O1器(15)の制御が行なわれているか否か
に拘わらず、操作スイッチ(18)の操作が行なわれた
場合に、直ちに切替器(19)から切替信号を出力する
ことにより、切替スイッチ(16)を動作させ、他方の
プロセッサによりI /OII器(15)の制御が行な
われる状態が選択されるのであるから、I/O機器(1
5)に対する処理を遂行している途中で上記状態の選択
が行なわれる場合がある。この場合においては、I /
O1jl器(15)の処理が正常に行なわれなくなり、
異常終了するので、接続切替に伴なう異常終了であるこ
とを検出して、以後は必要なエラー処理を行ない、エラ
ー処理が終了した後に、切替えられたプロセッサによる
I/OI!l器(15)の正常な制御を行なうことにな
る。
<Problems to be Solved by the Invention> In the data processing device having the above configuration, the operation of the operation switch (18) is performed regardless of whether or not the L/O1 unit (15) is controlled by the processor. If the I/OII device (15) is controlled by the other processor, the changeover switch (16) is operated by immediately outputting a changeover signal from the changeover (19), and the state in which the I/OII device (15) is controlled by the other processor is selected. I/O equipment (1
The above-mentioned state may be selected during the process of 5). In this case, I/
O1jl device (15) processing is not performed normally,
Since the abnormal termination occurs, it is detected that the abnormal termination is due to connection switching, and the necessary error processing is performed thereafter. After the error processing is completed, I/OI! by the switched processor is detected. This results in normal control of the 1 unit (15).

しかし、実際には、I/O機器(15)に対する処理の
途中で一方のプロセッサによる制御が中断されるのであ
るから、切替えられた他方のプロセッサはI/O8gl
器(15)の状零を・把握することができず、エラー処
理を行なった場合に、I/O機器(15)がwAvJ作
する可能性があるという問題がある。
However, in reality, control by one processor is interrupted in the middle of processing for the I/O device (15), so the other processor is switched to the I/O8gl.
There is a problem that the I/O device (15) may generate wAvJ when the state of the device (15) cannot be grasped and error processing is performed.

具体的には、l/O1器(15)に対する処理の途中で
切替動作が行なわれることにより、必要なフラグのセッ
ト、リセット等が遂行されない可能性が高く、どの状態
で切替動作が行なわれたのかを識別することができない
のであるから、l/Ovi器(15)の種類によっては
、切替えられた新たなプロセッサによる制御が行なわれ
ることにより、誤動作を発生させることになるのである
Specifically, if the switching operation is performed in the middle of processing for the l/O1 unit (15), there is a high possibility that the necessary flag setting, resetting, etc. will not be performed, and in which state the switching operation was performed. Therefore, depending on the type of the l/Ovi device (15), the new processor that has been switched will take control, causing malfunctions.

〈発明の目的〉 この発明は上記の問題点に鑑みてなされたものであり、
I/O機器の制御を行なうプロセッサの切替動作が指示
された場合における円滑な制御の移行を行なわせること
ができるデータ処理装置を提供することを目的としてい
る。
<Object of the invention> This invention was made in view of the above problems,
It is an object of the present invention to provide a data processing device that can smoothly transfer control when a switching operation of a processor that controls an I/O device is instructed.

〈問題点を解決するための手段〉 上記の目的を達成するための、この発明のデータ処理装
置は、複数のプロセッサと、I/Oバスと、切替スイッ
チと、操作スイッチと、切替器とを具備するものである
<Means for Solving the Problems> To achieve the above object, the data processing device of the present invention includes a plurality of processors, an I/O bus, a changeover switch, an operation switch, and a changeover device. It is equipped with.

そして、上記複数のプロセッサは、一連のアクセスを行
なっている間ロック信号を出力するとともに、相互間に
おいてI/O機器制御のためのデータの授受が行なわれ
るものであり、上記I/Oバスは、各プロセッサに接続
されているものであり、上記切替スイッチは、各I/O
バスに対してl/Oil器を選択的に接続するものであ
り、上記操作スイッチは、切替スイッチの状態を指定す
るものであり、上記切替器は、操作スイッチの操作状態
、およびロック信号を入力として、プロセッサによるロ
ック信号の出力が停止した時点で操作スイッチの操作状
態に対応する側に切替スイッチを切替えるとともに、各
プロセッサに対して切替信号を供給するものである。
The plurality of processors output a lock signal while performing a series of accesses, and data for controlling I/O devices is exchanged between them, and the I/O bus is , are connected to each processor, and the above changeover switch is connected to each I/O
The l/oil device is selectively connected to the bus, and the operation switch specifies the state of the changeover switch, and the changeover device inputs the operation state of the operation switch and a lock signal. When the output of the lock signal by the processor stops, the changeover switch is switched to the side corresponding to the operation state of the operation switch, and a changeover signal is supplied to each processor.

く作用〉 以上の構成のデータ処3!!!装置であれば、何れかの
プロセッサによりl/O1器の制御を行なっている間に
おいて、他のプロセッサによるI /O1器の制御を行
なうべく操作スイッチが操作された場合には、操作スイ
ッチの操作状態、および操作スイッチの操作が行なわれ
るまでI/O機器の制御を行なっていたプロセッサから
のロック信号の出力が停止したことに基いて切替器が切
替スイッチを切替え、操作スイッチの操作により指定さ
れたプロセッサに接続されたI/Oバスとl/O61器
とを接続し、上記指定されたプロセッサによるI/O1
器の制御を行なわせることができる。
Effect> Data processing with the above configuration 3! ! ! In the case of a device, if the operation switch is operated to control the I/O 1 unit by another processor while one processor is controlling the I/O 1 unit, the operation of the operation switch is The changeover device switches the changeover switch based on the state and the fact that the output of the lock signal from the processor that was controlling the I/O device until the operation switch was operated has stopped, and the switch specified by the operation of the operation switch is The I/O bus connected to the specified processor is connected to the I/O61 device, and the I/O1 by the specified processor is connected.
It is possible to control the device.

即ち、操作スイッチが操作されても、直ちにプロセッサ
とI /O41N器との接続状態を切替えるのではなく
、プロセッサによるl/OfEl器の処理が終了した時
点においてのみ上記接続状態を切替えることができるの
である。
That is, even if the operation switch is operated, the connection state between the processor and the I/O41N device is not changed immediately, but the connection state can be changed only when the processing of the I/O41N device by the processor is completed. be.

〈実施例〉 以下、実施例を示す添付図面によって詳細に説明する。<Example> Hereinafter, embodiments will be described in detail with reference to the accompanying drawings showing examples.

第1図はこの発明のデータ処理装置の一実施例を示すブ
ロック図であり、2個のプロセッサ(11[2)にそれ
ぞれI/Oバス(31[4]を接続しているとともに、
各I/Oバスに対して切替スイッチ(5)によりI/O
インターフェース(6)を選択的に接続し、I/Oイン
ターフェース(6)に対してl/On器(力を接続して
いる。そして、上記切替スイッチ(5)を駆動する切替
器(8)の入力端子間に操作スイッチ(9)を接続して
いる。また、上記切替器(8)は、各プロセッサ(11
(21に対してそれぞれ切替信号を供給しているととも
に、各プロセッサ(11+21からそれぞれロック信号
(I/O偲器f71の処理を遂行中であることを示す信
号)を受は取るようにしている。
FIG. 1 is a block diagram showing an embodiment of a data processing device of the present invention, in which two processors (11[2) are connected to an I/O bus (31[4]), and
I/O is controlled by the selector switch (5) for each I/O bus.
The interface (6) is selectively connected to the I/O interface (6) to connect the l/on device (power) to the switch (8) that drives the switch (5). An operation switch (9) is connected between the input terminals.The switch (8) is connected to each processor (11).
In addition to supplying a switching signal to each processor (21), each processor (11+21) receives a lock signal (a signal indicating that the I/O memory unit f71 is currently processing). .

上記の構成のデータ処理装置の動作を、第2図、および
第3図のフローチャートを参照しながら以下に説明する
。尚、第2図は各プロセッサにおける動作を示し、第3
図は切替器(8)における動作を示している。
The operation of the data processing apparatus having the above configuration will be described below with reference to the flowcharts of FIGS. 2 and 3. Furthermore, Fig. 2 shows the operation in each processor, and Fig. 3 shows the operation in each processor.
The figure shows the operation of the switch (8).

先ず、各プロセッサにおける動作を説明する。First, the operation of each processor will be explained.

ステップ■において、故障発生、定期点検等に対応する
処理を行なうために、切替器(8)からの切替信号状態
の入力が行なわれるまで祷った復、ステップ■において
自己に対する信号がONであるか否か、即ち、自己がI
/O機器(′71を制御することができる状態であるか
否かの判別を行なう。
In step (2), in order to perform processing corresponding to failure occurrence, periodic inspection, etc., the switch waits until the switching signal state is input from the switch (8), and then, in step (2), the signal to itself is ON. whether the self is I
/O device ('71) is determined whether it is in a state where it can be controlled.

そして、t/Oo器(刀を制御することができる状態が
選択されていると判別された場合には、ステップ■にお
いてロック信号を出力することにより、切替器(8)か
ら切替スイッチ(5)への切替信号の出力を禁止し、ス
テップ■においてI /OIl器(刀の処理を行なう。
Then, if it is determined that the state in which the t/Oo device (sword can be controlled) is selected, a lock signal is output in step The output of the switching signal to the I/OIl device (sword) is prohibited in step (3).

その後は、ステップ■においてI/Oは器(7)の処理
においてエラーが発生したか否かを判別し、エラーが発
生していると判別された場合には、ステップ■において
ロック信号の出力を停止することにより切替器(8)か
ら切替スイッチ(5)への切替信号の供給を可能にし、
ステップ■において必要なエラー処理を行なう。
Thereafter, in step ■, the I/O determines whether an error has occurred in the processing of the device (7), and if it is determined that an error has occurred, it outputs a lock signal in step ■. By stopping, it is possible to supply a switching signal from the changeover device (8) to the changeover switch (5),
Necessary error processing is performed in step (3).

また、ステップ■においてエラーが発生していないと判
別された場合には、ステップ■においてロック信号の出
力を停止することにより切替器(8)から切替スイッチ
(5)への切替信号の供給を可能にする。
Furthermore, if it is determined in step ■ that no error has occurred, the output of the lock signal is stopped in step ■, allowing the switching signal to be supplied from the changeover device (8) to the changeover switch (5). Make it.

さらに、上記ステップ■においてl/O1m器(7)を
制御することができる状態が選択されていないと判別さ
れた場合には、ステップ■においてI/OバスがI/O
インターフェース(6)と接続されていない状態の処3
!!!(例えば、I/O機器[71を制御しているプロ
セッサからのl/O1器(7)の状態を示す情報の受取
り処理等)を行なう。
Furthermore, if it is determined in the above step (■) that the state in which the l/O1m device (7) can be controlled is not selected, in the step (■) the I/O bus is
Process 3 when not connected to interface (6)
! ! ! (For example, processing for receiving information indicating the status of the I/O device (7) from the processor controlling the I/O device [71, etc.).

また、切替器(8)においては、ステップ■において切
替要求がある゛まで、即ち、操作スイッチ(9)が操作
されるまで待った後、ステップ■においてI/O機器(
刀の制御を行なっているプロセッサからのロック信号出
力が停止されるまで待つ。そして、プロセッサからのロ
ック信号出力が停止されれば、ステップ■において切替
スイッチ(5)に切替信号を供給することにより、I/
Oインターフェース(6)を他方のI/Oバスに接続し
、ステップ■において他方のプロセッサに切替信号(切
替えられた状態信号)を供給する。
In addition, the switch (8) waits until there is a switching request in step (2), that is, until the operation switch (9) is operated, and then in step (2) the I/O device (
Wait until the lock signal output from the processor controlling the sword stops. Then, when the lock signal output from the processor is stopped, a switching signal is supplied to the switching switch (5) in step (3).
The O interface (6) is connected to the other I/O bus, and a switching signal (switched state signal) is supplied to the other processor in step (3).

即ち、操作スイッチ(9)が操作された時点において、
プロセッサによりI/O□器(7)の一連の制御が行な
われている場合には、プロセッサからのロック信号によ
り切替器(8)から切替スイッチ(5)への切替信号の
供給が阻止され、上記プロセッサによるI/O機器(7
)の一連の制御を中断させることを確実に防止すること
ができる。
That is, at the time when the operation switch (9) is operated,
When a series of controls of the I/O□ device (7) is performed by the processor, a lock signal from the processor prevents the supply of the switching signal from the switching device (8) to the changeover switch (5); I/O equipment (7) using the above processor
) can be reliably prevented from interrupting the series of controls.

そして、プロセッサによるI/O!i器(刀の一連の制
御が終了すれば、ロック信号の出力が停止されるので、
切替器(8)から切替スイッチ(5)に切替信号を供給
することにより、他方のプロセッサとI/O機器(71
とを接続する状態が選択され、以後は他方のプロセッサ
によりI/O楯器(7)の制御が行なわれる。
And I/O by processor! i device (Once the series of controls for the sword is completed, the output of the lock signal will be stopped,
By supplying a switching signal from the changeover device (8) to the changeover switch (5), the other processor and the I/O device (71
A state is selected in which the two processors are connected, and from then on, the other processor controls the I/O shield (7).

したがって、切替スイッチ(5)による切替動作に伴な
うエラー発生を確実に防止して、常時I/Oぼ器(7)
を正常に制御することができる。
Therefore, it is possible to reliably prevent the occurrence of errors associated with the switching operation by the changeover switch (5), and to always use the I/O switch (7).
can be controlled normally.

尚、この発明は上記の実施例に限定されるものではなく
、例えば、第2図のフローチャートにおけるステップ■
■を省略して、ステップ■とステップ■との間にステッ
プ■■と同じ処理ステップを介挿することが可能である
他、この発明の要旨を変更しない範囲内において種々の
設計変更を施すことが可能である。
It should be noted that the present invention is not limited to the above-described embodiment, and for example, step
It is possible to omit step ■ and insert the same processing step as step ■■ between step ■ and step ■, and to make various design changes without changing the gist of the invention. is possible.

〈発明の効果〉 以上のようにこの発明は、l/O1器の制御を行なうプ
ロセッサを切替える信号が供給された場合に、既に遂行
されているl/Oi器の処理が完了するまでの間はI 
/O11器に接続されるプロセッサの切替動作を禁止し
、I/O機器の処理が途中で強制的に終了させられるこ
とを確実に防止するので、プロセッサの切替に伴なうI
/’Oil器の制御上のエラー発生を確実に防止するこ
とができる(という特有の効果を奏する。
<Effects of the Invention> As described above, according to the present invention, when a signal for switching the processor that controls the l/O1 device is supplied, the processing of the l/Oi device that has already been performed is completed. I
This function prohibits the switching operation of the processor connected to the /O11 unit, and reliably prevents the processing of the I/O device from being forcibly terminated midway through, so the I/O device that is connected to the
/'It is possible to reliably prevent the occurrence of errors in the control of the oil device.

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

第1図はこの発明のデータ処理装置の一実施例を示すブ
ロック図、 第2図はプロセッサの動作を説明するフローチャート、 第3図は切替器の動作を説明するフローチャート、 第4図は従来例を示すブロック図、 第5図はフローチャート。
FIG. 1 is a block diagram showing an embodiment of the data processing device of the present invention, FIG. 2 is a flowchart explaining the operation of the processor, FIG. 3 is a flowchart explaining the operation of the switch, and FIG. 4 is a conventional example. FIG. 5 is a flowchart.

Claims (1)

【特許請求の範囲】 1、一連のアクセスを行なっている間ロッ ク信号を出力するとともに、相互間にお いてI/O機器制御のためのデータの授 受が行なわれる複数のプロセッサと、各 プロセッサに接続されているI/Oバス と、各I/Oバスに対してI/O機器を 選択的に接続する切替スイッチと、切替 スイッチの状態を指定する操作スイッチ と、操作スイッチの操作状態、およびロ ック信号を入力として、プロセッサによ るロック信号の出力が停止した時点で操 作スイッチの操作状態に対応する側に切 替スイッチを切替えるとともに、各プロ セッサに対して切替信号を供給する切替 器とを具備することを特徴とするデータ 処理装置。[Claims] 1. Locked while performing a series of accesses. In addition to outputting a clock signal, the data transfer for controlling I/O devices. A plurality of processors on which reception is performed, each I/O bus connected to the processor and I/O devices for each I/O bus. Selective connection switch and switch Operation switch that specifies the switch state , the operation status of the operation switch, and the The processor takes the clock signal as input. The operation will start when the output of the lock signal stops. switch to the side corresponding to the operating state of the switch. At the same time as changing the switch, Switching that supplies the switching signal to the sensor Data characterized by comprising a container. Processing equipment.
JP12188886A 1986-05-27 1986-05-27 Data processor Pending JPS62278659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12188886A JPS62278659A (en) 1986-05-27 1986-05-27 Data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12188886A JPS62278659A (en) 1986-05-27 1986-05-27 Data processor

Publications (1)

Publication Number Publication Date
JPS62278659A true JPS62278659A (en) 1987-12-03

Family

ID=14822390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12188886A Pending JPS62278659A (en) 1986-05-27 1986-05-27 Data processor

Country Status (1)

Country Link
JP (1) JPS62278659A (en)

Similar Documents

Publication Publication Date Title
US5777874A (en) Programmable controller backup system
CN108983695A (en) A kind of master-slave switching method and device based on Complex Programmable Logic Devices
JPS63175913A (en) Clock supplying system
JPS62278659A (en) Data processor
JP2993337B2 (en) Double bus control method
JPS58168118A (en) Automatic power supply disconnecting and controlling system
JPH03219333A (en) Stand-by duplex system device
JPH0537421A (en) Method and device for switching transmission line
JP2706390B2 (en) Vector unit usage right switching control method using multiple scalar units
JPS61169036A (en) System supervisory device
JPH0713791A (en) Equalizing method for duplex control system
JP2557538B2 (en) Duplex system
JPH01120652A (en) Setting system for monitor time of input/output device
JPS5816497B2 (en) Data processing system with system common parts
JPH0514323A (en) Line controller
JPS61100854A (en) Signal processing circuit
JPH0830477A (en) Data value equalizing method for dual control system
JPS61224757A (en) Switching control system for communication controller
JPS62269537A (en) System switching system for packet exchange
JPH09181793A (en) Control method for duplicated devices
JPH02224545A (en) Local area network
JPH04155466A (en) Multiprocessor system
JPS61269491A (en) Setting system for electronic circuit package function
JPS60144849A (en) Communication control system
JPH0675719A (en) Interface control system