JPH022402A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPH022402A
JPH022402A JP63143572A JP14357288A JPH022402A JP H022402 A JPH022402 A JP H022402A JP 63143572 A JP63143572 A JP 63143572A JP 14357288 A JP14357288 A JP 14357288A JP H022402 A JPH022402 A JP H022402A
Authority
JP
Japan
Prior art keywords
data
bus
input
programmable controller
output
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
JP63143572A
Other languages
Japanese (ja)
Other versions
JP2538643B2 (en
Inventor
Hiroshi Kikuchi
洋 菊地
Susumu Saito
進 斉藤
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)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野) 本発明は、プログラマブルコントローラに関し、特にそ
の入出力パスチエツク機構の改良を図ったものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a programmable controller, and particularly aims at improving the input/output pass check mechanism thereof.

〔従来の技術〕[Conventional technology]

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

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

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

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

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

すなわち、WR傷信号より出力データを1段目のラッチ
201にセットする(ステップ5ll)。その後、RD
信号により出力部203を動作させて1段目のラッチデ
ータを読出しくステップ513)、書込みデータと読出
しデータとが一致したことを確認しくステップ515)
、はじめてTEND信号により1段目のラッチデータを
2段目のラッチ202に転送する。そして、これが出力
データとなる。一方、不一致であればリトライする。
That is, output data is set in the first stage latch 201 based on the WR flaw signal (step 5ll). After that, R.D.
The output unit 203 is operated by the signal to read out the first stage latch data (step 513), and it is confirmed that the write data and read data match (step 515).
, first stage latch data is transferred to the second stage latch 202 by the TEND signal. This becomes the output data. On the other hand, if there is a mismatch, retry is performed.

(発明が解決しようとする課題) しかしながら、以上のようなデータアクセスによっても
、不十分な場合がある。
(Problems to be Solved by the Invention) However, even the above-described data access may be insufficient.

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

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

以上のように、従来プログラマブルコントローラには、
人出カモジュールにおける2度読み照合手順を踏まえて
も、バス短絡を検出できず誤ったデータを入出力データ
としてしまうおそれがあった。
As mentioned above, conventional programmable controllers have
Even with the double-read verification procedure in the people counting module, there was a risk that bus short circuits could not be detected and incorrect data would be used as input/output data.

本発明は、入出力バスでのアドレスバスとデータバス間
の短絡あるいはデータバス相互間の短絡を検出し、誤っ
た人出力データがアクセスされるのを防止して、信頼性
の高いプログラマブルコントローラを提供することを目
的とする。
The present invention detects a short circuit between an address bus and a data bus in an input/output bus, or a short circuit between data buses, and prevents erroneous human output data from being accessed, thereby providing a highly reliable programmable controller. The purpose is to provide.

[課題を解決するための手段] そのために、本発明では、プロセッサと人出カモジュー
ルとをバスラインを介して結合してなるプログラマブル
・コントローラにおいて、プロセッサは、人出カモジュ
ールをデータ入出力に関与させない状態でバスラインに
関して所定のデータをアクセスすることにより、バスラ
インの短絡を検出する手段を具えたことを特徴とする。
[Means for Solving the Problems] To this end, in the present invention, in a programmable controller in which a processor and a human output module are coupled via a bus line, the processor connects the human output module to data input/output. The present invention is characterized in that it includes means for detecting a short circuit in the bus line by accessing predetermined data regarding the bus line in a state where the bus line is not involved.

〔作 用〕[For production]

本発明では、人出カモジュールにデータ入出力を行わせ
ない状態で、アドレスバスをLに固定しデータを読み込
むことによりアドレスバスとデータバス間の短絡を検出
したり、テストパターンを出力モジュールにセットし読
出して照合することによりデータバス相互間の短絡を検
出する。
In the present invention, a short circuit between the address bus and the data bus can be detected by fixing the address bus to L and reading data without inputting or outputting data to the output module, or transmitting a test pattern to the output module. Short circuits between data buses are detected by setting, reading, and verifying.

〔実施例〕〔Example〕

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

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

本手順が起動すると、まずステップ521において、ア
ドレスバス信号へ〇〜A4を全てLとし、ステップS2
3にていずれの人出カモジュール2もアクセスしない状
態でデータバスBO〜87上のデータを読出す。そして
、ステップS25にてデータが全てHであるかどうかの
チエツクをする。第9図に示したように、データバスは
5vにプルアップされているため、何ら異常がなければ
読出したデータは全てHになるはずであるが、もしデー
タバスとアドレスバスとのいずれかが短絡している場合
には、アドレスバスAO〜A4全てがLであることより
、短絡が存在するデータバスラインはLとなる。すなわ
ち、これにより短絡の有無を認識することができる(ス
テップS27,529)。
When this procedure starts, first in step 521, address bus signals 〇 to A4 are all set to L, and step S2
At step 3, the data on the data buses BO to 87 is read without accessing any of the outgoing modules 2. Then, in step S25, it is checked whether all the data are H. As shown in Figure 9, the data bus is pulled up to 5V, so if there is no abnormality, all read data should be H. However, if either the data bus or the address bus is If there is a short circuit, all of the address buses AO to A4 are at L, so the data bus line where the short circuit exists is at L. That is, the presence or absence of a short circuit can thereby be recognized (step S27, 529).

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

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

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

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

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明によれば、入出力バスにお
けるアドレスバスとデータバスとの間の短絡およびデー
タバス相互間の短絡を検出できるようにしたので、誤入
力、誤出力を防止することができ、プログラマブルコン
トローラの信頼性を向上することができる。
As explained above, according to the present invention, short circuits between the address bus and data bus in the input/output bus and short circuits between the data buses can be detected, so that erroneous input and output can be prevented. The reliability of the programmable controller can be improved.

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

第1図は本発明プログラマブルコントローラによるアド
レスバス−データバス間の短絡検出手順の一例を示すフ
ローチャート、 第2図は同じくデータバス間の短絡検出手順の一例を示
すフローチャート、 第3図は第2図示の手順で用い・ることができるテスト
データを示す説明図、 第4図はプログラマブルコントローラの一般的構成例を
示すブロック図、 第5図は第4図におけるプロセッサー人出カモジュール
間で授受される信号を説明するための説明図、 第6図(^)および(B)は第5図における信号授受の
タイミングを説明するためのタイミングチャート、 第7図(A)および(B)は、それぞれ、入力データ照
合のための入力モジュール側の回路例を示すブロック図
およびプロセッサによる処理例を示すフローチャート、 第8図(^)および(B)は、それぞれ、出力データ照
合のための出力モジュール側の回路例を示すブロック図
およびプロセッサによる処理例を示すフローチャート、 第9図はアドレスバス−データバス間で生じた短絡を説
明するための説明図、 第10図はデータバス相互間で生じた短絡を説明するた
めの説明図である。 1・・・プロセッサ、 2・・・入出力モジュール、 3・・・入出力バス、 ^0〜^4・・・アドレスバス、 BO〜B 7−・・データバス。 第1図 第2図 第4 図 第3 図 第5図 *C5 京RDY (A) *PWT *RDY (B) 第6図 第S図 1「 第7 図 A。 :29図
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 a data bus, and FIG. Fig. 4 is a block diagram showing a general configuration example of a programmable controller; Fig. 5 is an explanatory diagram showing test data that can be used in the procedure of Fig. 4; An explanatory diagram for explaining signals, FIGS. 6(^) and (B) are timing charts for explaining the timing of signal exchange in FIG. 5, and FIGS. 7(A) and (B) are, respectively, A block diagram showing an example of a circuit on the input module side for verifying input data and a flowchart showing an example of processing by a processor, Figures 8 (^) and (B) respectively show a circuit on the output module side for verifying output data. A block diagram showing an example and a flowchart showing an example of processing by a processor; FIG. 9 is an explanatory diagram for explaining a short circuit that occurs between an address bus and a data bus; FIG. 10 is an explanatory diagram for explaining a short circuit that occurs between data buses. FIG. 1... Processor, 2... Input/output module, 3... Input/output bus, ^0~^4... Address bus, BO~B 7-... Data bus. Figure 1 Figure 2 Figure 4 Figure 3 Figure 5 *C5 K-RDY (A) *PWT *RDY (B) Figure 6 S Figure 1 Figure 7 A.: Figure 29

Claims (1)

【特許請求の範囲】 1)プロセッサと入出力モジュールとをバスラインを介
して結合してなるプログラマブル・コントローラにおい
て、 前記プロセッサは、前記入出力モジュールをデータ入出
力に関与させない状態で前記バスラインに関して所定の
データをアクセスすることにより、前記バスラインの短
絡を検出する手段を具えたことを特徴とするプログラマ
ブル・コントローラ。 2)前記手段は、いずれの入出力モジュールをアクセス
しない状態で前記バスラインを構成するデータバスより
データを読出し、当該読出しデータが前記状態における
所定の論理レベルとなつているか否かを判定することに
より、前記バスラインを構成するアドレスバスと前記デ
ータバスとの間の短絡の有無を検出する検出手段を有す
ることを特徴とする請求項1に記載のプログラマブルコ
ントローラ。 3)少なくとも前記プロセッサより最も離れた出力モジ
ュールに2段ラッチを設け、前記手段は、前記出力モジ
ュールにテストパターンを出力し、当該出力後に第1段
のラッチからデータを読出して照合を行うことにより、
前記バスラインを構成するデータバス相互間の短絡を検
出する検出手段を有することを特徴とする請求項1に記
載のプログラマブルコントローラ。
[Scope of Claims] 1) A programmable controller in which a processor and an input/output module are coupled via a bus line, wherein the processor is configured to operate on the bus line without involving the input/output module in data input/output. A programmable controller comprising means for detecting a short circuit in the bus line by accessing predetermined data. 2) The means reads data from the data bus constituting the bus line without accessing any input/output module, and determines whether the read data is at a predetermined logic level in the state. 2. The programmable controller according to claim 1, further comprising detection means for detecting the presence or absence of a short circuit between the address bus and the data bus constituting the bus line. 3) At least a two-stage latch is provided in an output module farthest from the processor, and the means outputs a test pattern to the output module, and after the output, reads data from the first stage latch and performs verification. ,
2. The programmable controller according to claim 1, further comprising detection means for detecting a short circuit between data buses forming 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 true JPH022402A (en) 1990-01-08
JP2538643B2 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)

Citations (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
JPS5437436A (en) * 1977-08-29 1979-03-19 Hitachi Ltd Data bus fault diagnosis device for sequence controller
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

Patent Citations (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
JPS5437436A (en) * 1977-08-29 1979-03-19 Hitachi Ltd Data bus fault diagnosis device for sequence controller
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
JP2538643B2 (en) 1996-09-25

Similar Documents

Publication Publication Date Title
JPH022402A (en) Programmable controller
JP4748871B2 (en) One-chip microcontroller system
JPH087442Y2 (en) Input / output device of programmable controller
JPH02297650A (en) Receiver
JP4247157B2 (en) Process control device
JPH079636B2 (en) Bus diagnostic device
JPH02259953A (en) Command bus device
JP2583326Y2 (en) Data bus diagnostic equipment
JPH033043A (en) Semiconductor device
JPS5827221A (en) Data processing device
JPH0362133A (en) Initial diagnostic system for substrate mounting
JPH0293854A (en) Test and set system
JPH01302454A (en) Bus checking system
JPS6132153A (en) Memory controller
JPH0314152A (en) Input/output controller with data/address tracer function
JPS63245747A (en) Two-port memory abnormality detecting system
JPS6385832A (en) Parity checking system
JPH04111634U (en) Duplex memory device
JPH0535652A (en) Dma controller
JPH02238538A (en) Abnormality detecting system for multi-port memory
JPH01274260A (en) Adapter for controlling input/output
KR20050044197A (en) Apparatus and method for pci dma error processing
JPH0528006A (en) Microprocessor monitoring circuit
JPH06161794A (en) Malfunction preventing system for computer system
JPH01224852A (en) Bus fault detecting system

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