JP7445388B2 - Digital input devices and programmable logic controllers - Google Patents

Digital input devices and programmable logic controllers Download PDF

Info

Publication number
JP7445388B2
JP7445388B2 JP2019037160A JP2019037160A JP7445388B2 JP 7445388 B2 JP7445388 B2 JP 7445388B2 JP 2019037160 A JP2019037160 A JP 2019037160A JP 2019037160 A JP2019037160 A JP 2019037160A JP 7445388 B2 JP7445388 B2 JP 7445388B2
Authority
JP
Japan
Prior art keywords
test
circuit
time
data
test signal
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.)
Active
Application number
JP2019037160A
Other languages
Japanese (ja)
Other versions
JP2020140593A (en
Inventor
裕樹 前野
賢二 下田
満 曽我
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2019037160A priority Critical patent/JP7445388B2/en
Publication of JP2020140593A publication Critical patent/JP2020140593A/en
Application granted granted Critical
Publication of JP7445388B2 publication Critical patent/JP7445388B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、プログラマブルロジックコントローラ及びデジタル入力装置に関する。 The present invention relates to programmable logic controllers and digital input devices.

プログラマブルロジックコントローラ(以下、PLCとする)の入力モジュールとなるデジタル入力装置は、一般にCRフィルタ回路やフォトカプラより構成されている。このフォトカプラの故障やプリント基板内の配線経路が故障した場合は、外部装置(産業システム)からのデジタル入力信号を正しく入力することが出来ない。 A digital input device serving as an input module of a programmable logic controller (hereinafter referred to as PLC) is generally composed of a CR filter circuit or a photocoupler. If this photocoupler fails or the wiring route within the printed circuit board fails, digital input signals from an external device (industrial system) cannot be correctly input.

デジタル入力装置は、例えば大規模プラントや工作機械等の様々な産業システムに使用されている。一般に産業システムでは、インターロック回路を用いて、ある条件が成立する場合のみシステムが動作するように設計されている。デジタル入力信号が正しく入力できなかった場合、これらの産業システムが誤動作する原因となり、重大な事故が起こる可能性が有る。 Digital input devices are used in various industrial systems such as large-scale plants and machine tools. Generally, industrial systems are designed to operate only when certain conditions are met using interlock circuits. If digital input signals cannot be input correctly, these industrial systems may malfunction, potentially causing serious accidents.

特開2011-69694JP2011-69694

現在、デジタル入力装置の故障を検出するためには、例えばメンテナンス作業員が、PLCの設置されている場所に行き、産業システムの動作を停止させた後、外部装置の配線を外して故障の確認を行う必要がある。 Currently, in order to detect a failure in a digital input device, for example, a maintenance worker must go to the location where the PLC is installed, stop the operation of the industrial system, and then disconnect the wiring of the external device and confirm the failure. need to be done.

また、PLCの設置されている場所が遠隔地である場合や、産業システムの中で手の届かない位置に設置されている場合、デジタル入力装置の故障を確認すること自体が困難である。 Furthermore, if the PLC is installed in a remote location or in an inaccessible position in an industrial system, it is difficult to confirm a failure of the digital input device.

本発明の目的は、外部装置を停止させることなく、デジタル入力装置の自動故障検出を可能にすることにある。 An object of the present invention is to enable automatic failure detection of a digital input device without stopping an external device.

上記課題に対して本願は複数の解決手段を備えている。その一例は、外部装置からデータを入力するデータ入力回路と、CPUモジュールに接続されるデータバスに前記データを供給する内部回路とを備え、前記データ入力回路は、テスト信号発生回路を備え、前記データ入力回路は、前記データバスに前記外部装置からのデータを供給しない時間に、テスト信号を前記内部回路に供給することを特徴とするデジタル入力装置である。 The present application provides a plurality of solutions to the above problems. One example includes a data input circuit that inputs data from an external device, and an internal circuit that supplies the data to a data bus connected to a CPU module, and the data input circuit includes a test signal generation circuit, and the data input circuit includes a test signal generation circuit; The data input circuit is a digital input device characterized in that it supplies a test signal to the internal circuit during a time when data from the external device is not supplied to the data bus.

本発明によれば、外部装置を停止させることなく、デジタル入力装置の自動故障検出を可能にすることにある。 According to the present invention, it is possible to automatically detect a failure of a digital input device without stopping an external device.

実施例1のPLCシステムの装置構成を示した図である。1 is a diagram showing the device configuration of a PLC system of Example 1. FIG. 実施例1のデジタル入力装置の構成図である。1 is a configuration diagram of a digital input device according to a first embodiment; FIG. CPUモジュールとデジタル入力装置のデータアクセスのタイミングと故障判定を行うタイミングを示した図である。FIG. 3 is a diagram showing data access timing and failure determination timing between a CPU module and a digital input device. テストパターン生成処理フローを示した図であるIt is a diagram showing a test pattern generation processing flow. 外部データDATAのパターンを示した図である。FIG. 3 is a diagram showing a pattern of external data DATA. 外部データDATAのトレンド判定フローを示した図である。It is a figure showing the trend judgment flow of external data DATA. デジタル入力装置の自己診断処理フローを示した図である。It is a figure showing a self-diagnosis processing flow of a digital input device.

以下、本発明を実施するための形態(以下、「本実施例」という)について、図面を用いて説明する。 EMBODIMENT OF THE INVENTION Hereinafter, the form for carrying out this invention (henceforth "this Example") is demonstrated using drawings.

図1は、実施例1のPLCのシステム構成を示した図である。実施例1のPLCは、ベース10の上に電源モジュール11、CPUモジュール12、デジタル入力装置群13が接続されている。CPUモジュール12からデジタル入力装置へのデータアクセスは、ベース10のデータアクセスバスを介して行われる。本実施例のデジタル入出力装置群13はデジタル入出力装置がN+1個接続されており、1つのCPUモジュール12に第0デジタル入力装置14から第Nデジタル入力装置16まで接続されている。また、データアクセスは、複数のデジタル入出力装置14~16に対して順番に行われる。 FIG. 1 is a diagram showing a system configuration of a PLC according to a first embodiment. In the PLC of the first embodiment, a power supply module 11, a CPU module 12, and a digital input device group 13 are connected to a base 10. Data access from the CPU module 12 to the digital input devices is via the data access bus of the base 10. In the digital input/output device group 13 of this embodiment, N+1 digital input/output devices are connected, and from the 0th digital input device 14 to the Nth digital input device 16 are connected to one CPU module 12. Further, data access is performed sequentially to the plurality of digital input/output devices 14 to 16.

図2は、実施例1のデジタル入出力装置の構成図である。電源は省略している。図2のデジタル入力装置は外部装置21に接続されている状態を示している。デジタル入力装置は、内部回路22、入力回路23、内部回路22と入力回路23との間に配置されたフォトカプラ24とを備えている。 FIG. 2 is a configuration diagram of the digital input/output device according to the first embodiment. Power supply is omitted. The digital input device in FIG. 2 is shown connected to an external device 21. As shown in FIG. The digital input device includes an internal circuit 22, an input circuit 23, and a photocoupler 24 arranged between the internal circuit 22 and the input circuit 23.

内部回路22は論理回路であり、データアクセスバスに接続されている、
入力回路23はRCフィルタなど外部装置21からデータを取り込むための回路である。
The internal circuit 22 is a logic circuit and is connected to a data access bus.
The input circuit 23 is a circuit for taking in data from the external device 21 such as an RC filter.

フォトカプラ24は、外部装置21からの外部データDATAを電気信号から光信号に変えて内部回路22に伝達することで、絶縁型のデジタル入力装置を構成し、電気的外乱の侵入を防いでいる。 The photocoupler 24 configures an isolated digital input device by converting external data DATA from the external device 21 from an electrical signal into an optical signal and transmitting it to the internal circuit 22, thereby preventing the intrusion of electrical disturbances. .

本実施例の入力回路23は、外部装置21との接続端側から外部切り離し回路25とテスト信号発生回路26とRCフィルタなどの既存入力回路を備えている。 The input circuit 23 of this embodiment includes an external disconnection circuit 25, a test signal generation circuit 26, and existing input circuits such as an RC filter from the connection end side with the external device 21.

外部切り離し回路25は、外部信号により、外部装置21と入力回路23との電気的な接続を切り離し、再接続する制御を行い、その制御状態を出力するものである。 The external disconnection circuit 25 performs control to disconnect and reconnect the external device 21 and the input circuit 23 electrically using an external signal, and outputs the control state.

テスト信号発生回路26は、外部切り離し回路25から切り離し出力を受け取ったことをトリガとして、テスト信号TSSの内部回路22への出力を開始し、外部切り離し回路25から再接続出力を受け取ったことをトリガとして、または所定回数のテスト信号TSSを出力したことをトリガとして、テスト信号TSSの内部回路22への出力を停止する。 The test signal generation circuit 26 is triggered by receiving the disconnection output from the external disconnection circuit 25 and starts outputting the test signal TSS to the internal circuit 22, and is triggered by receiving the reconnection output from the external disconnection circuit 25. or when the test signal TSS is output a predetermined number of times as a trigger, the output of the test signal TSS to the internal circuit 22 is stopped.

内部回路22はテスト信号TSSを入力信号INSとして検出した場合は正常と判断し、テスト信号TSSを入力信号INSとして検出できない場合は故障と判断する。 If the internal circuit 22 detects the test signal TSS as the input signal INS, it is determined to be normal, and if it cannot detect the test signal TSS as the input signal INS, it determines it to be a failure.

次に、故障判定を行う処理をタイミング図で説明する。図3は、CPUモジュール12と第0デジタル入出力装置14のデータアクセスのタイミングと故障判定を行うタイミングを示した図である。タイミングを説明する前に、まず、各信号の説明をする。 Next, the process of determining a failure will be explained using a timing diagram. FIG. 3 is a diagram showing data access timing and failure determination timing of the CPU module 12 and the 0th digital input/output device 14. Before explaining the timing, each signal will be explained first.

第0チップセレクト信号CS0~第Nチップセレクト信号CSNは、CPUモジュール12からのチップセレクト信号である。 The 0th chip select signal CS0 to the Nth chip select signal CSN are chip select signals from the CPU module 12.

アドレス信号ADRは、CPUモジュール12が外部装置21から取得した外部データDATAを取り込むアドレス空間を指定する信号である。 The address signal ADR is a signal that specifies an address space into which the CPU module 12 takes in external data DATA acquired from the external device 21.

リフレッシュサイクルT2は、CPUモジュール12が所望のデジタル入出力装置IOから外部データDATAの取り込みを行うサイクルタイムである。 The refresh cycle T2 is a cycle time during which the CPU module 12 takes in external data DATA from a desired digital input/output device IO.

テスト可能時間T1は第0デジタル入出力装置14での故障診断が可能な時間である。 The testable time T1 is a time during which failure diagnosis can be performed on the 0th digital input/output device 14.

リフレッシュサイクルT2中テスト可能時間T1になる前、つまり、チップセレクト信号CS0がLOWとなっている時間T0は、第0デジタル入出力装置14から外部データDATAがCPUモジュール12に供給され、テスト可能時間T1(第0クロック信号IN0がHIGHとなっている間)には、第0デジタル入出力装置14から外部データDATAがCPUモジュール12に供給されない。 Before the testable time T1 during the refresh cycle T2, that is, the time T0 when the chip select signal CS0 is LOW, the external data DATA is supplied from the 0th digital input/output device 14 to the CPU module 12, and the testable time is reached. During T1 (while the 0th clock signal IN0 is HIGH), the external data DATA is not supplied to the CPU module 12 from the 0th digital input/output device 14.

外部切離し信号DVSは、第0チップセレクト信号がLOW/HIGHのステータスまたは切替をトリガとして、外部切り離し回路23が外部回路21をデジタル入出力装置14から電気的な切り離しと再接続の切替を、テスト信号発生回路26に知らせる信号である。 The external disconnection signal DVS tests the external disconnection circuit 23 to electrically disconnect and reconnect the external circuit 21 from the digital input/output device 14 using the LOW/HIGH status or switching of the 0th chip select signal as a trigger. This is a signal to notify the signal generation circuit 26.

テスト信号TSSは、切り離し信号DVSをトリガとして、テスト信号発生回路26が内部回路22に対する出力するテスト信号である。結局、第0チップセレクト信号がLOWからHIGHになると外部切り離しとテスト信号の出力が行われ、第0チップセレクト信号がHIGHからLOWになると外部切り出し回路による再接続とテスト信号の出力停止が行われる。 The test signal TSS is a test signal that the test signal generation circuit 26 outputs to the internal circuit 22 using the disconnection signal DVS as a trigger. In the end, when the 0th chip select signal changes from LOW to HIGH, external disconnection and test signal output are performed, and when the 0th chip select signal changes from HIGH to LOW, reconnection is performed by the external cutout circuit and output of the test signal is stopped. .

内部信号INSは、内部回路22が内部入力として検出した信号である。 The internal signal INS is a signal detected by the internal circuit 22 as an internal input.

まず、CPUモジュール12は、第0デジタル入出力装置14~第Nデジタル入出力装置16に対して、各チップセレクト信号(第0チップセレクト信号CS0~第Nチップセレクト信号CSN)とアドレス信号ADRとをデータアクセスバスを通じて供給する。 First, the CPU module 12 sends each chip select signal (0th chip select signal CS0 to Nth chip select signal CSN) and address signal ADR to the 0th digital input/output device 14 to the Nth digital input/output device 16. is supplied through the data access bus.

第0デジタル入出力装置14の内部回路22は第0クロック信号CS0がLOWになったことをトリガとして、CPUモジュール12との間でデータアクセスを行い、外部データDATAをデータアクセスバスに出力する。 The internal circuit 22 of the 0th digital input/output device 14 is triggered by the 0th clock signal CS0 becoming LOW, performs data access with the CPU module 12, and outputs external data DATA to the data access bus.

同様に、第1デジタル入出力装置IO1は第1クロック信号CS1がLOWの期間に、第Nデジタル入出力装置16は第Nクロック信号CSNがLOWの期間に、CPUモジュール12との間でデータアクセスを行う。 Similarly, the first digital input/output device IO1 accesses data with the CPU module 12 while the first clock signal CS1 is LOW, and the Nth digital input/output device 16 accesses data with the CPU module 12 while the Nth clock signal CSN is LOW. I do.

第0デジタル入出力装置14の外部切り離し回路25は、第0チップセレクト信号CS0がLOWからHIGHになったことを、配線27を介して供給される内部回路22からの信号で検知し、これをトリガとしてテスト信号発生回路26に外部切り離し信号DVSを送る。 The external disconnection circuit 25 of the 0th digital input/output device 14 detects that the 0th chip select signal CS0 changes from LOW to HIGH using a signal from the internal circuit 22 supplied via the wiring 27, and detects this. An external disconnection signal DVS is sent to the test signal generation circuit 26 as a trigger.

テスト信号発生回路26は、外部切り離し回路25からの外部切り離し信号DVSをトリガとして、テスト信号TSSを生成し、内部回路22にテスト信号TSSを出力する。このテスト信号は第0チップセレクト信号がLOWからHIGHになると外部切り出し回路25の出力によりテスト信号を出力し、第0チップセレクト信号がHIGHからLOWになると外部切り出し回路25の出力によりテスト信号の出力を停止する。 The test signal generation circuit 26 generates a test signal TSS using the external disconnection signal DVS from the external disconnection circuit 25 as a trigger, and outputs the test signal TSS to the internal circuit 22. This test signal outputs a test signal by the output of the external extraction circuit 25 when the 0th chip select signal changes from LOW to HIGH, and outputs the test signal by the output of the external extraction circuit 25 when the 0th chip select signal changes from HIGH to LOW. stop.

内部回路22は、内部入力INSとしてテスト信号TSSと同じ回数の信号を検出できなかった場合、故障と判断し、内部入力INSとしてテスト信号TSSと同じ回数の信号を検出した場合、故障なしと判断する。 If the internal circuit 22 cannot detect the same number of times as the test signal TSS as the internal input INS, it determines that there is a failure, and if it detects the same number of times as the test signal TSS as the internal input INS, it determines that there is no failure. do.

故障であると判定した場合、第0デジタル入出力装置14に備えたLEDなどで故障をユーザやメンテナンス作業員に通報するか、故障をCPUモジュール12に通報する。通報されたCPUモジュール12は、異常信号をインターロック回路に使用して産業システムを安全に停止させる。さらに、CPUモジュールはLEDに異常表示を行うことで、ユーザやメンテナンス作業員に故障を知らせる。 If it is determined that there is a failure, the failure is reported to the user or maintenance worker using an LED provided in the 0th digital input/output device 14, or the CPU module 12 is notified of the failure. The CPU module 12 that has been notified uses the abnormal signal to the interlock circuit to safely stop the industrial system. Furthermore, the CPU module notifies users and maintenance workers of the malfunction by displaying an abnormality display on the LED.

なお、テスト信号TSSの入力回数Nは、PLCが設置されている場所のノイズ環境等のPLCの設置環境により任意に設定できるものとする。また、テスト信号TSSの入力回数は、テスト可能時間T1によってその入力できる回数が決まる。また、テスト可能時間T1は、PLCに実装されるデジタル入力装置の個数やCPUモジュール12内のプログラムによって変化するものであり、テスト可能時間内にテスト入力信号をN回入力出来ない場合がある。テスト可能時間内にテスト入力信号をN回入力出来ない場合は、次のリフレッシュサイクルT2にテスト信号を分散させることも可能である。 Note that the number of inputs N of the test signal TSS can be arbitrarily set depending on the installation environment of the PLC, such as the noise environment where the PLC is installed. Further, the number of times the test signal TSS can be inputted is determined by the testable time T1. Further, the testable time T1 changes depending on the number of digital input devices installed in the PLC and the program in the CPU module 12, and there are cases where the test input signal cannot be input N times within the testable time. If the test input signal cannot be input N times within the testable time, it is also possible to distribute the test signal to the next refresh cycle T2.

以上のように、本実施例のデジタル入出力装置は、個々のデジタル入力装置だけでなく、PLCシステムやデジタル入力装置に接続された外部機器の運転も停止させなくても、個々のデジタル入力装置の故障判定を行うことが可能となっている。 As described above, the digital input/output device of this embodiment can be used to operate not only the individual digital input devices but also the PLC system and the external devices connected to the digital input devices without stopping the operation. It is now possible to perform failure determination.

実施例2は、実施例1では固定パターンでテストしていたテスト信号を設定可能とするものである。 In the second embodiment, it is possible to set the test signal, which was tested using a fixed pattern in the first embodiment.

図4は、テストパターン生成処理フローを示した図である。この処理は内部回路22とテスト信号発生回路26で行う。 FIG. 4 is a diagram showing a test pattern generation processing flow. This processing is performed by the internal circuit 22 and the test signal generation circuit 26.

まず、内部回路22はテスト可能時間T1をCPUモジュール12から取得し、テスト信号発生回路26に供給する。 First, the internal circuit 22 acquires the testable time T1 from the CPU module 12 and supplies it to the test signal generation circuit 26.

テスト信号発生回路26は、テスト時間TTSの合計とテスト可能時間T1とを比較する。 The test signal generation circuit 26 compares the total test time TTS with the testable time T1.

テスト時間TTSの合計がテスト可能時間T1より短い場合は、1回のリフレッシュサイクルT2のテスト可能時間T1内でテストを行う。そうでない場合は、1回のテスト時間TTSと1パルスのテスト時間TTSPより、1回のテスト時間TTSでテスト可能なパルス数を決定する。具体的には、1回のテスト時間TTSを1パルスのテスト時間TTSPで割ることで算出する。 If the total test time TTS is shorter than the testable time T1, the test is performed within the testable time T1 of one refresh cycle T2. If not, the number of pulses that can be tested in one test time TTS is determined from the one test time TTS and the one pulse test time TTSP. Specifically, it is calculated by dividing one test time TTS by one pulse test time TTSP.

次に、総テスト回数と1回のサイクルでテストするパルス数よりテストを行うサイクル数を決定し、テスト信号発生回路26はテスト信号を生成する。具体的には、総テスト回数を1回のサイクルでテストするパルス数で割ることで、テストを行うサイクル数を決定する。 Next, the number of cycles to be tested is determined from the total number of tests and the number of pulses tested in one cycle, and the test signal generation circuit 26 generates a test signal. Specifically, the number of cycles to perform the test is determined by dividing the total number of tests by the number of pulses tested in one cycle.

テスト信号発生回路26は、テスト信号TSSを内部回路22に供給するとともに、判定基準として、その結果を供給する。 The test signal generation circuit 26 supplies the test signal TSS to the internal circuit 22 and also supplies the result as a criterion.

このテスト信号TSSの設定結果は、テスト信号を生成するテスト信号発生回路26と判定を行う内部回路22とで共有できていればよいので、どちらが行ってもよい。 It is sufficient that the setting result of the test signal TSS can be shared between the test signal generation circuit 26 that generates the test signal and the internal circuit 22 that makes the determination, so it may be done by either one.

これまでの実施例の故障判定は毎サイクル(常時)行うことを前提としていたが、本実施例では、故障判定は常時行わず、内部回路22が外部データDATAのトレンドを常時監視してトレンドから外れた場合のみ故障判定を行う。 In the previous embodiments, it was assumed that failure determination was performed every cycle (always), but in this embodiment, failure determination is not performed all the time, and the internal circuit 22 constantly monitors the trend of the external data DATA and detects the trend. A failure judgment is made only if it comes off.

図5は、外部データDATAのパターンを示した図である。外部データDATAは、「常時ONパターン」、「常時OFFパターン」、「(一定)周期ONパターン」、「不定期ONパターン」の4つパターンに分類可能である。本実施例では、まず外部データDATAが4つのパターンのどれに分類されるのかを判定する。 FIG. 5 is a diagram showing a pattern of external data DATA. The external data DATA can be classified into four patterns: "always on pattern", "always off pattern", "(constant) periodic on pattern", and "irregular on pattern". In this embodiment, first, it is determined which of the four patterns the external data DATA is classified into.

図6は、外部データDATAのトレンド判定フローを示した図である。判定をスタートし、「ON時間パターン」と「OFF時間パターン」を監視する。ON時間がOFF時間と比較して大きい場合は、「常時ONパターン」と判定する。そうでない場合、同様にON時間とOFF時間を監視し、OFF時間がON時間と比較して大きい場合は、「常時OFFパターン」と判定する。そうでない場合、ONする周期を監視し、ONする周期が一定であれば「周期ONパターン」と判定する。そうでない場合は、「不定期ONパターン」と判定する。ここで、周期ONパターンと不定期ONパターンと判定した場合は、外部データDATAがONとOFFに変化しているため、回路の故障は無いと判断し故障判定は行わない。「常時ONパターン」、「常時OFFパターン」と判定した場合で、トレンドから外れた場合に故障判定を行う。 FIG. 6 is a diagram showing a trend determination flow for external data DATA. Start the determination and monitor the "ON time pattern" and "OFF time pattern". If the ON time is longer than the OFF time, it is determined that the pattern is "always on". If not, the ON time and OFF time are similarly monitored, and if the OFF time is larger than the ON time, it is determined that the pattern is "always OFF pattern". If not, the period of ON is monitored, and if the period of ON is constant, it is determined to be a "periodic ON pattern". Otherwise, it is determined that the pattern is an "irregular ON pattern." Here, if it is determined that the pattern is a periodic ON pattern or an irregular ON pattern, since the external data DATA is changing between ON and OFF, it is determined that there is no circuit failure and no failure determination is performed. If it is determined to be an "always on pattern" or "always off pattern" and the pattern deviates from the trend, a failure determination is made.

図7は、デジタル入力装置の自己診断処理フローを示した図である。 FIG. 7 is a diagram showing a self-diagnosis processing flow of the digital input device.

はじめにPLCの電源を起動されると、クロック信号とアドレス信号テストが内部回路22に入力される。それをトリガとして、テスト信号発生回路26はテスト信号を決定する。実施例1のように外部切り離し回路を備える場合、その制御結果をトリガとする。 When the power of the PLC is first turned on, a clock signal and an address signal test are input to the internal circuit 22. Using this as a trigger, the test signal generation circuit 26 determines a test signal. When an external disconnection circuit is provided as in the first embodiment, the control result thereof is used as a trigger.

次に、内部回路22は、外部データDATAのパターン判定を行いトレンド監視を行う。 Next, the internal circuit 22 determines the pattern of the external data DATA and monitors the trend.

外部データDATAが「常時ONパターン」か「常時OFFパターン」の場合、それぞれ入力信号がON、OFFの場合は再びトレンド監視を行う。 If the external data DATA is a "constantly ON pattern" or "constantly OFF pattern" and the input signal is ON or OFF, trend monitoring is performed again.

そうでない場合は、トレンドから外れたと判断して故障判定動作に移行する。なお、トレンドから外れていない場合でも、設定により強制的に故障判定動作に移行することができる機能を付与してもよい。 If not, it is determined that it has deviated from the trend, and the process moves to a failure determination operation. Note that a function may be provided that allows a setting to forcibly shift to a failure determination operation even when the trend is not deviated from.

故障判定動作に移行した場合、まず故障判定回数をカウントする。次に、故障判定回数を比較しN回以上の場合は、入力信号のトレンドが変化したと判断して再び入力信号のパターン判定を行う。そうでない場合は、故障判定を実行する。故障判定を実行した結果正常の場合は、再びトレンド監視を行う。そうでない場合は、故障と判断し、デジタル入力装置のLEDに異常表示を行うと共にCPUモジュール12に異常を通知する。通知されたCPUモジュール12は、異常信号をインターロック回路に使用して産業システムを安全に停止させる。さらに、CPUモジュールはLEDに異常表示を行うことで、メンテナンス作業員に故障を知らせる。 When proceeding to the failure determination operation, first the number of failure determinations is counted. Next, the number of failure determinations is compared, and if it is N or more, it is determined that the trend of the input signal has changed, and pattern determination of the input signal is performed again. If not, perform failure determination. If the result of failure determination is normal, trend monitoring is performed again. If not, it is determined that there is a failure, and an abnormality is displayed on the LED of the digital input device, and the CPU module 12 is notified of the abnormality. The notified CPU module 12 uses the abnormal signal to the interlock circuit to safely stop the industrial system. Furthermore, the CPU module notifies maintenance workers of the failure by displaying an abnormality display on the LED.

10…ベース
11…電源モジュール
12…CPUモジュール
I3…デジタル入力装置群
14…第0デジタル入力装置
15…第1デジタル入力装置
16…第Nデジタル入力装置

20…デジタル入力装置
21…外部回路
22…内部回路
23…入力回路
24…フォトカプラ
25…外部切り離し回路
26…テスト信号発生回路

CS0…第0チップセレクト信号
CS1…第1チップセレクト信号
CSN…第Nチップセレクト信号
ADR…アドレス信号
DATA…外部データ
DVS…外部切離し信号
INS…内部入力
T0…外部データがCPUモジュールに供給される時間
T1…リフレッシュサイクル内でのテスト可能時間
T2…リフレッシュサイクル
TSS…テスト信号
TTS・・・テスト時間
TTSP・・・1パルスのテスト時間
10...Base 11...Power supply module 12...CPU module I3...Digital input device group 14...0th digital input device 15...1st digital input device 16...Nth digital input device

20...Digital input device 21...External circuit 22...Internal circuit 23...Input circuit 24...Photocoupler 25...External disconnection circuit 26...Test signal generation circuit

CS0...0th chip select signal CS1...1st chip select signal CSN...Nth chip select signal ADR...Address signal DATA...External data DVS...External disconnection signal INS...Internal input T0...Time during which external data is supplied to the CPU module T1...Testable time within refresh cycle T2...Refresh cycle TSS...Test signal TTS...Test time TTSP...Test time for one pulse

Claims (5)

外部装置からデータを入力するデータ入力回路と、CPUモジュールに接続されるデータバスに前記データを供給する内部回路と、前記データ入力回路と前記内部回路との間にフォトカプラとを備え、
前記データ入力回路は、外部切り離し回路とテスト信号発生回路とを備え、
前記内部回路は、前記CPUモジュールが前記データの取り込みを行うサイクルタイムであるリフレッシュサイクル中の故障判定のためのテストが可能な時間であるテスト可能時間を前記CPUモジュールから取得し、前記テスト信号発生回路に供給し、前記テスト可能時間中に前記テスト信号発生回路から供給されるテスト信号を使って前記故障判定のためのテストを行い、
前記外部切り離し回路は、前記CPUモジュールから供給されるチップセレクト信号に基づいて、前記外部装置との切り離しと再接続とを制御し、
前記テスト信号発生回路は、前記外部切り離し回路から切り離し出力を受け取ったことをトリガとして、前記テスト信号の前記内部回路への出力を開始し、前記外部切り離し回路から再接続出力を受け取ったことをトリガとして、前記テスト信号の前記内部回路への出力を停止し、
前記テスト可能時間と、前記故障判定のためのテストを行うテスト時間とを比較し、
前記内部回路は、前記テスト時間が前記テスト可能時間より小さい場合、1回の前記リフレッシュサイクルで前記故障判定のためのテストを行い、
前記テスト時間が前記テスト可能時間以上である場合、前記テスト可能時間を1パルスのテスト時間で割ることにより、1回の前記リフレッシュサイクルでテストするパルス数を算出し、
前記故障判定に必要な総テスト回数を1回の前記リフレッシュサイクルでテストするパルス数で割ることにより、前記故障判定のためのテストを行う前記リフレッシュサイクルの数を算出し、
前記テスト信号を算出した前記リフレッシュサイクルの数の複数の前記リフレッシュサイクルに分散させて前記故障判定のためのテストを行うことを特徴とするデジタル入力装置。
A data input circuit that inputs data from an external device, an internal circuit that supplies the data to a data bus connected to a CPU module, and a photocoupler between the data input circuit and the internal circuit,
The data input circuit includes an external disconnection circuit and a test signal generation circuit,
The internal circuit obtains a testable time from the CPU module, which is a time during which a test for failure determination is possible during a refresh cycle, which is a cycle time during which the CPU module takes in the data, and generates the test signal. and performing a test for determining the failure using a test signal supplied from the test signal generation circuit during the testable time;
The external disconnection circuit controls disconnection and reconnection to the external device based on a chip select signal supplied from the CPU module,
The test signal generation circuit is triggered by receiving a disconnection output from the external disconnection circuit to start outputting the test signal to the internal circuit, and is triggered by receiving a reconnection output from the external disconnection circuit. stopping the output of the test signal to the internal circuit,
Comparing the testable time and the test time for performing the test for failure determination,
If the test time is shorter than the testable time, the internal circuit performs the test for failure determination in one refresh cycle;
If the test time is greater than or equal to the testable time, calculate the number of pulses to be tested in one refresh cycle by dividing the testable time by the test time of one pulse;
Calculating the number of refresh cycles for performing the test for failure determination by dividing the total number of tests required for the failure determination by the number of pulses tested in one refresh cycle;
A digital input device characterized in that the test for fault determination is performed by distributing the test signal to a plurality of the refresh cycles equal to the calculated number of the refresh cycles.
請求項1において、
前記外部装置からのデータを監視し、トレンドから外れた場合に前記故障判定を行うことを特徴とするデジタル入力装置。
In claim 1,
A digital input device characterized in that the data from the external device is monitored and the failure determination is made when the data deviates from a trend.
請求項2において、
前記外部装置からのデータを監視し、トレンドから外れていなくても、強制的に前記故障判定を行う機能を備えたことを特徴とするデジタル入力装置。
In claim 2,
A digital input device characterized by having a function of monitoring data from the external device and forcibly determining the failure even if the data does not deviate from a trend.
請求項1において、
前記故障判定の結果が故障となった場合、デジタル入力装置自体でユーザに通報するか、前記CPUモジュールに通報してプログラマブルロジックコントローラを停止させることを特徴とするデジタル入力装置。
In claim 1,
A digital input device characterized in that when the result of the failure determination is a failure, the digital input device itself notifies a user or the CPU module is notified to stop a programmable logic controller.
データアクセスバスが利用可能なベースと前記ベースに接続された複数のデジタル入力装置と、前記ベースに接続され、前記デジタル入力装置へのデータアクセスを、前記データアクセスバスを介して行うCPUモジュールとを備え、
前記デジタル入力装置は、外部装置からデータを入力するデータ入力回路と、前記データアクセスバスに接続され前記データを前記データアクセスバスに供給する内部回路と、前記データ入力回路と前記内部回路との間に配置されたフォトカプラと、外部切り離し回路と、テスト信号発生回路とを備え、
前記CPUモジュールは前記CPUモジュールが前記データの取り込みを行うサイクルタイムであるリフレッシュサイクル中の故障判定のためのテストが可能な時間であるテスト可能時間とクロック信号を各デジタル入力装置に供給し、
前記デジタル入力装置は、前記データを前記CPUモジュールに供給しない時間に、前記クロック信号に基づいて前記外部切り離し回路で前記外部装置を電気的に切り離し、
前記テスト信号発生回路は、前記外部切り離し回路から切り離し出力を受け取ったことをトリガとして、テスト信号の前記内部回路への出力を開始し、前記外部切り離し回路から再接続出力を受け取ったことをトリガとして、前記テスト信号の前記内部回路への出力を停止することにより、前記外部装置を切り離した状態で、前記テスト信号を前記内部回路に供給し、前記内部回路は、前記テスト可能時間を前記CPUモジュールから取得し、前記テスト信号発生回路に供給し、前記テスト可能時間中に前記テスト信号発生回路から供給される前記テスト信号を使った前記故障判定のためのテストを行い、
前記テスト信号発生回路は、
前記テスト可能時間と、前記故障判定のためのテストを行うテスト時間とを比較し、
前記内部回路は、前記テスト時間が前記テスト可能時間より小さい場合、1回の前記リフレッシュサイクルで前記故障判定のためのテストを行い、
前記テスト時間が前記テスト可能時間以上である場合、前記テスト可能時間を1パルスのテスト時間で割ることにより、1回の前記リフレッシュサイクルでテストするパルス数を算出し、
前記故障判定に必要な総テスト回数を1回の前記リフレッシュサイクルでテストするパルス数で割ることにより、前記故障判定のためのテストを行う前記リフレッシュサイクルの数を算出し、
前記テスト信号を算出した前記リフレッシュサイクルの数の複数の前記リフレッシュサイクルに分散させて前記故障判定のためのテストを行うことを特徴とするプログラマブルロジックコントローラ。
a base on which a data access bus can be used ; a plurality of digital input devices connected to the base; and a CPU module connected to the base and configured to access data to the digital input devices via the data access bus. Equipped with
The digital input device includes a data input circuit that inputs data from an external device, an internal circuit that is connected to the data access bus and supplies the data to the data access bus , and a combination of the data input circuit and the internal circuit. Equipped with a photocoupler placed between, an external disconnection circuit , and a test signal generation circuit,
The CPU module supplies each digital input device with a testable time, which is a time during which a test for failure determination can be performed during a refresh cycle, which is a cycle time during which the CPU module takes in the data, and a clock signal;
The digital input device electrically disconnects the external device with the external disconnection circuit based on the clock signal during a time when the data is not supplied to the CPU module;
The test signal generation circuit starts outputting a test signal to the internal circuit upon receiving a disconnection output from the external disconnection circuit, and upon receiving a reconnection output from the external disconnection circuit as a trigger. , by stopping the output of the test signal to the internal circuit, the test signal is supplied to the internal circuit while the external device is disconnected, and the internal circuit is configured to control the testable time to the CPU module. and supplying it to the test signal generation circuit, and performing a test for the failure determination using the test signal supplied from the test signal generation circuit during the testable time,
The test signal generation circuit includes:
Comparing the testable time and the test time for performing the test for failure determination,
If the test time is shorter than the testable time, the internal circuit performs the test for failure determination in one refresh cycle;
If the test time is greater than or equal to the testable time, calculate the number of pulses to be tested in one refresh cycle by dividing the testable time by the test time of one pulse;
Calculating the number of refresh cycles for performing the test for failure determination by dividing the total number of tests required for the failure determination by the number of pulses tested in one refresh cycle;
A programmable logic controller characterized in that the test for fault determination is performed by distributing the test signal to a plurality of the refresh cycles equal to the calculated number of the refresh cycles.
JP2019037160A 2019-03-01 2019-03-01 Digital input devices and programmable logic controllers Active JP7445388B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019037160A JP7445388B2 (en) 2019-03-01 2019-03-01 Digital input devices and programmable logic controllers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019037160A JP7445388B2 (en) 2019-03-01 2019-03-01 Digital input devices and programmable logic controllers

Publications (2)

Publication Number Publication Date
JP2020140593A JP2020140593A (en) 2020-09-03
JP7445388B2 true JP7445388B2 (en) 2024-03-07

Family

ID=72264982

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019037160A Active JP7445388B2 (en) 2019-03-01 2019-03-01 Digital input devices and programmable logic controllers

Country Status (1)

Country Link
JP (1) JP7445388B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004185564A (en) 2002-12-06 2004-07-02 Matsushita Electric Ind Co Ltd Control unit
JP2009236536A (en) 2008-03-26 2009-10-15 Calsonic Kansei Corp Self-diagnostic device of meter
JP2011069694A (en) 2009-09-25 2011-04-07 Hitachi Ltd Programmable logic controller, and failure diagnosis method in the same
JP2013090542A (en) 2011-10-21 2013-05-13 Keihin Corp Electronic control device
JP2013206087A (en) 2012-03-28 2013-10-07 Toshiba Corp Multiplexing control system
JP2018156434A (en) 2017-03-17 2018-10-04 東芝三菱電機産業システム株式会社 Process control system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004185564A (en) 2002-12-06 2004-07-02 Matsushita Electric Ind Co Ltd Control unit
JP2009236536A (en) 2008-03-26 2009-10-15 Calsonic Kansei Corp Self-diagnostic device of meter
JP2011069694A (en) 2009-09-25 2011-04-07 Hitachi Ltd Programmable logic controller, and failure diagnosis method in the same
JP2013090542A (en) 2011-10-21 2013-05-13 Keihin Corp Electronic control device
JP2013206087A (en) 2012-03-28 2013-10-07 Toshiba Corp Multiplexing control system
JP2018156434A (en) 2017-03-17 2018-10-04 東芝三菱電機産業システム株式会社 Process control system

Also Published As

Publication number Publication date
JP2020140593A (en) 2020-09-03

Similar Documents

Publication Publication Date Title
US9667064B2 (en) Daisy chain configuration for power converters
US7610119B2 (en) Safety controller and system using same
JP4762140B2 (en) Process apparatus and method with loop override
EP2463778B1 (en) Computer system
JP2019101515A (en) Semiconductor device and power supply monitoring method therefor
CN105759781A (en) Wiring Method For Robot
US8090474B2 (en) Apparatus for controlling at least one machine
US7417878B2 (en) Distributed power supply and method of recovering from error
KR20150018993A (en) Apparatus and Method for implementing fail safe in Battery Management System
JP7445388B2 (en) Digital input devices and programmable logic controllers
CN102611600B (en) Method and device for locating short circuit position of CAN (Controller Area Network) network
JP2018163498A (en) Monitoring circuit
JP6521020B2 (en) Safety controller
KR100380658B1 (en) Out put device using serial communication of triple type control device and control method thereof
KR100626737B1 (en) Duplex control apparatus for micro control of diesel dispersion control system remote terminal equipment
US5524117A (en) Microcomputer system with watchdog monitoring of plural and dependent overlapping output therefrom
US9823302B2 (en) Semiconductor circuit and semiconductor system
KR101779117B1 (en) Interface device for remote monitering and control
US20240161713A1 (en) Systems and methods of fault detection for input/output modules of industrial systems
KR20160011427A (en) Vme/vpx bus backplane and method for controlling system reset me/vpx bus backplane
JPS61169036A (en) System supervisory device
JP2011248396A (en) Electronic circuit system, microcomputer, and operation method for electronic circuit system
JPH0675867A (en) I/o monitoring controller
JPH0764666A (en) Device malfunction preventing system at the time of clock disturbance
KR960038649A (en) Production control status monitoring method and device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190304

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190319

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20220119

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20220125

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230411

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230607

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230912

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231023

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20231114

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20231227

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20240130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240226

R150 Certificate of patent or registration of utility model

Ref document number: 7445388

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150