JPH02264305A - I/o device for programmable controller - Google Patents

I/o device for programmable controller

Info

Publication number
JPH02264305A
JPH02264305A JP1085592A JP8559289A JPH02264305A JP H02264305 A JPH02264305 A JP H02264305A JP 1085592 A JP1085592 A JP 1085592A JP 8559289 A JP8559289 A JP 8559289A JP H02264305 A JPH02264305 A JP H02264305A
Authority
JP
Japan
Prior art keywords
signal
input
switching
output
diagnostic
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
JP1085592A
Other languages
Japanese (ja)
Other versions
JP2760027B2 (en
Inventor
Koji Konishi
小西 浩二
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP1085592A priority Critical patent/JP2760027B2/en
Publication of JPH02264305A publication Critical patent/JPH02264305A/en
Application granted granted Critical
Publication of JP2760027B2 publication Critical patent/JP2760027B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To simplify input processing by inputting the signal for confirming that the switching operation of an input signal is finished when one of a control signal and a diagnostic signal is switched and inputted selectively. CONSTITUTION:When a sensor provided with a failure diagnosis is connected to an I/O device, a switch 11 is closed previously. Thus, when an input signal switching signal inputted through an FF 6 becomes L-level, the output of an inverter 74 becomes H-level, and the output of the multiplexer 3 is switched to diagnostic output. Simultaneously, the output of the inverter 75 becomes H-level, and a counter 78 is operated. A shift register 7 operated by a clock is connected to the counter 78, and after the lapse of prescribed time, a confirming signal is outputted through a buffer 79. This prescribed time is the time required for operation that the multiplexer 3 is operated after the input switching signal is inputted and the output is switched perfectly from the control signal to the diagnosis signal.

Description

【発明の詳細な説明】 (発明の分野) この発明は、故障診断付きセンサが接続可能なプログラ
マブル・コントローラのI10装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an I10 device of a programmable controller to which a sensor with fault diagnosis can be connected.

(発明の概要) この発明は、プログラマブルφコントローラの110装
置に故障診断付きセンサから人力された制御信号および
診断信号のいずれかを選択的に切換えて入力する際に、
入力信号の切換動作が終了したことを確認する確認用信
号を入力するようにして、切換時の入力処理を簡単で確
実にしたものである。
(Summary of the Invention) The present invention provides a method for selectively switching and inputting either a control signal or a diagnostic signal manually input from a sensor with a fault diagnosis to a 110 device of a programmable φ controller.
By inputting a confirmation signal to confirm that the input signal switching operation has been completed, input processing at the time of switching is made simple and reliable.

(従来技術とその問題点) 従来、故障診断付きセンサの接続が可能なプログラマブ
ル・コントローラのI10装置においては、CPU本体
からの切換命令により故障診断付きセンサから出力され
る制御信号と診断信号のいずれかを選択的に切換えて入
力する場合に、信号の切換に要する時間を考慮して、切
換後の信号取込タイミングを設定しなければならない。
(Prior art and its problems) Conventionally, in a programmable controller I10 device to which a sensor with fault diagnosis can be connected, either the control signal or the diagnostic signal output from the sensor with fault diagnosis is controlled by a switching command from the CPU main body. When inputting signals by selectively switching between them, the signal acquisition timing after switching must be set in consideration of the time required for signal switching.

そのためユーザプログラムにタイマを構成し、タイムア
ツプ後、入力信号を制御信号もしくは診断信号として認
識しなければならず、ユーザにとって故障診断付きセン
サ1個に対して2個のタイマ命令が必要になり、ユーザ
プログラムの構成が複雑になる欠点がある。
Therefore, it is necessary to configure a timer in the user program and recognize the input signal as a control signal or a diagnostic signal after the time has elapsed, and the user needs two timer instructions for one sensor with failure diagnosis. This has the disadvantage that the program structure becomes complicated.

(発明の目的) この発明は上記問題点を解消するためになされたもので
、その目的とするところは、接続されている故障診断付
きセンサからの入力を切換える際に、信号取込タイミン
グ設定のためのタイマ命令をユーザプログラムに用いる
必要をなくした使い勝手の良いプログラマブル・コント
ローラのI10装置を提供することにある。
(Object of the Invention) This invention was made to solve the above problems, and its purpose is to change the signal acquisition timing setting when switching the input from the connected sensor with fault diagnosis. An object of the present invention is to provide an easy-to-use programmable controller I10 device that eliminates the need to use timer instructions in a user program.

(発明の構成と効果) この発明は、上記目的を達成するために、故障診断付き
センサが出力した制御信号および診断信号をそれぞれ入
力するインターフェース回路と、このインターフェース
回路に入力された上記両信号のうち通常動作時は制御信
号を、故障診断処理時には診断信号をそれぞれ入力信号
として選択的に切換え出力する切換回路と、 この切換回路に動作を指示する切換信号が入力した後、
切換動作が終了したことをあらわす確認用信号を出力す
る確認用信号出力回路と、を備えたことを特徴とする。
(Structure and Effects of the Invention) In order to achieve the above object, the present invention includes an interface circuit into which a control signal and a diagnostic signal outputted by a sensor with failure diagnosis are respectively input, and an interface circuit which receives both the above signals input into this interface circuit. Among them, there is a switching circuit that selectively switches and outputs a control signal as an input signal during normal operation and a diagnostic signal as an input signal during trouble diagnosis processing, and after a switching signal that instructs operation is input to this switching circuit,
The present invention is characterized by comprising a confirmation signal output circuit that outputs a confirmation signal indicating that the switching operation has been completed.

このように構成したことにより、この発明のプログラマ
ブル・コントローラのI10装置は、故障診断付きセン
サから入力された制御信号および診断信号のいずれかを
選択的に切換えて入力する際に、入力信号の切換動作が
終了したことを確認する確認用信号を入力するようにし
たので、切換時の入力処理が簡単になり、ユーザプログ
ラムにタイマ命令を用いる必要がなくなり使い勝手を良
くすることができる。
With this configuration, the I10 device of the programmable controller of the present invention can switch the input signal when selectively switching and inputting either the control signal or the diagnostic signal input from the sensor with fault diagnosis. Since a confirmation signal is input to confirm that the operation has been completed, input processing at the time of switching is simplified, and there is no need to use a timer instruction in the user program, resulting in improved usability.

(実施例) 次にこの発明の実施例を図面に基づいて説明する。(Example) Next, embodiments of the present invention will be described based on the drawings.

第1図は、実施例に係るプログラマブル・コントローラ
のI10装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an I10 device of a programmable controller according to an embodiment.

このI10装置は、コネクタ1.全体の制御の中枢とな
るMPU (中央処理ユニット)5.およびMPU5に
よって制御される入力インターフェース2.マルチプレ
クサ3.出力インターフェース8.バッファ4.フリッ
プフロップ6、切換回路7.R8−485規格からなる
通信用インターフェース9.トランスコーダ10により
構成される。る 第2図は、切換回路7の構成を具体的に示した回路図で
ある。
This I10 device has connectors 1. MPU (Central Processing Unit), which is the center of overall control5. and an input interface controlled by the MPU5 2. Multiplexer 3. Output interface 8. Buffer 4. Flip-flop 6, switching circuit 7. Communication interface consisting of R8-485 standard9. It is composed of a transcoder 10. FIG. 2 is a circuit diagram specifically showing the configuration of the switching circuit 7. As shown in FIG.

図においてスイッチ11は、I10装置に故障診断付き
センサの接続の有無により切換えられるものであり、故
障診断付きセンサが接続される場合は閉じられる。
In the figure, switch 11 is switched depending on whether or not a sensor with failure diagnosis is connected to the I10 device, and is closed when the sensor with failure diagnosis is connected.

スイッチ11の閉により、バッファ72.76がON、
バッファ73.79がONとなり、フリップフロップ6
を介して入力された入力信号切換信号は、バッファ73
を通過した後、インバータ74を経てマルチプレクサ3
に入力するとともにインバータ75を経てカウンタ78
に入カスる。
By closing the switch 11, the buffers 72 and 76 are turned on,
Buffers 73 and 79 are turned on, and flip-flop 6
The input signal switching signal input via the buffer 73
After passing through the inverter 74, the multiplexer 3
is input to the counter 78 via the inverter 75.
Add to the list.

マルチプレクサ3には、入力インターフェース2を介し
て、第3図のnチャネルに示すように16ビツトからな
る入力信号が入力し、このうち1〜15ビツトまでが故
障診断付きセンサ(図示せず)からの入力が割り付けら
れ、最上位16ビツトのみが確認信号とされ、その出力
がバッファ76に接続されている。故障診断付きセンサ
からの入力としてはセンサの検出内容をあられす制御信
号およびセンサ自身が故障しているか否かをあられす診
断信号がある。
An input signal consisting of 16 bits is input to the multiplexer 3 via the input interface 2 as shown in the n channel in FIG. , and only the most significant 16 bits are used as confirmation signals, and its output is connected to the buffer 76. Inputs from the sensor with failure diagnosis include a control signal that indicates what the sensor has detected, and a diagnostic signal that indicates whether or not the sensor itself is faulty.

通常はマルチプレクサ3にインバータ74からLレベル
の信号が加えられて、入力されている信号のうち制御信
号を選択してバッファ4へ出力している。ここで入力信
号切換信号としてLレベルの信号がフリップフロップ6
に入力されると、インバータ74の出力がHレベルに反
転し、マルチプレクサ3の出力が診断信号に切換えられ
る。同時に入力信号切換信号はインバータ75で反転さ
れてHレベルとなり、カウンタ78に入力し、カウンタ
78を動作させる。カウンタ78には、クロック信号に
より動作するシフトレジスタ7が接続されており、所定
時間経過後にバッファ79を経て確認用信号が出力され
る。この所定時間とは入力信号切換信号が入力した後、
マルチプレクサ3が動作し出力が制御信号から診断信号
に完全に切換えられるに要する時間である。
Normally, an L level signal is applied to the multiplexer 3 from the inverter 74, and a control signal is selected from among the input signals and output to the buffer 4. Here, an L level signal is input to the flip-flop 6 as an input signal switching signal.
, the output of the inverter 74 is inverted to H level, and the output of the multiplexer 3 is switched to the diagnostic signal. At the same time, the input signal switching signal is inverted by the inverter 75 to become H level, and is input to the counter 78, causing the counter 78 to operate. A shift register 7 operated by a clock signal is connected to the counter 78, and a confirmation signal is outputted via a buffer 79 after a predetermined time has elapsed. This predetermined time is after the input signal switching signal is input.
This is the time required for the multiplexer 3 to operate and the output to be completely switched from the control signal to the diagnostic signal.

フリップフロップ6を介して入力される入力信号切換信
号は、ユーザプログラムに書き込まれた故障診断処理を
実行するときに発せられるものであり、入力信号切換信
号の出力後、確認用信号が入力されてからはじめて診断
信号の取り込みが行われて、故障診断付きセンサの動作
異常の判定が行われる。
The input signal switching signal input via the flip-flop 6 is issued when executing the fault diagnosis process written in the user program, and after the input signal switching signal is output, the confirmation signal is input. A diagnostic signal is captured for the first time, and a determination is made as to whether or not the sensor with failure diagnosis is operating abnormally.

またI10装置に故障診断付きセンサを接続しない場合
はスイッチ11は開かれ、バッファ72゜76がON、
バッファ73.79がOFFとなり、フリップフロップ
6を介して入力される信号は、バッファ72を通過し出
力インターフェース8に到達する。つまり、故障診断付
きセンサを接続しない場合、または接続しても故障診断
処理を行わない場合は、フリップフロップ6を介して入
力される本来入力信号切換信号であるべき信号を通常の
出力信号とすることが可能となり、同時に入力信号につ
いても16ビツト全てをセンサ等の入力として用いるこ
とが可能となり、I10装置を効率的に用いるとともに
拡張性を持たせたものである。
In addition, when the sensor with failure diagnosis is not connected to the I10 device, the switch 11 is opened and the buffers 72 and 76 are turned on.
Buffers 73 and 79 are turned off, and the signal input via flip-flop 6 passes through buffer 72 and reaches output interface 8 . In other words, when a sensor with failure diagnosis is not connected, or when a failure diagnosis process is not performed even if it is connected, the signal inputted through the flip-flop 6, which should originally be an input signal switching signal, is used as a normal output signal. At the same time, all 16 bits of the input signal can be used as input for sensors, etc., making efficient use of the I10 device and providing expandability.

第3図はこの装置のI10メモリマツプであり、入力信
号用nチャネルの最上位ビットに確認用信号が、出力信
号用(n+1)チャネルの最上位ビットに入力信号切換
信号がそれぞれ割り付けられている。これら最上位ビッ
ト部は、故障診断処理が行われない場合、上述したよう
に通常の入出力信号として用いられる。
FIG. 3 is an I10 memory map of this device, in which a confirmation signal is assigned to the most significant bit of the n channels for input signals, and an input signal switching signal is assigned to the most significant bit of the (n+1) channel for output signals. These most significant bits are used as normal input/output signals as described above when failure diagnosis processing is not performed.

以上のようにこの実施例では、接続された故障診断付き
センサからの制御信号を診断信号に切換えて入力させる
際に、切換に要する時間が経過してから確認用信号を出
力するようにしたので、診断信号内容の読取を確認用信
号の出力を確認してから行われるようにすれば、従来の
ようにユーザプログラムにタイマを多用することがなく
なり、プログラム作成が簡単になる。
As described above, in this embodiment, when switching the control signal from the connected sensor with failure diagnosis to the diagnostic signal and inputting it, the confirmation signal is output after the time required for switching has elapsed. If the content of the diagnostic signal is read after confirming the output of the confirmation signal, the user program does not require extensive use of timers, which simplifies program creation.

また故障診断付きセンサを接続しない場合はスイッチ1
1を切換えて切換信号を通常の出力信号として出力させ
られるので、使い勝手の良い効率的なI10装置を実現
することができる。
In addition, if you do not connect a sensor with failure diagnosis, switch 1.
1 and output the switching signal as a normal output signal, it is possible to realize an easy-to-use and efficient I10 device.

なお、上記の実施例では、制御信号から診断信号に切換
える場合についてのみ、確認用信号を出力する回路構成
としたが、診断信号から制御信号に復帰させる場合につ
いても確認用信号を出力するように構成することもでき
る。
In addition, in the above embodiment, the circuit configuration is such that the confirmation signal is output only when switching from a control signal to a diagnostic signal, but the confirmation signal is also output when switching from a diagnostic signal to a control signal. It can also be configured.

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

第1図はこの発明の実施例に係るI10装置の概略構成
を示すブロック図、第2図は切換回路の構成を具体的に
示した回路図、第3図はこの装置のI10メモリマツプ
である。 1・・・コネクタ 2・・・入力インターフェース 3・・・マルチプレクサ 4・・・バッファ 5・・・MPU 6・・・フリップフロップ 7・・・切換回路 8・・・出力インターフェース 9・・・通信用インターフェース 10・・・トランスコーダ 11・・・スイッチ 71・・・インバータ 72・・・バッファ 73・・・バッファ 74・・・インバータ 75・・・インバータ 76・・・バッファ 77・・・シフトレジスタ 78・・・カウンタ 79・・・バッファ
FIG. 1 is a block diagram showing a schematic configuration of an I10 device according to an embodiment of the present invention, FIG. 2 is a circuit diagram specifically showing the configuration of a switching circuit, and FIG. 3 is an I10 memory map of this device. 1... Connector 2... Input interface 3... Multiplexer 4... Buffer 5... MPU 6... Flip-flop 7... Switching circuit 8... Output interface 9... For communication Interface 10...Transcoder 11...Switch 71...Inverter 72...Buffer 73...Buffer 74...Inverter 75...Inverter 76...Buffer 77...Shift register 78... ...Counter 79...Buffer

Claims (1)

【特許請求の範囲】 1、故障診断付きセンサが出力した制御信号および診断
信号をそれぞれ入力するインターフェース回路と、 このインターフェース回路に入力された上記両信号のう
ち通常動作時は制御信号を、故障診断処理時には診断信
号をそれぞれ入力信号として選択的に切換え出力する切
換回路と、 この切換回路に動作を指示する切換信号が入力した後、
切換動作が終了したことをあらわす確認用信号を出力す
る確認用信号出力回路と、 を備えたことを特徴とするプログラマブル・コントロー
ラのI/O装置。
[Scope of Claims] 1. An interface circuit that inputs the control signal and the diagnostic signal outputted by the sensor with failure diagnosis, respectively; Of the two signals inputted to this interface circuit, during normal operation, the control signal is used for failure diagnosis. During processing, there is a switching circuit that selectively switches and outputs each diagnostic signal as an input signal, and after a switching signal that instructs the operation is input to this switching circuit,
An I/O device for a programmable controller, comprising: a confirmation signal output circuit that outputs a confirmation signal indicating that a switching operation has been completed.
JP1085592A 1989-04-04 1989-04-04 I / O device Expired - Lifetime JP2760027B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1085592A JP2760027B2 (en) 1989-04-04 1989-04-04 I / O device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1085592A JP2760027B2 (en) 1989-04-04 1989-04-04 I / O device

Publications (2)

Publication Number Publication Date
JPH02264305A true JPH02264305A (en) 1990-10-29
JP2760027B2 JP2760027B2 (en) 1998-05-28

Family

ID=13863088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1085592A Expired - Lifetime JP2760027B2 (en) 1989-04-04 1989-04-04 I / O device

Country Status (1)

Country Link
JP (1) JP2760027B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513547A (en) * 1974-06-26 1976-01-13 Nippon Denso Co INTAFUEESUKAIRO
JPS6063697A (en) * 1983-09-17 1985-04-12 株式会社東芝 Fault detection circuit
JPS62113259A (en) * 1985-11-12 1987-05-25 Nissin Electric Co Ltd Data processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS513547A (en) * 1974-06-26 1976-01-13 Nippon Denso Co INTAFUEESUKAIRO
JPS6063697A (en) * 1983-09-17 1985-04-12 株式会社東芝 Fault detection circuit
JPS62113259A (en) * 1985-11-12 1987-05-25 Nissin Electric Co Ltd Data processor

Also Published As

Publication number Publication date
JP2760027B2 (en) 1998-05-28

Similar Documents

Publication Publication Date Title
JPH0157378B2 (en)
JPH02264305A (en) I/o device for programmable controller
JPH0769399B2 (en) LSI test method
JP2754700B2 (en) I / O device
JPH01256212A (en) Two-way buffer circuit
JPS58139233A (en) Input-output device of programmable controller
JPS5919373B2 (en) Clock switching method
JPS59149509A (en) Programmable controller
JP2000010954A (en) Digital signal processor
CN116232882A (en) Control device and method based on OneWire communication protocol chip
JPS58140841A (en) Input/output device for programmable controller
JPS60252908A (en) Program controller
KR0136437B1 (en) Pager
JPH1194913A (en) Flip-flop circuit for scan path and scan-path test system
JPS62271036A (en) Interface controller
JPH02272667A (en) Input/output signal processing system
JPH01280852A (en) General-purpose interface controller
JPH04315230A (en) One-chip microcomputer
JPH05136767A (en) Redundancy processing controller
JPH0541722A (en) Programmable controller
JPH01111364A (en) Signal changeover circuit of semiconductor integrated circuit device
JPH03224077A (en) Peculiar information input system
JPH088891A (en) Changeover controller
JPS6356739A (en) History memory control system
JPS5887612A (en) Controlling and diagnosing device for input and output