JP2011244348A - Proximity sensor and i/o module - Google Patents

Proximity sensor and i/o module Download PDF

Info

Publication number
JP2011244348A
JP2011244348A JP2010116638A JP2010116638A JP2011244348A JP 2011244348 A JP2011244348 A JP 2011244348A JP 2010116638 A JP2010116638 A JP 2010116638A JP 2010116638 A JP2010116638 A JP 2010116638A JP 2011244348 A JP2011244348 A JP 2011244348A
Authority
JP
Japan
Prior art keywords
signal
output
detection
proximity sensor
self
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
JP2010116638A
Other languages
Japanese (ja)
Inventor
Katsuhiko Nakatani
克彦 中谷
Masaki Kasai
正貴 河西
Tomoya Ichimura
具也 市村
Susumu Sendai
進 千代
Izumi Nagai
泉 永井
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 JP2010116638A priority Critical patent/JP2011244348A/en
Publication of JP2011244348A publication Critical patent/JP2011244348A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a proximity sensor with a self-diagnosis function in which the number of transmission wires of a detection signal and a self-diagnosis signal to a PLC being an example of a signal-receiving side from the proximity sensor is reduced.SOLUTION: The proximity sensor is wired to a PLC-side input contact and outputs a sensor output. The sensor output is variable to at least two levels of first and second levels according to whether an object to be detected is detected or not, and is variable to a third level according to the result of self-diagnosis.

Description

本発明は、自己診断機能付き近接センサおよびこれを入力機器としてプログラマブルコントローラ(以下、PLC)の入力接点に入力配線により接続するI/Oモジュールに関するものである。   The present invention relates to a proximity sensor with a self-diagnosis function and an I / O module that uses this as an input device to connect to an input contact of a programmable controller (hereinafter referred to as PLC) by input wiring.

近接センサは、検出対象に非接触の状態で当該検出対象の存在や移動等を電気信号に置き換えて検出することができるものであり、種類も多く、またその用途も多岐にわたっている。   Proximity sensors can detect the presence or movement of a detection target by replacing it with an electrical signal in a non-contact state with the detection target, and there are many types and various uses.

例えば、検出対象が金属である高周波発振型や、検出対象が金属で無くても検出することができる静電容量方式等がある。   For example, there are a high-frequency oscillation type in which a detection target is a metal, and a capacitance method that can be detected even if the detection target is not a metal.

こうした近接センサの信号出力形態にはアナログ出力、オンオフ出力等がある。そして近接センサは、例えばPLCに制御機器の状態を検知入力する入力機器の1つとして用いられる(特許文献1参照)。   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 PLC, for example (refer patent document 1).

以上の近接センサでは検出対象の検出有無に応じてセンサ出力部からセンサ出力が出力されるようになっている。この場合、近接センサは例えば入力モジュールの入力接点に接続される。この近接センサと入力接点との間の配線には電源配線や検出信号の伝送配線等がある。   In the proximity sensor described above, a sensor output is output from the sensor output unit in accordance with whether or not the detection target is detected. In this case, the proximity sensor is connected to an input contact of the input module, for example. Wiring between the proximity sensor and the input contact includes power supply wiring, detection signal transmission wiring, and the like.

一方、近接センサでは自己診断機能を備え、センサ状態を自己診断し、その診断結果を入力モジュールに伝達するようにしたものがすでに提案されている(特許文献2等参照)。こうした自己診断機能付近接センサを入力モジュールに接続する場合、上記伝送配線としては上記検出信号伝送用の配線に加えて、自己診断信号伝送用の配線を入力モジュールに接続することが必要となる。なお、I/Oモジュールには、入力モジュール、出力モジュール、入出力モジュール、通信、位置決め、カウンタなどの高機能モジュール等を含む。   On the other hand, a proximity sensor that has a self-diagnosis function, self-diagnose the sensor state, and transmits the diagnosis result to the input module has already been proposed (see Patent Document 2, etc.). When such a proximity sensor with a self-diagnosis function is connected to an input module, it is necessary to connect a wiring for self-diagnosis signal transmission to the input module as the transmission wiring in addition to the wiring for detection signal transmission. The I / O module includes an input module, an output module, an input / output module, a high-function module such as communication, positioning, and a counter.

特開2002−076871JP2002-076871 特開2008−301158JP2008-301158

上記したように、自己診断機能付き近接センサでは、信号伝送用の配線としては検出信号伝送用の配線に加えて、自己診断信号伝送用の配線を接続する必要があるために、配線接続作業に手間が余分に必要となる。また、入力モジュール側には入力点数の配線数が増加する分、より多く必要となる。   As described above, in proximity sensors with a self-diagnosis function, it is necessary to connect a wiring for self-diagnosis signal transmission in addition to a wiring for detection signal transmission as a signal transmission wiring. Extra effort is required. Further, more input lines are required because the number of input points increases.

したがって、本発明により解決すべき課題は、自己診断機能付き近接センサにおいて、検出信号や自己診断信号伝送用配線数を削減可能として近接センサと入力モジュール等のPLCとの配線の手間を減らすことができるようにすることである。   Therefore, the problem to be solved by the present invention is that in the proximity sensor with a self-diagnosis function, it is possible to reduce the number of wirings for transmitting the detection signal and the self-diagnosis signal and to reduce the labor of wiring between the proximity sensor and the PLC such as the input module. Is to be able to do it.

本発明第1による近接センサは、信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
上記各信号のうち、第1信号についてはそのレベルを検出対象の検出と非検出とに応じて少なくとも2つのレベルに変えて単一配線に伝送出力すると共に、第2信号については自己診断結果が正常時は上記2つのレベルのうちのいずれか一方のレベルで、また、異常時はこれらレベルとは別のレベルで変換して上記単一配線に伝送出力することが可能となっている、ことを特徴とする。
The proximity sensor according to the first aspect of the present invention relates to a first signal related to the presence or absence of proximity of a detection target via a wiring connected to the signal receiving side, and a self-diagnosis of the sensor state to determine whether the sensor state is normal or abnormal. In proximity sensors that transmit and output two signals,
Among the above signals, the level of the first signal is changed to at least two levels according to the detection and non-detection of the detection target, and transmitted to a single wiring. It is possible to convert at one of the above two levels when normal, or at a level different from these levels when abnormal, and transmit it to the single wiring. It is characterized by.

本発明第1では、例えば、検出対象の近接有りでかつ自己診断結果が正常の場合の論理、検出対象の近接無しでかつ自己診断結果が正常の場合の論理、検出対象の近接有りでかつ自己診断結果が異常の場合の論理、検出対象の近接無しでかつ自己診断結果が異常の場合の論理の組み合わせがある。そして、自己診断結果が正常の場合では、検出対象の検出信号の伝送を優先する。また、自己診断結果が異常の場合では、自己診断結果の信号の伝送を優先する。   In the first aspect of the present invention, for example, logic when the proximity of the detection target is present and the self-diagnosis result is normal, logic when there is no proximity of the detection target and the self-diagnosis result is normal, proximity of the detection target and self There are combinations of logic when the diagnosis result is abnormal and logic when there is no proximity of the detection target and the self-diagnosis result is abnormal. When the self-diagnosis result is normal, priority is given to transmission of the detection signal to be detected. In addition, when the self-diagnosis result is abnormal, priority is given to transmission of a signal of the self-diagnosis result.

そして、制御回路では、これら論理において、信号の電気レベルとしては、自己診断結果が正常の場合では、検出対象の近接有無の検出として電気レベルが異なる2つの検出信号として伝送する。また、自己診断結果が異常の場合では、2つの検出信号とは異なる電気レベルとして自己診断結果の信号を伝送する。したがって、伝送用の配線としては単一として、伝送内の信号レベルが2つの検出信号のレベルと異なる電気レベルでない限りは自己診断結果は正常であり、その2つの検出信号のレベルにより検出対象の近接状態を伝送受け側では判断でき、また、伝送内の信号レベルが2つの検出信号のレベルと異なる電気レベルであれば、信号受け側では近接センサが異常であると判断することが可能となる。   Then, in these logics, in the logic, when the self-diagnosis result is normal, the control circuit transmits two detection signals having different electrical levels as detection of the proximity of the detection target. When the self-diagnosis result is abnormal, the self-diagnosis result signal is transmitted as an electric level different from that of the two detection signals. Therefore, as a single wiring for transmission, the self-diagnosis result is normal unless the signal level in the transmission is an electrical level different from the level of the two detection signals, and the detection target depends on the level of the two detection signals. The proximity state can be determined on the transmission receiving side, and if the signal level in the transmission is an electric level different from the levels of the two detection signals, it is possible to determine that the proximity sensor is abnormal on the signal receiving side. .

よつて、本発明に関わる近接センサでは、上記した近接有りと無しとの少なくとも2つの信号の伝送と、自己診断結果の信号の伝送とを単一の配線で受け側に伝送させることができ、受け側との配線が簡素化する近接センサを提供できるものとなる。   Therefore, in the proximity sensor according to the present invention, the transmission of at least two signals with and without proximity described above and the transmission of the signal of the self-diagnosis result can be transmitted to the receiving side with a single wiring, A proximity sensor that simplifies wiring with the receiving side can be provided.

好ましくは、本発明第1で、上記各レベルは電圧によるレベルである。この場合、上記第1信号と、第2信号とを入力ポートに入力すると共に、上記第1、第2信号を論理的に組み合わせ、その組み合わせに対応して論理信号を少なくとも2つの出力ポートから出力する制御回路と、上記制御回路の2つの出力ポートから出力される論理信号に対応して上記各信号を電圧レベルが異なる信号に変換すると共に、この変換した各信号を出力する出力回路と、を含むことが好ましい。   Preferably, in the first aspect of the present invention, each level is a voltage level. In this case, the first signal and the second signal are input to the input port, the first and second signals are logically combined, and the logical signal is output from at least two output ports corresponding to the combination. A control circuit that converts the signals into signals having different voltage levels corresponding to the logic signals output from the two output ports of the control circuit, and an output circuit that outputs the converted signals. It is preferable to include.

好ましくは、本発明第1で、上記各レベルは電流によるレベルである。この場合、上記第1信号と、第2信号とを入力ポートに入力すると共に、上記第1、第2信号を論理的に組み合わせ、その組み合わせに対応して論理信号を出力ポートから出力する制御回路と、上記制御回路の出力ポートから出力される論理信号に対応して上記各信号を電流レベルが異なる信号に変換すると共に、この変換した各信号を出力する出力回路と、を含むことが好ましい。   Preferably, in the first aspect of the present invention, each of the levels is a level due to a current. In this case, the control circuit which inputs the first signal and the second signal to the input port, logically combines the first and second signals, and outputs the logic signal from the output port corresponding to the combination. And an output circuit for converting each signal into a signal having a different current level corresponding to a logic signal output from the output port of the control circuit, and outputting the converted signal.

本発明第1では、例えば、検出対象の近接有りでかつ自己診断結果が正常の場合の論理、検出対象の近接無しでかつ自己診断結果が正常の場合の論理、検出対象の近接有りでかつ自己診断結果が異常の場合の論理、検出対象の近接無しでかつ自己診断結果が異常の場合の論理の組み合わせがある。そして、自己診断結果が正常の場合では、検出対象の検出信号の伝送を優先する。また、自己診断結果が異常の場合では、自己診断結果の信号の伝送を優先する。   In the first aspect of the present invention, for example, logic when the proximity of the detection target is present and the self-diagnosis result is normal, logic when there is no proximity of the detection target and the self-diagnosis result is normal, proximity of the detection target and self There are combinations of logic when the diagnosis result is abnormal and logic when there is no proximity of the detection target and the self-diagnosis result is abnormal. When the self-diagnosis result is normal, priority is given to transmission of the detection signal to be detected. In addition, when the self-diagnosis result is abnormal, priority is given to transmission of a signal of the self-diagnosis result.

そして、制御回路では、これら論理において、信号の電気レベルとしては、自己診断結果が正常の場合では、検出対象の近接有無の検出として電気レベルが異なる2つの検出信号として伝送する。また、自己診断結果が異常の場合では、2つの検出信号とは異なる電気レベルとして自己診断結果の信号を伝送する。したがって、伝送用の配線としては単一として、伝送内の信号レベルが2つの検出信号のレベルと異なる電気レベルでない限りは自己診断結果は正常であり、その2つの検出信号のレベルにより検出対象の近接状態を伝送受け側では判断でき、また、伝送内の信号レベルが2つの検出信号のレベルと異なる電気レベルであれば、信号受け側では近接センサが異常であると判断することが可能となる。   Then, in these logics, in the logic, when the self-diagnosis result is normal, the control circuit transmits two detection signals having different electrical levels as detection of the proximity of the detection target. When the self-diagnosis result is abnormal, the self-diagnosis result signal is transmitted as an electric level different from that of the two detection signals. Therefore, as a single wiring for transmission, the self-diagnosis result is normal unless the signal level in the transmission is an electrical level different from the level of the two detection signals, and the detection target depends on the level of the two detection signals. The proximity state can be determined on the transmission receiving side, and if the signal level in the transmission is an electric level different from the levels of the two detection signals, it is possible to determine that the proximity sensor is abnormal on the signal receiving side. .

本発明第2による近接センサは、信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
上記各信号のうち、第1信号については検出対象の検出と非検出とに応じて少なくとも2つのコード化信号に変換して単一配線に伝送出力すると共に、第2信号については自己診断結果が正常時は上記2つのコード化信号のうちのいずれか一方のコード化信号で、また、異常時はこれらコード化信号とは異なって非コード化信号に変換して上記単一配線に伝送出力することが可能となっていることを特徴とする。
The proximity sensor according to the second aspect of the present invention relates to a first signal relating to the presence or absence of proximity of a detection target via a wiring connected to the signal receiving side, and a self-diagnosis of the sensor state to determine whether the sensor state is normal or abnormal. In proximity sensors that transmit and output two signals,
Among the above signals, the first signal is converted into at least two coded signals according to detection and non-detection of the detection target, and is transmitted and output to a single wiring. When normal, one of the above two coded signals is coded. When abnormal, these coded signals are converted into non-coded signals and transmitted to the single wiring. It is possible to do this.

本発明第2では、第1信号については、検出対象の検出有無に対応したコード化信号に変化し、また、第2信号については、自己診断結果が、正常、異常により、コード化信号か非コード化信号かに変化するので、どの信号形態であっても、その形態を示す信号を同一配線内を伝送させることができ、結果として、センサ出力をPLCの入力接点に伝送する配線としては、単一配線で済む。   In the second aspect of the present invention, the first signal is changed into a coded signal corresponding to the presence / absence of detection of the detection target, and the second signal is determined whether the self-diagnosis result is normal or abnormal depending on whether the coded signal is normal or abnormal. Since it changes to the coded signal, any signal form can transmit the signal indicating the form in the same wiring, and as a result, the wiring for transmitting the sensor output to the input contact of the PLC, Single wiring is enough.

本発明第3による近接センサは、信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
信号受け側からの入力に連動して検出対象検出モードか自己診断モードかのいずれかのモードで動作し、各モードにおいて、検出対象検出か非検出か、あるいは、センサ状態の自己診断が正常診断結果か異常診断結果かに応じて信号レベルを変化させる、ようになっている、ことを特徴とする。
The proximity sensor according to the third aspect of the present invention includes a first signal related to the presence / absence of the proximity of the detection target via the wiring connected to the signal receiving side, and a self-diagnosis of the sensor state to determine whether the sensor state is normal or abnormal. In proximity sensors that transmit and output two signals,
Operates in either the detection target detection mode or self-diagnosis mode in conjunction with the input from the signal receiving side. In each mode, detection target detection or non-detection, or the sensor status self-diagnosis is normal diagnosis The signal level is changed according to whether the result is an abnormality diagnosis result or not.

本発明第3では、信号受け側からの入力に連動して検出対象検出モードか自己診断モードのいずれかに動作し、それぞれのモードにおいて、検出対象検出か非検出か、あるいは、センサ状態の自己診断が正常診断結果か異常診断結果かに応じて信号レベルが変化するので、信号としてはどの信号形態であっても、その形態を示す信号を同一配線内を伝送させることができ、結果として、信号をPLCの入力接点に伝送する配線としては、単一配線で済む。   In the third aspect of the present invention, the detection target detection mode or the self-diagnosis mode operates in conjunction with the input from the signal receiving side, and in each mode, the detection target detection or non-detection or the self-detection of the sensor state is performed. Since the signal level changes depending on whether the diagnosis is a normal diagnosis result or an abnormal diagnosis result, the signal indicating the form can be transmitted in the same wiring regardless of the signal form as a signal. A single wiring is sufficient as the wiring for transmitting the signal to the input contact of the PLC.

なお、上記において、PLCは、機能別に複数のモジュール構成別としたビルディングブロックタイプがある。このビルディングブロックタイプにおけるモジュールには、例えば、CPUモジュール、I/Oモジュールがある。また、上記機能別にモジュール構成するのではなく、全体を一体とした単体タイプがある。本発明のPLCは、いずれのタイプも含む。   In the above, the PLC has a building block type classified into a plurality of modules by function. Examples of the module in this building block type include a CPU module and an I / O module. In addition, there is a unit type in which the modules are not integrated according to the function but integrated as a whole. The PLC of the present invention includes any type.

本発明によれば、自己診断機能付き近接センサにおいて、検出信号や自己診断信号の伝送配線数を削減可能として近接センサとI/Oモジュールとの配線の手間を減らすことができる。   According to the present invention, in the proximity sensor with a self-diagnosis function, it is possible to reduce the number of transmission lines of the detection signal and the self-diagnosis signal, thereby reducing the labor of wiring between the proximity sensor and the I / O module.

図1は本発明の実施の形態1にかかる近接センサとそれが入力点に接続されるPLCとを示す図である。FIG. 1 is a diagram illustrating a proximity sensor according to a first embodiment of the present invention and a PLC to which the proximity sensor is connected to an input point. 図2は図1の近接センサの回路構成を示す図である。FIG. 2 is a diagram showing a circuit configuration of the proximity sensor of FIG. 図3は図2の回路構成を有する近接センサの動作説明に供するタイムチャートである。FIG. 3 is a time chart for explaining the operation of the proximity sensor having the circuit configuration of FIG. 図4は出力回路における第1、第2出力トランジスタの動作論理と出力論理とを示す図である。FIG. 4 is a diagram showing the operation logic and output logic of the first and second output transistors in the output circuit. 図5は実施の形態1の近接センサから信号を入力するPLC入力回路例を示す図である。FIG. 5 is a diagram illustrating an example of a PLC input circuit that inputs a signal from the proximity sensor according to the first embodiment. 図6は実施の形態2にかかる近接センサの回路構成を示す図である。FIG. 6 is a diagram illustrating a circuit configuration of the proximity sensor according to the second embodiment. 図7は実施の形態2の近接センサの動作説明に供するタイムチャートである。FIG. 7 is a time chart for explaining the operation of the proximity sensor according to the second embodiment. 図8は実施の形態3にかかる近接センサの回路構成を示す図である。FIG. 8 is a diagram illustrating a circuit configuration of the proximity sensor according to the third embodiment. 図9は実施の形態3の近接センサの動作説明に供するタイムチャートである。FIG. 9 is a time chart for explaining the operation of the proximity sensor according to the third embodiment. 図10は実施の形態4にかかる近接センサの回路構成を示す図である。FIG. 10 is a diagram illustrating a circuit configuration of the proximity sensor according to the fourth embodiment. 図11は実施の形態4の近接センサの動作説明に供するタイムチャートである。FIG. 11 is a time chart for explaining the operation of the proximity sensor according to the fourth embodiment.

以下、添付した図面を参照して、本発明の実施の形態に係る近接センサおよびPLCを説明する。   Hereinafter, a proximity sensor and a PLC according to an embodiment of the present invention will be described with reference to the accompanying drawings.

[実施の形態1]
本発明の実施の形態1を図1ないし図4を参照して説明する。図1は近接センサと、信号受け側として近接センサが接続されるPLCとを示し、図2は図1の近接センサの回路構成を示し、図3は図2の回路構成を有する近接センサの動作説明に供するタイムチャートを示し、図4は出力回路における第1、第2出力トランジスタの動作論理と出力論理とを示す。
[Embodiment 1]
A first embodiment of the present invention will be described with reference to FIGS. 1 shows a proximity sensor and a PLC to which the proximity sensor is connected as a signal receiving side, FIG. 2 shows a circuit configuration of the proximity sensor of FIG. 1, and FIG. 3 shows an operation of the proximity sensor having the circuit configuration of FIG. FIG. 4 shows the operation logic and output logic of the first and second output transistors in the output circuit.

図1を参照して、実施の形態でのPLCは、機能別に複数のモジュール構成別としたビルディングブロックタイプのものである。ビルディングブロックタイプのPLC1において、そのモジュールには、代表的には、CPUモジュール、I/Oモジュール等がある。   Referring to FIG. 1, the PLC in the embodiment is of a building block type in which a plurality of modules are classified by function. The building block type PLC 1 typically includes a CPU module, an I / O module, and the like.

実施の形態では、I/Oモジュールとして、入力モジュール3とし、この入力モジュール3と、近接センサ5とを配線ケーブル7で接続する例を示す。9は検出対象を示す。配線ケーブル7は、少なくとも、電源配線7a、接地配線7b、信号伝送配線7cを含む。   In the embodiment, an input module 3 is used as an I / O module, and an example in which the input module 3 and the proximity sensor 5 are connected by a wiring cable 7 is shown. Reference numeral 9 denotes a detection target. The wiring cable 7 includes at least a power supply wiring 7a, a ground wiring 7b, and a signal transmission wiring 7c.

図2を参照して、実施の形態の近接センサ5は、例えば、高周波発振・振幅検出型の近接センサであり、一定の周波数で発振を行い金属体等の検出対象の接近によって発振の振幅の変化を検出するものである。この近接センサは、電源回路11、発振回路13、整流平滑回路15、CPU17、自己診断回路18、および出力回路19を備える。なお、発振回路13、整流平滑回路15は、検出対象9の近接有無を検出する検出回路を構成することができる。   Referring to FIG. 2, the proximity sensor 5 according to the embodiment is, for example, a high-frequency oscillation / amplitude detection type proximity sensor that oscillates at a constant frequency and has an oscillation amplitude that is increased by approaching a detection target such as a metal body. Change is detected. This proximity sensor includes a power supply circuit 11, an oscillation circuit 13, a rectifying / smoothing circuit 15, a CPU 17, a self-diagnosis circuit 18, and an output circuit 19. The oscillation circuit 13 and the rectifying / smoothing circuit 15 can constitute a detection circuit that detects the proximity of the detection target 9.

また、CPU17は、検出回路が生成した検出信号と、自己診断回路18からの自己診断信号とをそれぞれ、第1、第2入力ポートIN1,IN2から入力すると共に、上記各信号を論理的に組み合わせ、その組み合わせに対応して論理信号を出力する制御回路を構成することができる。CPU17は第3入力ポートIN3に電源回路11から電源を受給するようになっている。   The CPU 17 inputs the detection signal generated by the detection circuit and the self-diagnosis signal from the self-diagnosis circuit 18 from the first and second input ports IN1 and IN2, respectively, and logically combines the above signals. A control circuit that outputs a logic signal corresponding to the combination can be configured. The CPU 17 receives power from the power supply circuit 11 at the third input port IN3.

この近接センサにおいては、図示しないが、基本動作プログラム、自己診断プログラム、等のプログラムが格納されたメモリがある。CPU17は、そのメモリにアクセスして各種プログラムを実行し、近接センサの動作を制御することができるようになっている。   This proximity sensor includes a memory in which programs such as a basic operation program and a self-diagnosis program are stored, although not shown. The CPU 17 can access the memory, execute various programs, and control the operation of the proximity sensor.

発振回路13は、高周波で発振する回路である。発振回路13は、発振コイルを内蔵している。金属体や磁性体等からなる検出対象9が発振回路13内の発振コイルに接近すると、電磁誘導作用によって渦電流損が生じて発振コイルの実効抵抗値であるインピーダンスが変化し、これにより発振回路13の発振出力振幅が変化する。近接センサはこの発振出力振幅変化を利用して検出対象9の近接有無を検出することができるようになっている。   The oscillation circuit 13 is a circuit that oscillates at a high frequency. The oscillation circuit 13 has a built-in oscillation coil. When the detection target 9 made of a metal body or a magnetic body approaches the oscillation coil in the oscillation circuit 13, an eddy current loss occurs due to electromagnetic induction, and the impedance, which is the effective resistance value of the oscillation coil, changes. The oscillation output amplitude of 13 changes. The proximity sensor can detect the proximity of the detection target 9 using this oscillation output amplitude change.

この発振回路13の発振出力振幅は検出対象9の近接状態に応じて跳躍的に変化して、発振または発振停止する。したがって、発振出力振幅の変化で検出対象9の有無の判定を行うことができる。この場合、発振回路13の出力を整流平滑回路15により直流化してなる検出出力は、検出対象9が接近すると小さくなり、検出対象9が離れていくと大きくなっていく。CPU17は、発振回路13の出力に対応する整流平滑回路15出力から検出対象9の近接の有無を検出し、出力回路19にその検出出力を出力する。   The oscillation output amplitude of the oscillation circuit 13 changes rapidly according to the proximity state of the detection target 9, and oscillates or stops oscillation. Therefore, the presence / absence of the detection target 9 can be determined by the change in the oscillation output amplitude. In this case, the detection output obtained by converting the output of the oscillation circuit 13 into a direct current by the rectifying / smoothing circuit 15 decreases as the detection target 9 approaches, and increases as the detection target 9 moves away. The CPU 17 detects the presence / absence of the proximity of the detection target 9 from the output of the rectifying / smoothing circuit 15 corresponding to the output of the oscillation circuit 13 and outputs the detection output to the output circuit 19.

出力回路19は、第1、第2出力トランジスタTR1,TR2、分圧抵抗R1,R2、およびバイアス抵抗R3,R4を有する。第1トランジスタTR1のコレクタ端子と電源(DC24V)との間は抵抗R1,R2が接続され、両抵抗R1,R2の接続中点が近接センサの出力部となっている。第2トランジスタTR2のコレクタ端子も、両抵抗R1,R2の接続中点に接続されている。また、21aは、電源端子部、21bは接地端子部、21cは信号出力端子部を示す。電源配線7aは電源端子部21aに接続されて、電源回路11と出力回路19とに直流24Vを供給する。接地配線7bは、接地端子部21bに接続される。信号伝送配線7cは信号出力端子部21cに接続される。   The output circuit 19 includes first and second output transistors TR1 and TR2, voltage dividing resistors R1 and R2, and bias resistors R3 and R4. Resistors R1 and R2 are connected between the collector terminal of the first transistor TR1 and the power source (DC 24V), and the connection midpoint between the resistors R1 and R2 is an output part of the proximity sensor. The collector terminal of the second transistor TR2 is also connected to the connection midpoint between the resistors R1 and R2. Reference numeral 21a denotes a power supply terminal, 21b denotes a ground terminal, and 21c denotes a signal output terminal. The power supply wiring 7 a is connected to the power supply terminal portion 21 a and supplies 24 V DC to the power supply circuit 11 and the output circuit 19. The ground wiring 7b is connected to the ground terminal portion 21b. The signal transmission wiring 7c is connected to the signal output terminal portion 21c.

自己診断機能付きの近接センサでは、通常、検出対象9の検出に関わる検出信号に加えて、自己診断を行った結果に関わる自己診断信号を入力モジュール3に伝送する必要があり、従来では、信号伝送配線としては、少なくとも、検出信号伝送と、自己診断信号伝送とのために2本が必要であった。そして本実施の形態では、以下で説明するように、そうした検出信号と自己診断信号との伝送を信号伝送配線7c単一で行うことを可能とし、これにより、近接センサ5と入力モジュール3との信号伝送配線数を削減し、そうした信号伝送配線作業を行う手間を、減らすことができるようにしている。   In the proximity sensor with the self-diagnosis function, it is usually necessary to transmit a self-diagnosis signal related to the result of the self-diagnosis to the input module 3 in addition to the detection signal related to the detection of the detection target 9. Two transmission lines are required for at least detection signal transmission and self-diagnosis signal transmission. In this embodiment, as described below, it is possible to transmit such a detection signal and a self-diagnosis signal by a single signal transmission wiring 7c, and thereby, the proximity sensor 5 and the input module 3 can be transmitted. The number of signal transmission wirings is reduced, and the labor for performing such signal transmission wiring work can be reduced.

図3および図4を参照して、近接センサ5の動作を説明する。図3は動作説明のためのタイムチャート、図4は、出力回路19における第1、第2出力トランジスタTR1,TR2の動作論理と出力論理とを示す。時刻t0以前は、検出対象9が近接していない。図3で示す時刻t0では検出対象9が近接していると検出され、その検出状態は時刻t2まで継続する。時刻t0とt2との間の時刻t1は、自己診断結果が異常と診断された時刻を示す。時刻t1以前は、自己診断結果が正常、時刻t1以降は自己診断結果が異常を示す。   The operation of the proximity sensor 5 will be described with reference to FIGS. 3 and 4. FIG. 3 is a time chart for explaining the operation, and FIG. 4 shows the operation logic and output logic of the first and second output transistors TR1 and TR2 in the output circuit 19. Prior to time t0, the detection target 9 is not in proximity. At time t0 shown in FIG. 3, it is detected that the detection target 9 is approaching, and the detection state continues until time t2. A time t1 between the times t0 and t2 indicates a time when the self-diagnosis result is diagnosed as abnormal. Before the time t1, the self-diagnosis result is normal, and after the time t1, the self-diagnosis result is abnormal.

(検出対象9の検出動作)
時刻t0以前は、検出対象9が近接していないから、発振回路13の発振出力振幅は大きく、それに対応した出力が整流平滑回路15からCPU17に出力されている。CPU17は整流平滑回路15出力から検出対象9が近接していないとして、第1出力ポートOUT1からハイレベル(Hi)電圧、第2出力ポートOUT2からローレベル(Lo)電圧を出力する。これにより、図4で示すように第1出力トランジスタTR1はベースへの第1出力ポートOUT1からのハイレベル(Hi)電圧印加によりオン、第2出力トランジスタTR2はベースへの第2出力ポートOUT2からのローレベル(Lo)電圧印加によりオフする。そして第1トランジスタTR1のコレクタ端子と電源との間は抵抗R1,R2が接続され、両抵抗R1,R2の接続中点が当該近接センサ5の出力部となっているので、出力部電圧は両抵抗R1,R2による分圧電圧となる。両抵抗R1,R2の抵抗値が同一であるとき、出力端子部21cからの出力電圧は図3(c)で示すようにミドル電圧(Mi)となり、このミドル電圧(Mi)が検出対象9の非検出信号(第1レベルのセンサ出力)として配線7cから入力モジュール3に伝送される。
(Detection operation of detection object 9)
Before the time t0, since the detection target 9 is not close, the oscillation output amplitude of the oscillation circuit 13 is large, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 outputs the high level (Hi) voltage from the first output port OUT1 and the low level (Lo) voltage from the second output port OUT2, assuming that the detection target 9 is not in proximity from the output of the rectifying and smoothing circuit 15. Accordingly, as shown in FIG. 4, the first output transistor TR1 is turned on by applying a high level (Hi) voltage from the first output port OUT1 to the base, and the second output transistor TR2 is turned on from the second output port OUT2 to the base. Is turned off when a low level (Lo) voltage is applied. The resistors R1 and R2 are connected between the collector terminal of the first transistor TR1 and the power source, and the midpoint of connection between the resistors R1 and R2 is the output section of the proximity sensor 5, so that the output section voltage is both This is a divided voltage by the resistors R1 and R2. When the resistance values of both resistors R1 and R2 are the same, the output voltage from the output terminal portion 21c becomes a middle voltage (Mi) as shown in FIG. 3C, and this middle voltage (Mi) A non-detection signal (first level sensor output) is transmitted from the wiring 7c to the input module 3.

次に時刻t0になって、検出対象9が近接し、発振回路13の発振出力振幅が小さく、それに対応した出力が整流平滑回路15からCPU17に出力される。CPU17は整流平滑回路15出力から検出対象9が近接しているとして、第1、第2出力ポートOUT1,OUT2から共にローレベル(Lo)電圧を出力する。これにより第1、第2出力トランジスタTR1,TR2は図4で示すように共にオフし、出力部OUTの電圧は図3(c)で示すようにハイレベル(Hi)電圧となる。そしてこのハイレベル(Hi)電圧が検出対象9の検出信号(第1レベルのセンサ出力)として配線7cから入力モジュール3に伝送される。   Next, at time t 0, the detection target 9 approaches, the oscillation output amplitude of the oscillation circuit 13 is small, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 outputs a low level (Lo) voltage from both the first and second output ports OUT1 and OUT2, assuming that the detection target 9 is close to the output of the rectifying and smoothing circuit 15. As a result, the first and second output transistors TR1 and TR2 are both turned off as shown in FIG. 4, and the voltage of the output part OUT becomes a high level (Hi) voltage as shown in FIG. 3C. The high level (Hi) voltage is transmitted from the wiring 7 c to the input module 3 as a detection signal (first level sensor output) of the detection target 9.

次に時刻t2になって、検出対象9が近接しなくなると、上記した時刻t0以前と同様にして、ミドル電圧(Mi)が検出対象9の非検出信号として配線7cから入力モジュール3に伝送される。   Next, at time t2, when the detection target 9 is not in proximity, the middle voltage (Mi) is transmitted from the wiring 7c to the input module 3 as a non-detection signal of the detection target 9 in the same manner as before time t0. The

なお、図3(c)で、時刻t1以降で、破線で示されるのは、自己診断結果が正常の場合において、時刻t1−t2は検出対象の検出、時刻t2以降は検出対象が近接していないとして非検出を示す。そして、次の自己診断動作においては時刻t1以降は、自己診断結果が異常であるために、それら検出信号がハイレベル(Hi)、非検出信号がミドル(Mi)で出力されない状態を示す。   In FIG. 3C, the broken line after time t1 indicates the detection target at time t1-t2 when the self-diagnosis result is normal, and the detection target is close after time t2. Indicates no detection as no. In the next self-diagnosis operation, after time t1, since the self-diagnosis result is abnormal, the detection signals are in a high level (Hi) and the non-detection signals are not output in the middle (Mi).

(自己診断動作)
CPU17は、自己診断回路18出力から近接センサ5の状態を自己診断し、正常か異常かを判断している。この自己診断回路18は、例えば、発振回路13の状態等を自己診断し、その自己診断結果が正常か異常かをCPU17に入力する。
(Self-diagnosis operation)
The CPU 17 self-diagnose the state of the proximity sensor 5 from the output of the self-diagnosis circuit 18 and determines whether it is normal or abnormal. For example, the self-diagnosis circuit 18 performs self-diagnosis on the state of the oscillation circuit 13 and the like, and inputs whether the self-diagnosis result is normal or abnormal to the CPU 17.

CPU17が時刻t0以前において近接センサ5の状態が正常であると自己診断した場合、検出対象9の検出動作を継続している。上記検出動作例では、第1、第2出力ポートOUT1,OUT2からは検出対象近接時はハイレベル(Hi)の電圧信号、また、検出対象非近接時はミドル(Mi)の電圧信号を出力する。   When the CPU 17 self-diagnosis that the state of the proximity sensor 5 is normal before time t0, the detection operation of the detection target 9 is continued. In the above detection operation example, a high level (Hi) voltage signal is output from the first and second output ports OUT1 and OUT2 when the detection target is close, and a middle (Mi) voltage signal is output when the detection target is not close. .

そして、時刻t1になって、CPU17は近接センサ5の状態が異常であると自己診断した場合、検出対象9の近接、非近接の検出に関わりなく、第1、第2出力ポートOUT1,OUT2からは図4で示すように第1出力トランジスタTR1をオフ、第2出力トランジスタTR2をオンにする電圧を出力することで、出力部OUT電圧を、図3(c)で示すように強制的にローレベル(Lo)とする。このローレベル(Lo)電圧信号が近接センサが異常であることを示す信号(第3レベルのセンサ出力)として配線7cから入力モジュール3に伝送される。   At time t1, when the CPU 17 makes a self-diagnosis that the state of the proximity sensor 5 is abnormal, the first and second output ports OUT1 and OUT2 are connected regardless of whether the detection target 9 is in proximity or not. 4 outputs a voltage for turning off the first output transistor TR1 and turning on the second output transistor TR2 as shown in FIG. 4, thereby forcing the output OUT voltage to be low as shown in FIG. Let it be level (Lo). This low level (Lo) voltage signal is transmitted from the wiring 7c to the input module 3 as a signal (third level sensor output) indicating that the proximity sensor is abnormal.

以上から実施の形態1に関わる近接センサでは、センサ出力の電圧レベルが変化するものであり、検出対象9が非検出であることを示す電圧第1レベルと、検出対象9を検出したことを示す電圧第2レベルとを有すると共に、自己診断結果が正常時は第1または第2レベルのいずれか一方のレベル、異常であるときは、第1レベル、第2レベルのいずれのものとは異なる電圧第3レベルに変化することができるようになっている。これにより、実施の形態1では、検出対象9の検出、非検出の信号と、自己診断信号とを同一配線7cで入力モジュール3に伝送させることができ、結果として、近接センサ5と入力モジュール3との接続配線を単一配線で済ませて、配線作業の簡素化ならびにその配線に要するコストを低減化することができる。   As described above, in the proximity sensor according to the first embodiment, the voltage level of the sensor output changes, and the voltage first level indicating that the detection target 9 is not detected and the detection target 9 is detected. And a voltage different from the first level or the second level when the self-diagnosis result is normal, and when the self-diagnosis result is abnormal, the voltage different from the first level or the second level. It is possible to change to the third level. As a result, in the first embodiment, the detection / non-detection signal of the detection target 9 and the self-diagnosis signal can be transmitted to the input module 3 through the same wiring 7c. As a result, the proximity sensor 5 and the input module 3 can be transmitted. In this case, the wiring work can be simplified and the cost required for the wiring can be reduced.

図5は、信号受け側の一例としての入力モジュール3の内部構成を示す。入力モジュール3は、入力回路3a,3bと、これら両回路3a,3bの出力を入力する内部回路3cと、を含む。入力回路3aは、抵抗R1,R3,R5,R7、コンデンサC1,C3、フォトカプラP1を含む。入力回路3bは、抵抗R2,R4,R6,R8、コンデンサC2,C4、フォトカプラP2を含む。入力部23(入力点)には配線7cが接続されている。   FIG. 5 shows an internal configuration of the input module 3 as an example of the signal receiving side. The input module 3 includes input circuits 3a and 3b and an internal circuit 3c that inputs the outputs of both the circuits 3a and 3b. The input circuit 3a includes resistors R1, R3, R5, R7, capacitors C1, C3, and a photocoupler P1. The input circuit 3b includes resistors R2, R4, R6, R8, capacitors C2, C4, and a photocoupler P2. A wiring 7c is connected to the input unit 23 (input point).

入力部23にハイレベル(Hi)信号が入力されると、ハイレベル(Hi)信号は入力回路3a,3bそれぞれにおいて、抵抗R1,R3の分圧比で分圧されてフォトカプラP1がオンし、抵抗R2,R4の分圧比で分圧されてフォトカプラP2がオンするので、内部回路3cは、両フォトカプラP1,P2からのオン出力により、近接センサ5から検出対象有りとする検出信号が配線7cから伝送されてきたことが判る。   When a high level (Hi) signal is input to the input unit 23, the high level (Hi) signal is divided by the voltage dividing ratio of the resistors R1 and R3 in the input circuits 3a and 3b, and the photocoupler P1 is turned on. Since the photocoupler P2 is turned on by dividing by the voltage dividing ratio of the resistors R2 and R4, the internal circuit 3c receives a detection signal indicating that there is a detection target from the proximity sensor 5 by the ON output from both the photocouplers P1 and P2. 7c is transmitted.

入力部23にミドル(Mi)信号が入力されると、ミドル(Mi)信号は入力回路3a,3bそれぞれにおいて、抵抗R1,R3の分圧比で分圧されてフォトカプラP1がオフし、抵抗R2,R4の分圧比で分圧されてフォトカプラP2がオンする。これにより、内部回路3cは、両フォトカプラP1,P2からの出力により、近接センサ5から検出対象無しとする非検出信号が配線7cから伝送されてきたことが判る。   When a middle (Mi) signal is input to the input unit 23, the middle (Mi) signal is divided by the voltage dividing ratio of the resistors R1 and R3 in the input circuits 3a and 3b, respectively, and the photocoupler P1 is turned off, and the resistor R2 , R4 and the photocoupler P2 is turned on. As a result, the internal circuit 3c knows that the non-detection signal indicating that there is no detection target has been transmitted from the proximity sensor 5 from the wiring 7c by the outputs from both the photocouplers P1 and P2.

入力部23にローレベル(Lo)信号が入力されると、ローレベル(Lo)信号は入力回路3a,3bそれぞれにおいて、抵抗R1,R3の分圧比、抵抗R2,R4の分圧比で、フォトカプラP1,P2が共にオフする。これにより、内部回路3cは、両フォトカプラP1,P2からのオフ出力により、近接センサ5から自己診断信号が配線7cから伝送されてきたことが判る。   When a low level (Lo) signal is input to the input unit 23, the low level (Lo) signal is a photocoupler in each of the input circuits 3a and 3b according to the voltage dividing ratio of the resistors R1 and R3 and the voltage dividing ratio of the resistors R2 and R4. Both P1 and P2 are turned off. Thereby, the internal circuit 3c knows that the self-diagnosis signal has been transmitted from the proximity sensor 5 from the wiring 7c by the OFF output from both the photocouplers P1 and P2.

以上により実施の形態1では、単一本の配線7cに検出対象の検出に関わる信号と、自己診断結果を示す信号との2つの信号を伝送することができ、入力モジュール3へのその配線7cの接続作業を簡素化することができるようになる。   As described above, in the first embodiment, two signals of the signal related to detection of the detection target and the signal indicating the self-diagnosis result can be transmitted to the single wiring 7c, and the wiring 7c to the input module 3 can be transmitted. The connection work can be simplified.

[実施の形態2]
図6および図7を参照して本発明の実施の形態2を説明する。図6で示すように実施の形態2では、出力回路19が、CPU17の第3出力ポートOUT3からの出力が一方入力部に入力する演算増幅器(オペアンプ)A1と、演算増幅器A1出力をベースに入力して電流増幅出力する、共にpnpタイプの出力トランジスタTR1,TR2と、抵抗R1と、を含む。出力トランジスタTR1,TR2はコレクタが共通接続されて出力部21cに接続されている。出力トランジスタTR1のベースは出力トランジスタTR2のエミッタに接続されている。そして出力トランジスタTR1のエミッタは、抵抗R1を介して電源に接続されていると共に演算増幅器A1の他方入力部に接続されている。
[Embodiment 2]
A second embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 6, in the second embodiment, the output circuit 19 inputs an output from the third output port OUT3 of the CPU 17 to one input unit based on the operational amplifier (op amp) A1 and the output of the operational amplifier A1. And pnp type output transistors TR1 and TR2 and a resistor R1 which both output current and output. The output transistors TR1 and TR2 have collectors connected in common and are connected to the output unit 21c. The base of the output transistor TR1 is connected to the emitter of the output transistor TR2. The emitter of the output transistor TR1 is connected to the power supply via the resistor R1 and is connected to the other input portion of the operational amplifier A1.

以上の構成を有する実施の形態2の近接センサ5においては、出力回路19がアナログ電流出力回路の構成となっている。
図7を参照して実施の形態2の近接センサの動作を説明する。ここで図7(a)、図7(b)、図7(c)は図3(a)、図3(b)、図3(c)にそれぞれ対応する。
In the proximity sensor 5 of the second embodiment having the above configuration, the output circuit 19 is configured as an analog current output circuit.
The operation of the proximity sensor according to the second embodiment will be described with reference to FIG. Here, FIGS. 7A, 7B, and 7C correspond to FIGS. 3A, 3B, and 3C, respectively.

(検出対象9の検出動作)
時刻t0以前は、検出対象9が近接していないから、発振回路13の発振出力振幅は大きく、それに対応した出力が整流平滑回路15からCPU17に出力されている。CPU17は整流平滑回路15出力から検出対象9が近接していないとして、第3出力ポートOUT3から演算増幅器A1の一方入力部にミドル(Mi)電圧を出力する。演算増幅器A1は、一方入力部のミドル(Mi)電圧と他方入力部の電圧との差(差電圧)に対応した出力を出力トランジスタTR2のベースに出力する。差電圧は、この場合、中間であるから、出力トランジスタTR1,TR2の共通コレクタから電流出力部21cに出力される電流は電流第1レベルとして例えば10mAとなる。この電流第1レベル信号は検出対象9の非検出信号(第1レベルのセンサ出力)として配線7cから入力モジュール3に伝送される。
(Detection operation of detection object 9)
Before the time t0, since the detection target 9 is not close, the oscillation output amplitude of the oscillation circuit 13 is large, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 outputs a middle (Mi) voltage from the third output port OUT3 to one input portion of the operational amplifier A1, assuming that the detection target 9 is not in proximity from the output of the rectifying / smoothing circuit 15. The operational amplifier A1 outputs to the base of the output transistor TR2 an output corresponding to the difference (difference voltage) between the middle (Mi) voltage of one input unit and the voltage of the other input unit. In this case, since the differential voltage is intermediate, the current output from the common collector of the output transistors TR1 and TR2 to the current output unit 21c is, for example, 10 mA as the current first level. This first current level signal is transmitted from the wiring 7c to the input module 3 as a non-detection signal (first level sensor output) of the detection target 9.

次に時刻t0になって、検出対象9が近接し、発振回路13の発振出力振幅が小さく、それに対応した出力が整流平滑回路15からCPU17に出力される。CPU17は整流平滑回路15出力から検出対象9が近接しているとして、第3出力ポートOUT3から演算増幅器A1の一方入力部にハイレベル(Hi)電圧を出力する。演算増幅器A1は、一方入力部のハイレベル(Hi)電圧と他方入力部の電圧との差(差電圧)に対応した出力を出力トランジスタTR2のベースに出力する。差電圧は、この場合、小さいから、出力トランジスタTR1,TR2の共通コレクタから電流出力部21cに出力される電流は電流第2レベルとして例えば20mAとなる。この電流第2レベル信号は検出対象9の検出信号(第2レベルのセンサ出力)として配線7cから入力モジュール3に伝送される。   Next, at time t 0, the detection target 9 approaches, the oscillation output amplitude of the oscillation circuit 13 is small, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 outputs a high level (Hi) voltage from the third output port OUT3 to one input portion of the operational amplifier A1, assuming that the detection target 9 is close to the output of the rectifying / smoothing circuit 15. The operational amplifier A1 outputs an output corresponding to the difference (difference voltage) between the high level (Hi) voltage of one input unit and the voltage of the other input unit to the base of the output transistor TR2. In this case, since the difference voltage is small, the current output from the common collector of the output transistors TR1 and TR2 to the current output unit 21c is, for example, 20 mA as the current second level. This current second level signal is transmitted from the wiring 7c to the input module 3 as a detection signal of the detection target 9 (second level sensor output).

(自己診断動作)
CPU17は、自己診断回路18出力から近接センサ5の状態を自己診断し、正常か異常かを判断している。この自己診断回路18は、例えば、発振回路13の状態等を自己診断し、その自己診断結果が正常か異常かをCPU17に入力する。
時刻t1以前まではCPU17は近接センサ5の状態が正常であると自己診断した場合、検出対象9の検出動作を継続している。上記検出動作例では、出力点21cからは検出対象近接時は20mAの電流信号、また、検出対象非近接時は10mAの電流信号を出力する。
(Self-diagnosis operation)
The CPU 17 self-diagnose the state of the proximity sensor 5 from the output of the self-diagnosis circuit 18 and determines whether it is normal or abnormal. For example, the self-diagnosis circuit 18 performs self-diagnosis on the state of the oscillation circuit 13 and the like, and inputs whether the self-diagnosis result is normal or abnormal to the CPU 17.
Until time t1, when the CPU 17 performs self-diagnosis that the state of the proximity sensor 5 is normal, the detection operation of the detection target 9 is continued. In the above detection operation example, a current signal of 20 mA is output from the output point 21c when the detection target is close, and a current signal of 10 mA is output when the detection target is not close.

そして、時刻t1になって、CPU17は近接センサ5の状態が異常であると自己診断した場合、検出対象9の近接、非近接の検出に関わりなく、出力ポートOUT3から演算増幅器A1にはローレベル(Lo)信号が出力される。その結果、出力点21cからは自己診断の結果を示す0−5mAの電流信号が出力される。   At time t1, when the CPU 17 makes a self-diagnosis that the state of the proximity sensor 5 is abnormal, the output port OUT3 is connected to the operational amplifier A1 regardless of whether the detection target 9 is in proximity or not. (Lo) signal is output. As a result, a current signal of 0-5 mA indicating the result of self-diagnosis is output from the output point 21c.

以上から実施の形態2に関わる近接センサ5では、センサ出力が電流レベルで変化するものであり、検出対象9を検出したことを示す電流第1レベル、検出対象9が非検出であることを示す電流第2レベルで、それぞれ変化すると共に、自己診断結果が異常であるときは、電流第3レベルで変化するようになっている。   As described above, in the proximity sensor 5 according to the second embodiment, the sensor output changes at the current level, the first current level indicating that the detection target 9 is detected, and the detection target 9 is not detected. It changes at the current second level, and when the self-diagnosis result is abnormal, it changes at the current third level.

これにより、実施の形態2では、検出対象9の検出、非検出と、自己診断結果とを電流信号により同一配線7cで入力モジュール3に伝送させることができ、結果として、近接センサ5と入力モジュール3との接続配線を単一配線で済ませて、配線作業の簡素化ならびにその配線に要するコストを低減化することができる。   Thus, in the second embodiment, detection / non-detection of the detection target 9 and the self-diagnosis result can be transmitted to the input module 3 by the same wiring 7c by the current signal, and as a result, the proximity sensor 5 and the input module are transmitted. The connection wiring with 3 can be completed by a single wiring, and the wiring work can be simplified and the cost required for the wiring can be reduced.

[実施の形態3]
図8および図9を参照して本発明の実施の形態3を説明する。
[Embodiment 3]
A third embodiment of the present invention will be described with reference to FIGS.

図8で示すように実施の形態3では、出力回路19が、出力トランジスタTR1と、分圧抵抗R1,R2と、バイアス抵抗R4と、を含む。出力トランジスタTR1のベースはCPU17の第4出力ポートOUT4に接続され、コレクタは分圧抵抗R1,R2を介して電源ラインに、エミッタは接地ラインにそれぞれ接続されている。分圧抵抗R1,R2の接続中点は実施の形態1と同様に、出力部21cに接続されている。   As shown in FIG. 8, in the third embodiment, the output circuit 19 includes an output transistor TR1, voltage dividing resistors R1 and R2, and a bias resistor R4. The base of the output transistor TR1 is connected to the fourth output port OUT4 of the CPU 17, the collector is connected to the power supply line via the voltage dividing resistors R1 and R2, and the emitter is connected to the ground line. Similarly to the first embodiment, the midpoint of connection between the voltage dividing resistors R1 and R2 is connected to the output unit 21c.

以上の構成を有する実施の形態3の近接センサ5においては、出力回路19がコード化信号出力回路の構成となっている。   In the proximity sensor 5 of the third embodiment having the above configuration, the output circuit 19 has a configuration of a coded signal output circuit.

そして、CPU17は、整流平滑回路15出力に基づいて検出対象近接有りと判断したときは、第1コード化信号として例えば「10101010」の論理信号を出力する。この場合の信号は論理「1」であればローレベル(Lo)電圧、論理「0」であればハイレベル(Hi)電圧である。また、検出対象近接無しと判断したときは、第2コード化信号として例えば「11001100」の論理信号を出力する。さらに、診断信号の場合、第3コード化信号として例えば「00000000」の論理信号を出力する。出力トランジスタTR1は、論理「1」としてベースにローレベル(Lo)電圧が入力されると、オフし、その結果、出力部21cからは論理「1」としてハイレベル(Hi)電圧が出力される。また、出力トランジスタTR1は、論理「0」としてベースにハイレベル(Hi)電圧が入力されると、オンし、その結果、出力部21cからは論理「0」としてローレベル(Lo)電圧が出力される。   When the CPU 17 determines that there is proximity to the detection target based on the output of the rectifying / smoothing circuit 15, the CPU 17 outputs a logic signal of “10101010”, for example, as the first coded signal. The signal in this case is a low level (Lo) voltage if the logic is “1”, and a high level (Hi) voltage if the logic is “0”. When it is determined that there is no proximity to the detection target, for example, a logic signal of “11001100” is output as the second coded signal. Further, in the case of a diagnostic signal, a logic signal “00000000”, for example, is output as the third coded signal. The output transistor TR1 is turned off when a low level (Lo) voltage is input to the base as a logic “1”, and as a result, a high level (Hi) voltage is output as a logic “1” from the output unit 21c. . The output transistor TR1 is turned on when a high level (Hi) voltage is input to the base as a logic “0”, and as a result, a low level (Lo) voltage is output from the output unit 21c as a logic “0”. Is done.

図9を参照して実施の形態2の近接センサの動作を説明する。ここで図9(a)、図9(b)、図9(c)は図3(a)、図3(b)、図3(c)にそれぞれ対応する。   The operation of the proximity sensor according to the second embodiment will be described with reference to FIG. Here, FIGS. 9A, 9B, and 9C correspond to FIGS. 3A, 3B, and 3C, respectively.

(検出対象9の検出動作)
時刻t0以前は、検出対象9が近接していないから、発振回路13の発振出力振幅は大きく、それに対応した出力が整流平滑回路15からCPU17に出力されている。CPU17は、整流平滑回路15出力から検出対象9が近接していないと検出して、第4出力ポートOUT4から出力トランジスタTR1のベースに第1コード化信号を出力する。第1コード化信号は検出対象9の非検出信号として配線7cから入力モジュール3に伝送される。
(Detection operation of detection object 9)
Before the time t0, since the detection target 9 is not close, the oscillation output amplitude of the oscillation circuit 13 is large, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 detects that the detection target 9 is not close from the output of the rectifying and smoothing circuit 15 and outputs the first coded signal from the fourth output port OUT4 to the base of the output transistor TR1. The first coded signal is transmitted from the wiring 7c to the input module 3 as a non-detection signal of the detection target 9.

次に時刻t0になって、検出対象9が近接し、発振回路13の発振出力振幅が小さく、それに対応した出力が整流平滑回路15からCPU17に出力される。CPU17は整流平滑回路15出力から検出対象9が近接しているとして、第4出力ポートOUT4から出力トランジスタTR1のベースに第2コード化信号を出力する。第2コード化信号は検出対象9の検出信号として配線7cから入力モジュール3に伝送される。   Next, at time t 0, the detection target 9 approaches, the oscillation output amplitude of the oscillation circuit 13 is small, and an output corresponding to the oscillation output amplitude is output from the rectifying / smoothing circuit 15 to the CPU 17. The CPU 17 outputs the second coded signal from the fourth output port OUT4 to the base of the output transistor TR1, assuming that the detection target 9 is close to the output of the rectifying / smoothing circuit 15. The second coded signal is transmitted from the wiring 7c to the input module 3 as a detection signal for the detection target 9.

なお、図9(a)においては、図3(a)との対応のため、非検出ではローレベル(Lo)、検出ではハイレベル(Hi)で示しているが、検出対象9の近接非検出か、検出かを区別するために示す。   In FIG. 9 (a), in order to correspond to FIG. 3 (a), the non-detection is indicated by a low level (Lo), and the detection is indicated by a high level (Hi). Or to detect.

(自己診断動作)
自己診断は、図9(b)に示すが、図9(b)では、図3(b)との対応のため、自己診断結果が正常ではローレベル(Lo)、異常ではハイレベル(Hi)で示している。
(Self-diagnosis operation)
The self-diagnosis is shown in FIG. 9 (b). In FIG. 9 (b), the self-diagnosis result is low level (Lo) when normal and the high level (Hi) is normal because of the correspondence with FIG. 3 (b). Is shown.

CPU17は、自己診断回路18出力から近接センサ5の状態を自己診断し、正常か異常かを判断している。この自己診断回路18は、例えば、発振回路13の状態等を自己診断し、その自己診断結果が正常か異常かをCPU17に入力する。   The CPU 17 self-diagnose the state of the proximity sensor 5 from the output of the self-diagnosis circuit 18 and determines whether it is normal or abnormal. For example, the self-diagnosis circuit 18 performs self-diagnosis on the state of the oscillation circuit 13 and the like, and inputs whether the self-diagnosis result is normal or abnormal to the CPU 17.

時刻t1以前まではCPU17は近接センサ5の状態が正常であると自己診断した場合、第4出力ポートOUT4から出力トランジスタTR1のベースに第3コード化信号を出力する。自己診断結果が正常の場合の第3コード化信号は、第1、第2コード化信号のいずれかに合わせてハイレベル(Hi)とローレベル(Lo)とが繰り返される信号である。また、自己診断結果が異常の場合の第3コード化信号は、上記「00…」に対応してローレベル(Lo)となる。さらに、自己診断結果の異常症状別に第3コード化信号の種類を増やすこともできる。   Until time t1, when the CPU 17 performs self-diagnosis that the state of the proximity sensor 5 is normal, the CPU 17 outputs a third coded signal from the fourth output port OUT4 to the base of the output transistor TR1. The third coded signal when the self-diagnosis result is normal is a signal in which a high level (Hi) and a low level (Lo) are repeated in accordance with either the first or second coded signal. Further, the third coded signal when the self-diagnosis result is abnormal is at a low level (Lo) corresponding to the above “00...”. Furthermore, the number of third coded signals can be increased for each abnormal symptom of the self-diagnosis result.

こうした自己診断信号は、配線7cから入力モジュール3に伝送される。
これにより、実施の形態3では、検出対象9の検出、非検出と、自己診断結果とをコード化信号により同一配線7cで入力モジュール3に伝送させることができ、結果として、近接センサ5と入力モジュール3との接続配線を単一配線で済ませて、配線作業の簡素化ならびにその配線に要するコストを低減化することができる。
Such a self-diagnosis signal is transmitted from the wiring 7c to the input module 3.
Thereby, in Embodiment 3, detection / non-detection of the detection target 9 and the self-diagnosis result can be transmitted to the input module 3 by the same wiring 7c by the coded signal, and as a result, the proximity sensor 5 and the input Connection wiring with the module 3 can be completed with a single wiring, so that the wiring work can be simplified and the cost required for the wiring can be reduced.

[実施の形態4]
図10および図11を参照して本発明の実施の形態4を説明する。図10で示すように実施の形態4では、出力回路19が、出力トランジスタTR1と、抵抗R1,R2,R4,R5,R6と、入力回路19aと、を含む。出力トランジスタTR1のベースはCPU17の第5出力ポートOUT5に接続され、コレクタは分圧抵抗R1,R2を介して電源ラインに、エミッタは接地ラインにそれぞれ接続されている。分圧抵抗R1,R2の接続中点は実施の形態1と同様に、出力部21cに接続されている。
[Embodiment 4]
A fourth embodiment of the present invention will be described with reference to FIGS. As shown in FIG. 10, in the fourth embodiment, the output circuit 19 includes an output transistor TR1, resistors R1, R2, R4, R5, and R6, and an input circuit 19a. The base of the output transistor TR1 is connected to the fifth output port OUT5 of the CPU 17, the collector is connected to the power supply line via the voltage dividing resistors R1 and R2, and the emitter is connected to the ground line. Similarly to the first embodiment, the midpoint of connection between the voltage dividing resistors R1 and R2 is connected to the output unit 21c.

入力回路19aは、抵抗R7,R8と、フォトカプラP1と、を含む。出力回路19は、入力部21dを有し、この入力部21dは、配線7dを介して入力モジュール3側に接続されている。入力モジュール3からは配線7dを介して近接センサ5からの出力信号を切り替え制御する信号を入力することができるようになっている。図中ではこの信号を「PLC連動入力IN」と記載している。このPLC連動入力INは、ハイレベル(Hi)のときは検出対象近接有無の検出に関わる信号を出力する検出モードに、ローレベル(Lo)のときは自己診断信号を出力する自己診断モードに切り替える。検出モードにするハイレベル(Hi)のPLC連動入力INが入力部21dに入力されると、入力回路19a内のフォトカプラP1がオフし、そのオフ出力はCPU17の第4入力ポートIN4に入力され、自己診断モードにするローレベル(Lo)のPLC連動入力INが入力部21dに入力されると、フォトカプラP1がオフし、そのオフ出力はCPU17の第4入力ポートIN4に入力される。   The input circuit 19a includes resistors R7 and R8 and a photocoupler P1. The output circuit 19 has an input unit 21d, and this input unit 21d is connected to the input module 3 side via a wiring 7d. A signal for switching and controlling the output signal from the proximity sensor 5 can be input from the input module 3 via the wiring 7d. In the figure, this signal is described as “PLC interlocking input IN”. When the PLC interlocking input IN is at a high level (Hi), the detection mode is switched to a detection mode for outputting a signal related to the presence / absence of detection target proximity. . When the high-level (Hi) PLC interlocking input IN to enter the detection mode is input to the input unit 21d, the photocoupler P1 in the input circuit 19a is turned OFF, and the OFF output is input to the fourth input port IN4 of the CPU 17. When the low-level (Lo) PLC interlocking input IN for entering the self-diagnosis mode is input to the input unit 21d, the photocoupler P1 is turned off, and the off-output is input to the fourth input port IN4 of the CPU 17.

CPU17は、フォトカプラP1のオンオフ出力に応答して、第5出力ポートOUT5から検出信号、非検出信号、あるいは、自己診断信号を出力する。   In response to the on / off output of the photocoupler P1, the CPU 17 outputs a detection signal, a non-detection signal, or a self-diagnosis signal from the fifth output port OUT5.

図11を参照して実施の形態4の近接センサの動作を説明する。ここで図11(a)、図11(b)は図3(a)、図3(b)にそれぞれ対応する。図11(c)は、第1モードとして出力回路19内の入力回路19aに入力されるハイレベル(Hi)電圧と、第2モードとして出力回路19内の入力回路19aに入力されるローレベル(Lo)電圧とを示す。図11(d)は、第1モードでの検出か非検出の信号レベルと、第2モードでの自己診断が正常か異常かの信号レベルとを示す。   The operation of the proximity sensor according to the fourth embodiment will be described with reference to FIG. Here, FIGS. 11A and 11B correspond to FIGS. 3A and 3B, respectively. FIG. 11C shows a high level (Hi) voltage input to the input circuit 19a in the output circuit 19 as the first mode, and a low level (second level) input to the input circuit 19a in the output circuit 19 as the second mode. Lo) voltage. FIG. 11D shows the signal level of detection or non-detection in the first mode and the signal level of whether the self-diagnosis in the second mode is normal or abnormal.

(時刻t0以前)
時刻t0以前では、検出対象は図11(a)で示すように非検出で、かつ、自己診断結果は、図11(b)で示すように正常である。また入力モジュール3からはPLC連動入力INは図11(c)で示すようにハイレベル(Hi)電圧が入力され、検出対象近接有無の検出モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対してローレベル(Lo)信号を出力し、これにより、出力トランジスタTR1はオフし、結果、出力部21cからは図11(d)で示すように検出対象非検出を示すハイレベル(Hi)信号がセンサ出力OUTとして出力される。配線7cから入力モジュール3にこの信号が伝送される。
(Before time t0)
Before the time t0, the detection target is not detected as shown in FIG. 11A, and the self-diagnosis result is normal as shown in FIG. 11B. Further, as shown in FIG. 11C, a high level (Hi) voltage is input from the input module 3 to the PLC interlocking input IN, and a detection mode for detecting the proximity of the detection target is set. In this state, the CPU 17 outputs a low level (Lo) signal from the fifth output port OUT5 to the output circuit 19, thereby turning off the output transistor TR1. As a result, the output unit 21c receives FIG. 11 (d). A high level (Hi) signal indicating non-detection of the detection target is output as the sensor output OUT as indicated by. This signal is transmitted from the wiring 7c to the input module 3.

(時刻t0−t01)
次に時刻t0−t01では、検出対象9が図11(a)で示すように検出で、かつ、自己診断結果は、図11(b)で示すように正常である。また入力モジュール3からは図11(c)で示すようにPLC連動入力INとしてハイレベル(Hi)電圧が入力され、検出対象近接有無の検出モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対してハイレベル(Hi)信号を出力し、これにより、出力トランジスタTR1はオンし、結果、出力部21cからは図11(d)で示すように検出対象検出を示すローレベル(Lo)信号がセンサ出力OUTとして出力される。配線7cから入力モジュール3にこの信号が伝送される。
(Time t0-t01)
Next, at time t0-t01, the detection target 9 is detected as shown in FIG. 11A, and the self-diagnosis result is normal as shown in FIG. 11B. Further, as shown in FIG. 11 (c), a high level (Hi) voltage is input from the input module 3 as the PLC interlocking input IN, and the detection target proximity presence / absence detection mode is set. In this state, the CPU 17 outputs a high level (Hi) signal from the fifth output port OUT5 to the output circuit 19, whereby the output transistor TR1 is turned on. As a result, the output unit 21c receives FIG. 11 (d). As shown in FIG. 4, a low level (Lo) signal indicating detection target detection is output as the sensor output OUT. This signal is transmitted from the wiring 7c to the input module 3.

(時刻t01−t02)
時刻t01−t02では、検出対象9が図11(a)で示すように検出で、かつ、自己診断結果は、図11(b)で示すように正常である。また入力モジュール3からはPLC連動入力INとして図11(c)で示すようにローレベル(Lo)電圧が入力され、自己診断モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対して、自己診断の結果、正常であることを示すハイレベル(Hi)信号を出力し、これにより、出力トランジスタTR1はオンし、結果、出力部21cからは図11(d)で示すように自己診断結果が、正常であることを示すハイレベル(Hi)信号がセンサ出力OUTとして出力される。このハイレベル(Hi)信号は配線7cから入力モジュール3に伝送される。
(Time t01-t02)
From time t01 to t02, the detection target 9 is detected as shown in FIG. 11A, and the self-diagnosis result is normal as shown in FIG. 11B. Further, as shown in FIG. 11C, a low level (Lo) voltage is input from the input module 3 as the PLC interlocking input IN, and the self-diagnosis mode is set. In this state, the CPU 17 outputs a high level (Hi) signal indicating that it is normal as a result of self-diagnosis from the fifth output port OUT5 to the output circuit 19, whereby the output transistor TR1 is turned on. As a result, as shown in FIG. 11D, the output unit 21c outputs a high level (Hi) signal indicating that the self-diagnosis result is normal as the sensor output OUT. This high level (Hi) signal is transmitted from the wiring 7 c to the input module 3.

(時刻t02−t1)
時刻t02−t1では、検出対象9が図11(a)で示すように検出で、かつ、自己診断結果は、図11(b)で示すように正常である。また入力モジュール3からはPLC連動入力INとして図11(c)で示すようにハイレベル(Hi)電圧が入力され、検出モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対してハイレベル(Hi)信号を出力し、これにより、出力トランジスタTR1はオンし、結果、出力部21cからは図11(d)で示すように検出対象近接検出を示すローレベル(Lo)信号がセンサ出力OUTとして出力される。配線7cから入力モジュール3にこの信号が伝送される。
(Time t02-t1)
At time t02-t1, the detection target 9 is detected as shown in FIG. 11A, and the self-diagnosis result is normal as shown in FIG. 11B. Further, as shown in FIG. 11C, a high level (Hi) voltage is input from the input module 3 as the PLC interlocking input IN, and the detection mode is set. In this state, the CPU 17 outputs a high level (Hi) signal from the fifth output port OUT5 to the output circuit 19, whereby the output transistor TR1 is turned on. As a result, the output unit 21c receives FIG. 11 (d). A low level (Lo) signal indicating the detection target proximity detection is output as the sensor output OUT as shown in FIG. This signal is transmitted from the wiring 7c to the input module 3.

(時刻t1−t11)
時刻t1−t11では、検出対象9が図11(a)で示すように検出で、かつ、自己診断結果は、図11(b)で示すように異常である。また入力モジュール3からはPLC連動入力INとして図11(c)で示すようにハイレベル(Hi)電圧が入力され、検出モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対してハイレベル(Hi)信号を出力し、これにより、出力トランジスタTR1はオンし、結果、出力部21cからは図11(d)で示すように検出対象近接検出を示すローレベル(Lo)信号がセンサ出力OUTとして出力される。配線7cから入力モジュール3にこの信号が伝送される。
(Time t1-t11)
At time t1-t11, the detection target 9 is detected as shown in FIG. 11 (a), and the self-diagnosis result is abnormal as shown in FIG. 11 (b). Further, as shown in FIG. 11C, a high level (Hi) voltage is input from the input module 3 as the PLC interlocking input IN, and the detection mode is set. In this state, the CPU 17 outputs a high level (Hi) signal from the fifth output port OUT5 to the output circuit 19, whereby the output transistor TR1 is turned on. As a result, the output unit 21c receives FIG. 11 (d). A low level (Lo) signal indicating the detection target proximity detection is output as the sensor output OUT as shown in FIG. This signal is transmitted from the wiring 7c to the input module 3.

(時刻t11−t2)
時刻t11−t2では、検出対象9が図11(a)で示すように検出で、かつ、自己診断結果は、図11(b)で示すように異常である。また入力モジュール3からはPLC連動入力INとして図11(c)で示すようにローレベル(Lo)電圧が入力され、自己診断モードとされている。この状態では、CPU17は第5出力ポートOUT5から出力回路19に対してローレベル(Lo)信号を出力し、これにより、出力トランジスタTR1はオンし、結果、出力部21cからは図11(d)で示すように自己診断結果が異常であることを示すローレベル(Lo)信号がセンサ出力OUTとして出力される。配線7cから入力モジュール3にこの信号が伝送される。
(Time t11-t2)
At time t11-t2, the detection target 9 is detected as shown in FIG. 11A, and the self-diagnosis result is abnormal as shown in FIG. 11B. Further, as shown in FIG. 11C, a low level (Lo) voltage is input from the input module 3 as the PLC interlocking input IN, and the self-diagnosis mode is set. In this state, the CPU 17 outputs a low level (Lo) signal from the fifth output port OUT5 to the output circuit 19, whereby the output transistor TR1 is turned on. As a result, the output unit 21c receives FIG. 11 (d). As shown in FIG. 4, a low level (Lo) signal indicating that the self-diagnosis result is abnormal is output as the sensor output OUT. This signal is transmitted from the wiring 7c to the input module 3.

(時刻t2以降)
時刻t2以降は、その直前の近接センサの自己診断結果が異常であるので、そのことを示すローレベル(Lo)信号が出力される。配線7cから入力モジュール3にこの信号が伝送される。
(After time t2)
After time t2, since the immediately preceding self-diagnosis result of the proximity sensor is abnormal, a low level (Lo) signal indicating this is output. This signal is transmitted from the wiring 7c to the input module 3.

以上のように本各実施の形態では、検出対象の近接有無の検出と、自己診断とを示す信号をPLCに伝送するのに、単一の配線で伝送することができ、配線を簡素化することができる。   As described above, in each of the embodiments, a signal indicating the detection of the proximity of a detection target and a self-diagnosis signal can be transmitted to the PLC, so that the wiring can be simplified. be able to.

なお、本発明では、その趣旨を逸脱しない範囲で、複数の実施の形態における各構成要素を任意に組み合わせてもよい。   In the present invention, the constituent elements in the plurality of embodiments may be arbitrarily combined without departing from the spirit of the invention.

1 PLC
3 入力モジュール(信号受け側)
5 近接センサ
7 配線(7a 電源配線、7b 接地配線、7c 出力配線)
9 検出対象
11 電源回路
13 発振回路
15 整流平滑回路
17 CPU(制御回路)
19 出力回路
1 PLC
3 Input module (signal receiving side)
5 Proximity sensor 7 wiring (7a power wiring, 7b ground wiring, 7c output wiring)
9 Detection Target 11 Power Supply Circuit 13 Oscillation Circuit 15 Rectification Smoothing Circuit 17 CPU (Control Circuit)
19 Output circuit

Claims (9)

信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
上記各信号のうち、
第1信号についてはそのレベルを検出対象の検出と非検出とに応じて少なくとも2つのレベルに変えて単一配線に伝送出力すると共に、
第2信号については自己診断結果が正常時は上記2つのレベルのうちのいずれか一方のレベルで、また、異常時はこれらレベルとは別のレベルで変換して上記単一配線に伝送出力することが可能となっている、
ことを特徴とする近接センサ。
Proximity sensor that transmits and outputs a first signal related to the proximity of the detection target and a second signal related to whether the sensor state is normal or abnormal through a wiring connected to the signal receiving side In
Of the above signals,
For the first signal, the level is changed to at least two levels according to detection and non-detection of the detection target, and transmitted to a single wiring, and then output.
For the second signal, when the self-diagnosis result is normal, it is converted at one of the above two levels, and when abnormal, it is converted at a level different from these levels and transmitted to the single wiring. Is possible,
Proximity sensor characterized by the above.
上記レベルは電圧レベルである、ことを特徴とする請求項1に記載の近接センサ。   The proximity sensor according to claim 1, wherein the level is a voltage level. 上記第1信号と、第2信号とを入力ポートに入力すると共に、上記第1、第2信号を論理的に組み合わせ、その組み合わせに対応して論理信号を少なくとも2つの出力ポートから出力する制御回路と、
上記制御回路の2つの出力ポートから出力される論理信号に対応して上記各信号を電圧レベルが異なる信号に変換すると共に、この変換した各信号を出力する出力回路と、
を含む、
ことを特徴とする請求項2に記載の近接センサ。
A control circuit for inputting the first signal and the second signal to an input port, logically combining the first and second signals, and outputting a logic signal from at least two output ports corresponding to the combination. When,
An output circuit for converting each signal into a signal having a different voltage level corresponding to a logic signal output from two output ports of the control circuit, and outputting the converted signals;
including,
The proximity sensor according to claim 2.
上記レベルは電流レベルである、ことを特徴とする請求項1に記載の近接センサ。   The proximity sensor according to claim 1, wherein the level is a current level. 上記第1信号と、第2信号とを入力ポートに入力すると共に、上記第1、第2信号を論理的に組み合わせ、その組み合わせに対応して論理信号を出力ポートから出力する制御回路と、
上記制御回路の出力ポートから出力される論理信号に対応して上記各信号を電流レベルが異なる信号に変換すると共に、この変換した各信号を出力する出力回路と、
を含む、
ことを特徴とする請求項4に記載の近接センサ。
A control circuit for inputting the first signal and the second signal to an input port, logically combining the first and second signals, and outputting a logic signal from the output port corresponding to the combination;
An output circuit for converting each signal into a signal having a different current level corresponding to a logic signal output from the output port of the control circuit, and outputting the converted signals;
including,
The proximity sensor according to claim 4.
信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
上記各信号のうち、
第1信号については検出対象の検出と非検出とに応じて少なくとも2つのコード化信号に変換して単一配線に伝送出力すると共に、
第2信号については自己診断結果が正常時は上記2つのコード化信号のうちのいずれか一方のコード化信号で、また、異常時はこれらコード化信号とは異なったコード化信号または非コード化信号に変換して上記単一配線に伝送出力することが可能となっている、
ことを特徴とする近接センサ。
Proximity sensor that transmits and outputs a first signal related to the proximity of the detection target and a second signal related to whether the sensor state is normal or abnormal through a wiring connected to the signal receiving side In
Of the above signals,
The first signal is converted into at least two coded signals according to detection and non-detection of the detection target, and is transmitted and output to a single wiring.
As for the second signal, when the self-diagnosis result is normal, it is a coded signal of one of the above two coded signals, and when abnormal, the coded signal is different from these coded signals or is not coded. It is possible to convert it to a signal and transmit it to the single wiring.
Proximity sensor characterized by the above.
信号受け側に対しそれに接続した配線を介して検出対象の近接有無に関わる第1信号と、センサ状態を自己診断しそのセンサ状態が正常か異常かに関わる第2信号とを伝送出力する近接センサにおいて、
信号受け側からの入力に連動して検出対象検出モードか自己診断モードかのいずれかのモードで動作し、各モードにおいて、検出対象検出か非検出か、あるいは、センサ状態の自己診断が正常診断結果か異常診断結果かに応じて信号レベルを変化させる、ようになっていることを特徴とする近接センサ。
Proximity sensor that transmits and outputs a first signal related to the proximity of the detection target and a second signal related to whether the sensor state is normal or abnormal through a wiring connected to the signal receiving side In
Operates in either the detection target detection mode or self-diagnosis mode in conjunction with the input from the signal receiving side. In each mode, detection target detection or non-detection, or the sensor status self-diagnosis is normal diagnosis A proximity sensor, wherein the signal level is changed according to whether the result is an abnormality diagnosis result.
上記信号受け側が、プログラマブルコントローラである、ことを特徴とする請求項1ないし7のいずれかに記載の近接センサ。   The proximity sensor according to claim 1, wherein the signal receiving side is a programmable controller. 上記請求項1ないし7のいずれかに記載の近接センサに対してセンサ出力の入力に応答可能にした、ことを特徴とするI/Oモジュール。   8. An I / O module characterized in that the proximity sensor according to any one of claims 1 to 7 can respond to an input of a sensor output.
JP2010116638A 2010-05-20 2010-05-20 Proximity sensor and i/o module Pending JP2011244348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010116638A JP2011244348A (en) 2010-05-20 2010-05-20 Proximity sensor and i/o module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010116638A JP2011244348A (en) 2010-05-20 2010-05-20 Proximity sensor and i/o module

Publications (1)

Publication Number Publication Date
JP2011244348A true JP2011244348A (en) 2011-12-01

Family

ID=45410513

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010116638A Pending JP2011244348A (en) 2010-05-20 2010-05-20 Proximity sensor and i/o module

Country Status (1)

Country Link
JP (1) JP2011244348A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04295998A (en) * 1991-03-26 1992-10-20 Matsushita Electric Works Ltd Sensor with self-diagnostic function
JPH0548421A (en) * 1991-08-08 1993-02-26 Fuji Electric Co Ltd Proximity switch
JPH11126107A (en) * 1997-10-24 1999-05-11 Omron Corp Signal output equipment, signal input equipment, and signal input/output system between equipments

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04295998A (en) * 1991-03-26 1992-10-20 Matsushita Electric Works Ltd Sensor with self-diagnostic function
JPH0548421A (en) * 1991-08-08 1993-02-26 Fuji Electric Co Ltd Proximity switch
JPH11126107A (en) * 1997-10-24 1999-05-11 Omron Corp Signal output equipment, signal input equipment, and signal input/output system between equipments

Similar Documents

Publication Publication Date Title
AU2014212834B2 (en) Programmable interface circuit for coupling field devices to process controllers
US20010056516A1 (en) Fieldbus connecting system for actuators or sensors
EP0546855A1 (en) Multi-mode input/output circuit and module, and process control system using same
JP5384600B2 (en) PLC system
US20070150625A1 (en) Automation device
US8878685B2 (en) Field device
JP5802104B2 (en) Positioner
US7447552B2 (en) Common transmission protocol system for an automation device
US10379144B2 (en) Arrangement having two redundant modules
JP4758276B2 (en) Power supply system and system power supply
US7864675B2 (en) Automation device
US7359812B2 (en) Automation device
JP2011244348A (en) Proximity sensor and i/o module
JP2014068466A (en) Charge device
CN105443286A (en) Actuator/sensor device
CN113661688B (en) Circuit for connecting a measuring transducer
JP5546891B2 (en) Wiring system for plural proximity sensors and PLC and relay box used in this system
JP6734752B2 (en) Encoder automatic judgment device
JP3409111B2 (en) Signal output device, signal input device and signal input / output system between devices
JP2001133502A (en) Abnormality detecting device
JP5706213B2 (en) Positioner
US6590494B2 (en) Electronic device
KR101351529B1 (en) Univeral peripheral interface, method for interface and robot controller using the same
WO2017081759A1 (en) A/d conversion device
JP5507413B2 (en) Sensor base and monitoring system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130510

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140131

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140204

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20140729