JP7445388B2 - Digital input devices and programmable logic controllers - Google Patents
Digital input devices and programmable logic controllers Download PDFInfo
- 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
Links
- 238000012360 testing method Methods 0.000 claims description 101
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims description 24
- 230000001960 triggered effect Effects 0.000 claims description 5
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 13
- 238000012545 processing Methods 0.000 description 5
- 230000005856 abnormality Effects 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 4
- 230000001788 irregular Effects 0.000 description 3
- 230000000737 periodic effect Effects 0.000 description 3
- QJMMCGKXBZVAEI-UHFFFAOYSA-N tris(trimethylsilyl) phosphate Chemical compound C[Si](C)(C)OP(=O)(O[Si](C)(C)C)O[Si](C)(C)C QJMMCGKXBZVAEI-UHFFFAOYSA-N 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 230000007257 malfunction Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000004092 self-diagnosis Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
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.
現在、デジタル入力装置の故障を検出するためには、例えばメンテナンス作業員が、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.
以下、本発明を実施するための形態(以下、「本実施例」という)について、図面を用いて説明する。 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
図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
内部回路22は論理回路であり、データアクセスバスに接続されている、
入力回路23はRCフィルタなど外部装置21からデータを取り込むための回路である。
The
The
フォトカプラ24は、外部装置21からの外部データDATAを電気信号から光信号に変えて内部回路22に伝達することで、絶縁型のデジタル入力装置を構成し、電気的外乱の侵入を防いでいる。
The
本実施例の入力回路23は、外部装置21との接続端側から外部切り離し回路25とテスト信号発生回路26とRCフィルタなどの既存入力回路を備えている。
The
外部切り離し回路25は、外部信号により、外部装置21と入力回路23との電気的な接続を切り離し、再接続する制御を行い、その制御状態を出力するものである。
The
テスト信号発生回路26は、外部切り離し回路25から切り離し出力を受け取ったことをトリガとして、テスト信号TSSの内部回路22への出力を開始し、外部切り離し回路25から再接続出力を受け取ったことをトリガとして、または所定回数のテスト信号TSSを出力したことをトリガとして、テスト信号TSSの内部回路22への出力を停止する。
The test
内部回路22はテスト信号TSSを入力信号INSとして検出した場合は正常と判断し、テスト信号TSSを入力信号INSとして検出できない場合は故障と判断する。
If the
次に、故障判定を行う処理をタイミング図で説明する。図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
第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
アドレス信号ADRは、CPUモジュール12が外部装置21から取得した外部データDATAを取り込むアドレス空間を指定する信号である。
The address signal ADR is a signal that specifies an address space into which the
リフレッシュサイクルT2は、CPUモジュール12が所望のデジタル入出力装置IOから外部データDATAの取り込みを行うサイクルタイムである。
The refresh cycle T2 is a cycle time during which the
テスト可能時間T1は第0デジタル入出力装置14での故障診断が可能な時間である。
The testable time T1 is a time during which failure diagnosis can be performed on the 0th digital input/
リフレッシュサイクル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/
外部切離し信号DVSは、第0チップセレクト信号がLOW/HIGHのステータスまたは切替をトリガとして、外部切り離し回路23が外部回路21をデジタル入出力装置14から電気的な切り離しと再接続の切替を、テスト信号発生回路26に知らせる信号である。
The external disconnection signal DVS tests the
テスト信号TSSは、切り離し信号DVSをトリガとして、テスト信号発生回路26が内部回路22に対する出力するテスト信号である。結局、第0チップセレクト信号がLOWからHIGHになると外部切り離しとテスト信号の出力が行われ、第0チップセレクト信号がHIGHからLOWになると外部切り出し回路による再接続とテスト信号の出力停止が行われる。
The test signal TSS is a test signal that the test
内部信号INSは、内部回路22が内部入力として検出した信号である。
The internal signal INS is a signal detected by the
まず、CPUモジュール12は、第0デジタル入出力装置14~第Nデジタル入出力装置16に対して、各チップセレクト信号(第0チップセレクト信号CS0~第Nチップセレクト信号CSN)とアドレス信号ADRとをデータアクセスバスを通じて供給する。
First, the
第0デジタル入出力装置14の内部回路22は第0クロック信号CS0がLOWになったことをトリガとして、CPUモジュール12との間でデータアクセスを行い、外部データDATAをデータアクセスバスに出力する。
The
同様に、第1デジタル入出力装置IO1は第1クロック信号CS1がLOWの期間に、第Nデジタル入出力装置16は第Nクロック信号CSNがLOWの期間に、CPUモジュール12との間でデータアクセスを行う。
Similarly, the first digital input/output device IO1 accesses data with the
第0デジタル入出力装置14の外部切り離し回路25は、第0チップセレクト信号CS0がLOWからHIGHになったことを、配線27を介して供給される内部回路22からの信号で検知し、これをトリガとしてテスト信号発生回路26に外部切り離し信号DVSを送る。
The
テスト信号発生回路26は、外部切り離し回路25からの外部切り離し信号DVSをトリガとして、テスト信号TSSを生成し、内部回路22にテスト信号TSSを出力する。このテスト信号は第0チップセレクト信号がLOWからHIGHになると外部切り出し回路25の出力によりテスト信号を出力し、第0チップセレクト信号がHIGHからLOWになると外部切り出し回路25の出力によりテスト信号の出力を停止する。
The test
内部回路22は、内部入力INSとしてテスト信号TSSと同じ回数の信号を検出できなかった場合、故障と判断し、内部入力INSとしてテスト信号TSSと同じ回数の信号を検出した場合、故障なしと判断する。
If the
故障であると判定した場合、第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/
なお、テスト信号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
以上のように、本実施例のデジタル入出力装置は、個々のデジタル入力装置だけでなく、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
まず、内部回路22はテスト可能時間T1をCPUモジュール12から取得し、テスト信号発生回路26に供給する。
First, the
テスト信号発生回路26は、テスト時間TTSの合計とテスト可能時間T1とを比較する。
The test
テスト時間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
テスト信号発生回路26は、テスト信号TSSを内部回路22に供給するとともに、判定基準として、その結果を供給する。
The test
このテスト信号TSSの設定結果は、テスト信号を生成するテスト信号発生回路26と判定を行う内部回路22とで共有できていればよいので、どちらが行ってもよい。
It is sufficient that the setting result of the test signal TSS can be shared between the test
これまでの実施例の故障判定は毎サイクル(常時)行うことを前提としていたが、本実施例では、故障判定は常時行わず、内部回路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
図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
次に、内部回路22は、外部データDATAのパターン判定を行いトレンド監視を行う。
Next, the
外部データ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
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...
20...Digital input device 21...
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モジュールから供給されるチップセレクト信号に基づいて、前記外部装置との切り離しと再接続とを制御し、
前記テスト信号発生回路は、前記外部切り離し回路から切り離し出力を受け取ったことをトリガとして、前記テスト信号の前記内部回路への出力を開始し、前記外部切り離し回路から再接続出力を受け取ったことをトリガとして、前記テスト信号の前記内部回路への出力を停止し、
前記テスト可能時間と、前記故障判定のためのテストを行うテスト時間とを比較し、
前記内部回路は、前記テスト時間が前記テスト可能時間より小さい場合、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.
前記外部装置からのデータを監視し、トレンドから外れた場合に前記故障判定を行うことを特徴とするデジタル入力装置。 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.
前記外部装置からのデータを監視し、トレンドから外れていなくても、強制的に前記故障判定を行う機能を備えたことを特徴とするデジタル入力装置。 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.
前記故障判定の結果が故障となった場合、デジタル入力装置自体でユーザに通報するか、前記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モジュールから取得し、前記テスト信号発生回路に供給し、前記テスト可能時間中に前記テスト信号発生回路から供給される前記テスト信号を使った前記故障判定のためのテストを行い、
前記テスト信号発生回路は、
前記テスト可能時間と、前記故障判定のためのテストを行うテスト時間とを比較し、
前記内部回路は、前記テスト時間が前記テスト可能時間より小さい場合、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.
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)
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 |
-
2019
- 2019-03-01 JP JP2019037160A patent/JP7445388B2/en active Active
Patent Citations (6)
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 |