JP2022170642A - Analog signal input device for disconnection detection, and control system - Google Patents

Analog signal input device for disconnection detection, and control system Download PDF

Info

Publication number
JP2022170642A
JP2022170642A JP2021147410A JP2021147410A JP2022170642A JP 2022170642 A JP2022170642 A JP 2022170642A JP 2021147410 A JP2021147410 A JP 2021147410A JP 2021147410 A JP2021147410 A JP 2021147410A JP 2022170642 A JP2022170642 A JP 2022170642A
Authority
JP
Japan
Prior art keywords
input
analog signal
output
analog
unit
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
JP2021147410A
Other languages
Japanese (ja)
Inventor
広志 遠藤
Hiroshi Endo
里保 内沢
Riho Uchisawa
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.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to US17/729,379 priority Critical patent/US20220352707A1/en
Publication of JP2022170642A publication Critical patent/JP2022170642A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing Of Short-Circuits, Discontinuities, Leakage, Or Incorrect Line Connections (AREA)

Abstract

To provide an analog signal input device for disconnection detection capable of detecting disconnection of a sensor connected to an analog signal input device.SOLUTION: In the analog signal input device, analog signals are differential input from a set of input terminals to which a sensor is connected via a first input line, and the analog signals are received by the first input part in which a first resistor is interposed between the first input lines and the same. The analog signal input device converts the analog signals which are read through a second input part having the same configuration as the first input part into a form of a multiple-bit digital signal and outputs the same. Upon receiving a prescribed instruction, a current is supplied to the power line from one of the pair of first input lines, and when the output of the second input part is greater than or equal to a predetermined threshold when the output of the first input part rises, it is determined as disconnection.SELECTED DRAWING: Figure 1

Description

本開示は、断線検出を行なうアナログ信号入力装置およびこれを用いた制御システムに関する。 The present disclosure relates to an analog signal input device that detects disconnection and a control system using the same.

制御対象の状態を記録するデータロガーや、制御対象を所定のシーケンスで制御するPLCといった制御装置では、制御対象の状態を検出する入力装置が接続される。入力装置は、制御対象の状態を検出するためのセンサに接続され、センサからの信号を増幅したり信号を整形したりして、最終的にはデジタル信号に変換する。センサとしては、単に電圧値や電流値といった電気信号を検出するものもあれば、温度を検出する熱電対やサーミスタ、流量を検出する流量計、重さや歪みを検出するストレインゲージ、磁束量を検出するホール素子などの磁気センサ、電波強度や周波数などを検出するアンテナプローブなど、様々な状態量を検出し、これを電気信号にして出力するものが知られている。 An input device for detecting the state of the controlled object is connected to a control device such as a data logger that records the state of the controlled object and a PLC that controls the controlled object in a predetermined sequence. The input device is connected to a sensor for detecting the state of the controlled object, amplifies the signal from the sensor, shapes the signal, and finally converts it to a digital signal. Some sensors simply detect electrical signals such as voltage and current values, thermocouples and thermistors that detect temperature, flowmeters that detect flow rate, strain gauges that detect weight and strain, and the amount of magnetic flux. There are known devices that detect various state quantities, such as magnetic sensors such as Hall elements, antenna probes that detect radio wave intensity, frequency, etc., and convert them into electric signals and output them.

各種センサからのアナログ信号は、入力装置に備えられたアナログ・デジタルコンバータ(以下、ADCとも呼ぶ)により、制御装置が扱いやすい複数ビットのデジタル信号に変換される。センサと入力装置とを接続が何らかの不具合により断線した状態(オープンワイヤともいう)になると、制御装置は、制御対象の状態を正確に把握することができなくなるから、オープンワイヤの発生を検出する必要がある。このため、従来から、種々の断線検出の手法が提案されている。例えば特許文献1には、検出装置側からセンサに微少電流を流し、検出装置とセンサとの間のワイヤの断線を検出する構成が開示されている。また、非特許文献1に示すように、ADC自体に断線検出のための機能を備えたものも提案されている。こうしたADCでは、定電流源を用意し、センサが接続された入力端子間の電圧がオープンワイヤ時の電圧と区別できない状態になると、入力端子間に定電流源からの電流を流し、入力端子間の電圧上昇の挙動から断線の有無を検出する断線検出処理を行なう。一般に、センサなどの出力インピーダンスは低く、センサが接続される入力装置の入力インピーダンスは高いので、センサとの接続が正常になされているか断線しているかによって、定電流源による入力端子間の電圧上昇には違いが生じる。この違いを判別して、センサと入力装置との間の断線検出を行なう。 Analog signals from various sensors are converted into multi-bit digital signals that can be easily handled by a control device by an analog-to-digital converter (hereinafter also referred to as ADC) provided in the input device. If the connection between the sensor and the input device becomes disconnected due to some problem (also called an open wire), the control device cannot accurately grasp the state of the controlled object, so it is necessary to detect the occurrence of an open wire. There is For this reason, conventionally, various disconnection detection methods have been proposed. For example, Japanese Unexamined Patent Application Publication No. 2002-100002 discloses a configuration in which a minute current is passed from the detection device side to a sensor to detect disconnection of a wire between the detection device and the sensor. Also, as shown in Non-Patent Document 1, an ADC has been proposed in which the ADC itself has a function for detecting disconnection. In such an ADC, a constant current source is prepared, and when the voltage between the input terminals to which the sensor is connected becomes indistinguishable from the voltage at the time of open wire, the current from the constant current source flows between the input terminals, Disconnection detection processing is performed to detect the presence or absence of disconnection based on the behavior of the voltage rise in . Generally, the output impedance of a sensor is low and the input impedance of the input device to which the sensor is connected is high. makes a difference. This difference is discriminated to detect disconnection between the sensor and the input device.

特開2012-8014号公報JP 2012-8014 A

アナログ・デバイセズ株式会社製 アナログ・デジタル変換器 AD7124-4 データシートAnalog-to-digital converter AD7124-4 data sheet manufactured by Analog Devices, Inc.

しかしながら、こうした断線検出の手法では、断線検出のためにセンサを用いた測定の精度が低下したり、断線検出を行なう際にセンサ出力を読み取れなくなったりするという問題があった。例えば特許文献1の技術では、センサに微少電流を流すので、この電流値の変動によって検出精度が影響を受けてしまう。また、非特許文献1の技術では、断線検出をしている間、入力端子間には定電流源が接続されるので、断線が生じているか否かによらず、入力端子間の電圧は上昇し、断線検出が終わるまで、センサの出力値を読み取ることができない。更に、非特許文献1のADCに備えられている定電流源の供給電流は、0,5~4μA程度なので、入力端子間の電圧が断線か否かの判断が可能となる値に上昇するまでの時間が長く、センサの出力を計測できない期間が数秒に及ぶことがあり得る。生産設備では、センサの出力が秒単位で読み取れないという状態が生じることは、許されない場合が多い。 However, such a disconnection detection method has problems that the accuracy of measurement using a sensor is lowered for disconnection detection, and that the sensor output cannot be read when performing disconnection detection. For example, in the technique disclosed in Patent Document 1, since a minute current is passed through the sensor, the detection accuracy is affected by fluctuations in this current value. In the technique of Non-Patent Document 1, since a constant current source is connected between the input terminals while disconnection is being detected, the voltage between the input terminals rises regardless of whether a disconnection has occurred or not. However, the sensor output value cannot be read until disconnection detection is completed. Furthermore, since the supply current of the constant current source provided in the ADC of Non-Patent Document 1 is about 0.5 to 4 μA, the voltage between the input terminals rises to a value that enables determination of whether or not there is a disconnection. is long, and the period during which the output of the sensor cannot be measured may extend to several seconds. In production facilities, it is often unacceptable to have a situation in which the output of a sensor cannot be read in seconds.

本開示は、以下の形態又は適用例として実現することが可能である。 The present disclosure can be implemented as the following forms or application examples.

(1)本開示の第1の態様は、アナログ信号入力装置としての態様である。このアナログ信号入力装置は、センサが接続される一組の入力端子と、前記入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、前記第1入力ライン間に第1抵抗器が介装された第1入力部と、前記入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、前記第2入力ライン間に第2抵抗器が介装された第2入力部と、前記第1入力部および前記第2入力部を介して前記アナログ信号を個別に読み取って、前記アナログ信号を、複数ビットのデジタル信号の形態に変換して出力する信号出力部と、所定の指示を受けて動作し、前記一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、前記電流供給部からの電流供給を受けて、前記第1入力部の出力が上昇した際の前記第2入力部の出力が、予め定めた閾値以上であるか否かを判断し、判断結果を出力する判断部と、を備える。 (1) A first aspect of the present disclosure is an aspect as an analog signal input device. This analog signal input device includes a set of input terminals to which a sensor is connected, and a first input section that receives analog signals from the input terminals as differential inputs via a set of first input lines, A first input section in which a first resistor is interposed between the first input lines, and a second input section that receives analog signals from the input terminals as differential inputs via a set of second input lines. a second input section having a second resistor interposed between the second input lines, and reading the analog signal individually through the first input section and the second input section to obtain the analog a signal output unit that converts a signal into a multi-bit digital signal and outputs the signal; and a current that operates in response to a predetermined instruction and supplies current from one of the pair of first input lines to the power supply line. and determining whether or not the output of the second input section when the output of the first input section is increased by receiving the current supply from the current supply section is equal to or greater than a predetermined threshold. , and a determination unit that outputs a determination result.

このアナログ信号入力装置による断線検出の原理は、所定の指示を受けて、電流供給部が差動入力の第1入力ラインの一方から電源ライン(例えば接地側ライン)に電流を供給すると、この電流は第1入力ライン間に介装された第1抵抗器を流れ、第1入力部の出力が上昇し、この結果、入力端子において第1入力部の第1入力ラインと接続された第2入力部の第2入力ラインには、入力端子とセンサとの接続に断線が生じているか否かにより、異なる電圧が現われるというものである。第1入力ライン間には第1抵抗器が介装されており、電流供給部からの供給により、第1入力ライン間の電圧は上昇する。この電圧により第2入力ラインに電流が流れるが、この電流により第2入力ライン間に生じる電圧は、入力端子にセンサの内部抵抗が接続されているか否かにより異なる。 The principle of disconnection detection by this analog signal input device is that when a current supply unit supplies a current from one of the first input lines of the differential input to the power supply line (for example, the ground line) in response to a predetermined instruction, this current flows through a first resistor interposed between the first input lines, the output of the first input rises, as a result of which the second input is connected at the input terminal to the first input line of the first input. A different voltage appears on the second input line of the unit depending on whether or not the connection between the input terminal and the sensor is disconnected. A first resistor is interposed between the first input lines, and the voltage between the first input lines rises due to the supply from the current supply unit. This voltage causes a current to flow in the second input line, and the voltage generated by this current across the second input line varies depending on whether or not the internal resistance of the sensor is connected to the input terminal.

このように、アナログ信号をデジタル信号に変換して出力するアナログ信号入力装置において、アナログ信号を差動入力として受け付ける第1入力部と第2入力部とを備える構成を用いて、容易に断線検出を行なうことができる。アナログ信号を差動入力として受け付ける2つの入力部を有することで、アナログ信号を入力する構成の冗長性を高めた上で、これを利用して断線検出を行なうので、回路構成上の無駄を排することができる。 In this way, in the analog signal input device that converts an analog signal into a digital signal and outputs it, a disconnection can be easily detected by using a configuration including a first input section and a second input section that receive analog signals as differential inputs. can be done. By having two input sections for receiving analog signals as differential inputs, the redundancy of the configuration for inputting analog signals is increased, and disconnection detection is performed using this redundancy, eliminating waste in the circuit configuration. can do.

(2)本開示の第2の態様は、センサからのアナログ信号を入力しデジタル信号に変換して出力するアナログ信号入力装置と、前記アナログ信号入力装置と接続されてシステムの制御行なう制御装置と、を備えた制御システムとしての構成である。この制御システムでは、アナログ信号入力装置は、前記センサが接続される一組の入力端子と、前記入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、前記第1入力ライン間に第1抵抗器が介装された第1入力部と、前記入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、前記第2入力ライン間に第2抵抗器が介装された第2入力部と、前記第1入力部および前記第2入力部を介して前記アナログ信号を個別に読み取って、前記アナログ信号を、複数ビットのデジタル信号の形態に変換して、前記制御装置に出力する信号出力部と、前記制御装置からの所定の指示を受けて動作し、前記一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、前記電流供給部からの電流供給を受けて、前記第1入力部の出力が上昇した際の前記第2入力部の出力が、予め定めた閾値以上であるか否かを判断する判断部と、前記判断結果を、前記制御装置に出力する判断結果報知部と、を備え、前記制御装置は、前記アナログ信号入力装置から受け取った前記センサの検出値に対応した前記デジタル信号の大きさが、前記センサが前記アナログ信号入力装置の前記入力端子に接続されていない場合と区別できない状態であることを条件の1つとして、前記所定の指示を、前記アナログ信号入力装置に出力する指示出力部と、前記アナログ信号入力装置から受け取った前記判断結果が、前記センサと前記アナログ信号入力装置の前記入力端子との接続が断線していないと判断できない非正常状態である場合には、外部に制御信号を出力する制御信号出力部と、を備えるものとしてよい。 (2) A second aspect of the present disclosure includes an analog signal input device that inputs an analog signal from a sensor, converts it to a digital signal and outputs it, and a control device that is connected to the analog signal input device and controls the system. , is a configuration as a control system. In this control system, the analog signal input device includes a set of input terminals to which the sensors are connected, and a first input that receives analog signals from the input terminals as differential inputs via a set of first input lines. a first input unit having a first resistor interposed between the first input lines; and receiving analog signals from the input terminals as differential inputs via a pair of second input lines. a second input section in which a second resistor is interposed between the second input lines; and the analog signal separately through the first input section and the second input section a signal output unit that reads and converts the analog signal into a form of a multi-bit digital signal and outputs the signal to the control device; a current supply unit that supplies a current from one of the input lines to a power supply line; and an output of the second input unit when the output of the first input unit is increased by receiving the current supply from the current supply unit. is equal to or greater than a predetermined threshold value, and a determination result notification unit that outputs the determination result to the control device, and the control device receives the analog signal input device from the One of the conditions is that the magnitude of the digital signal corresponding to the detected value of the received sensor is indistinguishable from the case where the sensor is not connected to the input terminal of the analog signal input device. an instruction output unit that outputs the predetermined instruction to the analog signal input device; and a control signal output unit for outputting a control signal to the outside in the case of an abnormal state in which it cannot be determined that the state is not normal.

この制御システムでは、制御システムを構成する1つの装置であるアナログ信号入力装置での断線検出を、冗長性の高い構成において容易に行なうことができる。したがって、回路構成上の無駄を排することができる。また、制御システムを構成するアナログ信号入力装置とシステムの制御を行なう制御装置とが、協働して断線検出ができ、制御システムとしての信頼性を高めることができる。 In this control system, it is possible to easily detect disconnection in the analog signal input device, which is one of the devices constituting the control system, in a highly redundant configuration. Therefore, waste in terms of circuit configuration can be eliminated. In addition, the analog signal input device that constitutes the control system and the control device that controls the system can cooperate to detect disconnection, and the reliability of the control system can be enhanced.

第1実施形態のアナログ信号入力装置を含む制御システムを示す概略構成図。1 is a schematic configuration diagram showing a control system including an analog signal input device according to a first embodiment; FIG. 入力部の具体的な構成を示す回路図。FIG. 2 is a circuit diagram showing a specific configuration of an input section; 装置間のデータのやり取りを行なう通信パケットの形式を示す説明図。FIG. 4 is an explanatory diagram showing the format of a communication packet for exchanging data between devices; 装置間でやり取りされるパケットの一例を示す説明図。FIG. 4 is an explanatory diagram showing an example of packets exchanged between devices; 流量計測処理ルーチンを示すフローチャート。4 is a flowchart showing a flow rate measurement processing routine; 断線検出時の電流の流れるルートを示す説明図。FIG. 4 is an explanatory diagram showing a route through which current flows when disconnection is detected; 断線検出の様子を示すタイミングチャート。4 is a timing chart showing how disconnection is detected; 入力信号確認処理ルーチンを示すフローチャート。4 is a flowchart showing an input signal confirmation processing routine; 第2実施形態のアナログ信号入力装置を含む制御システムを示す概略構成図。FIG. 2 is a schematic configuration diagram showing a control system including an analog signal input device according to a second embodiment; 第2実施形態の流量計測処理ルーチンを示すフローチャート。8 is a flowchart showing a flow rate measurement processing routine of the second embodiment; 第3実施形態の流量計測処理ルーチンを示すフローチャート。9 is a flow chart showing a flow rate measurement processing routine of the third embodiment; 第3実施形態で追加した第3電圧取得判断処理の内容を示すフローチャート。FIG. 11 is a flowchart showing the details of third voltage acquisition determination processing added in the third embodiment; FIG. 第3実施形態における断線検出の様子を示すタイミングチャート。FIG. 11 is a timing chart showing how disconnection detection is performed in the third embodiment; FIG.

A.第1実施形態:
(A1)ハードウェア構成:
第1実施形態のアナログ信号入力装置40を含む制御システム20の構成を、図1に示す。この制御システム20は、システム全体の処理を司る制御装置30、アナログ信号の入力を受け付けるアナログ信号入力装置40、アクチュエータなどを駆動する出力装置80を、通信回線90を介して接続した構成を備える。図1では、1つの制御装置30に対して、1つのアナログ信号入力装置40および1つの出力装置80のみを示したが、実際には、デジタル信号の入力を受け付ける入力装置を含めて、複数の入力装置や、複数の出力装置が、制御システム20に含まれてよい。制御装置30は、PLC(プログラマブルロジックコントローラ)とも言う。
A. First embodiment:
(A1) Hardware configuration:
FIG. 1 shows the configuration of a control system 20 including the analog signal input device 40 of the first embodiment. The control system 20 includes a control device 30 that controls the processing of the entire system, an analog signal input device 40 that receives analog signal input, and an output device 80 that drives actuators and the like, all of which are connected via a communication line 90 . In FIG. 1, only one analog signal input device 40 and one output device 80 are shown for one control device 30, but in reality, a plurality of input devices including an input device for receiving digital signal input are shown. An input device and multiple output devices may be included in control system 20 . The control device 30 is also called a PLC (Programmable Logic Controller).

第1実施形態では、センサの一例として流量計11を、アナログ信号入力装置40に接続している。この例では、システム内の配管13内を流れる流体の流量を計測する流量計11からのアナログ信号を、アナログ信号入力装置40を用いて受け付けて、配管13内の流体の流量を計測する。アナログ信号入力装置40は、計測した流量に対応する信号を制御装置30に通信回線90を介して出力する。制御装置30は、流量に応じて、流量制御弁17の制御量を算出し、これを出力装置80に出力し、出力装置80によりアクチュエータ15を制御する。 In the first embodiment, the flow meter 11 is connected to the analog signal input device 40 as an example of the sensor. In this example, an analog signal input device 40 is used to receive an analog signal from a flowmeter 11 that measures the flow rate of the fluid flowing through the pipe 13 in the system, and the flow rate of the fluid inside the pipe 13 is measured. The analog signal input device 40 outputs a signal corresponding to the measured flow rate to the control device 30 via the communication line 90 . The control device 30 calculates the control amount of the flow control valve 17 according to the flow rate, outputs this to the output device 80 , and controls the actuator 15 with the output device 80 .

流量計11とアナログ信号入力装置40の入力端子50とは、ノイズの影響を受けにくいツイステッドペアケーブル19により接続している。これは、アクチュエータ15の接続でも同様である。もとより、平行ケーブルなど、他の形式の電線で接続してもよい。 The flow meter 11 and the input terminal 50 of the analog signal input device 40 are connected by a twisted pair cable 19 that is less susceptible to noise. This is the same for the connection of the actuator 15 as well. Of course, other types of wires such as parallel cables may be used for connection.

制御装置30は、周知のCPU31、メモリ32、通信部35、表示部37を備える。制御装置30は、通信部35により、通信回線90を介して、アナログ信号入力装置40や出力装置80とやり取りし、配管13を流れる流体の流量を初めとする各種の物量を制御する。 The control device 30 includes a known CPU 31 , memory 32 , communication section 35 and display section 37 . The control device 30 communicates with the analog signal input device 40 and the output device 80 via the communication line 90 by the communication unit 35 to control various quantities such as the flow rate of the fluid flowing through the pipe 13 .

アナログ信号入力装置40は、流量計11を接続する一組の入力端子50と、これに接続された第1入力部51および第2入力部52とを備える。また、アナログ信号入力装置40は、第1入力部51および第2入力部52から入力したアナログ信号をデジタル信号に変換して出力する信号出力部55、第1入力部51に定電流を供給する電流供給部57、アナログ信号入力装置40全体の制御を司るメモリ内蔵のCPU41、CPU41が実行するプログラムにより実現される断線検出の判断部43、通信回線90を介して他の装置とのやり取りを行なう通信部45、アナログ信号入力装置40全体に電力を供給する電源部47を備える。図1および他の図において、電源部47が出力する電力の電源ラインは、正電圧ラインVcc側を○印に横バーで示し、接地ラインGND側を下向き▽印により示す。 The analog signal input device 40 has a set of input terminals 50 for connecting the flow meter 11, and a first input section 51 and a second input section 52 connected thereto. Further, the analog signal input device 40 supplies a constant current to the signal output unit 55 and the first input unit 51 that convert analog signals input from the first input unit 51 and the second input unit 52 into digital signals and output the digital signals. A current supply unit 57, a CPU 41 with a built-in memory that controls the entire analog signal input device 40, a disconnection detection determination unit 43 realized by a program executed by the CPU 41, and communication with other devices via a communication line 90. A communication unit 45 and a power supply unit 47 that supplies power to the entire analog signal input device 40 are provided. In FIG. 1 and other figures, the positive voltage line Vcc side is indicated by a horizontal bar, and the ground line GND side is indicated by a downward ▽ mark.

CPU41は、信号出力部55や通信部45と接続されており、信号出力部55の出力するデジタル信号を読み取ることで、流量計11が計測した配管13内の流体の流量を読み取ることができる。また、その結果を、通信部45を介して制御装置30のCPU31に伝えたり、CPU31からの指示を受けて断線検出を行なって、その結果をCPU31に報知したりすることができる。アナログ信号入力装置40は、1つの入力端子50に入力するアナログ信号を、第1,第2入力部51,52とアナログ・デジタル変換器ADC1,ADC2を介して、つまり同じアナログ信号を2系統のハードウェアで扱うことができる。このような1つのアナログ信号を2系統で扱えるようにしているのは、ハードウェアを二重化して、その冗長性を高め、1つの入力系統に故障などが生じても、他方の入力系統により流量計測を継続できる状態を確保し、システムの安全性を高めるためである。第1入力部51や第2入力部52、信号出力部55の構成は、後で詳述する。こうした二重化は、入力される全てのアナログ信号に対して行なっているが、もとよりシステムにおけるアナログ信号の重要性を格付けして、システムの安全性の確保のために、ランクの高いアナログ信号を二重化し、安全性に関わらない、あるいは関わる程度の低いアナログ信号については、二重化しないといった対応も可能である。更に、安全性を高めるために、三重化以上の多重化を行なってもよい。 The CPU 41 is connected to the signal output section 55 and the communication section 45 , and can read the flow rate of the fluid in the pipe 13 measured by the flow meter 11 by reading the digital signal output by the signal output section 55 . Further, the result can be transmitted to the CPU 31 of the control device 30 via the communication unit 45, or disconnection detection can be performed in response to an instruction from the CPU 31, and the result can be notified to the CPU 31. An analog signal input device 40 receives an analog signal input to one input terminal 50 via first and second input sections 51 and 52 and analog/digital converters ADC1 and ADC2, that is, the same analog signal is input to two systems. It can be handled by hardware. The reason why such one analog signal can be handled by two systems is that the hardware is duplicated to increase its redundancy, and even if a failure occurs in one input system, the flow rate will be controlled by the other input system. This is to ensure a state in which measurement can be continued and to enhance the safety of the system. The configurations of the first input section 51, the second input section 52, and the signal output section 55 will be described in detail later. This kind of duplication is applied to all analog signals that are input, but of course the importance of analog signals in the system is graded, and in order to ensure the safety of the system, analog signals with a high rank are duplicated. It is also possible to avoid duplicating analog signals that do not or have a low degree of safety concern. In addition, triplex or higher multiplexing may be performed to increase security.

出力装置80は、装置全体の制御を司るCPU81、制御に必要なプログラムやデータを保存するメモリ82、外部の機器に対する駆動信号を出力する出力部85、通信回線90を介した通信を行なう通信部87を備える。CPU81は、メモリ82に記憶したプログラマブルを実行することで、出力部85を介した外部機器、例えば流量制御弁17に結合されたアクチュエータ15を駆動する。アクチュエータ15としては、モータやソレノイドなど、種々のデバイスが採用可能である。また、CPU81は、通信部87を介して、制御装置30とやり取り可能であり、制御装置30からの指示を受けたり、制御装置30に出力装置80の現在のステータスを伝えたりできる。 The output device 80 includes a CPU 81 that controls the entire device, a memory 82 that stores programs and data necessary for control, an output unit 85 that outputs driving signals to external devices, and a communication unit that performs communication via a communication line 90. 87. The CPU 81 executes the programmable program stored in the memory 82 to drive the actuator 15 coupled to the external device such as the flow control valve 17 via the output section 85 . Various devices such as a motor and a solenoid can be used as the actuator 15 . Also, the CPU 81 can communicate with the control device 30 via the communication unit 87 , receive instructions from the control device 30 , and transmit the current status of the output device 80 to the control device 30 .

つぎに、図2を用いて、アナログ信号入力装置40の回路構成について詳しく説明する。アナログ信号入力装置40は複数のアナログ信号を入力可能なモジュールであるが、図では、1つのアナログ信号を処理する構成のみを示した。アナログ信号入力装置40には、複数の入力用端子が設けられている。そのうちの1つの一組の入力端子50には、図1に示した流量計11からのツイステッドペアケーブル19が接続されている。アナログ信号入力装置40の内部では、この入力端子50には、2組の信号線61,62が接続されている。以下、これを第1入力ライン61,第2入力ライン62と呼ぶ。 Next, the circuit configuration of the analog signal input device 40 will be described in detail with reference to FIG. Although the analog signal input device 40 is a module capable of inputting a plurality of analog signals, only the configuration for processing one analog signal is shown in the figure. The analog signal input device 40 is provided with a plurality of input terminals. One of the input terminals 50 is connected to the twisted pair cable 19 from the flowmeter 11 shown in FIG. Inside the analog signal input device 40 , two pairs of signal lines 61 and 62 are connected to the input terminal 50 . Hereinafter, these are referred to as a first input line 61 and a second input line 62, respectively.

第1入力ライン61には、第1入力部51が接続され、第2入力ライン62には、第2入力部52が接続されている。第1入力部51と第2入力部52は、この実施形態では、全く同一の内部構成を備える。図において、符号Rを付して示されているボックスは抵抗器を示し、符号Cを付して示されているものはコンデンサを示す。 The first input section 51 is connected to the first input line 61 , and the second input section 52 is connected to the second input line 62 . The first input section 51 and the second input section 52 have exactly the same internal configuration in this embodiment. In the figure, boxes marked with R denote resistors, and boxes marked with C denote capacitors.

一組の第1入力ライン61の一方には、入力側から抵抗器R11、分圧回路65の第1分圧抵抗器RD1、ノイズ除去用の抵抗器R13,R14、オペアンプOP1が接続され、オペアンプOP1の出力は、ノイズ除去用の抵抗器R15を介してアナログ・デジタル変換器ADC1のプラス側入力端子I0+に接続されている。第1入力ライン61の他方には、入力側から抵抗器R21、ノイズ除去用の抵抗器R23,R24、オペアンプOP2が接続され、オペアンプOP2の出力は、ノイズ除去用の抵抗器R25を介してアナログ・デジタル変換器ADC1のマイナス側入力端子I0-に接続されている。分圧回路65の第2分圧抵抗器RD2は、第1分圧抵抗器RD1および抵抗器R13の接続点と第1入力ライン61の他方との間に介装されている。分圧回路65は、入力端子50に入力した電圧を、2つの抵抗器、つまり第1分圧抵抗器RD1と第2分圧抵抗器RD2とにより、RD1/(RD1+RD2)に分圧する。ここで、各符号RD1,RD2は、各抵抗器RD1,RD2の抵抗値である。分圧回路65は、センサ、ここでは流量計11の出力インピーダンスに対して十分に高い抵抗値、例えば100kΩ程度の抵抗器を用いて構成している。分圧回路65の分圧比は、特に限定はなく、1対100~100対1程度の範囲内であってもよい。分圧比は、入力端子50に入力される電圧と信号出力部55が受付可能な電圧とから定めればよい。 A resistor R11, a first voltage dividing resistor RD1 of the voltage dividing circuit 65, noise removing resistors R13 and R14, and an operational amplifier OP1 are connected to one of the pair of first input lines 61 from the input side. The output of OP1 is connected to the plus side input terminal I0+ of the analog-to-digital converter ADC1 via a noise removing resistor R15. A resistor R21, noise removing resistors R23 and R24, and an operational amplifier OP2 are connected to the other side of the first input line 61 from the input side.・Connected to the minus side input terminal I0- of the digital converter ADC1. The second voltage dividing resistor RD2 of the voltage dividing circuit 65 is interposed between the connection point of the first voltage dividing resistor RD1 and the resistor R13 and the other of the first input line 61. FIG. The voltage dividing circuit 65 divides the voltage input to the input terminal 50 into RD1/(RD1+RD2) by two resistors, that is, a first voltage dividing resistor RD1 and a second voltage dividing resistor RD2. Here, each symbol RD1 and RD2 is the resistance value of each resistor RD1 and RD2. The voltage dividing circuit 65 is configured using a resistor having a sufficiently high resistance value, for example, about 100 kΩ, with respect to the output impedance of the sensor, here the flow meter 11 . The voltage dividing ratio of the voltage dividing circuit 65 is not particularly limited, and may be in the range of about 1:100 to 100:1. The voltage division ratio may be determined from the voltage input to the input terminal 50 and the voltage that the signal output section 55 can accept.

図示するように、入力端子50に入力される流量計11からの一組の信号線は、第1入力部51の一組の第1入力ライン61に接続されている。この第1入力ライン61には、上述した分圧回路65が介装されているから、流量計11からの信号の電圧が、第1入力部51が入力可能な電圧範囲を超えている場合、流量計11からの信号の電圧を、分圧回路65により、第1入力部51が入力可能な電圧範囲に低下させる。流量計11からの信号の電圧範囲が、第1入力部51が入力可能な電圧範囲に入っていれば、分圧回路65は必要ないので、第1分圧抵抗器RD1は除去されて抵抗器R11と抵抗器R13とは短絡され、第2分圧抵抗器RD2はそのまま第1入力ライン61間に接続される。第1入力ライン61は、第1入力部51に対しては差動入力となっている。したがって、流量計11からの入力信号は、電源ラインに対するノイズ(ディファレンシャルノイズ)の影響を受けにくくなっている。差動入力を構成する第1入力ライン61の他方は、抵抗器R21と抵抗器R23との接続点から、接地抵抗器RGおよびアナログ・デジタル変換器ADC1を介して接地ラインGNDに接続されている。 As shown, a set of signal lines from the flow meter 11 input to the input terminal 50 are connected to a set of first input lines 61 of the first input section 51 . Since the voltage dividing circuit 65 described above is interposed in the first input line 61, when the voltage of the signal from the flowmeter 11 exceeds the voltage range that the first input section 51 can input, The voltage of the signal from the flow meter 11 is reduced by the voltage dividing circuit 65 to a voltage range that the first input section 51 can input. If the voltage range of the signal from the flow meter 11 is within the voltage range that can be input by the first input section 51, the voltage dividing circuit 65 is not necessary, so the first voltage dividing resistor RD1 is removed and the resistor R11 and resistor R13 are short-circuited, and the second voltage dividing resistor RD2 is connected across the first input line 61 as it is. The first input line 61 is a differential input to the first input section 51 . Therefore, the input signal from the flowmeter 11 is less susceptible to noise (differential noise) on the power supply line. The other of the first input lines 61 forming the differential input is connected to the ground line GND from the connection point between the resistors R21 and R23 via the ground resistor RG and the analog/digital converter ADC1. .

ノイズ除去用の抵抗器R13,R14およびR23,R24の接続点には、コンデンサC1,C2が、接地ラインGNDとの間に介装されている。ノイズ除去用の抵抗器R14、R15のオペアンプOP1,OP2の入力側には、コンデンサC3が介装されている。また、ノイズ除去用の抵抗器R15、R25のアナログ・デジタル変換器ADC1の側には、コンデンサC4、C5が接地ラインGNDとの間に、コンデンサC6が入力端子I0+,I0-間に、それぞれ介装されている。 Capacitors C1 and C2 are interposed between the connection points of the noise removing resistors R13, R14 and R23, R24 and the ground line GND. A capacitor C3 is interposed on the input side of the operational amplifiers OP1 and OP2 of the noise removing resistors R14 and R15. On the analog-to-digital converter ADC1 side of the noise elimination resistors R15 and R25, capacitors C4 and C5 are interposed between the ground line GND and a capacitor C6 is interposed between the input terminals I0+ and I0-, respectively. is dressed.

オペアンプOP1,OP2は、いずれも入力インピーダンスを高くするためのボルテージフォロワとして構成されている。オペアンプOP1の入力端子+には、電流供給部57の電流ソース57Sが接続され、電流ソース57Sから流れ込んだ電流のシンク57Dは、接地抵抗器RGとアナログ・デジタル変換器ADC1の接地ラインGNDとの接続点に接続されている。オペアンプOP1の入力インピーダンスは高いので、電流ソース57Sからの電流は、オペアンプOP1に接続された抵抗器R14側の回路を介して流れる。電流供給部57からの電流の流れについては、後で説明する。 Both the operational amplifiers OP1 and OP2 are configured as voltage followers for increasing the input impedance. The input terminal + of the operational amplifier OP1 is connected to the current source 57S of the current supply unit 57, and the sink 57D of the current flowing from the current source 57S is connected between the ground resistor RG and the ground line GND of the analog/digital converter ADC1. Connected to the connection point. Since the input impedance of operational amplifier OP1 is high, current from current source 57S flows through the circuit on the side of resistor R14 connected to operational amplifier OP1. The current flow from the current supply section 57 will be described later.

第2入力部52は、上記の電流供給部57が接続されていない、という点を除いて、上述した第1入力部51と同一の内部構成を備えるので、詳しい説明は省略する。第2入力部52は、一組の第2入力ライン62を介して一組の入力端子50に接続されており、第2入力部52の出力は、アナログ・デジタル変換器ADC2のプラス側入力端子I0+およびマイナス側入力端子I0-に、それぞれ接続されている。 The second input section 52 has the same internal configuration as the first input section 51 described above, except that the current supply section 57 is not connected, so detailed description thereof will be omitted. The second input 52 is connected to the set of input terminals 50 via the set of second input lines 62, the output of the second input 52 being the positive input terminal of the analog-to-digital converter ADC2. They are connected to the I0+ and negative side input terminals I0-, respectively.

アナログ・デジタル変換器ADC1の出力と、アナログ・デジタル変換器ADC2の出力とは、CPU41に接続されている。本実施形態では、アナログ・デジタル変換器ADC1,ADC2とCPU41は、シリアル通信により接続されているが、所定ビット数のパラレル接続であっても差し支えない。第1入力部51,第2入力部52に接続された信号出力部55は、所定のインターバルで、入力端子50に接続された流量計11からのアナログ信号をデジタル信号に変換し、これをCPU41に出力する。CPU41はこれを読み取り、通信部45を介して、制御装置30に出力する。 The output of the analog/digital converter ADC1 and the output of the analog/digital converter ADC2 are connected to the CPU41. In this embodiment, the analog/digital converters ADC1, ADC2 and the CPU 41 are connected by serial communication, but they may be connected in parallel with a predetermined number of bits. The signal output unit 55 connected to the first input unit 51 and the second input unit 52 converts the analog signal from the flowmeter 11 connected to the input terminal 50 into a digital signal at a predetermined interval, and the CPU 41 output to The CPU 41 reads this and outputs it to the control device 30 via the communication section 45 .

アナログ信号入力装置40が制御装置30にデータを送信する場合を含め、各装置間のデータのやり取りは、通信回線90を介した通信により行なわれる。この通信の際に用いられるバケットの一例を、図3に示した。パケットの構成は、各装置間の取り決めなので、いかようにすることも可能である。なお、通信回線90をインターネットに準拠したいわゆるイントラネット(登録商標)とした場合には、トランスポート層とネットワーク層にTCP/IPのプロトコルを用い、アプリケーション層を各装置間で取り決めればよい。 Data exchange between devices, including the case where analog signal input device 40 transmits data to control device 30 , is performed by communication via communication line 90 . An example of a bucket used for this communication is shown in FIG. Since the configuration of the packet is determined by each device, it can be configured in any way. If the communication line 90 is a so-called intranet (registered trademark) conforming to the Internet, the TCP/IP protocol is used for the transport layer and the network layer, and the application layer may be determined between devices.

図3は、本実施形態で用いたパケットPTの一例を示す説明図である。バケットPTには、ヘッダ部HDとデータ部DTとが含まれており、ヘッダ部HDの先頭にはパケットの宛先DSが、ヘッダ部HDの末尾には、パケットPTに含まれるデータの数と種類を示す複数のビットDPが含まれている。データ部DTにおけるデータの数とは、所定ビット数のデータDDが何個含まれるかという情報である。またデータ種類とは、1つ1つのデータDDがテキストTX(8ビット)、数値Ns(8ビット)、数値Nw(16ビット)、浮動小数点数値Nf(32ビット)のいずれであるかを示す。 FIG. 3 is an explanatory diagram showing an example of the packet PT used in this embodiment. The packet PT includes a header portion HD and a data portion DT. At the beginning of the header portion HD is the destination DS of the packet, and at the end of the header portion HD is the number and type of data contained in the packet PT. contains a plurality of bits DP indicating The number of data in the data part DT is information as to how many data DD having a predetermined number of bits are included. The data type indicates whether each data DD is text TX (8 bits), numerical value Ns (8 bits), numerical value Nw (16 bits), or floating-point numerical value Nf (32 bits).

各パケットPTに含まれるデータ部DTは、先頭にデータの番号DNが置かれ、これに、3ビットのステータス・コマンドSCが続き、その後に、8ビット、16ビット、32ビットのいずれかのデータDDが配置される。データ部DTに含まれるデータの数や種類はパケットPT毎に異なるので、各パケットPTは可変長である。データ番号DNは、アナログ信号入力装置40であれば、扱っているアナログ信号の番号に対応している。例えば、アナログ信号入力装置40が4つのアナログ信号を入力可能であれば、データ番号DN1は、第1の入力端子50に接続されたアナログ信号を指し示している。 The data part DT included in each packet PT is headed by a data number DN, followed by a 3-bit status command SC, followed by 8-bit, 16-bit, or 32-bit data. DD is placed. Since the number and types of data contained in the data portion DT differ for each packet PT, each packet PT has a variable length. The data number DN corresponds to the analog signal number handled by the analog signal input device 40 . For example, if the analog signal input device 40 can input four analog signals, the data number DN1 indicates the analog signal connected to the first input terminal 50. FIG.

図4は、こうしたパケットPTとして、アナログ信号入力装置40から制御装置30に送信されるパケットPTAC、制御装置30からアナログ信号入力装置40に送信されるパケットPTCA、制御装置30から出力装置80に送信されるパケットPTCOの3種類を例示した。これらのパケットでは、3ビットのステータス・コマンドSCが含まれており、パケットの種類毎に、その内容が異なる。アナログ信号入力装置40から制御装置30に送信されるパケットPTACでは、このステータス・コマンドSCをフラグFとして表わす。フラグF=0の場合、データは正常に計測が行なわれていることを示し、データDDには計測された計測値がセットされる。フラグF=1の場合、センサの断線が検出されたことを示し、データDDは無効である。フラグF=2の場合は、入力端子50間が短絡していることが検出されたことを示し、この場合もデータDDは無効である。フラグF=3の場合は、計測結果が最大値を超えるオーバフロー(OF)が生じていることを示し、データは$FFがセットされる。 FIG. 4 shows, as such a packet PT, a packet PTAC transmitted from the analog signal input device 40 to the control device 30, a packet PTCA transmitted from the control device 30 to the analog signal input device 40, and a packet PTCA transmitted from the control device 30 to the output device 80. Three types of packet PTCOs that are used are exemplified. These packets contain a 3-bit status command SC, the content of which differs depending on the packet type. This status command SC is represented as a flag F in the packet PTAC transmitted from the analog signal input device 40 to the control device 30 . When the flag F=0, the data indicates that the measurement is normally performed, and the measured value is set in the data DD. If the flag F=1, it indicates that a disconnection of the sensor has been detected, and the data DD is invalid. When the flag F=2, it indicates that a short circuit between the input terminals 50 has been detected, and the data DD is invalid in this case as well. If the flag F=3, it indicates that the measurement result exceeds the maximum value (OF), and the data is set to $FF.

制御装置30からアナログ信号入力装置40に送信されるパケットPTCAでは、ステータス・コマンドSCをフラグGとして表わす。このパケットPTCAでは、データDDは基本的に無効である。フラグG=0は、アナログ信号入力装置40に対して、計測をそのまま継続する指示を示す。フラグG=1は、アナログ信号入力装置40に対して断線検出を行なう指示である。フラグG=2は、アナログ信号入力装置40に対して短絡検出を行なう指示である。フラグG=3は、アナログ信号入力装置40の停止の指示である。 In packet PTCA transmitted from control device 30 to analog signal input device 40, status command SC is represented as flag G. FIG. In this packet PTCA, data DD is basically invalid. A flag G=0 indicates an instruction to continue the measurement to the analog signal input device 40 . Flag G=1 is an instruction to detect disconnection to analog signal input device 40 . Flag G=2 is an instruction to detect a short-circuit to analog signal input device 40 . Flag G=3 is an instruction to stop the analog signal input device 40 .

制御装置30から出力装置80に送信されるパケットPTCOでは、ステータス・コマンドSCをフラグHとして表わす。このパケットPTCOでは、フラグH=0の場合、アクチュエータ15を目標値に制御する指示であることを示し、データDDは目標値である。フラグH=1の場合、アクチュエータ15を最小値に制御する指示であることを示し、データDDは制御対象の最小値である。フラグH=2の場合、アクチュエータ15を最大値に制御する指示であることを示し、データDDは制御対象の最大値である。フラグH=3の場合、アクチュエータ15に対する出力を直ちにオフにすることを示し、データDDは$00である。 In the packet PTCO transmitted from the control device 30 to the output device 80, the status command SC is represented as a flag H. In this packet PTCO, when the flag H=0, it indicates an instruction to control the actuator 15 to the target value, and the data DD is the target value. When the flag H=1, it indicates an instruction to control the actuator 15 to the minimum value, and the data DD is the minimum value to be controlled. When the flag H=2, it indicates an instruction to control the actuator 15 to the maximum value, and the data DD is the maximum value to be controlled. When the flag H=3, it indicates that the output to the actuator 15 is turned off immediately, and the data DD is $00.

(A2)流量計測処理:
以上の回路構成および各装置間のやり取りの方法を踏まえて、アナログ信号入力装置40が制御装置30と共に行なう流量計測処理について説明する。図5は、アナログ信号入力装置40が実行する流量計測処理ルーチンを示すフローチャートである。
(A2) Flow rate measurement process:
Based on the above-described circuit configuration and method of communication between devices, flow rate measurement processing performed by the analog signal input device 40 together with the control device 30 will be described. FIG. 5 is a flowchart showing a flow rate measurement processing routine executed by the analog signal input device 40. As shown in FIG.

まず、アナログ信号入力装置40が行なう流量計測処理について説明する。図5に示す処理は、通信回線90を介したパケットの受け取りが可能な所定のインターバルで繰り返し実行される。処理が開始されると、まず通信回線90からのバケットの読み取りを行ない、パケットの宛先を見て、制御装置30からアナログ信号入力装置40に宛てたパケットであると判断すると、これを読み取る処理を行なう(ステップS100)。本実施形態のアナログ信号入力装置40が制御装置30から受け取るパケットの内容は、図4にパケットPTCAとして示した通りである。 First, flow rate measurement processing performed by the analog signal input device 40 will be described. The processing shown in FIG. 5 is repeatedly executed at predetermined intervals at which packets can be received via the communication line 90 . When the process is started, the packet is first read from the communication line 90, and when it is determined that the packet is addressed to the analog signal input device 40 from the controller 30 by looking at the destination of the packet, the packet is read. (step S100). The contents of the packet received by the analog signal input device 40 of the present embodiment from the control device 30 are as shown as packet PTCA in FIG.

そこで、アナログ信号入力装置40は受け取ったパケットPTCAのデータ部DTに含まれる最初のデータ番号DN1から順に各データを見ていくが、特にステータス・コマンドSCであるフラグGをチェックする(ステップS110)。このフラグGは、既に説明したとおり、フラグGが値1であれば、断線検出の実施を制御装置30が指示したことを示す。そこで、フラグGが値1でなければ、断線検出は行なわず、アナログ信号入力装置40は、第1入力部51を介して入力した流量計11からの電圧信号をアナログ・デジタル変換器ADC1によりデジタル信号に変換して読み込む(ステップS120)。更に、これに続けて、アナログ信号入力装置40は、第2入力部52を介して入力した流量計11からの電圧信号をアナログ・デジタル変換器ADC2によりデジタル信号に変換して読み込む(ステップS122)。本実施形態では、1つのアナログ信号の入力に対して、これをデジタル信号にして読み取る入力系統を二重化しているので、同じ流量計11からの信号を2系統で読み込む。第1入力部51からアナログ・デジタル変換器ADC1を介して読み取る電圧を、第1電圧V1と呼び、第2入力部52からアナログ・デジタル変換器ADC2を介して読み取る電圧を、第2電圧V2と呼ぶ。CPU41は、第1電圧V1および第2電圧V2を、個別に読み取り(ステップS120,S122)、その後、第1電圧V1,第2電圧V2を送信する際のステータス・コマンドSCとして、フラグFに値0を設定する(ステップS155)。 Therefore, the analog signal input device 40 checks each data in order from the first data number DN1 included in the data portion DT of the received packet PTCA, and particularly checks the flag G, which is the status command SC (step S110). . As already described, this flag G indicates that the control device 30 has instructed execution of disconnection detection when the flag G has a value of 1 . Therefore, if the flag G is not 1, disconnection detection is not performed, and the analog signal input device 40 digitizes the voltage signal from the flow meter 11 input via the first input section 51 by the analog/digital converter ADC1. It is converted into a signal and read (step S120). Furthermore, following this, the analog signal input device 40 converts the voltage signal from the flow meter 11 input via the second input unit 52 into a digital signal by the analog/digital converter ADC2 and reads it (step S122). . In the present embodiment, since the input system for converting one analog signal into a digital signal and reading it is duplicated, the signal from the same flow meter 11 is read by two systems. A voltage read from the first input section 51 through the analog-to-digital converter ADC1 is called a first voltage V1, and a voltage read from the second input section 52 through the analog-to-digital converter ADC2 is called a second voltage V2. call. The CPU 41 reads the first voltage V1 and the second voltage V2 individually (steps S120 and S122), and then sets the flag F as a status command SC when transmitting the first voltage V1 and the second voltage V2. 0 is set (step S155).

他方、ステップS110の判断において、フラグGが値1であれば(ステップS110:「YES」)、断線検出の処理を行なうとして、ステップS125以下の処理を行なう。制御装置30がアナログ信号入力装置40に対して、フラグGを用いて断線検出を指示する処理については、後で詳しく説明するが、断線検出の指示は、アナログ信号入力装置40が検出している流量計11の出力が、断線が生じている場合の電圧と区別が付かない状況で出力される。したがって、断線検出を開始する際に第1の入力端子50に入力している信号の電圧はほぼ値0となっている。この状態で、アナログ信号入力装置40は、ステップS125以下の断線検出処理を開始すると、まず電流供給部57を動作させて、電流ソース57Sから定電流をシンク57Dに流す処理を行なう(ステップS125)。このときの電流の流れるルートRT1を、図6に示した。電流は、電流ソース57Sから、抵抗器R14,R13、第2分圧抵抗器RD2、接地抵抗器RGを介して、シンク57Dに流れ込む。シンク57Dは、装置全体の接地ラインGNDと接続されている。 On the other hand, if the value of the flag G is 1 in the judgment of step S110 (step S110: "YES"), the process of step S125 and subsequent steps is performed assuming that the disconnection detection process is to be performed. The processing in which the control device 30 instructs the analog signal input device 40 to detect disconnection using the flag G will be described in detail later, but the analog signal input device 40 detects the instruction to detect disconnection. The output of the flow meter 11 is output in a state indistinguishable from the voltage when disconnection occurs. Therefore, the voltage of the signal input to the first input terminal 50 is approximately zero when the disconnection detection is started. In this state, when analog signal input device 40 starts disconnection detection processing in step S125 and subsequent steps, it first operates current supply unit 57 to perform processing for supplying a constant current from current source 57S to sink 57D (step S125). . A route RT1 through which current flows at this time is shown in FIG. Current flows from current source 57S through resistors R14, R13, second voltage divider resistor RD2, and ground resistor RG into sink 57D. The sink 57D is connected to the ground line GND of the entire device.

電流供給部57は、数mA以上の電流を供給可能なので、コンデンサC1~C3や第1入力ライン61の浮遊容量などが存在するものの、第2分圧抵抗器RD2の両端の第1電圧V1は短時間のうちに上昇し、電流供給部57が供給する定電流Icにより、
Vop=RD2・Ic
となる。この様子を、図7に示した。図では、断線がない場合と、断線があって流量計11が第1の入力端子50に接続されていない場合(オープンワイヤ)とを並べて描いたが、いずれの場合でも、第1入力部51を介してアナログ・デジタル変換器ADC1の検出結果は、断線検出の期間が開始されると速やかに電圧Vopとなる。そこで、第1入力部51を介した第1電圧V1を読み取り(図7に示したタイミングt1)、この第1電圧V1が、断線検出時の電圧Vopとなれば、第2入力部52側の電圧を読取可能なタイミングになったと判断し(ステップS131:「YES」)、この状態の第2入力部52側の電圧を、図7に示したタイミングt2で、アナログ・デジタル変換器ADC2を介して取得する(ステップS132)。この電圧は、断線検出をしていなければ、上述した第2電圧V2に相当するが、断線検出を行なう際に入力端子50に入力している信号の電圧はほぼ値0であり、断線が生じている場合でも、第1電圧V1のようには上昇しない。このためこれを第2微小電圧V2dと呼ぶ。
Since the current supply unit 57 can supply a current of several mA or more, the first voltage V1 across the second voltage dividing resistor RD2 is Due to the constant current Ic that rises in a short time and is supplied by the current supply unit 57,
Vop=RD2·Ic
becomes. This state is shown in FIG. In the figure, the case where there is no disconnection and the case where there is disconnection and the flowmeter 11 is not connected to the first input terminal 50 (open wire) are drawn side by side. Via, the detection result of the analog-to-digital converter ADC1 quickly becomes the voltage Vop when the disconnection detection period is started. Therefore, the first voltage V1 through the first input section 51 is read (timing t1 shown in FIG. 7). It is determined that it is time to read the voltage (step S131: "YES"), and the voltage on the side of the second input section 52 in this state is converted at timing t2 shown in FIG. (step S132). This voltage corresponds to the above-described second voltage V2 if disconnection detection is not performed. , it does not rise like the first voltage V1. Therefore, this is called a second minute voltage V2d.

第2微小電圧V2dは、以下の回路構成により生じる。図6に示したように、断線検出を行なうとして、電流供給部57から定電流が供給されると、ルートRT1に示す経路で電流が流れ、第2分圧抵抗器RD2の両端には、Vopの電圧が生じる。第2入力部52の第2入力ライン62は、第1入力部51の第1入力ライン61にパラレルに接続されているので、第2入力部52の第2入力ライン62には、第2分圧抵抗器RD2の両端の電圧が加わることになる。この場合、電流は図6に示したルートRT2に沿って流れることになる。図6において、第2入力部52の各抵抗器のうち、ルートRT2に関与する抵抗器を、第1入力部51の抵抗器に合わせて、小文字rを用いて、抵抗器r11、抵抗器r21、第1分圧抵抗器rd1、第2分圧抵抗器rd2、として示した。これらの符号を用いて示せば、ルートRT2とは、具体的には、第1分圧抵抗器RD1→抵抗器R11→抵抗器r11→第1分圧抵抗器rd1→第2分圧抵抗器rd2→抵抗器r21→抵抗器R21という経路である。 The second minute voltage V2d is generated by the following circuit configuration. As shown in FIG. 6, when disconnection detection is performed and a constant current is supplied from the current supply unit 57, a current flows through a route RT1, and Vop is applied across the second voltage dividing resistor RD2. voltage is generated. Since the second input line 62 of the second input section 52 is connected in parallel to the first input line 61 of the first input section 51, the second input line 62 of the second input section 52 has a second branch line. The voltage across piezoresistor RD2 will be added. In this case, the current will flow along the route RT2 shown in FIG. In FIG. 6, among the resistors of the second input section 52, the resistors involved in the route RT2 are matched with the resistors of the first input section 51, using a small letter r, resistor r11, resistor r21 , a first voltage dividing resistor rd1, and a second voltage dividing resistor rd2. Using these symbols, route RT2 is specifically: first voltage dividing resistor RD1→resistor R11→resistor r11→first voltage dividing resistor rd1→second voltage dividing resistor rd2 →resistor r21→resistor R21.

仮に第1の入力端子50に流量計11が正しく接続されており、流量計11の接続において断線が生じていない場合には、第2入力ライン62のライン間には、流量計11の内部抵抗RSが接続されていることになる。流量計11の内部抵抗RSが比較的小さいことから、ルートRT2を介して流れる電流は極めて小さいものとなる。ルートRT1を流れる定電流と比べると、ルートRT2を流れる電流は小さいので、断線が生じていない場合には、第2入力部52を介して検出する第2微小電圧V2dは、ほぼ値0となる。もとより、断線検出の間に流量計11が流量を計測した有意の信号を出力していれば、第2微小電圧V2dは、この信号に対応した電圧となる。この場合を、図7の左欄に示した。 If the flowmeter 11 is correctly connected to the first input terminal 50 and there is no disconnection in the connection of the flowmeter 11, the internal resistance of the flowmeter 11 will be between the lines of the second input line 62. RS is connected. Since the internal resistance RS of the flowmeter 11 is relatively small, the current flowing through the route RT2 is extremely small. Since the current flowing through the route RT2 is smaller than the constant current flowing through the route RT1, the second minute voltage V2d detected via the second input section 52 has a value of approximately 0 when there is no disconnection. . Of course, if the flowmeter 11 is outputting a significant signal indicating the flow rate during disconnection detection, the second minute voltage V2d will be a voltage corresponding to this signal. This case is shown in the left column of FIG.

他方、流量計11と第1の入力端子50との接続が何らかの理由で失われ、断線が生じている場合には、第1分圧抵抗器RD1から抵抗器R21までが、第2分圧抵抗器RD2に対して並列に接続されるという回路は形成されないので、断線が生じていない場合と比べて、第2分圧抵抗器rd2を介して流れる電流量は増加し、その分だけ第2入力部52を介して検出する第2微小電圧V2dは上昇する。この様子を、図7の右欄に例示した。 On the other hand, if the connection between the flowmeter 11 and the first input terminal 50 is lost for some reason and a disconnection occurs, the first voltage dividing resistor RD1 to the resistor R21 are connected to the second voltage dividing resistor. Since a circuit connected in parallel with the resistor RD2 is not formed, the amount of current flowing through the second voltage dividing resistor rd2 increases compared to when there is no disconnection, and the amount of current flowing through the second voltage dividing resistor rd2 increases accordingly. The second minute voltage V2d detected via the unit 52 rises. This state is illustrated in the right column of FIG.

そこで、ステップS132で読み取った第2微小電圧V2dが、閾値Vref より大きいかを判断し(ステップS140)、超えていれば、断線が生じているとして、フラグFに値1を設定し(ステップS150)、超えていなければ、ステップS155に移行して、フラグFに値0を設定する。電流ソース57Sからシンク57Dに至るルートRT1の抵抗値が130kΩ程度の場合、流量計11と入力端子50との接続に断線が生じている場合には、第2微小電圧V2dの実測値は、25mVを超えていた。したがって、本実施形態では、閾値Vref として、約20mV程度の値を設定している。 Therefore, it is determined whether or not the second minute voltage V2d read in step S132 is greater than the threshold value Vref (step S140). ), and if not exceeded, the process moves to step S155, and the value 0 is set to the flag F. When the resistance value of the route RT1 from the current source 57S to the sink 57D is about 130 kΩ, and when disconnection occurs in the connection between the flowmeter 11 and the input terminal 50, the measured value of the second minute voltage V2d is 25 mV. was beyond Therefore, in this embodiment, a value of approximately 20 mV is set as the threshold value Vref.

以上の処理を行なった後、通信用のパケットを準備する(ステップS160)。具体的には、入力端子50に接続された入力信号のデータを送るためのデータ番号DN、ステータス・コマンドSCとしてのフラグFの値、送信するデータDDとしての第1電圧V1および第2電圧V2を、図4に示したパケットPTACの形式で準備する。ステップS140の判断が「NO」となって、ステップS155の処理を経て通信用のパケットを準備する場合(ステップS160)では、第1電圧V1,第2電圧V2は、値0とされる。その後、このパケットPTACを通信部45を介して送信し(ステップS170)、上述した流量計測処理ルーチンを一旦終了する。なお、このパケットPTACでは、図4に示したように、フラグFが値1または2の場合には、データは無効としたので、断線や短絡を検出した場合には、データは含ませていない。 After performing the above processing, a communication packet is prepared (step S160). Specifically, the data number DN for sending the data of the input signal connected to the input terminal 50, the value of the flag F as the status command SC, the first voltage V1 and the second voltage V2 as the data DD to be sent are prepared in the format of the packet PTAC shown in FIG. When the determination in step S140 is "NO" and the packet for communication is prepared through the process of step S155 (step S160), the first voltage V1 and the second voltage V2 are set to zero. After that, this packet PTAC is transmitted via the communication unit 45 (step S170), and the above-described flow rate measurement processing routine ends. In this packet PTAC, as shown in FIG. 4, when the flag F has a value of 1 or 2, the data is invalid. .

こうして送信されたパケットは、通信回線90を介して送信され、通信回線90に接続された各装置により受け取られる。制御装置30は、通信回線90からパケットを常時取得しており、取得したパケットがアナログ信号入力装置40から制御装置30に宛てたパケットPTCAである場合、図8に示す入力信号確認処理ルーチンを実行する。この処理を開始すると、まずアナログ信号入力装置40からのパケットPTACの内容を読み取る処理を行なう(ステップS200)。次に、このパケットPTACに含まれているステータス・コマンドSCのフラグFの値について判別する(ステップS210)。 The packets thus transmitted are transmitted via the communication line 90 and received by each device connected to the communication line 90 . The control device 30 constantly acquires packets from the communication line 90, and when the acquired packet is a packet PTCA addressed to the control device 30 from the analog signal input device 40, executes the input signal confirmation processing routine shown in FIG. do. When this process is started, first, the process of reading the contents of the packet PTAC from the analog signal input device 40 is performed (step S200). Next, the value of the flag F of the status command SC included in this packet PTAC is discriminated (step S210).

フラグFが値0、つまりアナログ信号入力装置40において流量計11を用いた計測が正常に行なわれた場合には、パケットPTACに含まれている第1電圧V1,第2電圧V2を読み出して、両者が一致しているかを判断する(ステップS220)。ステップS210の判別において、フラグFが値1である場合には、断線が検出されており、ステップS220で、第1電圧V1と第2電圧V2とが不一致であれば、第1入力部51または第2入力部52に何らか異常が生じていると判断できる。なお、V1=V2とは、所定の許容範囲を含んだ判断である。何らかの異常が生じていると判断すると、異常が検出されたことを表示部37に表示する(ステップS225)。その上で、出力装置80への指示を前提として、フラグHに値1を設定し(ステップS230)、出力装置80に対するパケットPTCOを形成し、このパケットPTCOを出力装置80に向けて出力する。 When the flag F has a value of 0, that is, when the measurement using the flow meter 11 in the analog signal input device 40 is normally performed, the first voltage V1 and the second voltage V2 included in the packet PTAC are read out, It is determined whether the two match (step S220). If the flag F has a value of 1 in step S210, a disconnection is detected, and if the first voltage V1 and the second voltage V2 do not match in step S220, the first input unit 51 or It can be determined that some abnormality has occurred in the second input unit 52 . Note that V1=V2 is a judgment including a predetermined allowable range. When it is determined that some kind of abnormality has occurred, the fact that an abnormality has been detected is displayed on the display section 37 (step S225). Then, assuming that the output device 80 is instructed, the flag H is set to 1 (step S230), a packet PTCO for the output device 80 is formed, and this packet PTCO is output to the output device 80. FIG.

図4に示したように、パケットPTCOにおいて、ステータス・コマンドSCのフラグHが値1であるとは、アクチュエータ15を最小値に制御するというコマンドを表わしている。また、このパケットのデータDDは、その場合の最小値を示している。特に処理についてはフローチャートを示さないが、このパケットPTCOを受け取った出力装置80は、フラグH=1であることから、データDDが示す最小値まで、最速でアクチュエータ15を制御する。アクチュエータ15を最小値に制御するとは、この実施形態では、流量を最小、例えば0にするということである。こうした制御は、システムを安全サイドに制御することを目的として行なわれる。 As shown in FIG. 4, in the packet PTCO, the flag H of the status command SC being 1 indicates a command to control the actuator 15 to the minimum value. Also, the data DD of this packet indicates the minimum value in that case. Although no particular flow chart is shown for processing, the output device 80 receiving this packet PTCO controls the actuator 15 at the fastest speed to the minimum value indicated by the data DD since the flag H=1. Controlling the actuator 15 to the minimum value means to set the flow rate to the minimum, for example zero, in this embodiment. Such control is performed for the purpose of controlling the system on the safe side.

例えば、配管13を流れる流体が反応を促進する流体である場合には、流体の流量を最小にすることにより、反応の促進を抑制して、システムの安全を確保する。逆に、例えば流体か冷媒などであり、対象物を冷却している場合には、アクチュエータ15を最大値に最速で制御して、過熱を防いで、システム安全を確保することもあり得る。なお、フラグHが値0の場合には、目標値までアクチュエータ15を制御する通常の制御が行なわれる。H=1の場合の最小値制御やH=2の場合の最大値制御も、最小値または最大値までアクチュエータ15を制御するという点では通常の制御と同様だが、最小値制御や最大値制御では、他のアクチュエータなどを時分割で制御するといったことを行なわず、指定されたアクチュエータを最小値または最大値まで最速で制御するという点で異なる。このように、何らかの異常が生じていると判断した場合には、フラグHの設定とパケットPTCOの出力を行なった後、アナログ信号入力装置40に出力するパケットPTCAに含ませるステータス・コマンドSCのフラグGを値3に設定する(ステップS240)。 For example, if the fluid flowing through the pipe 13 is a fluid that promotes a reaction, the flow rate of the fluid is minimized to suppress the acceleration of the reaction and ensure the safety of the system. Conversely, if the object is being cooled, for example, by a fluid or coolant, the actuator 15 may be controlled to the maximum value at the fastest speed to prevent overheating and ensure system safety. When the flag H has a value of 0, normal control is performed to control the actuator 15 up to the target value. The minimum value control when H=1 and the maximum value control when H=2 are similar to normal control in that the actuator 15 is controlled to the minimum or maximum value. , other actuators, etc., are not controlled in a time-sharing manner, but the designated actuator is controlled to the minimum or maximum value at the fastest speed. In this way, when it is determined that some kind of abnormality has occurred, after setting the flag H and outputting the packet PTCO, the flag of the status command SC is included in the packet PTCA output to the analog signal input device 40. G is set to a value of 3 (step S240).

他方、ステップS220での判断が「YES」、つまり第1電圧V1と第2電圧V2とが一致していれば、アナログ信号入力装置40での計測は適正に行なわれたと判断でき、次に、第1電圧V1が予め設定した閾値V0以下か否かの判断を行なう(ステップS250)。この閾値V0は、断線が生じた場合との区別が付けにくい程度の低電圧、実際には、数十mVに設定されている。第1電圧V1が閾値V0以下であると判断された場合には、この判定が、当日の初回の判定であるかを判断し(ステップS260)、当日初回であれば、断線検出の指示を行なう準備として、フラグGに値1を設定する(ステップS270)。このフラグGの値は、既述したアナログ信号入力装置40における流量計測処理ルーチン(図5、ステップS110)で参照されるフラグである。断線は、頻繁に生じものではないので、制御システム20の稼働日一日に一度チェックすれば足りる。もとより、第1電圧V1が閾値V0以下になる度に、断線検出の指示を行なうものとしてもよいし、数回に一度の割合で断線検出の指示を行なうものとしてもよい。 On the other hand, if the determination in step S220 is "YES", that is, if the first voltage V1 and the second voltage V2 match, it can be determined that the measurement by the analog signal input device 40 was performed properly. It is determined whether or not the first voltage V1 is equal to or lower than a preset threshold value V0 (step S250). This threshold value V0 is set to a low voltage that makes it difficult to distinguish from disconnection, which is actually several tens of millivolts. If it is determined that the first voltage V1 is equal to or less than the threshold value V0, it is determined whether this determination is the first determination of the day (step S260), and if it is the first determination of the day, an instruction to detect disconnection is issued. As a preparation, the value 1 is set to the flag G (step S270). The value of this flag G is a flag referred to in the flow rate measurement processing routine ( FIG. 5 , step S110) in the analog signal input device 40 already described. Since disconnection does not occur frequently, it suffices to check once a day when the control system 20 is in operation. Of course, the disconnection detection instruction may be issued every time the first voltage V1 becomes equal to or lower than the threshold value V0, or the disconnection detection instruction may be issued once every several times.

第1電圧V1が閾値V0以下でない場合(ステップS250:「NO」)や、当日2回目以降の判断である場合(ステップS260:「NO」)の場合には、フラグGに値0を設定する(ステップS280)。以上説明したフラグGの設定(ステップS240,S270,S280)を行なった後、アナログ信号入力装置40向けのパケットPTCAを準備し、これをアナログ信号入力装置40に向けて送信する(ステップS285)。以上で、入力信号確認処理ルーチンを終了する。 If the first voltage V1 is not equal to or lower than the threshold value V0 (step S250: "NO"), or if the determination is made for the second time or later on the current day (step S260: "NO"), the flag G is set to a value of 0. (Step S280). After setting flag G (steps S240, S270, S280) as described above, packet PTCA for analog signal input device 40 is prepared and transmitted to analog signal input device 40 (step S285). With this, the input signal confirmation processing routine ends.

以上説明した第1実施形態のアナログ信号入力装置40、およびこの装置40や制御装置30,出力装置80を備えた制御システム20によれば、アナログ信号をデジタル信号に変換して出力できるアナログ信号入力装置40において、入力端子50への流量計11の接続の断線検出を容易に行なうことができる。アナログ信号を差動入力として受け付ける2つの入力部51,52を有することで、アナログ信号を入力する構成の冗長性を高めた上で、これを利用して断線検出を行なうので、回路構成上の無駄を排することができる。 According to the analog signal input device 40 of the first embodiment described above, and the control system 20 including the device 40, the control device 30, and the output device 80, analog signal input capable of converting an analog signal into a digital signal and outputting it In the device 40, disconnection of the connection of the flowmeter 11 to the input terminal 50 can be easily detected. By having two input sections 51 and 52 for receiving analog signals as differential inputs, the redundancy of the configuration for inputting analog signals is increased, and disconnection detection is performed using this redundancy. Waste can be eliminated.

しかも、断線検出を行なう際に用いる電流供給部57から回路抵抗に対して十分な大きさの電流を流すので、断線検出に要する時間を短縮できる。2つの入力部51,52毎にアナログ・デジタル変換器ADC1,ADC2を設けているので、2つの入力部51,52の電圧をほぼ同時に計測することができ、この点でも断線検出を短時間のうちに完了できる。しかも、断線が生じていない場合には、第2入力部52側で計測している第2微小電圧V2dは、第2入力部52が通常検出する第2電圧V2と変わらないので、断線検出中であっても、流量計11からのアナログ信号の大きさを計測できる。こうした特徴は、制御システム20が、産業用のPCL装置である場合には、特に好ましい。制御システム20が製造ラインを制御している場合、対象の状態の把握に遅れが生じることがなく、センサの状態を常時把握できるので、製品の品質を十分に確保でき、アナログ信号の入力の遅れなどによる不良品の発生などを招くことがない。 Moreover, since the current supply unit 57 used for disconnection detection supplies a sufficient amount of current to the circuit resistance, the time required for disconnection detection can be shortened. Since the analog-to-digital converters ADC1 and ADC2 are provided for each of the two input sections 51 and 52, the voltages of the two input sections 51 and 52 can be measured almost simultaneously. can be completed at home. Moreover, when there is no disconnection, the second minute voltage V2d measured by the second input section 52 is the same as the second voltage V2 normally detected by the second input section 52, so the disconnection is being detected. However, the magnitude of the analog signal from the flow meter 11 can be measured. These features are particularly desirable when control system 20 is an industrial PCL device. When the control system 20 controls the production line, there is no delay in grasping the state of the object, and the state of the sensor can always be grasped, so the quality of the product can be sufficiently ensured, and the delay in the input of the analog signal can be reduced. There is no possibility that defective products will be produced due to

更に、本実施形態では、制御装置30が、断線検出の指示をアナログ信号入力装置40に対して行なっており、アナログ信号入力装置40が行なう断線検出の頻度やタイミングを制御システム20全体の動作状況を見て適切に決定することができる。本実施形態では、制御システム20が稼働している一日の内で、第1入力部51が検出した流量計11からのアナログ信号の電圧が閾値V0(数十mV)以下となった最初のタイミングでのみ断線検出を行なうので、その後の流量計測を、断線の発生を確認した上で行なうことができる。しかも、流量計11からのアナログ信号が、断線が生じた場合に取り得る値となっていなければ、断線検出自体を行なわないので、断線検出に無駄な時間を使うこともない。 Furthermore, in the present embodiment, the control device 30 issues a wire breakage detection instruction to the analog signal input device 40, and the frequency and timing of wire breakage detection performed by the analog signal input device 40 is determined by the operation status of the control system 20 as a whole. can be properly determined by looking at In the present embodiment, the voltage of the analog signal from the flow meter 11 detected by the first input unit 51 becomes equal to or less than the threshold value V0 (several tens of mV) within a day when the control system 20 is in operation. Since the disconnection is detected only at the timing, the subsequent flow rate measurement can be performed after confirming the occurrence of the disconnection. Moreover, if the analog signal from the flow meter 11 does not have a value that can be taken when disconnection occurs, the disconnection detection itself is not performed, so that disconnection detection does not waste time.

更に、この制御システム20では、断線を検出した場合には、出力装置80を用いて、断線が生じたセンサ(ここでは流量計11)が計測している物理量を制御するアクチュエータ15を駆動して、制御対象であるシステムの安全性を高める側に制御を行なう。したがって、システムの安全性の低下を抑制できる。 Furthermore, in this control system 20, when disconnection is detected, the output device 80 is used to drive the actuator 15 that controls the physical quantity being measured by the sensor (here, the flow meter 11) in which the disconnection has occurred. , control is performed on the side that enhances the safety of the system to be controlled. Therefore, a decrease in system safety can be suppressed.

B.第2実施形態:
次に第2実施形態のアナログ信号入力装置40Aおよびこの装置を用いた制御システムについて説明する。図9は第2実施形態のアナログ信号入力装置40Aの概略構成図である。制御システム全体は、図1に示した第1実施形態と同様の構成を備える。第2実施形態のアナログ信号入力装置40Aは、第1実施形態のアナログ信号入力装置40とほぼ同様の構成を有するが、第1入力部51や第2入力部52毎に、アナログ・デジタル変換器ADC1,ADC2を備えるのではなく、単一のアナログ・デジタル変換器ADCを、マルチプレックサ(MPX)71を介して、接続している点で、第1実施形態と異なる。マルチプレックサ71は、第1入力部51の出力と第2入力部52の出力とをCPU41からの指示により、あるいは所定のインターバルで切り替えて出力する。マルチプレックサ71の出力は、アンプ(AMP)73を介して、アナログ・デジタル変換器ADCに入力され、複数ビットのデジタル信号に変換されて、CPU41に読み込まれる。アナログ・デジタル変換器ADCは第1実施例のアナログ・デジタル変換器ADC1,ADC2と同様の機能を有する。また、アンプ73は、ゲイン可変アンプであり、その増幅度は、外部からの信号により切り替えられる。本実施形態では、CPU41によりゲインを切り替える。
B. Second embodiment:
Next, an analog signal input device 40A of a second embodiment and a control system using this device will be described. FIG. 9 is a schematic configuration diagram of an analog signal input device 40A of the second embodiment. The overall control system has the same configuration as the first embodiment shown in FIG. The analog signal input device 40A of the second embodiment has substantially the same configuration as the analog signal input device 40 of the first embodiment, but each of the first input section 51 and the second input section 52 is provided with an analog/digital converter. It differs from the first embodiment in that a single analog-to-digital converter ADC is connected via a multiplexer (MPX) 71 instead of having ADC1 and ADC2. The multiplexer 71 switches between the output of the first input section 51 and the output of the second input section 52 according to an instruction from the CPU 41 or at predetermined intervals. The output of the multiplexer 71 is input to an analog-to-digital converter ADC via an amplifier (AMP) 73 , converted into a multi-bit digital signal, and read into the CPU 41 . The analog/digital converter ADC has the same function as the analog/digital converters ADC1 and ADC2 of the first embodiment. Also, the amplifier 73 is a gain variable amplifier, and its amplification degree is switched by a signal from the outside. In this embodiment, the gain is switched by the CPU 41 .

上記構成を備えるアナログ信号入力装置40AのCPU41は、図10に示した流量計測処理ルーチンを実行する。この処理ルーチンは、図5に示した第1実施形態の処理ルーチンと基本的な処理において同一であり、相違点は、次の2点である。1つは、ステップS120とステップS122との間に、マルチプレックサ71を切り替える処理が設けられていることである。もう一つは、第1実施形態におけるステップS131が、マルチプレックサ71の切替処理を行なうステップS131aと、アンプ73のゲイン設定を行なうステップS131bと、時間T1の経過を判断するステップS131cとからなる読取可能判断処理131Aに置き換えられていることである。 The CPU 41 of the analog signal input device 40A having the above configuration executes the flow rate measurement processing routine shown in FIG. This processing routine is basically the same as the processing routine of the first embodiment shown in FIG. 5, and differs therefrom in the following two points. One is that processing for switching the multiplexer 71 is provided between steps S120 and S122. Another is that step S131 in the first embodiment consists of step S131a for performing switching processing of the multiplexer 71, step S131b for setting the gain of the amplifier 73, and step S131c for determining the passage of time T1. The difference is that it is replaced with the readable judgment processing 131A.

上述した通り、第2実施形態では、第1入力部51と第2入力部52とに対して単一のアナログ・デジタル変換器ADCが設けられており、第1電圧V1を読み取った処理(ステップS120)のあと、マルチプレックサ71を切り替えて、アナログ・デジタル変換器ADCの入力を、第1入力部51の出力から第2入力部52の出力に切り替える処理(ステップS121)を行なう。マルチプレックサ71よる切り替え処理(ステップS121)のあと、第2電圧V2を取得する(ステップS122)。 As described above, in the second embodiment, a single analog-to-digital converter ADC is provided for the first input section 51 and the second input section 52, and the process of reading the first voltage V1 (step After S120), the multiplexer 71 is switched to switch the input of the analog/digital converter ADC from the output of the first input section 51 to the output of the second input section 52 (step S121). After the switching process by the multiplexer 71 (step S121), the second voltage V2 is obtained (step S122).

また読取可能判断処理131Aでは、断線検出の際に、第1入力部51からの信号、つまり第1電圧V1を取得した後、第2微小電圧V2dの取得に備えて、マルチプレックサ71を第2入力部52からの信号に切り替え(ステップS131a)、更に、アンプ73のゲインを高くするためのゲインの設定を行なう(ステップS131b)。断線検出の際に第2入力部52が検出する電圧は、数十mV程度の低い電圧であるため、ゲインを高くすることにより、その電圧の検出を容易とし、また検出精度を高めている。その後、第2実施形態では、時間T1の経過を待って(ステップS131c)、第2微小電圧V2dを取得する処理(ステップS132)を行なう。第2実施形態では、マルチプレックサ71を切り替えているので、第1電圧V1が十分に高くなったかを確認しない。電流供給部57により定電流を供給した際、第1電圧V1が十分に高くなるまでの時間は予め取得できるので、この時間T1を設定しておき、時間T1の経過を待って、第2微小電圧V2dを取得するのである。 In the readable judgment processing 131A, after the signal from the first input section 51, that is, the first voltage V1 is acquired when disconnection is detected, the multiplexer 71 is operated to prepare for the acquisition of the second minute voltage V2d. The signal from the 2-input unit 52 is switched (step S131a), and the gain is set to increase the gain of the amplifier 73 (step S131b). Since the voltage detected by the second input unit 52 when detecting disconnection is a low voltage of about several tens of mV, increasing the gain facilitates the detection of the voltage and improves the detection accuracy. After that, in the second embodiment, after the time T1 has passed (step S131c), the process of acquiring the second minute voltage V2d (step S132) is performed. In the second embodiment, since the multiplexer 71 is switched, it is not confirmed whether the first voltage V1 has become sufficiently high. Since the time required for the first voltage V1 to become sufficiently high when the constant current is supplied by the current supply unit 57 can be obtained in advance, this time T1 is set. It acquires the voltage V2d.

以上説明した第2実施形態によれば、第1実施形態と同様の効果を奏する上、アナログ・デジタル変換器ADCを第1入力部51や第2入力部52毎に設ける必要がなく、回路構成を簡略化できる。また、アンプ73のゲインを高めて第2微小電圧V2dを読み取っているので、断線検出の精度を高められるという効果も奏する。 According to the second embodiment described above, the same effects as those of the first embodiment can be obtained. can be simplified. Further, since the second minute voltage V2d is read by increasing the gain of the amplifier 73, there is an effect that the accuracy of disconnection detection can be improved.

C.第3実施形態:
次に、第3実施形態について説明する。第3実施形態では、第1実施形態のアナログ信号入力装置40を含む制御システム20と同一のハードウェア構成を用い、アナログ信号入力装置40が実行する流量計測処理として、図5に示した処理ルーチンに代えて、図11に示した流量計測処理ルーチンを実行する。この処理ルーチンは、図5に示した第1実施形態の処理ルーチンと基本的な処理において同一であり、以下の二つの点で、相違する。一つは、ステップS110の後にステップS120またはS125に分岐する初期電圧Vi取得判断処理(ステップS115)を備える点、もう一つは、ステップS140の後にステップS150またはS155に分岐する第3電圧V3d取得判断処理(ステップS145)を有する点である。以下、これらのステップS115とS145を中心に、第3実施形態の処理について説明する。
C. Third embodiment:
Next, a third embodiment will be described. In the third embodiment, the same hardware configuration as that of the control system 20 including the analog signal input device 40 of the first embodiment is used, and the processing routine shown in FIG. , the flow rate measurement processing routine shown in FIG. 11 is executed. This processing routine is basically the same as the processing routine of the first embodiment shown in FIG. 5, but differs in the following two points. One is the provision of an initial voltage Vi acquisition determination process (step S115) that branches to step S120 or S125 after step S110. The point is that it has a judgment process (step S145). The processing of the third embodiment will be described below, focusing on these steps S115 and S145.

第1実施形態と同様に、まずフラグGの値について判断し(ステップS110)、フラグGが値0、つまり断線検出の指示を受けたと判断した場合、第3実施形態では、初期電圧Vi取得判断処理(ステップS115)を実行する。この処理では、まず第1入力部51を用いて第1の入力端子50間の電圧を、初期電圧Viとして取得する(ステップS115a)。続いて、初期電圧Viが0ボルトとほぼ等しいかを判断する(ステップS115b)。「ほぼ等しい」とは、本明細書では、比較しようとする値の±10%の範囲に入っていることをいう。もとより、その範囲は予め設定すればよく、例えば±5%の範囲としてもよい。なお、ここでは初期電圧Viを第1入力部51を用いて取得したが、第2入力部52を用いて取得するようにしてもよい。 As in the first embodiment, first, the value of the flag G is determined (step S110), and when it is determined that the flag G has a value of 0, that is, an instruction to detect disconnection has been received, the initial voltage Vi acquisition determination is performed in the third embodiment. The process (step S115) is executed. In this process, first, the voltage between the first input terminals 50 is acquired as the initial voltage Vi using the first input unit 51 (step S115a). Subsequently, it is determined whether the initial voltage Vi is substantially equal to 0 volt (step S115b). The term "substantially equal" as used herein means within ±10% of the value being compared. Of course, the range may be set in advance, and may be, for example, a range of ±5%. Although the initial voltage Vi is acquired using the first input section 51 here, it may be acquired using the second input section 52 .

フラグGが値1に設定されて断線検出を行なうのは、システムの起動時など、流量計11がまだ動作していないタイミングであることが多い。従って、通常、流量計11からの出力はなく、初期電圧Viは0ボルトにほぼ等しい筈である。これに反して、初期電圧Viが0ボルトが逸脱し、両者がほぼ等しくとは言えない場合(ステップS115b、「NO」)は、流量計11は動作していると考えられるので、断線検出は行なわず、ステップS120に移行して、第1電圧V1,第2電圧V2の取得処理やフラグFを値0に設定する処理などを行なう。これらの処理については、第1実施形態で既に説明したので、説明を省略する。 It is often the case that the flag G is set to 1 and disconnection detection is performed at a timing when the flow meter 11 is not yet operating, such as when the system is started. Therefore, normally there will be no output from the flow meter 11 and the initial voltage Vi should be approximately equal to 0 volts. On the other hand, if the initial voltage Vi deviates from 0 volts and the voltages cannot be said to be substantially equal (step S115b, "NO"), the flowmeter 11 is considered to be operating, so disconnection detection is not performed. Instead, the process proceeds to step S120 to perform a process of obtaining the first voltage V1 and the second voltage V2, a process of setting the flag F to a value of 0, and the like. Since these processes have already been described in the first embodiment, description thereof will be omitted.

他方、初期電圧Viが0ボルトにほぼ等しいと判断した場合(ステップS115b、「YES」)は、第1実施形態で説明したように、電流供給部57を動作させて、定電流を供給する処理、具体的には、電流ソース57Sから定電流をシンク57Dに流す処理(ステップS125)を行ない、第1電圧V1の取得や第2微小電圧V2dを取得し(ステップS130~S132)、第2微小電圧V2dが閾値Vref より大きいかを判断する(ステップS140)。 On the other hand, when it is determined that the initial voltage Vi is approximately equal to 0 volt (step S115b, "YES"), the current supply unit 57 is operated to supply a constant current as described in the first embodiment. Specifically, a process (step S125) is performed to flow a constant current from the current source 57S to the sink 57D, acquire the first voltage V1 and the second minute voltage V2d (steps S130 to S132), and obtain the second minute voltage V2d. It is determined whether the voltage V2d is greater than the threshold Vref (step S140).

その上で、第3実施形態では、ステップS145の処理を実行する。このステップS145は、図12に示すように、定電流の供給を停止し、一定時間の経過を待つ処理(ステップS145a)と、第2入力部52を用いて第3電圧V3dを取得する処理(ステップS145b)と、第3電圧V3dが第1電圧V1とほぼ同一であるかを判断する処理(ステップS145c)と、を含む。ステップS145aでは、電流供給部57に定電流の供給を停止させ、所定の時間の経過を待つ。所定時間の経過を待つのは、回路には浮遊容量やコンデンサC3などの容量成分が存在し、定電流の供給を停止ししても、すぐには第2分圧抵抗器rd2を流れる電流が0ボルトにはならず、第3電圧V3dが有意の値を取り得るからである。 Then, in the third embodiment, the process of step S145 is executed. As shown in FIG. 12, this step S145 includes a process of stopping the supply of the constant current and waiting for a certain period of time (step S145a), and a process of acquiring the third voltage V3d using the second input unit 52 ( Step S145b) and a process of determining whether the third voltage V3d is substantially the same as the first voltage V1 (Step S145c). In step S145a, the current supply unit 57 is made to stop supplying the constant current, and the process waits for a predetermined period of time. Waiting for the passage of the predetermined time is because the circuit has capacitive components such as stray capacitance and capacitor C3, and even if the supply of the constant current is stopped, the current flowing through the second voltage dividing resistor rd2 will not immediately flow. This is because the third voltage V3d can take a significant value without becoming 0 volts.

電流供給部57による定電流の供給のタイミングを、図13の上段に、示した。既に説明した様に、フラグGが値1と判断された場合、直後に初期電圧Viを取得する処理が行なわれる。このタイミングをt0として、図に示した。初期電圧Viが0ボルトにほぼ等しい場合(ステップS115b、「YES」)、この判断に続いて、タイミングTionで定電流の供給が開始される。これは、図11のステップS125での処理に対応したタイミングである。定電流の供給が開始されると、電流ソース57Sからシンク57Dに流れる電流に伴って第2分圧抵抗器RD2の両端の電圧は上昇する。この電圧の変化を、図13の中段に、実線J1として示した。この変化は、第1実施形態において図7で示した第1電圧と同じである。定電流の供給が開始されたタイミングTionの後のタイミングt1で、第1入力部51により第1電圧V1を取得する(ステップS130)。この電圧Vopは、第1実施形態で詳しく説明したように、
Vop=RD2・Ic
となる。
The timing of constant current supply by the current supply unit 57 is shown in the upper part of FIG. As already explained, when the flag G is determined to be 1, the process of obtaining the initial voltage Vi is immediately performed. This timing is shown in the figure as t0. If the initial voltage Vi is approximately equal to 0 volts (step S115b, "YES"), following this determination, the supply of constant current is started at timing Tion. This is the timing corresponding to the processing in step S125 of FIG. When the supply of constant current is started, the voltage across the second voltage dividing resistor RD2 increases with the current flowing from the current source 57S to the sink 57D. This change in voltage is shown as a solid line J1 in the middle of FIG. This change is the same as the first voltage shown in FIG. 7 in the first embodiment. At the timing t1 after the timing Tion at which the supply of the constant current is started, the first voltage V1 is acquired by the first input unit 51 (step S130). This voltage Vop is, as described in detail in the first embodiment,
Vop=RD2·Ic
becomes.

他方、定電流の供給がなされた場合の第2入力部52の検出電圧は、断線の有無により異なった挙動を示す。断線の有無により生じる電圧の違いは、図7に対比して示した。第1電圧V1を取得してから所定の時間が経過して、第2微小電圧V2dを読取可能なタイミングt2となったとき、第2入力部52により、第2入力部52の第2分圧抵抗器rd2の両端の電圧を、第2微小電圧V2dとして取得する(ステップS132)。 On the other hand, the detected voltage of the second input section 52 when a constant current is supplied exhibits different behavior depending on the presence or absence of disconnection. The difference in voltage caused by the presence or absence of disconnection is shown in comparison with FIG. After a predetermined time has passed since the acquisition of the first voltage V1 and timing t2 at which the second minute voltage V2d can be read, the second input section 52 operates the second divided voltage of the second input section 52. A voltage across the resistor rd2 is obtained as a second minute voltage V2d (step S132).

この後、定電流の供給をタイミングTioff で停止し、一定時間の経過を待ち(ステップS145a)、タイミングt3で、第2入力部52により第3電圧V3dを取得する(ステップS145b)。電流供給部57からの定電流の供給が停止されたので、計測される第3電圧V3dは、通常、定電流の供給がなされる前の電圧、つまり略0となる。この様子を、図13に実線J2として示した。他方、流量計11から第1の入力端子50への配線に断線がなく、断線検出を行なっているタイミングで、たまたま流量計11からの信号が入力した場合の、第2入力部52が検出する電圧信号を、破線B2として示した。図において、○印は、所定のタイミングt0~t3で取得される電圧が、実線J1,J2、破線B2のいずれの電圧に対応しているかを示している。 After that, the supply of the constant current is stopped at timing Tioff, waiting for a certain period of time (step S145a), and at timing t3, the second input unit 52 acquires the third voltage V3d (step S145b). Since the constant current supply from the current supply unit 57 is stopped, the measured third voltage V3d is normally the voltage before the constant current supply, that is, approximately 0. This state is shown as a solid line J2 in FIG. On the other hand, if there is no disconnection in the wiring from the flowmeter 11 to the first input terminal 50 and the signal from the flowmeter 11 is input by chance at the timing of disconnection detection, the second input unit 52 detects The voltage signal is shown as dashed line B2. In the figure, circles indicate to which of solid lines J1, J2, and dashed line B2 the voltage obtained at predetermined timings t0 to t3 corresponds.

こうして第3電圧V3dを取得すると(図12、ステップS145b)、第3電圧V3dが初期電圧Viとほぼ同じか否かの判断を行なう(ステップS145c)。両者がほぼ等しければ(ステップS145c、「YES」)、断線が生じているとして、ステップS150(図11)に移行する。ステップS150では、断線検出の有無を示すフラグFに値1を設定し、パケットの準備と送信を行なう(ステップS160,S170)。他方、両者がほぼ同じと判断できなければ(図12、ステップS145c、「NO」)、第2微小電圧V2dが閾値Vref を上回ったのは(ステップS140、「YES」)、断線が生じたからではなく、流量計11から送られた信号が、閾値Vref より高い電圧(第2微小電圧V2d)であったためと判断し、フラグFに値0を設定し(図11、ステップS155)、パケットの準備と送信を行なう(ステップS160,S170)。なお、ステップS145cの判断が「NO」となって、ステップS155の処理を経て通信用のパケットを準備する場合(ステップS160)では、第1電圧V1としてはステップS130で取得した電圧が、第2電圧V2としてはステップS145bで取得した電圧(第3電圧V3d)が、それぞれ設定される。 When the third voltage V3d is obtained in this way (FIG. 12, step S145b), it is determined whether or not the third voltage V3d is substantially the same as the initial voltage Vi (step S145c). If both are substantially equal (step S145c, "YES"), it is determined that a disconnection has occurred, and the process proceeds to step S150 (FIG. 11). At step S150, a value 1 is set to a flag F indicating whether or not disconnection is detected, and a packet is prepared and transmitted (steps S160 and S170). On the other hand, if it cannot be determined that the two are substantially the same (FIG. 12, step S145c, "NO"), the reason why the second minute voltage V2d exceeded the threshold Vref (step S140, "YES") is not due to disconnection. Instead, it is determined that the signal sent from the flowmeter 11 was a voltage higher than the threshold value Vref (second minute voltage V2d), and the value 0 is set to the flag F (FIG. 11, step S155) to prepare the packet. is transmitted (steps S160, S170). Note that when the determination in step S145c is "NO" and the packet for communication is prepared through the process of step S155 (step S160), the voltage obtained in step S130 is used as the first voltage V1, The voltage (third voltage V3d) obtained in step S145b is set as the voltage V2.

第3電圧V3dが初期電圧Viとほぼ同じと判断できなかった場合を、図13を用いて説明すると、断線している場合には、断線検出のために供給した定電流の供給を停止したタイミングTioff の直後から、第2入力部52が検出する電圧は低下する。なぜなら、断線した状態で電流供給部57が供給する定電流がなくなれば、第2分圧抵抗器rd2の両端には電位差が生じないので、タイミングt3で第2入力部52が検出する第3電圧V3dは、タイミングt0で第1入力部51が取得した初期電圧Vi(略0ボルト)程度になるからである。これに対して、タイミングt3で第2入力部52が取得した第3電圧V3dが、初期電圧Viと同程度でない場合、第3電圧V3dが閾値Vref より低いとしても、断線では生じ得ない電圧なので、流量計11からの信号を検出しているものと判断するのである。 The case where the third voltage V3d could not be determined to be substantially the same as the initial voltage Vi will be described with reference to FIG. Immediately after Tioff, the voltage detected by the second input section 52 decreases. This is because, if the constant current supplied by the current supply unit 57 is lost in the disconnection state, no potential difference occurs across the second voltage dividing resistor rd2. This is because V3d is about the initial voltage Vi (approximately 0 volts) obtained by the first input unit 51 at timing t0. On the other hand, if the third voltage V3d acquired by the second input section 52 at the timing t3 is not at the same level as the initial voltage Vi, even if the third voltage V3d is lower than the threshold Vref, the disconnection cannot occur. , the signal from the flow meter 11 is detected.

以上説明した第3実施形態によれば、断線検出の指示(G=1)を受けて、電流供給部57により定電流の供給を開始した際に、流量計11から、断線検出時に閾値Vref を超える電圧信号が入力した場合、これを誤って断線として検出してしまうことがない。本実施形態では、定電流を供給する前(タイミングt0)と供給を停止した後(タイミングt3)とで初期電圧Vi,第3電圧V3dを取得し、これを比較することで、定電流を供給している際(タイミングt2)に取得した第2微小電圧V2dが、いずれの理由で生じたかを判別できるからである。タイミングt3で、V3d≒Viとなっていると判断すれば、流量計11から第1の入力端子50への配線が断線しているか否かを検出することができる。つまり、第3実施形態では、流量計11から信号が入力している場合に、断線が生じていると誤検出することがない。他の作用効果は第1実施形態と同様である。 According to the third embodiment described above, when the current supply unit 57 starts supplying a constant current in response to a disconnection detection instruction (G=1), the flow meter 11 sets the threshold Vref at the time of disconnection detection. When a voltage signal that exceeds the voltage is input, it is not erroneously detected as disconnection. In this embodiment, the initial voltage Vi and the third voltage V3d are obtained before the supply of the constant current (timing t0) and after the supply is stopped (timing t3). This is because it is possible to determine for which reason the second minute voltage V2d acquired at the time (timing t2) was generated. If it is determined that V3d≈Vi at timing t3, it is possible to detect whether or not the wiring from the flow meter 11 to the first input terminal 50 is broken. That is, in the third embodiment, when a signal is input from the flowmeter 11, it is not erroneously detected that a disconnection has occurred. Other effects are the same as those of the first embodiment.

第3実施形態では、第1実施形態と同様のハードウェア構成を前提としたが、第2実施形態と同様のハードウェア構成を用いても同様の処理を行なうことができる。また、理解の便を図って、図13のタイミングt2において、断線が生じてい場合に第2入力部52が検出する電圧と、断線が生じておらず流量計11からの信号が入力している場合に第2入力部52が検出する電圧とを、同じ高さとしたが、流量計11からの信号は、定電流の供給により生じる第2微小電圧V2dと一致するとは限らない。両者は異なっていても、差し支えない。 Although the hardware configuration similar to that of the first embodiment is assumed in the third embodiment, similar processing can be performed using a hardware configuration similar to that of the second embodiment. For convenience of understanding, at timing t2 in FIG. 13, the voltage detected by the second input unit 52 when disconnection occurs and the signal from the flowmeter 11 when disconnection does not occur are input. In this case, the voltage detected by the second input unit 52 has the same height, but the signal from the flowmeter 11 does not necessarily match the second minute voltage V2d generated by supplying the constant current. It does not matter if the two are different.

上述した各実施形態において、フラグFは値1(断線が生じている)か値0(断線が生じているとは判断できない)の二値のいずれかを取るものとしたが、ステップS115bでの判断が「NO」となった場合や、ステップS145cでの判断が「NO」となった場合に、フラグFを値0,1以外の値としてもよい。また、取得した各電圧Vi、V1、V2、V2d、V3dを、そのままデータとして、制御装置30に送信し、制御装置30側で断線の有無を判断するようにしてもよい。 In each of the above-described embodiments, the flag F has a binary value of 1 (disconnection has occurred) or 0 (it cannot be determined that a disconnection has occurred), but in step S115b If the determination is "NO" or if the determination in step S145c is "NO", the flag F may be set to a value other than 0 or 1. Alternatively, the obtained voltages Vi, V1, V2, V2d, and V3d may be sent as data to the control device 30, and the control device 30 may determine whether or not there is a disconnection.

上述した幾つかの実施形態では、フラグGが値1であって、断線検出処理を開始した後、例えば、ステップS140での判断が「NO」の場合のように、断線検出の条件が整っていないと判断すると、フラグFに値0をセットして(ステップS155)、パケットの準備(ステップS160)に移行している。断線検出の条件が整っていないと判断した場合には、フラグGが値1でない場合と同様に、ステップS120,S122を実行して、第1電圧V1,第2電圧V2を計測してから、ステップS155以下の処理を実行するようにしてもよい。あるいは、フラグFに、値0や1以外の値、つまり断線検出を試みたが、断線検出の条件が整っていなかったことを示す値を設定し、電圧に関するデータを伴わないようなパケットを準備するものとしてもよい。 In some of the above-described embodiments, after the flag G has a value of 1 and the disconnection detection process is started, the conditions for disconnection detection are met, for example, when the determination in step S140 is "NO". If not, the flag F is set to 0 (step S155), and the process proceeds to packet preparation (step S160). If it is determined that the disconnection detection conditions are not met, steps S120 and S122 are executed to measure the first voltage V1 and the second voltage V2, as in the case where the flag G is not 1, and then You may make it perform the process after step S155. Alternatively, the flag F is set to a value other than 0 or 1, that is, a value indicating that disconnection detection was attempted but conditions for disconnection detection were not met, and a packet that does not include voltage-related data is prepared. It may be assumed that

D.他の態様:
(1)こうしたアナログ信号入力装置40は、以下の構成で実施することも可能である。例えば、アナログ信号入力装置は、センサが接続される一組の入力端子と、入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、第1入力ライン間に第1抵抗器が介装された第1入力部と、入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、第2入力ライン間に第2抵抗器が介装された第2入力部と、第1入力部および第2入力部を介してアナログ信号を個別に読み取って、アナログ信号を、複数ビットのデジタル信号の形態に変換して出力する信号出力部と、所定の指示を受けて動作し、一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、電流供給部からの電流供給を受けて、第1入力部の出力が上昇した際の第2入力部の出力が、予め定めた閾値以上であるか否かを判断し、判断結果を出力する判断部を備えるものとしてよい。こうすれば、アナログ信号をデジタル信号に変換して出力できるアナログ信号入力装置において、アナログ信号を差動入力として受け付ける第1入力部と第2入力部とを備える構成を用いて、容易に断線検出を行なうことができる。アナログ信号を差動入力として受け付ける2つの入力部を有することで、アナログ信号を入力する構成の冗長性を高めた上で、これを利用して断線検出を行なうので、回路構成上の無駄を排することができる。
D. Other aspects:
(1) Such an analog signal input device 40 can also be implemented with the following configuration. For example, the analog signal input device includes a set of input terminals to which a sensor is connected, and a first input section that receives analog signals from the input terminals as differential inputs via a set of first input lines, A first input section in which a first resistor is interposed between the first input lines, and a second input section that receives analog signals from the input terminals as differential inputs via a pair of second input lines, , a second input with a second resistor interposed between the second input lines, and the analog signal is separately read through the first and second inputs to convert the analog signal into a multi-bit digital a signal output unit that converts the signal into a signal form and outputs a signal; a current supply unit that operates in response to a predetermined instruction and supplies a current to the power supply line from one of the pair of first input lines; a determination unit that determines whether or not the output of the second input unit when the output of the first input unit is increased is greater than or equal to a predetermined threshold and outputs the determination result. may be In this way, in an analog signal input device capable of converting an analog signal into a digital signal and outputting it, a disconnection can be easily detected using a configuration including a first input section and a second input section that receive analog signals as differential inputs. can be done. By having two input sections for receiving analog signals as differential inputs, the redundancy of the configuration for inputting analog signals is increased, and disconnection detection is performed using this redundancy, eliminating waste in the circuit configuration. can do.

断線検出の原理は、電流供給部から差動入力の第1入力ラインの一方から電源ライン(例えば接地側ライン)に供給される電流により第1入力部の出力が上昇するが、入力端子において第1入力部の第1入力ラインと接続された第2入力部の第2入力ラインには、入力端子とセンサとの接続に断線が生じているか否かにより、異なる電圧が現われるというものである。第1入力ライン間には、通常、ノイズ除去のためや分圧のために抵抗器やコンデンサが介装されており、電流供給部からの供給により、第1入力ライン間の電圧は上昇する。この電圧により第2入力ラインに電流が流れるが、この電流により第2入力ライン間に生じる電圧は、入力端子にセンサの内部抵抗が接続されているか否かにより異なるからである。電流供給部から供給される電流は、電圧上昇の大きさを管理可能にするために定電流であることが望ましいが、定電流でなくても差し支えない。また、電流の大きさは、第1入力部の回路抵抗に対して、十分に大きくすれば、断線検出に要する時間を短くでき、好適である。断線検出の時間を短くできることは、産業用の用途では、特に好ましい。製造ライン等では、対象の状態の把握が遅れたり、有意の時間に亘って把握できなかったりすると、製品の品質が十分に確保できず、不良品などを生じる場合がありえる。迅速な断線検出が可能になれば、こうした事態を回避することができる。もとより、断線検出に時間を掛けられる条件、例えば起動時の初期化の処理の際に断線検出を行なうといった対応をとれば、電流値を第1入力部の回路抵抗に対して十分に大きくするまでなく、小さな電流で断線検出を行なうことも可能である。電流供給部が電流の供給を開始する所定の指示は、外部から断線検出動作の指示として与えられてもよいし、所定のインターバルで与えられる単なる指示であってもよい。また、こうした指示は、アナログ信号入力装置が正常に動作していることを把握するための一連のダイアグノーシス動作の開始の指示として与えられてもよい。この場合、一連の動作確認のうちの1つとして、断線検出を行なえばよい。 The principle of disconnection detection is that the output of the first input unit rises due to the current supplied from one of the first input lines of the differential input from the current supply unit to the power supply line (for example, the ground line), but the output of the first input unit rises. Different voltages appear in the second input line of the second input section connected to the first input line of the one input section depending on whether or not the connection between the input terminal and the sensor is disconnected. A resistor or capacitor is normally interposed between the first input lines for noise elimination or voltage division, and the voltage between the first input lines rises due to the supply from the current supply section. This voltage causes a current to flow in the second input line, and the voltage generated across the second input line by this current differs depending on whether the internal resistance of the sensor is connected to the input terminal. The current supplied from the current supply unit is desirably a constant current in order to be able to manage the magnitude of the voltage rise, but it does not have to be a constant current. Moreover, if the magnitude of the current is sufficiently large with respect to the circuit resistance of the first input section, the time required for disconnection detection can be shortened, which is preferable. Being able to shorten the time required for disconnection detection is particularly desirable in industrial applications. In a production line or the like, if the status of an object is not grasped for a significant amount of time, or if it cannot be grasped for a significant amount of time, the quality of the product cannot be sufficiently ensured, and defective products may be produced. Such a situation can be avoided if rapid disconnection detection becomes possible. Of course, under the condition that disconnection detection can take time, for example, if disconnection detection is performed during initialization processing at startup, the current value can be sufficiently increased with respect to the circuit resistance of the first input section. It is also possible to detect disconnection with a small current without using a current. The predetermined instruction for the current supply unit to start supplying current may be given from the outside as an instruction for the disconnection detection operation, or may be a simple instruction given at predetermined intervals. Also, such an instruction may be given as an instruction to start a series of diagnostic operations for ascertaining that the analog signal input device is operating normally. In this case, disconnection detection may be performed as one of a series of operation checks.

断線検出の対象となるセンサとしては、単に電圧値や電流値といった電気信号を検出するものであってもよく、あるいは温度を検出する熱電対やサーミスタ、流量を検出する流量計、重さや歪みを検出するストレインゲージ、磁束量を検出するホール素子などの磁気センサ、電波強度や周波数などを検出するアンテナプローブなど、様々な状態量を検出するセンサであってよい。センサは、何らかの物量を検出するものであればよく、また有線によりアナログ信号入力装置の入力端子と接続されるものであれば、どのようなものであってもよい。 Sensors to detect disconnection may be sensors that simply detect electrical signals such as voltage and current values, thermocouples and thermistors that detect temperature, flowmeters that detect flow rate, and sensors that detect weight and strain. It may be a sensor that detects various state quantities, such as a strain gauge that detects, a magnetic sensor such as a Hall element that detects the amount of magnetic flux, and an antenna probe that detects radio wave intensity, frequency, and the like. The sensor may be of any kind as long as it can detect some physical quantity and is connected to the input terminal of the analog signal input device by wire.

センサとアナログ信号入力装置とは、少なくともアナログ信号入力装置側との接続箇所が有線接続されていればよく、センサ側の一部が無線接続になっていても差し支えない。有線接続部分については、ツイステッドペアケーブルなど、耐ノイズ性の高いケーブルで接続することが好ましい。耐ノイズ性能が問題にならないような場合には、一般的な平行線ケーブルなどで接続してもよい。また、耐ノイズ性を高めるためにシールドされたケーブルを用いることも差し支えない。 The sensor and the analog signal input device need only be connected by wire at least at the connection point with the analog signal input device side, and there is no problem even if a part of the sensor side is wirelessly connected. As for the wired connection, it is preferable to use a cable with high noise resistance such as a twisted pair cable. If the noise resistance performance is not a problem, a general parallel cable may be used for connection. A shielded cable may also be used to improve noise immunity.

(2)こうした構成において、前記第1抵抗器および前記第2抵抗器は、それぞれ、前記センサからの前記アナログ信号の電圧の大きさを調整する分圧回路を構成する抵抗器として設けられたものとしてよい。こうすれば、分圧回路の抵抗器を、電流供給部からの電流により電圧上昇が生じる抵抗器として利用でき、回路構成を簡略化できる。もとより、分圧回路の抵抗器とは別に、あるいは分圧回路の抵抗器に代えて、電流供給部からの電流により第1入力部の第1入力ライン間に電圧上昇を生じさせる抵抗器を設けてもよい。 (2) In such a configuration, the first resistor and the second resistor are provided as resistors constituting a voltage dividing circuit that adjusts the magnitude of the voltage of the analog signal from the sensor. may be By doing so, the resistor of the voltage dividing circuit can be used as a resistor that causes a voltage rise due to the current from the current supply unit, and the circuit configuration can be simplified. Of course, apart from the resistors of the voltage dividing circuit, or instead of the resistors of the voltage dividing circuit, a resistor is provided for causing a voltage rise between the first input lines of the first input part due to the current from the current supply part. may

(3)こうした構成において、前記第1入力ラインと前記電源ラインとの間には、前記第1入力ラインに寄生する浮遊容量以上の容量のコンデンサが介装されたものとしてよい。こうすれば、差動入力である第1入力ライン上のノイズ除去を図ることができる。こうしたコンデンサを設けると、電流供給部から供給される電流の一部は、コンデンサの充電に用いられるので、第1ライン間の電圧の上昇は、その分遅れる。したがってこうしたコンデンサを設けた場合には、コンデンサの容量、延いては電圧上昇時間の遅れを考慮して、電流供給部が供給する電流量を決めればよい。 (3) In such a configuration, a capacitor having a capacitance larger than the parasitic capacitance of the first input line may be interposed between the first input line and the power supply line. This makes it possible to eliminate noise on the first input line, which is a differential input. When such a capacitor is provided, part of the current supplied from the current supply section is used to charge the capacitor, so that the rise in the voltage between the first lines is delayed accordingly. Therefore, when such a capacitor is provided, the amount of current to be supplied by the current supply section should be determined in consideration of the capacitance of the capacitor and the delay in voltage rise time.

(4)こうした構成において、前記閾値は、前記電流供給部から供給された電流により前記第1抵抗器の両端に生じる電圧によって、前記センサが前記入力端子に接続されていない場合に前記第2入力ラインに流れ込む電流により、前記第2抵抗器に生じる電圧に対応して定めればよい。こうすれば、第2抵抗器に生じる電圧と閾値とを比較するだけで、断線の有無を検出できる。 (4) In such a configuration, the threshold is set at the second input when the sensor is not connected to the input terminal by the voltage generated across the first resistor by the current supplied from the current supply. It may be determined corresponding to the voltage generated across the second resistor due to the current flowing into the line. By doing so, it is possible to detect the presence or absence of disconnection simply by comparing the voltage generated in the second resistor with the threshold value.

(5)こうした構成において、制御装置との間で前記デジタル信号を含む信号をやり取りする通信部を備え、前記通信部は、前記やり取りされる信号に含まれる前記デジタル信号の大きさが、前記センサと前記入力端子との接続が断線している場合に生じ得る範囲に入っていると判断した前記制御装置が出力する指示信号を受け取った場合、断線検出動作のために前記所定の指示を前記電流供給部に対して行なうものとしてよい。こうすれば、制御装置の指示の下、断線が生じている可能性があるときに、断線検出を行なうことができ、無駄な断線検出を行なうことがない。なお、やり取りされる信号に含まれる前記デジタル信号の大きさが、前記センサと前記入力端子との接続が断線している場合に生じ得る範囲に入っている場合でも、毎回断線検出を行なう必要は必ずしもない。数回に一度だけ断線検出を行なうよう構成してもよい。その場合、判断は制御装置で行なってもよいし、制御装置からの指示を受けたアナログ信号入力装置側で行なってもよい。条件が成立しても、毎回断線検出を行なうのではなく、一日に一度、例えば最初に条件が成立したときに行なうといったものであってもよい。 (5) In such a configuration, a communication unit that exchanges a signal including the digital signal with a control device is provided, and the communication unit is configured such that the magnitude of the digital signal included in the exchanged signal is determined by the sensor. and the input terminal is within a range that can occur when the connection between the input terminal and the input terminal is broken. It may be performed for the supply section. In this way, disconnection detection can be performed under the instruction of the control device when there is a possibility of disconnection, and unnecessary disconnection detection is not performed. Even if the magnitude of the digital signal included in the exchanged signal is within the range that can occur when the connection between the sensor and the input terminal is disconnected, it is not necessary to detect the disconnection each time. Not necessarily. The disconnection detection may be performed only once every several times. In that case, the determination may be made by the control device, or may be made by the analog signal input device which receives an instruction from the control device. Even if the condition is satisfied, the disconnection detection may be performed once a day, for example, when the condition is satisfied for the first time, instead of performing the disconnection detection every time.

(6)こうした構成において、前記判断部は、前記判断結果を、当該アナログ信号入力装置が接続された制御システムを管理する管理装置、および前記判断結果を使用者に提示する提示装置のうちの少なくとも一方に出力するものとしてよい。判断結果を管理装置に出力すれば、管理装置による制御システムの管理に用いることができる。他方、判断結果を提示装置により使用者に提示すれば、断線の有無を示す判断結果の提示を受けて、使用者は適切な対応を取ることが容易になる。もとより、両方を行なってもよい。管理装置は、制御システムにおいて制御対象を制御する制御装置であってもよいし、管理専用の装置、例えばダイアグノーシスコンピュータであってもよい。断線の有無に関する判断結果をどのように利用するかは、システム設計において定めればよい。提示装置による判断結果の提示は、ディスプレイなどに表示するものでもよいし、音声による報知でもよい。もとより、断線の発生ということだけを提示してもよいし、どの機器のどのセンサが断線したかや、いつ断線したかなどの情報と共に提示してもよい。単に断線の有無を記録しておくものとしてもよい。 (6) In such a configuration, the determination unit transmits the determination result to at least one of a management device that manages a control system to which the analog signal input device is connected, and a presentation device that presents the determination result to a user. It may be output to one side. If the determination result is output to the management device, it can be used for management of the control system by the management device. On the other hand, if the judgment result is presented to the user by the presentation device, the user can easily take appropriate measures upon receiving the presentation of the judgment result indicating the presence or absence of disconnection. Of course, you can do both. The management device may be a control device that controls a controlled object in the control system, or may be a device dedicated to management, such as a diagnosis computer. How to use the determination result regarding the presence or absence of disconnection may be determined in the system design. The presentation of the determination result by the presentation device may be displayed on a display or the like, or may be reported by voice. Of course, only the fact that a wire breakage has occurred may be presented, or information such as which sensor of which device was broken and when the wire was broken may be presented together. The presence or absence of disconnection may simply be recorded.

(7)こうした構成において、信号出力部は、前記第1入力部を介して受け取る前記アナログ信号を前記デジタル信号に変換する第1アナログ・デジタル変換器と、前記第2入力部を介して受け取る前記アナログ信号を前記デジタル信号に変換する第2アナログ・デジタル変換器と、を備えるものとしてよい。こうすれば、第1入力部に入力したアナログ信号と第2入力部に入力したアナログ信号とを、独立にデジタル信号として出力でき、2つの信号をほぼ同時に出力できる。したがって、多重化しているにもかかわらず、デジタル信号を短時間のうちに出力できる。 (7) In such a configuration, the signal output section includes a first analog/digital converter that converts the analog signal received via the first input section into the digital signal, and the a second analog-to-digital converter for converting an analog signal to said digital signal. In this way, the analog signal input to the first input section and the analog signal input to the second input section can be independently output as digital signals, and the two signals can be output substantially simultaneously. Therefore, digital signals can be output in a short period of time in spite of being multiplexed.

(8)こうした構成において、前記信号出力部は、前記第1入力部および前記第2入力部を介して受け取る前記アナログ信号を、時分割により選択的にデジタル信号を変換するアナログ・デジタル変換器を備えるものとしてよい。こうすれば、アナログ・デジタル変換器の数を減らすことができ、構成を簡略化できる。時分割により選択的にデジタル信号に変換するには、マルチプレックサを設けて、第1入力部の出力と第2入力部の出力とを切り替えればよい。もとより、単独のスイッチ、たとえばリレー、SSR、アナログスイッチなどを個別に設け、これを排他的にオン・オフしてもよい。第1入力部、第2入力部の出力段に、トライステートバッファなど、出力をハイインピーダンスにできる構成を備えれば、出力をワイヤード結合してもよい。この場合は、第1入力部,第2入力部のうち、データを計測する側の出力段を、計測時に、ハイインピーダンス状態から通常の出力状態に切り替える。 (8) In such a configuration, the signal output section includes an analog/digital converter that selectively converts the analog signal received via the first input section and the second input section into a digital signal by time division. It may be prepared. This can reduce the number of analog/digital converters and simplify the configuration. In order to selectively convert to a digital signal by time division, a multiplexer may be provided to switch between the output of the first input section and the output of the second input section. Of course, a single switch, such as a relay, SSR, analog switch, etc., may be individually provided and turned on/off exclusively. If the output stages of the first input section and the second input section are provided with a configuration capable of making the output high impedance, such as a tri-state buffer, the outputs may be wired-coupled. In this case, the output stage on the data measuring side of the first input section and the second input section is switched from the high impedance state to the normal output state during measurement.

(9)こうした構成において、前記判断部は、前記電流供給部からの電流供給を受けた前記第2入力部の出力が、予め定めた閾値以上であると判断した第1の場合には、前記センサへの接続が断線しているとして前記判断結果を出力し、前記電流供給部からの電流供給を受けた前記第2入力部の出力が、予め定めた閾値未満であると判断した第2の場合には、前記センサへの接続が断線しているとの前記判断結果を出力しないものとしてよい。こうすれば、アナログ信号入力装置が断線の有無を判断した判断結果を出力するので、この判断結果を受けて、外部の機器が必要な対応を取ることが容易になる。 (9) In such a configuration, in the first case where the determination unit determines that the output of the second input unit receiving the current supply from the current supply unit is equal to or greater than a predetermined threshold, the A second controller that outputs the determination result that the connection to the sensor is disconnected and determines that the output of the second input unit that receives the current supply from the current supply unit is less than a predetermined threshold value. In this case, the determination result that the connection to the sensor is disconnected may not be output. In this way, the analog signal input device outputs the result of determining whether or not there is a disconnection, so that the external device can easily take necessary measures in response to this determination result.

(10)こうした構成において、前記判断部は、前記第1の場合、前記電流供給を停止した後の前記第2入力部の出力について判別し、前記電流供給を停止した後に前記第2入力部の出力が前記電流供給を受ける前の水準まで低下した場合には、前記センサへの接続が断線しているとの前記判断結果を出力し、前記電流供給を停止した後に前記第2入力部の出力が前記電流供給を受ける前の水準まで低下しない場合には、前記センサへの接続が断線しているとの前記判断結果を出力しないものとしてよい。こうすれば、アナログ信号入力装置が断線の有無を判断した判断結果を出力するので、この判断結果を受けて、外部の機器が必要な対応を取ることが容易になる上、断線検出の処理を行なうに際してセンサから第2入力部に閾値を超える出力を受けた場合に、誤って断線であると誤検出することを回避しやすくなる。 (10) In such a configuration, in the first case, the determination unit determines the output of the second input unit after stopping the current supply, and determines the output of the second input unit after stopping the current supply. When the output drops to the level before receiving the current supply, outputting the judgment result that the connection to the sensor is broken, and outputting the second input section after stopping the current supply. does not drop to the level before receiving the current supply, the determination result that the connection to the sensor is broken may not be output. In this way, the analog signal input device outputs the determination result of determining whether or not there is a disconnection, so that the external device can easily take necessary measures in response to this determination result, and the disconnection detection process can be performed. It becomes easy to avoid erroneously detecting disconnection when an output exceeding the threshold value is received from the sensor to the second input section when performing this operation.

(11)上記以外の態様として、制御システムとしての実施も可能である。この制御システムは、センサからのアナログ信号を入力しデジタル信号に変換して出力するアナログ信号入力装置と、前記アナログ信号入力装置と接続されてシステムの制御行なう制御装置と、を備える。この制御システムでは、アナログ信号入力装置は、前記センサが接続される一組の入力端子と、前記入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、前記第1入力ライン間に第1抵抗器が介装された第1入力部と、前記入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、前記第2入力ライン間に第2抵抗器が介装された第2入力部と、前記第1入力部および前記第2入力部を介して前記アナログ信号を個別に読み取って、前記アナログ信号を、複数ビットのデジタル信号の形態に変換して、前記制御装置に出力する信号出力部と、前記制御装置からの所定の指示を受けて動作し、前記一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、前記電流供給部からの電流供給を受けて、前記第1入力部の出力が上昇した際の前記第2入力部の出力が、予め定めた閾値以上であるか否かを判断する判断部と、前記判断結果を、前記制御装置に出力する判断結果報知部と、を備え、前記制御装置は、前記アナログ信号入力装置から受け取った前記センサの検出値に対応した前記デジタル信号の大きさが、前記センサが前記アナログ信号入力装置の前記入力端子に接続されていない場合と区別できない状態であることを条件の1つとして、前記所定の指示を、前記アナログ信号入力装置に出力する指示出力部と、前記アナログ信号入力装置から受け取った前記判断結果が、前記センサと前記アナログ信号入力装置の前記入力端子との接続が断線していないと判断できない非正常状態である場合には、外部に制御信号を出力する制御信号出力部と、を備えるものとしてよい。こうすれば、制御システムとして、アナログ信号入力装置での断線検出を、冗長性の高い構成において容易に行なうことができる。したがって、回路構成上の無駄を排することができる。また、制御システムを構成するアナログ信号入力装置とシステムの制御を行なう制御装置とが、協働して断線検出ができ、制御システムとしての信頼性を高めることができる。この制御システムを構成するアナログ信号入力装置では、アナログ信号を入力する2つの入力部を組み合わせて断線検出を行ない、かつ電流供給部が供給する電流を大きくできるので、アナログ信号の入力ができない時間を短くでき、断線が生じていなければ、断線検出動作の間もアナログ信号の読み取りが可能に構成し得る。制御システムが、産業用のPCL装置である場合には、断線検出の時間を短く、もしくは0にできることは、特に好ましい。産業用PLCが制御する製造ライン等では、対象の状態の把握が遅れたり、有意の時間に亘って把握できなかったりすると、製品の品質が十分に確保できず、不良品などを生じる場合がありえる。迅速な断線検出が可能であれば、あるいは断線検出の間もアナログ信号の入力が可能になれば、こうした事態を回避することができる。 (11) As an aspect other than the above, implementation as a control system is also possible. The control system includes an analog signal input device for inputting an analog signal from a sensor, converting it to a digital signal and outputting it, and a control device connected to the analog signal input device for controlling the system. In this control system, the analog signal input device includes a set of input terminals to which the sensors are connected, and a first input that receives analog signals from the input terminals as differential inputs via a set of first input lines. a first input unit having a first resistor interposed between the first input lines; and receiving analog signals from the input terminals as differential inputs via a pair of second input lines. a second input section in which a second resistor is interposed between the second input lines; and the analog signal separately through the first input section and the second input section a signal output unit that reads and converts the analog signal into a form of a multi-bit digital signal and outputs the signal to the control device; a current supply unit that supplies a current from one of the input lines to a power supply line; and an output of the second input unit when the output of the first input unit is increased by receiving the current supply from the current supply unit. is equal to or greater than a predetermined threshold value, and a determination result notification unit that outputs the determination result to the control device, and the control device receives the analog signal input device from the One of the conditions is that the magnitude of the digital signal corresponding to the detected value of the received sensor is indistinguishable from the case where the sensor is not connected to the input terminal of the analog signal input device. an instruction output unit that outputs the predetermined instruction to the analog signal input device; and a control signal output unit for outputting a control signal to the outside in the case of an abnormal state in which it cannot be determined that the state is not normal. In this way, as a control system, disconnection detection in the analog signal input device can be easily performed in a highly redundant configuration. Therefore, waste in terms of circuit configuration can be eliminated. In addition, the analog signal input device that constitutes the control system and the control device that controls the system can cooperate to detect disconnection, and the reliability of the control system can be enhanced. In the analog signal input device that constitutes this control system, disconnection detection is performed by combining two input sections for inputting analog signals, and the current supplied by the current supply section can be increased. If it can be shortened and there is no disconnection, the analog signal can be read even during the disconnection detection operation. If the control system is an industrial PCL device, it is particularly desirable to be able to shorten or eliminate the disconnection detection time. In a production line controlled by an industrial PLC, if the status of an object is not grasped for a significant amount of time or is delayed, the quality of the product cannot be sufficiently ensured, and defective products may occur. . Such a situation can be avoided if rapid disconnection detection is possible, or if analog signals can be input even during disconnection detection.

(12)こうした構成において、更に、前記制御装置に接続される出力装置を備え、前記出力装置は、前記アナログ信号入力装置が接続された前記センサによって挙動が検出されている物理量の制御に関わるアクチュエータを駆動可能に接続されており、前記制御装置から前記制御信号を受け取った時、前記アクチュエータを前記物理量の挙動が、当該制御システムにとって安全性が高まる側となる状態に向けて駆動するものとしてよい。こうすれば、センサとの接続に断線が生じた場合のシステムの安全性を高めることができる。 (12) Such a configuration may further include an output device connected to the control device, wherein the output device is an actuator involved in controlling a physical quantity whose behavior is detected by the sensor to which the analog signal input device is connected. may be connected so as to be able to drive the actuator, and when the control signal is received from the control device, the behavior of the physical quantity drives the actuator toward a state where the safety of the control system is increased. . By doing so, it is possible to enhance the safety of the system in the event that the connection with the sensor is broken.

(13)こうした構成において、前記制御システムは、前記制御システムを構成する各装置間が通信回線により、相互に接続されており、少なくとも前記制御装置は、前記デジタル信号、前記所定の指示、前記判断結果および前記制御信号を、前記通信回線を介した通信により他の装置とやり取りするものとしてよい。こうすれば、各装置を通信により連携させることが容易となり、この通信を利用して断線検出のための所定の指示やその結果の共有を容易に実現できる。 (13) In such a configuration, in the control system, each device constituting the control system is interconnected by a communication line, and at least the control device receives the digital signal, the predetermined instruction, the judgment Results and said control signals may be exchanged with other devices by communication over said communication line. In this way, it becomes easy to make each device cooperate by communication, and by using this communication, it is possible to easily realize a predetermined instruction for disconnection detection and the sharing of the result thereof.

(14)上記各実施形態において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよい。ソフトウェアによって実現されていた構成の少なくとも一部は、ディスクリートな回路構成により実現することも可能である。また、本開示の機能の一部または全部がソフトウェアで実現される場合には、そのソフトウェア(コンピュータプログラム)は、コンピュータ読み取り可能な記録媒体に格納された形で提供することができる。「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスクやCD-ROMのような携帯型の記録媒体に限らず、各種のRAMやROM等のコンピュータ内の内部記憶装置や、ハードディスク等のコンピュータに固定されている外部記憶装置も含んでいる。すなわち、「コンピュータ読み取り可能な記録媒体」とは、データパケットを一時的ではなく固定可能な任意の記録媒体を含む広い意味を有している。 (14) In each of the above embodiments, part of the configuration implemented by hardware may be replaced by software. At least part of the configuration implemented by software can also be implemented by a discrete circuit configuration. In addition, when part or all of the functions of the present disclosure are realized by software, the software (computer program) can be provided in a form stored in a computer-readable recording medium. "Computer-readable recording medium" means not only portable recording media such as flexible disks and CD-ROMs, but also various internal storage devices such as RAM and ROM, and fixed to computers such as hard disks. It also includes an external storage device. That is, the term "computer-readable recording medium" has a broad meaning including any recording medium capable of fixing data packets instead of being temporary.

本開示は、上述の実施形態に限られるものではなく、その趣旨を逸脱しない範囲において種々の構成で実現することができる。例えば、発明の概要の欄に記載した各形態中の技術的特徴に対応する実施形態中の技術的特徴は、上述の課題の一部又は全部を解決するために、あるいは、上述の効果の一部又は全部を達成するために、適宜、差し替えや、組み合わせを行うことが可能である。また、その技術的特徴が本明細書中に必須なものとして説明されていなければ、適宜、削除することが可能である。 The present disclosure is not limited to the embodiments described above, and can be implemented in various configurations without departing from the scope of the present disclosure. For example, the technical features in the embodiments corresponding to the technical features in the respective modes described in the Summary of the Invention column may be used to solve some or all of the above problems, or Substitutions and combinations may be made as appropriate to achieve part or all. Also, if the technical features are not described as essential in this specification, they can be deleted as appropriate.

ADC,ADC1,ADC2…アナログ・デジタル変換器、OP1,OP2…オペアンプ、PTAC,PTCA,PTCO…パケット、RD1…第1分圧抵抗器、RD2…第2分圧抵抗器、11…流量計、13…配管、15…アクチュエータ、17…流量制御弁、19…ツイステッドペアケーブル、20…制御システム、30…制御装置、31…CPU、32…メモリ、35…通信部、37…表示部、40,40A…アナログ信号入力装置、41…CPU、43…判断部、45…通信部、47…電源部、50…入力端子、51…第1入力部、52…第2入力部、55…信号出力部、57…電流供給部、57D…シンク、57S…電流ソース、61…第1入力ライン、62…第2入力ライン、65…分圧回路、71…マルチプレックサ、73…アンプ、80…出力装置、81…CPU、82…メモリ、85…出力部、87…通信部、90…通信回線 ADC, ADC1, ADC2 --- analog/digital converters, OP1, OP2 --- operational amplifiers, PTAC, PTCA, PTCO --- packets, RD1 --- first voltage dividing resistor, RD2 --- second voltage dividing resistor, 11 --- flow meter, 13 Piping 15 Actuator 17 Flow control valve 19 Twisted pair cable 20 Control system 30 Control device 31 CPU 32 Memory 35 Communication unit 37 Display unit 40, 40A ... analog signal input device, 41 ... CPU, 43 ... determination section, 45 ... communication section, 47 ... power supply section, 50 ... input terminal, 51 ... first input section, 52 ... second input section, 55 ... signal output section, 57 Current supply unit 57D Sink 57S Current source 61 First input line 62 Second input line 65 Voltage dividing circuit 71 Multiplexer 73 Amplifier 80 Output device 81...CPU, 82...memory, 85...output section, 87...communication section, 90...communication line

Claims (13)

アナログ信号入力装置であって、
センサが接続される一組の入力端子と、
前記入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、前記第1入力ライン間に第1抵抗器が介装された第1入力部と、
前記入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、前記第2入力ライン間に第2抵抗器が介装された第2入力部と、
前記第1入力部および前記第2入力部を介して前記アナログ信号を個別に読み取って、前記アナログ信号を、複数ビットのデジタル信号の形態に変換して出力する信号出力部と、
所定の指示を受けて動作し、前記一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、
前記電流供給部からの電流供給を受けて、前記第1入力部の出力が上昇した際の前記第2入力部の出力が、予め定めた閾値以上であるか否かを判断し、判断結果を出力する判断部と、
を備えたアナログ信号入力装置。
An analog signal input device,
a set of input terminals to which sensors are connected;
A first input unit that receives analog signals from the input terminals as a differential input via a pair of first input lines, the first input having a first resistor interposed between the first input lines. Department and
A second input unit that receives analog signals from the input terminals as a differential input via a set of second input lines, the second input having a second resistor interposed between the second input lines. Department and
a signal output unit that individually reads the analog signals through the first input unit and the second input unit, converts the analog signals into multi-bit digital signals, and outputs the analog signals;
a current supply unit that operates in response to a predetermined instruction and supplies a current from one of the pair of first input lines to a power supply line;
determining whether or not the output of the second input section when the output of the first input section is increased by receiving the current supply from the current supply section is equal to or greater than a predetermined threshold, and displaying the determination result; a determination unit that outputs;
An analog signal input device with
前記第1抵抗器および前記第2抵抗器は、それぞれ、前記センサからの前記アナログ信号の電圧の大きさを調整する分圧回路を構成する抵抗器として設けられた、請求項1記載のアナログ信号入力装置。 2. The analog signal according to claim 1, wherein said first resistor and said second resistor are each provided as resistors forming a voltage divider circuit for adjusting the magnitude of the voltage of said analog signal from said sensor. input device. 前記第1入力ラインと前記電源ラインとの間には、前記第1入力ラインに寄生する浮遊容量以上の容量のコンデンサが介装された、請求項1または請求項2に記載のアナログ信号入力装置。 3. The analog signal input device according to claim 1, wherein a capacitor having a capacitance equal to or larger than a stray capacitance parasitic on said first input line is interposed between said first input line and said power supply line. . 前記閾値は、前記電流供給部から供給された電流により前記第1抵抗器の両端に生じる電圧によって、前記センサが前記入力端子に接続されていない場合に前記第2入力ラインに流れ込む電流により、前記第2抵抗器に生じる電圧に対応して定められた、請求項1から請求項3のいずれか一項に記載のアナログ信号入力装置。 The threshold is determined by the voltage generated across the first resistor due to the current supplied from the current supply and by the current flowing into the second input line when the sensor is not connected to the input terminal. 4. An analog signal input device according to any one of claims 1 to 3, defined corresponding to the voltage across the second resistor. 請求項1から請求項4のいずれか一項に記載のアナログ信号入力装置であって、
制御装置との間で前記デジタル信号を含む信号をやり取りする通信部を備え、
前記通信部は、前記やり取りされる信号に含まれる前記デジタル信号の大きさが、前記センサと前記入力端子との接続が断線している場合に生じ得る範囲に入っていると判断した前記制御装置が出力する指示信号を受け取った場合、断線検出のために前記所定の指示を前記電流供給部に対して行なう、
アナログ信号入力装置。
The analog signal input device according to any one of claims 1 to 4,
A communication unit that exchanges signals including the digital signal with a control device,
The control device, wherein the communication unit determines that the magnitude of the digital signal included in the exchanged signal is within a range that can occur when the connection between the sensor and the input terminal is broken. When receiving the instruction signal output by the, performs the predetermined instruction to the current supply unit for disconnection detection,
Analog signal input device.
前記判断部は、前記判断結果を、当該アナログ信号入力装置が接続された制御システムを管理する管理装置、および前記判断結果を使用者に提示する提示装置のうちの少なくとも一方に出力する、請求項1から請求項5のいずれか一項に記載のアナログ信号入力装置。 3. The determination unit outputs the determination result to at least one of a management device that manages a control system to which the analog signal input device is connected and a presentation device that presents the determination result to a user. The analog signal input device according to any one of claims 1 to 5. 信号出力部は、前記第1入力部を介して受け取る前記アナログ信号を前記デジタル信号に変換する第1アナログ・デジタル変換器と、前記第2入力部を介して受け取る前記アナログ信号を前記デジタル信号に変換する第2アナログ・デジタル変換器と、を備える、請求項1から請求項6のいずれか一項に記載のアナログ信号入力装置。 The signal output section includes a first analog-to-digital converter for converting the analog signal received via the first input section into the digital signal, and a first analog-to-digital converter for converting the analog signal received via the second input section into the digital signal. 7. An analog signal input device according to any one of claims 1 to 6, comprising a second analog-to-digital converter for converting. 前記信号出力部は、前記第1入力部および前記第2入力部を介して受け取る前記アナログ信号を、時分割により選択的にデジタル信号を変換するアナログ・デジタル変換器を備える、請求項1から請求項6のいずれか一項に記載のアナログ信号入力装置。 3. The signal output unit comprises an analog/digital converter for selectively time-divisionally converting the analog signal received via the first input unit and the second input unit into a digital signal. Item 7. The analog signal input device according to any one of items 6. 請求項1から請求項8のいずれか一項に記載のアナログ信号入力装置であって、
前記判断部は、
前記電流供給部からの電流供給を受けた前記第2入力部の出力が、予め定めた閾値以上であると判断した第1の場合には、前記センサへの接続が断線しているとして前記判断結果を出力し、
前記電流供給部からの電流供給を受けた前記第2入力部の出力が、予め定めた閾値未満であると判断した第2の場合には、前記センサへの接続が断線しているとの前記判断結果を出力しない、
アナログ信号入力装置。
The analog signal input device according to any one of claims 1 to 8,
The determination unit
In a first case where it is determined that the output of the second input section receiving the current supply from the current supply section is equal to or greater than a predetermined threshold value, the determination is made that the connection to the sensor is broken. output the result,
In a second case where it is determined that the output of the second input section receiving the current supply from the current supply section is less than a predetermined threshold, it is determined that the connection to the sensor is broken. do not output judgment results,
Analog signal input device.
前記判断部は、
前記第1の場合、前記電流供給を停止した後の前記第2入力部の出力について判別し、
前記電流供給を停止した後に前記第2入力部の出力が前記電流供給を受ける前の水準まで低下した場合には、前記センサへの接続が断線しているとの前記判断結果を出力し、
前記電流供給を停止した後に前記第2入力部の出力が前記電流供給を受ける前の水準まで低下しない場合には、前記センサへの接続が断線しているとの前記判断結果を出力しない、
請求項9に記載のアナログ信号入力装置。
The determination unit
In the first case, determining the output of the second input section after stopping the current supply,
outputting the determination result that the connection to the sensor is disconnected when the output of the second input unit drops to the level before receiving the current supply after the current supply is stopped;
If the output of the second input unit does not decrease to the level before receiving the current supply after the current supply is stopped, the determination result that the connection to the sensor is broken is not output.
10. The analog signal input device according to claim 9.
センサからのアナログ信号を入力しデジタル信号に変換して出力するアナログ信号入力装置と、前記アナログ信号入力装置と接続されてシステムの制御行なう制御装置と、を備えた制御システムであって、
アナログ信号入力装置は、
前記センサが接続される一組の入力端子と、
前記入力端子からのアナログ信号を一組の第1入力ラインを介した差動入力として受け付ける第1入力部であって、前記第1入力ライン間に第1抵抗器が介装された第1入力部と、
前記入力端子からのアナログ信号を一組の第2入力ラインを介した差動入力として受け付ける第2入力部であって、前記第2入力ライン間に第2抵抗器が介装された第2入力部と、
前記第1入力部および前記第2入力部を介して前記アナログ信号を個別に読み取って、前記アナログ信号を、複数ビットのデジタル信号の形態に変換して、前記制御装置に出力する信号出力部と、
前記制御装置からの所定の指示を受けて動作し、前記一組の第1入力ラインの一方から、電源ラインに電流を供給する電流供給部と、
前記電流供給部からの電流供給を受けて、前記第1入力部の出力が上昇した際の前記第2入力部の出力が、予め定めた閾値以上であるか否かを判断する判断部と、
前記判断の結果を、前記制御装置に出力する判断結果報知部と、
を備え、
前記制御装置は、
前記アナログ信号入力装置から受け取った前記センサの検出値に対応した前記デジタル信号の大きさが、前記センサが前記アナログ信号入力装置の前記入力端子に接続されていない場合と区別できない状態であることを条件の1つとして、前記所定の指示を、前記アナログ信号入力装置に出力する指示出力部と、
前記アナログ信号入力装置から受け取った前記判断結果が、前記センサと前記アナログ信号入力装置の前記入力端子との接続が断線していないと判断できない非正常状態である場合には、外部に制御信号を出力する制御信号出力部と、
を備える、
制御システム。
A control system comprising an analog signal input device for inputting an analog signal from a sensor, converting it to a digital signal and outputting it, and a control device connected to the analog signal input device for controlling the system,
Analog signal input device
a set of input terminals to which the sensors are connected;
A first input unit that receives analog signals from the input terminals as a differential input via a pair of first input lines, the first input having a first resistor interposed between the first input lines. Department and
A second input unit that receives analog signals from the input terminals as a differential input via a set of second input lines, the second input having a second resistor interposed between the second input lines. Department and
a signal output unit that individually reads the analog signals through the first input unit and the second input unit, converts the analog signals into multi-bit digital signals, and outputs the analog signals to the control device; ,
a current supply unit that operates in response to a predetermined instruction from the control device and supplies a current from one of the pair of first input lines to a power supply line;
a determination unit configured to determine whether or not the output of the second input unit when the output of the first input unit is increased in response to the current supply from the current supply unit is equal to or greater than a predetermined threshold;
a determination result notification unit that outputs the result of the determination to the control device;
with
The control device is
The magnitude of the digital signal corresponding to the detected value of the sensor received from the analog signal input device is indistinguishable from the case where the sensor is not connected to the input terminal of the analog signal input device. As one of the conditions, an instruction output unit that outputs the predetermined instruction to the analog signal input device;
When the judgment result received from the analog signal input device is an abnormal state in which it cannot be judged that the connection between the sensor and the input terminal of the analog signal input device is not disconnected, a control signal is output to the outside. a control signal output unit for output;
comprising
control system.
請求項11に記載の制御システムであって、
更に、前記制御装置に接続される出力装置を備え、
前記出力装置は、
前記アナログ信号入力装置が接続された前記センサによって挙動が検出されている物理量の制御に関わるアクチュエータを駆動可能に接続されており、
前記制御装置から前記制御信号を受け取った時、前記アクチュエータを前記物理量の挙動が、当該制御システムにとって安全性が高まる側となる状態に向けて駆動する、
制御システム。
12. A control system according to claim 11, wherein
Further comprising an output device connected to the control device,
The output device is
is connected so as to be able to drive an actuator involved in control of a physical quantity whose behavior is detected by the sensor to which the analog signal input device is connected;
When the control signal is received from the control device, the actuator is driven toward a state in which the behavior of the physical quantity increases the safety of the control system.
control system.
前記制御システムは、前記制御システムを構成する各装置間が通信回線により、相互に接続されており、
少なくとも前記制御装置は、前記デジタル信号、前記所定の指示、前記判断結果および前記制御信号を、前記通信回線を介した通信により他の装置とやり取りする、請求項11または請求項12に記載の制御システム。
In the control system, each device constituting the control system is interconnected by a communication line,
13. The control according to claim 11, wherein at least said control device exchanges said digital signal, said predetermined instruction, said judgment result and said control signal with another device by communication via said communication line. system.
JP2021147410A 2021-04-28 2021-09-10 Analog signal input device for disconnection detection, and control system Pending JP2022170642A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/729,379 US20220352707A1 (en) 2021-04-28 2022-04-26 Analog signal input device for open circuit detection and control system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2021075985 2021-04-28
JP2021075985 2021-04-28

Publications (1)

Publication Number Publication Date
JP2022170642A true JP2022170642A (en) 2022-11-10

Family

ID=83944546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2021147410A Pending JP2022170642A (en) 2021-04-28 2021-09-10 Analog signal input device for disconnection detection, and control system

Country Status (1)

Country Link
JP (1) JP2022170642A (en)

Similar Documents

Publication Publication Date Title
US10983187B2 (en) Measuring bridge arrangement with improved error detection
JP5575986B2 (en) Process fluid temperature measuring instrument
US6344747B1 (en) Device and method for monitoring the condition of a thermocouple
JP6058134B2 (en) Industrial process temperature transmitter with sensor stress diagnosis
EP2988136B1 (en) Sensor interface circuits
US10564209B2 (en) Alternating current coupled open circuit detection for low level direct current analog interfaces
JP6206276B2 (en) Input circuit with self-diagnosis function
JP6291979B2 (en) Input circuit with self-diagnosis function
CN110595524B (en) Sensor saturation fault detection
JP5832751B2 (en) Electronic circuit and magnetic field detection device capable of self-diagnosis
JP2022170642A (en) Analog signal input device for disconnection detection, and control system
JP5864748B2 (en) 2-wire process control loop current diagnostic apparatus and method
CN207456645U (en) Temperature transmitter and temperature transmitter component
JP6329648B2 (en) Failure detection device
US20220352707A1 (en) Analog signal input device for open circuit detection and control system
EP3470862A1 (en) Sensor defect diagnostic circuit
JP4738596B2 (en) Diagnosis of resistance-type process control equipment
JP5589969B2 (en) Sensor device
CN104412076A (en) Fluid measurement device
JP5040719B2 (en) 2-wire field device and fieldbus system
JPH0462439A (en) Wire breaking detecting circuit of temperature measuring instrument
JP6799940B2 (en) Connection terminal for physical quantity detection sensor
JPH08247881A (en) Pressure difference and pressure transmitter with sensor diagnosis function
JP4209429B2 (en) Strain / temperature measurement method
CN111141314A (en) Sensor interface circuit