JP2538643B2 - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JP2538643B2
JP2538643B2 JP63143572A JP14357288A JP2538643B2 JP 2538643 B2 JP2538643 B2 JP 2538643B2 JP 63143572 A JP63143572 A JP 63143572A JP 14357288 A JP14357288 A JP 14357288A JP 2538643 B2 JP2538643 B2 JP 2538643B2
Authority
JP
Japan
Prior art keywords
data
bus
input
short circuit
programmable controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63143572A
Other languages
Japanese (ja)
Other versions
JPH022402A (en
Inventor
洋 菊地
進 斉藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP63143572A priority Critical patent/JP2538643B2/en
Publication of JPH022402A publication Critical patent/JPH022402A/en
Application granted granted Critical
Publication of JP2538643B2 publication Critical patent/JP2538643B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Bus Control (AREA)
  • Programmable Controllers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラマブルコントローラに関し、特に
その入出力バスチェック機構の改良を図ったものであ
る。
The present invention relates to a programmable controller, and particularly to an improvement of its input / output bus check mechanism.

〔従来の技術〕[Conventional technology]

第4図のプログラマブルコントローラの一般的構成例
を示し、プロセッサ1と入出力モジュール2とが入出力
バス3を介して接続されている。
FIG. 4 shows a general configuration example of the programmable controller in which the processor 1 and the input / output module 2 are connected via the input / output bus 3.

そして、入出力データの授受に係る入出力バス3の仕
様としては、第5図に示すような信号系が採用されてお
り、第5図各部の信号は、次表に示すような意味を持つ
ものである。
As a specification of the input / output bus 3 relating to the exchange of input / output data, a signal system as shown in FIG. 5 is adopted, and signals of respective parts in FIG. 5 have the meanings shown in the following table. It is a thing.

このような構成において、入力モジュールからの信号
の読出しおよび出力モジュールからの信号の書込みは、
それぞれ、第6図(A)および(B)に示すようなタイ
ミングにて行われる。しかして、このようなプログラマ
ブルコントローラでは、入出力の信頼性向上のため、以
下のようにデータアクセスが行われている。
In such a configuration, the reading of signals from the input module and the writing of signals from the output module are
Each is performed at the timings shown in FIGS. 6 (A) and 6 (B). In such a programmable controller, however, data access is performed as follows in order to improve the reliability of input / output.

まず、入力モジュールでは、第7図(A)に示すよう
な回路が設けられ、同図(B)に示すような手順をプロ
セッサ1が実行することにより入力データの読出しが行
われる。すなわち、外部機器からの入力データをTEND信
号によりラッチ回路2I1にラッチし(ステップS1)、RD
信号により動作する出力部2I2を付勢してデータバスか
ら入力データを読出す。この読出しを2回行い(ステッ
プS3,S5)、2回分のデータ,を照合して(ステッ
プS7)、両者が一致していれば入力データを確定し(ス
テップS9)、不一致であれば再度試みる。
First, in the input module, a circuit as shown in FIG. 7 (A) is provided, and the processor 1 executes the procedure as shown in FIG. 7 (B) to read the input data. That is, input data from an external device is latched in the latch circuit 2I1 by the TEND signal (step S1), and RD
The output unit 2I2, which is operated by a signal, is energized to read input data from the data bus. This reading is performed twice (steps S3 and S5), the data for two times are collated (step S7), the input data is confirmed if both match (step S9), and the data is tried again if they do not match. .

また、出力モジュールには、第8図(A)に示すよう
な回路が設けられ、同図(B)に示すような手順をプロ
セッサ1が実行することにより出力データの書込みが行
われる。
Further, the output module is provided with a circuit as shown in FIG. 8A, and the output data is written by the processor 1 executing the procedure as shown in FIG. 8B.

すなわち、WR信号により出力データを1段目のラッチ
201にセットする(ステップS11)。その後、RD信号によ
り出力部203を動作させて1段目のラッチデータを読出
し(ステップS13)、書込みデータと読出しデータとが
一致したことを確認し(ステップS15)、はじめてTEND
信号により1段目のラッチデータを2段目のラッチ202
に転送する。そして、これが出力データとなる。一方、
不一致であればリトライする。
That is, the output data is latched in the first stage by the WR signal.
Set to 201 (step S11). After that, the output unit 203 is operated by the RD signal to read the latch data of the first stage (step S13), and it is confirmed that the write data and the read data match (step S15).
The first stage latch data is transferred to the second stage latch 202 by the signal.
Transfer to. Then, this becomes output data. on the other hand,
If they do not match, try again.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

しかしながら、以上のようなデータアクセスによって
も、不十分な場合がある。
However, the above data access may not be sufficient.

例えば、第9図に示すように、アドレスバスとデータ
バスとが短絡していた場合を考える。図に示すように、
アドレス線A4とデータ線B0とが短絡すると、A4=“L"の
ときB0は常時“L"となり、入力モジュールにおける2度
読み照合手順を踏んでも誤ったデータを入力データとし
てしまうことになる。
For example, consider the case where the address bus and the data bus are short-circuited as shown in FIG. As shown in the figure,
When the address line A4 and the data line B0 are short-circuited, when A4 = "L", B0 is always "L", and erroneous data becomes the input data even if the double reading and collating procedure in the input module is performed.

また、第10図に示すように、データバス相互間に短絡
時を考える。図に示すように、データ線B0とB1とが短絡
した場合、それらB0とB1のいずれかが“H"でいずれかが
Lの場合、B0およびB1が共に“L"となりやはり入力モジ
ュールにおける2度読み照合手順を踏んでも誤ったデー
タを入力データとしてしまうことになる。
Further, as shown in FIG. 10, consider a short circuit between the data buses. As shown in the figure, when the data lines B0 and B1 are short-circuited, if either B0 or B1 is “H” and either is L, B0 and B1 are both “L” and also 2 in the input module. Even if you follow the read-ahead collation procedure, you will end up with incorrect data as input data.

以上のように、従来プログラマブルコントローラに
は、入出力モジュールにおける2度読み照合手順を踏ま
えても、バス短絡を検出できず誤ったデータを入出力デ
ータとしてしまうおそれがあった。
As described above, the conventional programmable controller could not detect a bus short circuit even if the double reading / verifying procedure in the input / output module is taken into consideration, and there is a risk that incorrect data may be input / output data.

そこで本発明の目的は、前述した従来の問題点を解決
し、入出力バスを構成するアドレスバスとデータバス相
互間の短絡を容易に検出することが可能なプログラマブ
ル・コントローラを提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned conventional problems and provide a programmable controller capable of easily detecting a short circuit between an address bus and a data bus forming an input / output bus. .

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

前述した目的を達成するため本発明は、プロセッサと
入出力モジュールとをバスラインを介して結合してなる
プログラマブル・コントローラにおいて、前記プロセッ
サは、アドレスバスを、いずれの入出力モジュールをア
クセスしないローの論理レベルの状態とすると共に、ハ
イの論理レベルにプルアップされたデータバスよりデー
タを読出し、当該読出したデータがハイの論理レベルに
なっているか否かを判定することにより、前記バスライ
ンを構成するアドレスバスとデータバスとの間の短絡の
有無を検出する手段を具えたことを特徴とする。
In order to achieve the above-mentioned object, the present invention provides a programmable controller in which a processor and an input / output module are coupled via a bus line, wherein the processor uses an address bus of a row which does not access any input / output module. The bus line is configured by setting the logic level, reading data from the data bus pulled up to the high logic level, and determining whether the read data is at the high logic level. And a means for detecting the presence or absence of a short circuit between the address bus and the data bus.

本発明では、入出力モジュールにデータ入出力を行わ
せない状態ではアドレスバスがLに固定され、データバ
スがHに固定されていることに着目し、前記状態でデー
タバスのデータを読出して、そのデータがHになってい
るか否かを判定することによりアドレスバスとデータバ
ス間の短絡を検出する。
In the present invention, paying attention to the fact that the address bus is fixed to L and the data bus is fixed to H when the input / output module is not inputting / outputting data. A short circuit between the address bus and the data bus is detected by determining whether the data is H or not.

〔実施例〕〔Example〕

以下、図面を参照して本発明の実施例を詳細に説明す
る。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明プログラマブルコントローラによるア
ドレスバス−データバス間短絡検出処理手順の一例を示
す。この手順は、第4図のような構成のプログラマブル
コントローラに採用することができ、プロセッサ1が通
常有するシステムプログラムに本手順を設けておくこと
ができる。
FIG. 1 shows an example of an address bus-data bus short circuit detection procedure by the programmable controller of the present invention. This procedure can be adopted in the programmable controller having the configuration shown in FIG. 4, and this procedure can be provided in the system program that the processor 1 normally has.

本手順が起動すると、まずステップS21において、ア
ドレスバス信号A0〜A4を全てLとし、ステップS23にて
いずれの入出力モジュール2もアクセスしない状態でデ
ータバスB0〜B7上のデータを読出す。そして、ステップ
S25にてデータが全てHであるかどうかのチェックをす
る。第9図に示したように、データバスは5Vにプルアッ
プされているため、何ら異常がなければ読出したデータ
は全てHになるはずであるが、もしデータバスとアドレ
スバスとのいずれかが短絡している場合には、アドレス
バスA0〜A4全てがLであることより、短絡が存在するデ
ータバスラインはLとなる。すなわち、これにより短絡
の有無を認識することができる(ステップS27,S29)。
When this procedure is activated, first, in step S21, the address bus signals A0 to A4 are all set to L, and in step S23, the data on the data buses B0 to B7 are read out without access to any of the input / output modules 2. And step
At S25, it is checked whether all the data are H. As shown in FIG. 9, the data bus is pulled up to 5V, so if there is no abnormality, all the read data should be H. However, if either the data bus or the address bus is When there is a short circuit, all the address buses A0 to A4 are at L, so the data bus line where the short circuit exists becomes at L. That is, it is possible to recognize the presence or absence of a short circuit (steps S27 and S29).

しかして、短絡が無い場合、すなわちアドレスバス,
データバスに異常が無い場合には、そのままプログラマ
ブルコントローラとしての動作を続ければよいし、短絡
が検知された場合には表示器,ブザーなど適宜の報知手
段により操作者にその旨を報知すればよい。
Then, if there is no short circuit, that is, the address bus,
If there is no abnormality in the data bus, the operation as the programmable controller may be continued as it is, and if a short circuit is detected, the operator may be notified by an appropriate notification means such as a display and a buzzer. .

なお、アドレスバス−データバス間の短絡のみなら
ず、データバスが他のLの信号ラインと短絡したような
異常も、本手順によってチェック可能である。
In addition to the short circuit between the address bus and the data bus, an abnormality such as a short circuit of the data bus with another L signal line can be checked by this procedure.

第2図はデータバス相互間の短絡検出手段の一例を示
す。本例では、プロセッサ1から最も離れた出力モジュ
ールに対し、データバスB1〜B7について順次にテストデ
ータを書込んだ後に、第8図(A)の回路に対して行っ
たのと同様の読出し照合チェックを行うものであり、こ
の時TENDをセットしないためデータは外部には出力され
ない。そして、すべてのデータバスについて異常がなけ
れば短絡無しとしてプログラマブルコントローラの動作
を続行し、いずれかでも異常があれば短絡有りとして適
宜の報知を行うようにすることができる(ステップS47,
S49)。
FIG. 2 shows an example of means for detecting a short circuit between the data buses. In this example, after the test data is sequentially written to the output modules farthest from the processor 1 on the data buses B1 to B7, the same read verification as that performed to the circuit of FIG. 8 (A) is performed. This is a check, and at this time TEND is not set, so data is not output to the outside. Then, if there is no abnormality in all the data buses, it is possible to continue the operation of the programmable controller as if there is no short circuit, and if there is an abnormality in any of the data buses, it is possible to appropriately notify that there is a short circuit (step S47,
S49).

なお、テストデータとしては、第3図に示すように、
データのいずれか1ビットがLである8種類のデータを
用意しておき、上記手順において順次に用いればよい。
このようなテストデータは、プロセッサ1のROM等に格
納しておくこともできる。そして、読出しデータにつき
第3図示のデータと照合を行えばよい。データバス間に
て短絡がある場合書込みデータと読出しデータとが不一
致になるので、異常の検出が行えることになる。
As the test data, as shown in FIG.
Eight types of data in which any one bit of the data is L may be prepared and used sequentially in the above procedure.
Such test data can also be stored in the ROM or the like of the processor 1. Then, the read data may be collated with the data shown in FIG. When there is a short circuit between the data buses, the write data and the read data do not match, so that an abnormality can be detected.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、入出力バスに
おけるアドレスバスとデータバスとの間の短絡を検出す
るために特別の回路等を必要とすることなく簡単かつ容
易にアドレスバスとデータバスとの間の短絡を検出する
ことができるので、誤入力,誤出力を防止することがで
き、プログラマブルコントローラの信頼性を向上するこ
とができる。
As described above, according to the present invention, the address bus and the data bus can be easily and easily performed without requiring a special circuit or the like for detecting a short circuit between the address bus and the data bus in the input / output bus. Since a short circuit between and can be detected, erroneous input and erroneous output can be prevented, and the reliability of the programmable controller can be improved.

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

第1図は本発明プログラマブルコントローラによるアド
レスバス−データバス間の短絡検出手順の一例を示すフ
ローチャート、 第2図は同じくデータバス間の短絡検出手順の一例を示
すフローチャート、 第3図は第2図示の手順で用いることができるテストデ
ータを示す説明図、 第4図はプログラマブルコントローラの一般的構成例を
示すブロック図、 第5図は第4図におけるプロセッサ−入出力モジュール
間で授受される信号を説明するための説明図、 第6図(A)および(B)は第5図における信号授受の
タイミングを説明するためのタイミングチャート、 第7図(A)および(B)は、それぞれ、入力データ照
合のための入力モジュール側の回路例を示すブロック図
およびプロセッサによる処理例を示すフローチャート、 第8図(A)および(B)は、それぞれ、出力データ照
合のための出力モジュール側の回路例を示すブロック図
およびプロセッサによる処理例を示すフローチャート、 第9図はアドレスバス−データバス間で生じた短絡を説
明するための説明図、 第10図はデータバス相互間で生じた短絡を説明するため
の説明図である。 1……プロセッサ、 2……入出力モジュール、 3……入出力バス、 A0〜A4……アドレスバス、 B0〜B7……データバス。
FIG. 1 is a flowchart showing an example of a procedure for detecting a short circuit between an address bus and a data bus by the programmable controller of the present invention, FIG. 2 is a flowchart showing an example of a procedure for detecting a short circuit between data buses, and FIG. FIG. 4 is an explanatory view showing test data that can be used in the procedure of FIG. 4, FIG. 4 is a block diagram showing a general configuration example of a programmable controller, and FIG. 5 shows signals exchanged between the processor and the input / output module in FIG. 6 (A) and 6 (B) are timing charts for explaining the timing of signal transmission / reception in FIG. 5, and FIGS. 7 (A) and 7 (B) are input data, respectively. FIG. 8 is a block diagram showing a circuit example on the input module side for collation and a flow chart showing a processing example by a processor. A) and (B) are a block diagram showing an example of a circuit on the output module side for collating output data and a flow chart showing an example of processing by a processor, respectively. FIG. 9 shows a short circuit between the address bus and the data bus. FIG. 10 is an explanatory diagram for explaining, and FIG. 10 is an explanatory diagram for explaining a short circuit generated between the data buses. 1 ... Processor, 2 ... I / O module, 3 ... I / O bus, A0-A4 ... Address bus, B0-B7 ... Data bus.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プロセッサと入出力モジュールとをバスラ
インを介して結合してなるプログラマブル・コントロー
ラにおいて、 前記プロセッサは、アドレスバスを、いずれの入出力モ
ジュールをアクセスしないローの論理レベルの状態とす
ると共に、ハイの論理レベルにプルアップされたデータ
バスよりデータを読出し、当該読出したデータがハイの
論理レベルになっているか否かを判定することにより、
前記バスラインを構成するアドレスバスとデータバスと
の間の短絡の有無を検出する手段を具えたことを特徴と
するプログラマブル・コントローラ。
1. A programmable controller in which a processor and an input / output module are coupled via a bus line, wherein the processor sets an address bus to a low logic level state which does not access any input / output module. At the same time, by reading the data from the data bus pulled up to the high logic level and determining whether or not the read data is at the high logic level,
A programmable controller comprising means for detecting the presence / absence of a short circuit between an address bus and a data bus constituting the bus line.
JP63143572A 1988-06-13 1988-06-13 Programmable controller Expired - Lifetime JP2538643B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63143572A JP2538643B2 (en) 1988-06-13 1988-06-13 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63143572A JP2538643B2 (en) 1988-06-13 1988-06-13 Programmable controller

Publications (2)

Publication Number Publication Date
JPH022402A JPH022402A (en) 1990-01-08
JP2538643B2 true JP2538643B2 (en) 1996-09-25

Family

ID=15341866

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63143572A Expired - Lifetime JP2538643B2 (en) 1988-06-13 1988-06-13 Programmable controller

Country Status (1)

Country Link
JP (1) JP2538643B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS52124830A (en) * 1976-04-12 1977-10-20 Mitsubishi Electric Corp Buss malfunction detection circuit
JPS6013592B2 (en) * 1977-08-29 1985-04-08 株式会社日立製作所 Sequence controller data bus failure diagnosis device
JPS5635233A (en) * 1979-08-30 1981-04-07 Toshiba Corp Fault detecting system for bus line
JPS57209517A (en) * 1981-06-19 1982-12-22 Hitachi Denshi Ltd Self-diagnosing system for bus line

Also Published As

Publication number Publication date
JPH022402A (en) 1990-01-08

Similar Documents

Publication Publication Date Title
JPH1021176A (en) Method for recognizing two-way communication its device and storage medium
JP2538643B2 (en) Programmable controller
JP2735246B2 (en) Test and set method
JPS6050792A (en) Control system of magnetic bubble memroy
JPH087442Y2 (en) Input / output device of programmable controller
JPS60502073A (en) Circuit device that combines one-chip microprocessor
JP3161532B2 (en) DMA diagnostic device
JPH05225114A (en) Io controller
JP2888654B2 (en) Data input control method
JPS5913784B2 (en) Abnormality detection method for multiprocessor systems
KR960015586B1 (en) Asserting scheme of transfer failure interrupt in a multiprocessor interrupt requester
JP2725680B2 (en) Bus error detection circuit
JPH07152497A (en) Disk control device
JP2827573B2 (en) Error detection timing control method
JPH0362133A (en) Initial diagnostic system for substrate mounting
JPH0528006A (en) Microprocessor monitoring circuit
JPH0589036A (en) Slave information processor
JPS6288047A (en) Interface controller
KR20050044197A (en) Apparatus and method for pci dma error processing
JPS6132153A (en) Memory controller
JPH01201735A (en) Microprocessor device
JPH0398140A (en) Parallel bus system
JPH04111634U (en) Duplex memory device
JPH0567029A (en) Personal computer
JPH03214227A (en) Input/output controller

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080708

Year of fee payment: 12

EXPY Cancellation because of completion of term