JP2009033388A - Proximity sensor with output transistor fault diagnosing function - Google Patents

Proximity sensor with output transistor fault diagnosing function Download PDF

Info

Publication number
JP2009033388A
JP2009033388A JP2007194331A JP2007194331A JP2009033388A JP 2009033388 A JP2009033388 A JP 2009033388A JP 2007194331 A JP2007194331 A JP 2007194331A JP 2007194331 A JP2007194331 A JP 2007194331A JP 2009033388 A JP2009033388 A JP 2009033388A
Authority
JP
Japan
Prior art keywords
output
transistor
detection
circuit
combination
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
JP2007194331A
Other languages
Japanese (ja)
Inventor
Masaki Kasai
正貴 河西
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.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries 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 Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP2007194331A priority Critical patent/JP2009033388A/en
Publication of JP2009033388A publication Critical patent/JP2009033388A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To diagnose that an output transistor gets out of order and to accurately report that to a load side. <P>SOLUTION: There is provided a proximity sensor which includes a detecting circuit 14 varying in output level between high and low states in response to detection of an approach state of a detection body, the detecting circuit 14 generating its detection output in the form of a transistor output. The proximity sensor includes a fault diagnostic circuit 20 which diagnoses a fault state of the output transistor 16a and a fault diagnostic result output transistor 22a having open collector constitution, wherein the fault diagnostic circuit 20 diagnoses normality when a combination of high/low variations in output level of the output transistor 16a correspond to a combination of high/low variations in output level of the detecting circuit 14 and a fault when not, and outputs a fault diagnostic signal of the output transistor 16a from the fault diagnostic result output transistor 22a. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、出力トランジスタの故障を診断することができる機能を備えた出力トランジスタ故障診断機能付き近接センサに関するものである。   The present invention relates to a proximity sensor with a function for diagnosing an output transistor having a function capable of diagnosing a failure of an output transistor.

近接センサは、検出物体に非接触の状態で当該検出物体の存在や移動等を電気信号に置き換えて検出することができるものであり、種類も多く、またその用途も多岐にわたっている。例えば、検出物体が金属である高周波発振型や、検出物体が金属で無くても検出することができる静電容量方式等がある。こうした近接センサの信号出力形態にはアナログ出力、オンオフ出力等がある。そして近接センサは、例えばプログラマブルロジックコントローラ(PLC)に制御機器の状態を検知入力する入力機器の1つとして用いられる(特許文献1参照)。   Proximity sensors can detect the presence or movement of a detection object by replacing it with an electrical signal in a non-contact state with the detection object, and there are many types and various uses. For example, there are a high-frequency oscillation type in which the detection object is a metal, and a capacitance method that can detect even if the detection object is not a metal. Such proximity sensor signal output forms include analog output and on / off output. And a proximity sensor is used as one of the input devices which detect and input the state of a control device to a programmable logic controller (PLC), for example (refer patent document 1).

以上の近接センサでは検出物体の検出に応じて出力部から出力電流が流れるようになっている。この出力トランジスタの最大定格値を超えた使用をした場合にトランジスタが損傷したり、近接センサが検出を行う上で異常をきたしたり、極端には破損することがある。また、負荷側にもこの過大な出力電流が供給される場合があって不具合である。このように異常をきたしているのに、その近接センサからあたかも正常なごとく信号の入力がPLC等のコントローラに対して継続されたのではコントローラを用いた制御システムにはきわめて不具合である。特に、工程を無人自動化するファクトリーオートメーション(FA)の分野でPLCを用いる場合では、極力回避し、近接センサが正常に作動中にそうした過大な出力電流による不具合が事前に対処できることが要請されている。
特開2002−076871
In the proximity sensor described above, an output current flows from the output unit in accordance with detection of a detection object. When the output transistor is used beyond the maximum rated value, the transistor may be damaged, an abnormality may be caused when the proximity sensor performs detection, or it may be extremely damaged. Also, this excessive output current may be supplied to the load side, which is a problem. In spite of such an abnormality, if the signal input from the proximity sensor is continued as normal to a controller such as a PLC, the control system using the controller is extremely defective. In particular, in the case of using PLC in the field of factory automation (FA) that unattended automation of the process, it is required to avoid as much as possible and to deal with such an excessive output current in advance while the proximity sensor is operating normally. .
JP2002-076871

本発明は、出力トランジスタが故障した場合に、その故障を診断して負荷側に適確に知らせることができるようにした出力トランジスタ故障診断機能付き近接センサを提供するものである。   The present invention provides a proximity sensor with an output transistor failure diagnosis function that can diagnose a failure when the output transistor has failed and can accurately notify the load side.

本発明による近接センサは、検出物体の近接状態の検出に応じて出力レベルが高低に変化する検波回路を備え、この検波回路の出力端子からの検出出力の出力形態がトランジスタ出力であると共に、上記検波回路の出力レベルの変化に対応して上記トランジスタ出力の出力レベルが変化する直流2線式または直流3線式の近接センサであって、上記検出出力を出力する出力トランジスタの故障状態を診断する故障診断回路と、オープンコレクタ構成のトランジスタを含む故障診断結果出力回路と、を設け、上記故障診断回路は、上記検波回路の出力レベルの高低変化の組み合わせに対して上記出力トランジスタの出力レベルの高低変化の組み合わせが、対応する組み合わせのときは正常、対応しない組み合わせのときは故障であると診断すると共に、出力トランジスタの故障診断信号を故障診断結果出力回路内のトランジスタのオープンコレクタから出力するようになっていることを特徴とするものである。   A proximity sensor according to the present invention includes a detection circuit whose output level changes to high and low according to the detection of the proximity state of a detection object. The output form of the detection output from the output terminal of the detection circuit is a transistor output, and A DC 2-wire or DC 3-wire proximity sensor that changes the output level of the transistor output in response to a change in the output level of the detection circuit, and diagnoses a failure state of the output transistor that outputs the detection output A fault diagnosis circuit and a fault diagnosis result output circuit including a transistor having an open collector configuration, wherein the fault diagnosis circuit has a high or low output level of the output transistor with respect to a combination of high and low changes in the output level of the detection circuit. If the combination of changes is a corresponding combination, it is diagnosed as normal. Both are characterized in that which is so outputs a failure diagnosis signal of the output transistor from the open collector of the transistor of the failure diagnosis result outputted in the circuit.

ここで出力トランジスタの出力レベルには検波回路の出力レベルと同相に変化するレベルと、反転して変化するレベルとがあり、いずれの場合も含む。例えば、出力トランジスタのエミッタ出力を出力トランジスタの出力レベルとする場合では検波回路の出力レベルと同相に変化し、出力トランジスタのコレクタ出力を出力トランジスタの出力レベルとする場合では反転して変化するレベルである。そして、出力トランジスタの出力レベルの高低変化の組み合わせが、対応する組み合わせや対応しない組み合わせは、上記同相、反転する相関係を含む。   Here, the output level of the output transistor includes a level that changes in phase with the output level of the detection circuit, and a level that changes in an inverted manner, and includes both cases. For example, when the emitter output of the output transistor is set to the output level of the output transistor, it changes in phase with the output level of the detection circuit, and when the collector output of the output transistor is set to the output level of the output transistor, it is inverted and changed. is there. A combination in which the level of the output level of the output transistor changes is a corresponding combination or a combination that does not correspond includes the in-phase and inversion phase relationships.

本発明では、検波回路の出力レベルの変化に対応してトランジスタ出力の出力レベルが変化する直流2線式または直流3線式の近接センサに着目して、故障診断回路においては、検波回路の出力レベルの高低変化の組み合わせに対して出力トランジスタの出力レベルの高低変化の組み合わせが、対応する組み合わせのときは正常、対応しない組み合わせのときは故障であると診断するものであるから、出力トランジスタの故障状態のみを正確かつ適確に診断することができると共に、故障診断回路は、出力トランジスタが故障であると診断したときは、当該故障に対応した故障診断信号を故障診断結果出力トランジスタのオープンコレクタから出力するようになっているので、PLC等のコントローラやリレー等の負荷側では、簡単に出力トランジスタの故障状態を監視することができるために、負荷側に出力トランジスタのコレクタ・ベース短絡、コレクタ・エミッタ短絡等により過大な出力電流が供給されるような不具合を回避することができるようになる。そのため、出力トランジスタが故障しているのに、近接センサからあたかも正常なごとく信号の入力がPLC等のコントローラに対して継続されずに済み、コントローラを用いた制御システムや、特に、工程を無人自動化するファクトリーオートメーション(FA)の分野でPLCを用いる場合、近接センサが正常に作動中に出力トランジスタの故障により例えば過大な出力電流による不具合に適確に対処することができるようになる。   In the present invention, focusing on a DC 2-wire or DC 3-wire proximity sensor in which the output level of the transistor output changes in response to a change in the output level of the detection circuit, the fault diagnosis circuit outputs the output of the detection circuit. The combination of the level change of the output transistor with respect to the combination of the level change of the output transistor diagnoses that the combination of the output level is normal when the corresponding combination is a failure, and the failure when the combination does not correspond. It is possible to accurately and accurately diagnose only the state, and when the fault diagnosis circuit diagnoses that the output transistor is faulty, the fault diagnosis signal corresponding to the fault is sent from the open collector of the fault diagnosis result output transistor. Since it is designed to output, it can be easily output on the load side such as a controller such as a PLC or a relay. The failure state of the transistor can be monitored, so that it is possible to avoid a problem that an excessive output current is supplied to the load side due to the collector-base short of the output transistor, the collector-emitter short-circuit, etc. . Therefore, even though the output transistor is faulty, the signal input from the proximity sensor does not have to be continued to the controller such as the PLC as normal, and the control system using the controller, and in particular, unattended automation of the process When a PLC is used in the field of factory automation (FA), a malfunction due to an excessive output current can be appropriately dealt with due to a failure of an output transistor while the proximity sensor is operating normally.

本発明において、好ましい態様の1つは、上記故障診断回路は、マイクロコンピュータで構成されており、上記センサ信号トランジスタ出力を取り込む第1AD変換ポートと、上記検波回路から当該検波回路の出力を取り込む第2AD変換ポートと、上記故障診断結果出力トランジスタのベースに入力する故障診断信号を出力する出力ポートと、を有すると共に、上記検波回路の出力レベルの高低変化の組み合わせに対し上記トランジスタ出力レベルが対応する高低変化の第1組み合わせと、対応しない高低変化の第2組み合わせと、をテーブルにして記憶するメモリと、上記両AD変換ポートから取り込んだ検波回路の出力レベルの変化の組み合わせに対して上記メモリに記憶するテーブルを参照して出力トランジスタの出力レベルの高低変化の組み合わせが、上記対応する組み合わせのときは正常、上記対応しない組み合わせのときは故障であると診断するCPUと、を備え、上記CPUは、出力トランジスタの故障診断信号を故障診断結果出力トランジスタのオープンコレクタから出力するようになっている、ことである。   In the present invention, one of preferable aspects is that the failure diagnosis circuit is constituted by a microcomputer, and includes a first AD conversion port for capturing the sensor signal transistor output, and a first output for detecting the detection circuit from the detection circuit. 2 AD conversion port and an output port for outputting a fault diagnosis signal input to the base of the fault diagnosis result output transistor, and the transistor output level corresponds to a combination of high and low changes in the output level of the detection circuit A memory for storing a first combination of height changes and a second combination of height changes not corresponding to each other in a table, and a combination of changes in the output level of the detection circuit fetched from both AD conversion ports in the memory. Referring to the table to be stored, the output level of the output transistor is high or low And a CPU for diagnosing that the combination is normal when the combination is the above and failure when the combination is not, and the CPU outputs a failure diagnosis signal of the output transistor to the failure diagnosis result of the output transistor. The output comes from an open collector.

この態様では、故障診断回路を上記構成からなるマイクロコンピュータで構成するので、より高速に出力トランジスタの故障による不具合に適確に対処することができるようになる。   In this aspect, since the failure diagnosis circuit is configured by the microcomputer having the above-described configuration, it is possible to appropriately deal with a malfunction due to a failure of the output transistor at a higher speed.

本発明において、好ましい態様の1つは、上記検波回路には上記出力トランジスタのベースに接続する出力端子とは別に検出出力確認端子を設けると共に、この検出出力確認端子を上記故障診断回路の第2AD変換ポートに接続することにより、上記検波回路の検出出力を該第2AD変換ポートに取り込むようになっている、ことである。   In the present invention, one of preferred embodiments is that the detection circuit is provided with a detection output confirmation terminal separately from the output terminal connected to the base of the output transistor, and the detection output confirmation terminal is connected to the second AD of the fault diagnosis circuit. By connecting to the conversion port, the detection output of the detection circuit is taken into the second AD conversion port.

この態様では、検波回路から出力トランジスタのベースへの検出出力の入力に影響を及ぼさずに済むと共に、マイクロコンピュータの第2AD変換ポートに入力する検出出力をマイクロコンピュータで処理するのに適した出力とすることができ、より適確かつ高速に出力トランジスタの故障による不具合に適確に対処することができるようになる。   In this aspect, the detection output from the detection circuit to the base of the output transistor is not affected, and the detection output input to the second AD conversion port of the microcomputer is suitable for processing by the microcomputer. Therefore, it is possible to appropriately deal with a malfunction due to a failure of the output transistor more accurately and at high speed.

本発明の近接センサによれば、出力トランジスタが故障した場合に、その故障を診断して負荷側に適確に知らせることができるので、出力トランジスタが故障したために、負荷への出力電流が過大で正常な動作に異常を来たすおそれがあるにもかかわらず、近接センサからあたかも正常なごとく検出信号がPLC等のコントローラに対して継続して入力されずに済むようになる結果、そうしたコントローラを用いた制御システムをより適確安全に運営することができるようになる。   According to the proximity sensor of the present invention, when the output transistor fails, the failure can be diagnosed and notified to the load side accurately, so that the output current to the load is excessive because the output transistor has failed. In spite of the possibility of causing abnormalities in normal operation, the detection signal from the proximity sensor does not have to be continuously input to the controller such as the PLC as it is normal. As a result, such a controller is used. The control system can be operated more accurately and safely.

以下、添付した図面を参照して、本発明の実施の形態に係る近接センサを説明する。図1に同近接センサ全体のブロック構成を示す。   Hereinafter, a proximity sensor according to an embodiment of the present invention will be described with reference to the accompanying drawings. FIG. 1 shows a block configuration of the entire proximity sensor.

図1を参照して、10は実施の形態の直流2線式の近接センサ全体を示す。   Referring to FIG. 1, reference numeral 10 denotes an entire DC 2-wire proximity sensor according to the embodiment.

近接センサ10内部の構成を説明する。   The configuration inside the proximity sensor 10 will be described.

12は検出物体を検出する検出回路である。この検出回路12は、誘導型、静電容量型、磁気型を問わない。   A detection circuit 12 detects a detection object. The detection circuit 12 may be an induction type, a capacitance type, or a magnetic type.

14は、検出回路12の検出信号から検出物体の検出処理をする検波回路である。検波回路14は、検出回路12の出力に応じて出力レベルが高低に変化する検波信号を出力する。検波回路14は、表示回路18の表示制御出力用の出力端子14a、出力トランジスタ16aのベースへの検出出力用の出力端子14b、および検出出力確認用の出力端子14cを備える。   Reference numeral 14 denotes a detection circuit that performs detection processing of the detected object from the detection signal of the detection circuit 12. The detection circuit 14 outputs a detection signal whose output level changes between high and low according to the output of the detection circuit 12. The detection circuit 14 includes an output terminal 14a for display control output of the display circuit 18, an output terminal 14b for detection output to the base of the output transistor 16a, and an output terminal 14c for detection output confirmation.

16は、検波回路14の出力端子14bにベースが接続されて当該近接センサ10の出力形態をトランジスタ出力とする上記出力トランジスタ16aと、この出力トランジスタ16aのエミッタに接続されたエミッタ抵抗16bとを含む出力回路であり、この出力トランジスタ16aのコレクタ出力(トランジスタ出力)は、検波回路14の出力端子14bからの出力レベルの高低変化に対応して高低に反転変化するようになっている。出力トランジスタ16aのエミッタ出力は検波回路14の出力端子14bからの出力レベルの高低変化に対応して変化する。   16 includes the output transistor 16a having a base connected to the output terminal 14b of the detection circuit 14 and having the output form of the proximity sensor 10 as a transistor output, and an emitter resistor 16b connected to the emitter of the output transistor 16a. This is an output circuit, and the collector output (transistor output) of the output transistor 16a is inverted and changed in response to a change in the output level from the output terminal 14b of the detection circuit 14. The emitter output of the output transistor 16a changes in response to a change in output level from the output terminal 14b of the detection circuit 14.

18は検波回路14の出力を表示する表示回路である。この表示回路18は例えば発光ダイオードで構成され、検波回路14の出力端子14aから出力される表示制御出力の高低レベル変化に応じて発光または発光停止することにより動作表示することができるようになっている。   A display circuit 18 displays the output of the detection circuit 14. The display circuit 18 is composed of, for example, a light emitting diode, and can display an operation by emitting light or stopping light emission according to a change in level of a display control output output from the output terminal 14a of the detection circuit 14. Yes.

20は、実施の形態が特徴とするもので出力トランジスタ16aの故障を診断する故障診断回路、22は故障診断回路20からの故障診断信号を出力する故障診断出力回路であり、この故障診断出力回路22はオープンコレクタ構成の故障診断結果出力トランジスタ22aと、そのトランジスタ22aのベース・エミッタ間に接続された抵抗22bとを含む。これら故障診断回路20と故障診断出力回路22の構成および動作はのちほど詳細に説明する。   Reference numeral 20 denotes a failure diagnosis circuit which is characterized by the embodiment and diagnoses a failure of the output transistor 16a, and 22 is a failure diagnosis output circuit which outputs a failure diagnosis signal from the failure diagnosis circuit 20, and this failure diagnosis output circuit 22 includes a failure diagnosis result output transistor 22a having an open collector configuration and a resistor 22b connected between the base and emitter of the transistor 22a. The configurations and operations of the failure diagnosis circuit 20 and the failure diagnosis output circuit 22 will be described in detail later.

24は電源用ICで構成され近接センサ10内の各部12,14,20に電源を供給する電源回路であり、近接センサ10の検出信号出力端子26に接続された負荷28を介して供給される電源+Vから近接センサ内各部への電源を生成供給するようになっている。30は故障診断結果出力トランジスタ22aのコレクタに接続されて故障診断結果信号を出力する出力端子である。この出力端子30には故障診断出力用負荷32が接続され、この故障診断出力用負荷32を介して故障診断結果出力トランジスタ22aのコレクタに電源+Vが供給されるようになっている。31は近接センサ10の接地端子である。   Reference numeral 24 denotes a power supply circuit that is configured by a power supply IC and supplies power to the respective units 12, 14, and 20 in the proximity sensor 10, and is supplied via a load 28 connected to the detection signal output terminal 26 of the proximity sensor 10. Power is generated and supplied from the power source + V to each part in the proximity sensor. An output terminal 30 is connected to the collector of the failure diagnosis result output transistor 22a and outputs a failure diagnosis result signal. A failure diagnosis output load 32 is connected to the output terminal 30, and the power supply + V is supplied to the collector of the failure diagnosis result output transistor 22 a via the failure diagnosis output load 32. Reference numeral 31 denotes a ground terminal of the proximity sensor 10.

以上の構成を備えた近接センサ10において、故障診断回路20の構成を、図2を参照して説明する。故障診断回路20はマイクロコンピュータにより構成されており、出力トランジスタ16aのエミッタに接続されて出力トランジスタ16aのエミッタ出力を取り込む第1AD変換ポートIN1と、検波回路14の出力端子14cに接続されて該検波回路14の出力を取り込む第2AD変換ポートIN2と、故障診断結果出力トランジスタ22aのベースに接続されて故障診断信号をそのベースに出力する出力ポートOUTと、を有する。なお、故障診断回路20を組み込みマイコンとして機能不足する場合ではAD変換、DA変換機能は外付けしてもよい。この場合、上記ポートはAD変換、DA変換機能を設けなくてもよい。   In the proximity sensor 10 having the above configuration, the configuration of the failure diagnosis circuit 20 will be described with reference to FIG. The failure diagnosis circuit 20 is configured by a microcomputer, and is connected to the emitter of the output transistor 16a to take in the emitter output of the output transistor 16a, and to the output terminal 14c of the detection circuit 14 to detect the detection. The second AD conversion port IN2 that takes in the output of the circuit 14 and the output port OUT that is connected to the base of the failure diagnosis result output transistor 22a and outputs a failure diagnosis signal to the base. If the failure diagnosis circuit 20 has insufficient functions as an embedded microcomputer, the AD conversion and DA conversion functions may be externally attached. In this case, the port need not be provided with AD conversion and DA conversion functions.

故障診断回路20は、メモリ20a、CPU20b、を備える。メモリ20aは、CPU20bの以下で説明する故障診断の実行プログラムや、故障診断判定のためのプログラム等が格納されるプログラムメモリや、CPU20bの作業エリアを提供するメモリや、以下で説明するテーブルを記憶するメモリ、等で構成される。   The failure diagnosis circuit 20 includes a memory 20a and a CPU 20b. The memory 20a stores a failure diagnosis execution program described below for the CPU 20b, a program memory for storing a failure diagnosis determination program, a memory for providing a work area for the CPU 20b, and a table described below. Memory.

メモリ20aは、検波回路14の出力レベルの高低変化の組み合わせに対し上記トランジスタ16aのエミッタ出力レベルが対応する高低変化の第1組み合わせと、対応しない高低変化の第2組み合わせとを図3に示すテーブルにして記憶する。このテーブルは、故障診断回路20のAD変換ポートIN2から取り込んだ検波回路14の出力レベルの高低変化の組み合わせをH(高レベル),L(低レベル)とし、出力トランジスタ16aのエミッタ出力をその出力レベルとして当該出力レベルの高低変化の組み合わせをH(高レベル),L(低レベル)としている。そして、出力トランジスタ16aが故障していない場合、正常として、検波回路14の出力レベルの高低変化の組み合わせH,Lと対応して、出力トランジスタ16aのエミッタ出力レベルはH,Lとなる。また、出力トランジスタ16aのコレクタ・ベースが短絡して故障している場合は、出力トランジスタ16aのエミッタ出力レベルはH,Hとなり、出力トランジスタ16aのコレクタ・エミッタが短絡して故障している場合は、出力トランジスタ16aのエミッタ出力レベルはH,Hとなり、出力トランジスタ16aのコレクタ・エミッタが断線して故障している場合は、出力トランジスタ16aのエミッタ出力レベルはL,Lとなる。   The memory 20a is a table shown in FIG. 3 showing the first combination of high and low changes in which the emitter output level of the transistor 16a corresponds to the combination of high and low changes in the output level of the detection circuit 14, and the second combination of high and low changes that do not correspond. And remember. In this table, the combination of changes in the output level of the detection circuit 14 fetched from the AD conversion port IN2 of the failure diagnosis circuit 20 is H (high level) and L (low level), and the emitter output of the output transistor 16a is output. As the level, the combination of the high and low changes of the output level is H (high level) and L (low level). If the output transistor 16a is not faulty, the emitter output level of the output transistor 16a becomes H, L corresponding to the combination H, L of the level change of the output level of the detection circuit 14 as normal. When the collector and base of the output transistor 16a are short-circuited and failed, the emitter output level of the output transistor 16a becomes H and H. When the collector and emitter of the output transistor 16a are short-circuited and failed, The emitter output level of the output transistor 16a is H, H. When the collector / emitter of the output transistor 16a is broken and malfunctions, the emitter output level of the output transistor 16a is L, L.

CPU20bは、メモリ20aに記憶されている上記テーブルを参照して、検波回路14の出力レベルの高低変化の組み合わせH,Lと対応して、出力トランジスタ16aのエミッタ出力レベルの高低変化の組み合わせがH,Lの組み合わせのときは正常、それ以外の組み合わせのときは故障であると診断する。CPU20bは、出力トランジスタ16aが故障であると診断したときは、出力ポートOUTを介して、当該故障に対応した故障診断信号を故障診断結果出力トランジスタ22aを介して出力端子30から負荷32に出力するようになっている。なお、故障診断回路20は、CPU20bの動作制御用プログラムを格納するメモリやその他を含むが、図示を略している。   The CPU 20b refers to the above table stored in the memory 20a and corresponds to the combinations H and L of the output level change of the output level of the detection circuit 14, and the combination of the level change of the emitter output level of the output transistor 16a is H. , L is diagnosed as normal, and other combinations are diagnosed as failure. When the CPU 20b diagnoses that the output transistor 16a is faulty, it outputs a fault diagnostic signal corresponding to the fault from the output terminal 30 to the load 32 via the fault diagnosis result output transistor 22a via the output port OUT. It is like that. The failure diagnosis circuit 20 includes a memory for storing an operation control program for the CPU 20b and others, but is not shown.

なお、上記実施の形態では直流2線式の近接センサであったが、図4で示すような直流3線式にも同様に適用することができる。図4において、図1と対応する部分には同一の符号を付している。この直流3線式の近接センサにおける故障診断回路20は上記直流2線式と同様であるのでその説明は略する。   In the above-described embodiment, the proximity sensor is a direct current 2-wire type, but can be similarly applied to a direct current 3-wire type as shown in FIG. 4, parts corresponding to those in FIG. 1 are denoted by the same reference numerals. The fault diagnosis circuit 20 in the DC 3-wire proximity sensor is the same as that of the DC 2-wire system, and the description thereof is omitted.

なお、上記実施の形態では出力トランジスタ16aがnpnタイプであったが、pnpタイプにも同様に適用することができる。   In the above embodiment, the output transistor 16a is an npn type. However, the output transistor 16a can be similarly applied to a pnp type.

なお、上記実施の形態では故障診断回路20には出力トランジスタ16aのエミッタ出力を入力したが、出力トランジスタ16aのコレクタ出力を入力する場合も含むものである。   In the above embodiment, the failure diagnosis circuit 20 receives the emitter output of the output transistor 16a, but includes the case where the collector output of the output transistor 16a is input.

図1は本発明の実施の形態に係る直流2線式の近接センサのブロック図である。FIG. 1 is a block diagram of a direct current 2-wire proximity sensor according to an embodiment of the present invention. 図2は図1の故障診断回路の内部ブロック図である。FIG. 2 is an internal block diagram of the failure diagnosis circuit of FIG. 図3は故障診断回路のメモリに記憶されているテーブルを示す図である。FIG. 3 is a diagram showing a table stored in the memory of the failure diagnosis circuit. 図4は本発明の他の実施の形態に係る直流3線式の近接センサのブロック図である。FIG. 4 is a block diagram of a DC 3-wire proximity sensor according to another embodiment of the present invention.

符号の説明Explanation of symbols

10 近接センサ
12 検出回路
14 検波回路
16 出力回路
20 故障診断回路
22 故障診断出力回路
DESCRIPTION OF SYMBOLS 10 Proximity sensor 12 Detection circuit 14 Detection circuit 16 Output circuit 20 Fault diagnosis circuit 22 Fault diagnosis output circuit

Claims (3)

検出物体の近接状態の検出に応じて出力レベルが高低に変化する検波回路を備え、この検波回路の出力端子からの検出出力の出力形態がトランジスタ出力であると共に、上記検波回路の出力レベルの変化に対応して上記トランジスタ出力の出力レベルが変化する直流2線式または直流3線式の近接センサであって、
上記検出出力を出力する出力トランジスタの故障状態を診断する故障診断回路と、オープンコレクタ構成のトランジスタを含む故障診断結果出力回路と、
を設け、
上記故障診断回路は、上記検波回路の出力レベルの高低変化の組み合わせに対して上記出力トランジスタの出力レベルの高低変化の組み合わせが、対応する組み合わせのときは正常、対応しない組み合わせのときは故障であると診断すると共に、出力トランジスタの故障診断信号を上記故障診断結果出力回路内のトランジスタのオープンコレクタから出力するようになっている、ことを特徴とする出力トランジスタ故障診断機能付き近接センサ。
It has a detection circuit whose output level changes depending on the detection of the proximity state of the detection object, the output form of the detection output from the output terminal of this detection circuit is a transistor output, and the change in the output level of the detection circuit A DC 2-wire type or DC 3-wire type proximity sensor in which the output level of the transistor output changes corresponding to
A failure diagnosis circuit for diagnosing a failure state of the output transistor that outputs the detection output; a failure diagnosis result output circuit including a transistor having an open collector configuration;
Provided,
The failure diagnosis circuit is normal when the combination of the output level of the output transistor and the combination of the change of the output level of the output transistor corresponding to the combination of the change of the output level of the detection circuit is normal, and it is a failure when the combination is not compatible. A proximity sensor with an output transistor fault diagnosis function, wherein a fault diagnosis signal for an output transistor is output from an open collector of a transistor in the fault diagnosis result output circuit.
上記故障診断回路は、マイクロコンピュータで構成されており、
上記センサ信号トランジスタ出力を取り込む第1AD変換ポートと、
上記検波回路から当該検波回路の出力を取り込む第2AD変換ポートと、
上記故障診断結果出力トランジスタのベースに入力する故障診断信号を出力する出力ポートと、
を有すると共に、
上記検波回路の出力レベルの高低変化の組み合わせに対し上記トランジスタ出力レベルが対応する高低変化の第1組み合わせと、対応しない高低変化の第2組み合わせと、をテーブルにして記憶するメモリと、
上記両AD変換ポートから取り込んだ検波回路の出力レベルの変化の組み合わせに対して上記メモリに記憶するテーブルを参照して出力トランジスタの出力レベルの高低変化の組み合わせが、上記対応する組み合わせのときは正常、上記対応しない組み合わせのときは故障であると診断するCPUと、
を備え、
上記CPUは、出力トランジスタの故障診断信号を故障診断結果出力トランジスタのオープンコレクタから出力するようになっている、ことを特徴とする請求項1に記載の出力トランジスタ故障診断機能付き近接センサ。
The failure diagnosis circuit is composed of a microcomputer,
A first AD conversion port for capturing the sensor signal transistor output;
A second AD conversion port for capturing the output of the detection circuit from the detection circuit;
An output port for outputting a fault diagnosis signal to be input to the base of the fault diagnosis result output transistor;
And having
A memory for storing, in a table, a first combination of high and low changes corresponding to the transistor output level with respect to a combination of high and low changes in output level of the detection circuit, and a second combination of high and low changes that do not correspond;
When the combination of the change in the output level of the detection circuit fetched from both the AD conversion ports is referred to the table stored in the memory and the combination of the change in the output level of the output transistor is the above combination, it is normal. A CPU that diagnoses a failure when the combination does not correspond to the above;
With
2. The proximity sensor with an output transistor fault diagnosis function according to claim 1, wherein the CPU outputs a fault diagnosis signal of the output transistor from an open collector of the fault diagnosis result output transistor.
上記検波回路には上記出力トランジスタのベースに接続する出力端子とは別に検出出力確認端子を設けると共に、この検出出力確認端子を上記故障診断回路の第2AD変換ポートに接続することにより、上記検波回路の検出出力を該第2AD変換ポートに取り込むようになっている、ことを特徴とする請求項2に記載の出力トランジスタ故障診断機能付き近接センサ。   The detection circuit is provided with a detection output confirmation terminal separately from the output terminal connected to the base of the output transistor, and the detection output confirmation terminal is connected to the second AD conversion port of the failure diagnosis circuit, thereby detecting the detection circuit. The proximity sensor with an output transistor fault diagnosis function according to claim 2, wherein the detection output is taken into the second AD conversion port.
JP2007194331A 2007-07-26 2007-07-26 Proximity sensor with output transistor fault diagnosing function Pending JP2009033388A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007194331A JP2009033388A (en) 2007-07-26 2007-07-26 Proximity sensor with output transistor fault diagnosing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007194331A JP2009033388A (en) 2007-07-26 2007-07-26 Proximity sensor with output transistor fault diagnosing function

Publications (1)

Publication Number Publication Date
JP2009033388A true JP2009033388A (en) 2009-02-12

Family

ID=40403409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007194331A Pending JP2009033388A (en) 2007-07-26 2007-07-26 Proximity sensor with output transistor fault diagnosing function

Country Status (1)

Country Link
JP (1) JP2009033388A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011232252A (en) * 2010-04-28 2011-11-17 Koyo Electronics Ind Co Ltd Dc two-line proximity sensor having operation display lamp

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0286314A (en) * 1988-09-22 1990-03-27 Mitsubishi Motors Corp Self-diagnosis type proximity switch
JPH06244690A (en) * 1993-02-19 1994-09-02 Omron Corp Detection switch
JP2006135714A (en) * 2004-11-08 2006-05-25 Yamatake Corp Position detector and converter
JP2008301158A (en) * 2007-05-31 2008-12-11 Koyo Electronics Ind Co Ltd Proximity sensor with self-diagnosis function
JP2008298562A (en) * 2007-05-31 2008-12-11 Koyo Electronics Ind Co Ltd Proximity sensor with self-diagnostic function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0286314A (en) * 1988-09-22 1990-03-27 Mitsubishi Motors Corp Self-diagnosis type proximity switch
JPH06244690A (en) * 1993-02-19 1994-09-02 Omron Corp Detection switch
JP2006135714A (en) * 2004-11-08 2006-05-25 Yamatake Corp Position detector and converter
JP2008301158A (en) * 2007-05-31 2008-12-11 Koyo Electronics Ind Co Ltd Proximity sensor with self-diagnosis function
JP2008298562A (en) * 2007-05-31 2008-12-11 Koyo Electronics Ind Co Ltd Proximity sensor with self-diagnostic function

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011232252A (en) * 2010-04-28 2011-11-17 Koyo Electronics Ind Co Ltd Dc two-line proximity sensor having operation display lamp

Similar Documents

Publication Publication Date Title
JP7099220B2 (en) Relay failure diagnostic device
JP2015223050A (en) Inverter and motor drive device with failure detection function of power line
JP2019012906A (en) Electrical device
JP4525456B2 (en) Control device, short detection device, load drive system and program
JP2009033388A (en) Proximity sensor with output transistor fault diagnosing function
JP6811163B2 (en) Load drive
JP2009033389A (en) Proximity sensor with fault diagnosing function
JP6688131B2 (en) Semiconductor device
KR100549216B1 (en) PLC output module having everytime diagnostic ability of output channel
JP5165929B2 (en) Proximity sensor with self-diagnosis function
JP2009033391A (en) Proximity sensor with fault diagnostic display function
JP6182329B2 (en) Semiconductor device
JP5511475B2 (en) Signal processing system and signal source unit and signal processing unit used therefor
KR20120137855A (en) Sensing circuit for mailfunction of data line of multi-drop communication circuit
JP2009194956A (en) Inverter device
JP2009145181A (en) Detection device
JP2008301158A (en) Proximity sensor with self-diagnosis function
US10528417B2 (en) Clock signal inspection device, plant monitoring controller, and method for diagnosing clock signal inspection device
CN110778514B (en) Fan control system
JP3114660U (en) Fan failure detection device
JP2012226426A (en) Digital output circuit
US20110140708A1 (en) System, method, and apparatus for providing redundant power control using a digital output module
US20190391549A1 (en) Circuit Arrangement for Switching an Electrical Load and Method for Checking a Status of a Safety Output of a Circuit Arrangement
KR20010088102A (en) Abnormality power source sensing apparatus and method for programmable logic controller
JP2014211664A (en) Microcomputer device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100629

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120416

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120515

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20121009