JP4290710B2 - Unit-type programmable controller - Google Patents
Unit-type programmable controller Download PDFInfo
- Publication number
- JP4290710B2 JP4290710B2 JP2006140340A JP2006140340A JP4290710B2 JP 4290710 B2 JP4290710 B2 JP 4290710B2 JP 2006140340 A JP2006140340 A JP 2006140340A JP 2006140340 A JP2006140340 A JP 2006140340A JP 4290710 B2 JP4290710 B2 JP 4290710B2
- Authority
- JP
- Japan
- Prior art keywords
- unit
- input
- station number
- interface circuit
- output interface
- 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.)
- Expired - Fee Related
Links
Images
Description
この発明は、マイクロプロセッサを内蔵した基本筐体ユニットと、基本筐体ユニットに接続される増設筐体ユニットとを備えたユニット形プログラマブルコントローラに関する。 The present invention relates to a unit-type programmable controller including a basic casing unit incorporating a microprocessor and an additional casing unit connected to the basic casing unit.
マイクロプロセッサを内蔵した基本筐体ユニットと、基本筐体ユニットに接続される増設筐体ユニットとを備え、外部の操作スイッチや各種センサ等から入力される信号の動作状態と、プログラムメモリに格納されたシーケンスプログラムとに応動して、外部の各種アクチェータや表示機器等の電気負荷に信号を出力するユニット形プログラマブルコントローラにおいて、基本筐体ユニットあるいは増設筐体ユニットに設けられる入出力インタフェース回路の局番設定には、様々な手段が提案されている。 It has a basic chassis unit with a built-in microprocessor and an additional chassis unit connected to the basic chassis unit, and is stored in the program memory and the operating status of signals input from external operation switches and various sensors. In the unit-type programmable controller that outputs signals to electrical loads such as various external actuators and display devices in response to the sequence program, the station number setting of the input / output interface circuit provided in the basic chassis unit or extension chassis unit Various means have been proposed.
特許文献1に記載の従来のプログラマブルコントローラは、マイクロプロセッサと各種メモリとを包含した本体ユニット(基本筐体ユニット)、および本体ユニットに接続される複数の入出力増設ブロック(増設筐体ユニット)を備えている。
また、このプログラマブルコントローラは、入出力増設ブロックの変更、追加、および削除に伴って外部から入力される編成更新指令信号の有無を判定し、判定結果に対応して、編成更新指令信号により指定される所定の複数の割付方式から選択された割付方式で、現在編成記憶手段の内容を更新するための書き換え設定手段(局番設定手段)をさらに備えている(例えば、特許文献1参照)。
The conventional programmable controller described in
In addition, this programmable controller determines whether or not there is a knitting update command signal input from the outside when the input / output expansion block is changed, added, or deleted, and is specified by the knitting update command signal according to the determination result. And a rewrite setting means (station number setting means) for updating the contents of the current knitting storage means in accordance with an assignment method selected from a plurality of predetermined assignment methods (see, for example, Patent Document 1).
上記特許文献1の従来装置おいて、本体ユニット内のマイクロプロセッサは、接続された入出力増設ブロックに対して、順次局番を指定する。
局番が設定されると、各入出力増設ブロックは、指定された局番から「1」を減算した局番を後方に伝達する。これが順次繰り返されて、「0」の局番を受け取った入出力増設ブロックが、マイクロプロセッサに対する交信権を得ている。
In the conventional device disclosed in
When the station number is set, each input / output expansion block transmits the station number obtained by subtracting “1” from the designated station number to the rear. This is repeated sequentially, and the input / output expansion block that has received the station number of “0” has acquired the right to communicate with the microprocessor.
しかしながら、上記特許文献1のプログラマブルコントローラでは、局番を順次後方に伝達してマイクロプロセッサとの交信権を設定するので、多数の入出力増設ブロックが接続されている場合に、交信権が確定するまでに時間がかかる。そのため、高速処理することができないという問題点があった。
However, in the programmable controller of the above-mentioned
この問題点を解決するために、特許文献2に記載の従来のプログラマブルコントローラは、所定のプログラムを実行する中央演算処理ユニット(基本筐体ユニット)、中央演算処理ユニットに接続される複数の入出力ユニット(増設筐体ユニット)、および複数の入出力ユニットの終段に接続され、各入出力ユニットの初期処理終了時に立てるフラグを終端検知信号として中央演算処理ユニットに伝送する終端専用ユニット(終端ブロック)を備えている。
また、中央演算処理ユニットは、終端専用ユニットから伝送される終端検知信号が検出できなかった場合に、複数の入出力ユニットの一部が脱落したことを検知するユニット脱落検知手段を備えている(例えば、特許文献2参照)。
In order to solve this problem, the conventional programmable controller described in Patent Document 2 includes a central processing unit (basic housing unit) that executes a predetermined program, and a plurality of inputs / outputs connected to the central processing unit. A unit dedicated to termination (terminal block) that is connected to the final stage of each unit (additional chassis unit) and multiple input / output units and transmits a flag to be set at the end of the initial processing of each input / output unit to the central processing unit as a termination detection signal ).
In addition, the central processing unit includes unit drop detection means for detecting that some of the plurality of input / output units are dropped when the termination detection signal transmitted from the termination dedicated unit cannot be detected ( For example, see Patent Document 2).
上記特許文献2の従来装置において、中央演算処理ユニットは、プログラマブルコントローラの運転開始時に、各入出力ユニットに対してあらかじめ個々に局番を設定する。終端専用ユニットからの終端検知信号によって、局番の設定が正常に終了したことが確認される。また、この信号によって、終端専用ユニットの存在も同時に確認される。
局番が設定されると、中央演算処理ユニットは、各入出力ユニットに対する局番を直接指定して、当該入出力ユニットとの間で交信する。ここで、終端専用ユニットによってデータバスの安定化を図ることにより、高速処理している。
In the conventional apparatus disclosed in Patent Document 2, the central processing unit sets a station number individually in advance for each input / output unit at the start of operation of the programmable controller. It is confirmed by the termination detection signal from the termination dedicated unit that the station number has been set normally. In addition, the presence of the termination dedicated unit is simultaneously confirmed by this signal.
When the station number is set, the central processing unit directly designates the station number for each input / output unit and communicates with the input / output unit. Here, high-speed processing is performed by stabilizing the data bus by the termination dedicated unit.
上記特許文献2のプログラマブルコントローラでは、各入出力ユニットの初期処理が終了した後でなければ、局番が正常に設定されたか否か、あるいは終端専用ユニットが接続されているか否かを確認することができない。
そのため、終端専用ユニットが接続されていない場合には、データバスが不安定な状態で各入出力ユニットの初期処理が実行されて、終端検知信号が得られない異常状態が発生するという問題点があった。
また、その異常状態が、入出力ユニット自体の異常によって局番が正常に設定できないために発生したのか、終端専用ユニットが接続されていないために発生したのかを識別することができないという問題点もあった。
In the programmable controller of Patent Document 2, it is possible to confirm whether the station number is set normally or whether the termination dedicated unit is connected unless the initial processing of each input / output unit is completed. Can not.
For this reason, if the termination dedicated unit is not connected, the initial processing of each input / output unit is executed while the data bus is unstable, and an abnormal state in which the termination detection signal cannot be obtained occurs. there were.
Another problem is that it is not possible to identify whether the error occurred because the station number could not be set normally due to an error in the input / output unit itself, or because the termination dedicated unit was not connected. It was.
この発明は、上記のような問題点を解決することを課題とするものであって、その目的は、データバスが安定した状態で、確実に局番を設定することができるユニット形プログラマブルコントローラを提供することにある。 An object of the present invention is to solve the above-described problems, and an object thereof is to provide a unit-type programmable controller that can reliably set a station number while the data bus is stable. There is to do.
この発明に係るユニット形プログラマブルコントローラは、マイクロプロセッサおよびシーケンスプログラムが格納されたプログラムメモリを内蔵した基本筐体ユニットと、基本筐体ユニットに接続される増設筐体ユニットと、増設筐体ユニットを貫通して、一端が基本筐体ユニットにバス接続され、複数の制御信号線および複数ビットのデータバスを含む貫通バスと、貫通バスの他端に接続された終端ブロックと、基本筐体ユニットおよび増設筐体ユニットの少なくとも一方に設けられ、マイクロプロセッサに対して選択的に接続される入出力インタフェース回路とを備え、外部入力機器からの信号とプログラムメモリの内容とに応動して、外部出力機器に信号を出力するユニット形プログラマブルコントローラであって、基本筐体ユニットは、入出力インタフェース回路を識別する局番を設定する局番設定手段となる制御プログラムを含むシステムメモリと、入出力情報を記憶する演算処理用のRAMメモリと、マイクロプロセッサおよび貫通バスに接続されたバスインタフェース回路とを含み、入出力インタフェース回路は、カード情報と局番を示す局番情報とを記憶する個別メモリを含み、カード情報は、入出力インタフェース回路が、入力インタフェース回路であるか出力インタフェース回路であるかを示す品種別論理情報と、入出力インタフェース回路の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報とを有し、終端ブロックは、入出力インタフェース回路に接続されたプルアップ抵抗またはプルダウン抵抗を用いて、接続位置論理情報を得る接続位置確認回路と、終端ブロックの接続状態を、接続確認信号としてマイクロプロセッサに出力する終端処理確認回路とを含み、局番設定手段は、マイクロプロセッサの運転開始時であって、接続確認信号により終端ブロックの接続が確認された場合に、最初の接続位置から接続位置論理情報に含まれる最終の接続位置までの入出力インタフェース回路に対して、順次異なる局番を割り付け設定するものである。 A unit-type programmable controller according to the present invention includes a basic housing unit having a built-in program memory storing a microprocessor and a sequence program, an additional housing unit connected to the basic housing unit, and an additional housing unit. One end is bus-connected to the basic chassis unit, a through bus including a plurality of control signal lines and a multi-bit data bus, a termination block connected to the other end of the through bus, a basic chassis unit, and an extension An input / output interface circuit that is provided on at least one of the housing units and is selectively connected to the microprocessor, and is connected to the external output device in response to a signal from the external input device and the contents of the program memory. This is a unit-type programmable controller that outputs signals and has a basic housing unit. Includes a system memory including a control program serving as a station number setting means for setting a station number for identifying an input / output interface circuit, an arithmetic processing RAM memory for storing input / output information, a bus connected to a microprocessor and a through bus The input / output interface circuit includes an individual memory for storing card information and station number information indicating a station number, and the card information is an input interface circuit or an output interface circuit. And the connection block logic information indicating whether the connection position of the input / output interface circuit is the final connection position, and the termination block is connected to the input / output interface circuit. Connection to obtain connection position logic information using pull-up resistor or pull-down resistor And a termination processing confirmation circuit that outputs the connection status of the termination block to the microprocessor as a connection confirmation signal. The station number setting means is at the start of the operation of the microprocessor and is terminated by the connection confirmation signal. When the connection is confirmed, different station numbers are sequentially assigned to the input / output interface circuit from the first connection position to the final connection position included in the connection position logic information.
この発明のユニット形プログラマブルコントローラによれば、局番設定手段は、マイクロプロセッサの運転開始時であって、接続確認信号により終端ブロックの接続が確認された場合に、最初の接続位置から接続位置論理情報に含まれる最終の接続位置までの入出力インタフェース回路に対して、順次異なる局番を割り付け設定する。
そのため、データバスが安定した状態で、確実に局番を設定することができる。
According to the unit type programmable controller of the present invention, the station number setting means is the connection position logic information from the first connection position when the operation of the microprocessor is started and the connection of the terminal block is confirmed by the connection confirmation signal. Are assigned and set sequentially to the input / output interface circuits up to the final connection position included.
Therefore, the station number can be set reliably with the data bus being stable.
以下、この発明の各実施の形態について図に基づいて説明するが、各図において同一、または相当する部材、部位については、同一符号を付して説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the drawings, the same or corresponding members and parts will be described with the same reference numerals.
実施の形態1.
図1は、この発明の実施の形態1に係るユニット形プログラマブルコントローラ100Aを示す構成図である。
図1において、ユニット形プログラマブルコントローラ100Aは、基本筐体ユニット110Aと、増設筐体ユニット120、130、140、150と、終端ブロック160と、貫通バス信号線BUS(貫通バス)とを備えている。
1 is a block diagram showing a unit-type
In FIG. 1, the unit type
基本筐体ユニット110Aは、商用電源(例えば、AC100V〜240V)の外部電源103から給電されるとともに、脱着コネクタ(図示せず)を介して、外部ツール108(例えば、パーソナルコンピュータあるいはモニタ)と接続され、制御プログラムの書き込みや運転状態の監視を行うことができるようになっている。
The
基本筐体ユニット110Aは、マイクロプロセッサ111、バスインタフェース回路112、制御電源ユニット113、システムメモリ114A、プログラムメモリ115A、RAMメモリ116、ウォッチドッグタイマ117、シリアルインタフェース118、プルアップ抵抗R、定電圧電源線Vcc、グランド回路GND、接続確認信号線11、局番設定検索信号線12、および貫通停止信号線13を含んでいる。
ここで、バスインタフェース回路112、システムメモリ114A、プログラムメモリ115A、RAMメモリ116、およびシリアルインタフェース118は、マイクロプロセッサ111と互いにバス接続されている。
また、バスインタフェース回路112には、停止論理回路119(後述する)が設けられている。
The
Here, the
The
制御電源ユニット113は、外部電源103から給電されて、入力信号回路(図示せず)に例えばDC24Vの安定化電圧を供給するとともに、定電圧電源線Vccに例えばDC5Vの安定化電圧を供給する。また、定電圧電源線Vccおよびグランド回路GNDは、それぞれ基本筐体ユニット110Aから終端ブロック160まで、増設筐体ユニット120〜150を貫通して設けられている。
The control
システムメモリ114Aは、例えばマスクROMメモリであり、図2および図3に示す各種制御プログラム(後述する)を含んでいる。また、システムメモリ114Aは、プログラムメモリ115Aに格納されたシーケンス言語によるシーケンスプログラムを、マイクロプロセッサ111に対応した機械言語に変換する変換プログラムを含んでいる。
なお、システムメモリ114Aに含まれるプログラムは、製品の出荷段階でメーカによって格納されている。
The
The program included in the
プログラムメモリ115Aは、例えば不揮発フラッシュメモリである。プログラムメモリ115Aには、ユーザにより、例えばパーソナルコンピュータ(外部ツール108)を用いて作成されたシーケンスプログラムが、シリアルインタフェース118を介して書き込まれている。
また、RAMメモリ116は、演算処理用のメモリである。
The
The
ウォッチドッグタイマ117は、マイクロプロセッサ111が発生する暴走監視用パルス信号PLSのパルス幅を監視している。ウォッチドッグタイマ117は、このパルス幅が、所定幅を超過した場合に、暴走異常検出信号WDを論理レベル「L」に変化させて出力する。また、ウォッチドッグタイマ117は、この状態を記憶し、暴走異常検出信号WDによって、マイクロプロセッサ111のリセット処理および動作停止を行う。
ここで、暴走異常検出信号WDは、停止論理回路119にも出力される。
なお、暴走異常検出信号WDをパルス信号にして、異常発生時にマイクロプロセッサ111を初期化して再起動するような仕様にしてもよい。この場合も、同様の効果を奏することができる。
The
Here, the runaway abnormality detection signal WD is also output to the
The runaway abnormality detection signal WD may be changed to a pulse signal so that the
プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11は、増設筐体ユニット120〜150を貫通して、終端ブロック160の終端処理確認回路END(後述する)に接続されている。また、終端処理確認回路ENDは、グランド回路GNDに接続されている。
接続確認信号線11によって伝達される接続確認信号END1は、論理レベル「L」となることによって、終端ブロック160が接続されていることを認識するための信号であり、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The connection
The connection confirmation signal END1 transmitted through the connection
停止論理回路119は、ウォッチドッグタイマ117から出力される暴走異常検出信号WDと、接続確認信号END1の反転論理信号とが入力される論理積素子によって構成されている。
停止論理回路119は、暴走異常検出信号WDが論理レベル「L」である場合、あるいは接続確認信号END1が終端ブロック160の未接続状態を示す場合に、論理レベル「L」の貫通停止信号WD1を貫通停止信号線13に出力する。また、停止論理回路119は、この貫通停止信号WD1によって、増設筐体ユニット130、150の出力インタフェース回路132、152(後述する)をそれぞれ出力停止する。
貫通停止信号線13は、増設筐体ユニット120〜150を貫通して設けられ、それぞれの増設筐体ユニット120〜150に接続されている。
The
The
The penetration
貫通バス信号線BUSは、例えば複数の制御信号線と、16ビットのデータバスとを含み、バスインタフェース回路112から終端ブロック160まで、増設筐体ユニット120〜150を貫通して設けられた多数の信号配線である。
マイクロプロセッサ111は、バスインタフェース回路112を介して、局番設定検索信号線12に局番設定検索信号CF1を出力する。局番設定検索信号線12は、増設筐体ユニット120の選択切り換え回路125a(後述する)に接続されている。
また、局番設定検索信号CF1は、局番を設定する場合に、論理レベル「L」となり、基本筐体ユニット110Aに接続された増設筐体ユニット120に局番設定指令を供給する。
The through bus signal line BUS includes, for example, a plurality of control signal lines and a 16-bit data bus, and includes a large number of penetrating
The
Further, the station number setting search signal CF1 becomes a logical level “L” when setting a station number, and supplies a station number setting command to the
増設筐体ユニット120は、基本筐体ユニット110Aの端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット120には、入力端子台(図示せず)を介して外部入力機器121が接続されている。
外部入力機器121は、例えば操作盤に設けられた各種の操作スイッチや、アクチュエータの動作を確認するためのセンサスイッチである。増設筐体ユニット120は、例えば8点の信号が入力可能であり、さらに多くの外部入力機器121を接続する場合には、増設筐体ユニット120の接続台数を増やすようになっている。
The
The
増設筐体ユニット120は、入力インタフェース回路122(入出力インタフェース回路)、プルアップ抵抗123、124、選択切り換え回路125a、125b、および接続位置信号線14を含んでいる。
入力インタフェース回路122は、データセレクタ(図示せず)を介して、外部入力機器121からの信号を貫通バス信号線BUSに出力する入力信号回路と、カード情報を格納したカード情報格納メモリ(個別メモリ)と、入力インタフェース回路122を識別するための局番を示す局番情報メモリ(個別メモリ)とを有している。
The
The
プルアップ抵抗123は、一端が定電圧電源線Vccに接続され、他端が接続位置信号線14に接続されている。接続位置信号線14は、終端ブロック160の接続位置確認回路LST(後述する)に接続されるようになっている。また、接続位置確認回路LSTは、グランド回路GNDに接続されている。
接続位置信号線14によって伝達される接続位置論理信号MDLは、カード情報格納メモリに入力されて、入力インタフェース回路122の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報として記憶される。
ここで、増設筐体ユニット120は、終端ブロック160に接続されていない(最終の接続位置ではない)ので、接続位置信号線14は、グランド回路GNDに接続されず、接続位置論理信号MDLは、論理レベル「H」となっている。
The pull-up
The connection position logic signal MDL transmitted by the connection
Here, since the
選択切り換え回路125a、125bは、一対の論理和素子によって構成されている。選択切り換え回路125a、125bのそれぞれの第1入力端子には、プルアップ抵抗124によって、常時は、論理レベル「H」の信号が入力されている。また、局番設定検索信号CF1は、選択切り換え回路125a、125bの第1入力端子にそれぞれ入力されている。
選択切り換え回路125aの第2入力端子には、カード情報格納メモリに格納されている個別完了論理情報(後述する)を含む個別完了論理信号FINの反転論理信号が入力されている。また、選択切り換え回路125bの第2入力端子には、カード情報格納メモリに格納されている個別完了論理情報を含む個別完了論理信号FINがそのまま入力されている。
個別完了論理信号FINは、局番設定が完了している場合に、論理レベル「H」となる。
The selection switching circuits 125a and 125b are composed of a pair of OR elements. A logic level “H” signal is normally input to the first input terminals of the selection switching circuits 125 a and 125 b by the pull-up
An inverted logic signal of the individual completion logic signal FIN including individual completion logic information (described later) stored in the card information storage memory is input to the second input terminal of the selection switching circuit 125a. The individual completion logic signal FIN including the individual completion logic information stored in the card information storage memory is directly input to the second input terminal of the selection switching circuit 125b.
The individual completion logic signal FIN becomes a logic level “H” when the station number setting is completed.
ここで、マイクロプロセッサ111が、局番設定を行うために局番設定検索信号CF1が論理レベル「L」に変化させた場合であって、増設筐体ユニット120の局番設定が未完了(個別完了論理信号FINが論理レベル「L」)の場合には、選択切り換え回路125bの出力が論理レベル「L」となり、増設筐体ユニット120がマイクロプロセッサ111との交信権を得る。
交信権を得た増設筐体ユニット120は、貫通バス信号線BUSを介して、マイクロプロセッサ111にカード情報を送信する。続いて、マイクロプロセッサ111は、次の処理タイミングで、貫通バス信号線BUSを介して、増設筐体ユニット120に設定する局番(設定局番)を送信し、設定局番を増設筐体ユニット120の局番情報メモリに書き込む。
Here, in the case where the
The
次に、増設筐体ユニット120は、貫通バス信号線BUSを介して、マイクロプロセッサ111に対して、書き込まれた局番情報を確認返信する。続いて、マイクロプロセッサ111は、貫通バス信号線BUSを介して、増設筐体ユニット120に個別完了論理信号FINを論理レベル「H」として送信する。
増設筐体ユニット120は、個別完了論理信号FINを、局番の設定が完了しているか否かを識別して、選択切り換え回路125a、125bを切り換えるための個別完了論理情報としてカード情報格納メモリに記憶する。
増設筐体ユニット120の局番設定が完了すると、選択切り換え回路125aの第2入力端子には、論理レベル「L」の信号が入力される。このとき、選択切り換え回路125aから、論理レベル「L」の信号が出力される。すなわち、局番設定検索信号CF1の論理レベル「L」が、次の増設筐体ユニット130の選択切り換え回路135a、135b(後述する)の第1入力端子にそれぞれ入力され、以下同様にして順次局番設定される。
Next, the
The
When the station number setting of the
増設筐体ユニット130は、増設筐体ユニット120の端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット130には、出力端子台(図示せず)を介して外部負荷131(外部出力機器)が接続されている。
外部負荷131は、例えば操作盤に設けられた各種の表示ランプや、アクチュエータ駆動用の電磁弁、あるいはモータ駆動用の電磁継電器である。増設筐体ユニット130は、例えば8点の信号を出力可能であり、さらに多くの外部負荷を接続する場合には、増設筐体ユニット130の接続台数を増やすようになっている。
The
The
増設筐体ユニット130は、出力インタフェース回路132(入出力インタフェース回路)、プルアップ抵抗133、134、選択切り換え回路135a、135b、および接続位置信号線14を含んでいる。
出力インタフェース回路132は、マイクロプロセッサ111から出力されて外部負荷131を駆動する駆動信号を、貫通バス信号線BUSからラッチメモリ(図示せず)に取り込む出力信号回路と、カード情報を格納したカード情報格納メモリ(個別メモリ)と、出力インタフェース回路132を識別するための局番を示す局番情報メモリ(個別メモリ)とを有している。
プルアップ抵抗133、134、および選択切り換え回路135a・135bの構成は、上記の増設筐体ユニット120と同様である。
The
The
The configurations of the pull-up
増設筐体ユニット140は、増設筐体ユニット130の端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット140には、入力端子台(図示せず)を介してアナログ入力機器141(外部入力機器)が接続されている。
増設筐体ユニット140は、入力インタフェース回路142(入出力インタフェース回路)、プルアップ抵抗143、144、選択切り換え回路145a、145b、および接続位置信号線14を含んでいる。
増設筐体ユニット140は、例えば4チャンネルのアナログ信号が入力される。増設筐体ユニット140は、入力インタフェース回路142内の多チャンネルAD変換器(図示せず)によってアナログ信号をデジタル信号に変換し、4チャンネルのアナログ入力に対する各12ビットのデジタル変換データをマイクロプロセッサ111に送信する。
プルアップ抵抗143、144、および選択切り換え回路145a・145bの構成は、上記の増設筐体ユニット120と同様である。
The
The
For example, a 4-channel analog signal is input to the
The configurations of the pull-up
増設筐体ユニット150は、増設筐体ユニット140の端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット150には、出力端子台(図示せず)を介してアナログ負荷151(外部出力機器)が接続されている。
増設筐体ユニット150は、出力インタフェース回路152(入出力インタフェース回路)、プルアップ抵抗153、154、選択切り換え回路155a、155b、および接続位置信号線14を含んでいる。
The
The
増設筐体ユニット150は、例えば4チャンネルのアナログ信号を出力する。増設筐体ユニット150は、出力インタフェース回路152内の多チャンネルDA変換器(図示せず)によってデジタル信号をアナログ信号に変換し、マイクロプロセッサ111から送信される12ビットのデジタルデータに対する4チャンネルのアナログ変換データを、アナログ負荷151に出力する。
プルアップ抵抗153、154、および選択切り換え回路155a・155bの構成は、上記の増設筐体ユニット120と同様である。
The
The configurations of the pull-up
なお、貫通停止信号WD1が論理レベル「L」の場合には、前述のように、外部負荷131およびアナログ負荷151に対する出力信号が停止するようになっている。
しかしながら、貫通停止信号WD1が論理レベル「L」の場合に、外部負荷131およびアナログ負荷151に対する出力信号を現状保持にして、新たな出力信号の書き込みを停止するようにしてもよい。
貫通停止信号WD1が論理レベル「L」の場合に、出力信号を停止するか、あるいは現状保持にするかは、プログラムメモリ115Aに書き込まれたパラメータによって決定される。
When the penetration stop signal WD1 is at the logic level “L”, the output signals to the
However, when the penetration stop signal WD1 is at the logic level “L”, the output signals for the
When the penetration stop signal WD1 is at the logic level “L”, whether to stop the output signal or keep the current state is determined by the parameter written in the
終端ブロック160は、増設筐体ユニット150の端面位置に設けられている。
終端ブロック160は、終端処理回路162、接続位置確認回路LST、および終端処理確認回路ENDを含んでいる。
終端処理回路162は、貫通バス信号線BUSの端末に接続されている。終端処理回路162は、高速信号の反射を防止するためのインピーダンス素子をグランド回路GNDに接続するプルダウン回路によって構成されている。あるいは、終端処理回路162は、インピーダンス素子を定電圧電源線Vccに接続するプルアップ回路によって構成されている。
The
The
The
接続位置確認回路LSTは、増設筐体ユニット150(最終の接続位置に接続された増設筐体ユニット)のプルアップ抵抗153に接続された接続位置信号線14を、終端ブロック160内でグランド回路GNDに接続して論理反転させる。
すなわち、プルアップ抵抗153に接続された接続位置信号線14は、終端ブロック160内の接続位置確認回路LSTでグランド回路GNDに接続され、接続位置論理信号MDLは、論理レベル「L」となる。これに対し、増設筐体ユニット120〜140(中間の接続位置に接続された増設筐体ユニット)のプルアップ抵抗123〜143に接続された接続位置信号線14は、グランド回路GNDに接続されず、接続位置論理信号MDLは、論理レベル「H」となっている。
なお、プルアップ抵抗123〜153をプルダウン抵抗に変更し、プルダウン抵抗を終端ブロック160内の接続位置確認回路LSTで定電圧電源線Vccに接続して論理反転させてもよい。この場合も、同様の効果を奏する。
The connection position confirmation circuit LST connects the connection
That is, the connection
Note that the pull-up
終端処理確認回路ENDは、終端ブロック160が接続されていることを、接続確認信号線11によって伝達される接続確認信号END1として、マイクロプロセッサ111に伝達するためのロウレベルの論理発生回路である。
なお、基本筐体ユニット110Aに設けられたプルアップ抵抗Rをプルダウン抵抗に変更し、終端ブロック160内の終端処理確認回路ENDで定電圧電源線Vccに接続してハイレベルの論理信号を与えてもよい。この場合も、同様の効果を奏する。
The termination processing confirmation circuit END is a low-level logic generation circuit for transmitting to the
The pull-up resistor R provided in the
入出力インタフェース回路122〜152(入力インタフェース回路122、142、および出力インタフェース回路132、152)のカード情報格納メモリは、カード情報として、品種別論理情報と、個別完了論理情報と、接続位置論理情報とを有している。
品種別論理情報は、入出力インタフェース回路122〜152が、入力インタフェース回路であるか出力インタフェース回路であるかを示す。個別完了論理情報は、局番設定が完了しているか否かを識別して、選択切り換え回路125〜155を切り換えるための情報である。接続位置論理情報は、入出力インタフェース回路122〜152の接続位置が、最終の接続位置であるか、最終の接続位置以外の中間の接続位置であるかを示す。
The card information storage memory of the input /
The type-specific logic information indicates whether the input /
また、上記品種別論理情報には、入出力インタフェース回路122〜152が、ON/OFF信号用であるか、アナログ信号用であるかを識別する情報も付加されている。
入出力インタフェース回路122〜152が、アナログ信号用の場合には、マイクロプロセッサ111と多チャンネルAD変換器、あるいは多チャンネルDA変換器との間で、複数回の読み出し、または書き込み操作が行われる。
In addition, information identifying whether the input /
When the input /
なお、ON/OFF信号用の入出力インタフェース回路を有する増設筐体ユニットにおいて、増設筐体ユニットに入出力可能な信号は、16点であってもよい。
このとき、品種別論理情報には、増設筐体ユニットに入出力可能な信号が8点単位であるか、16点単位であるかを識別する情報が付加される。またこの場合、入力8点、あるいは出力8点毎に、それぞれ一つの局番が割り付けられるようになっている。
In addition, in the extension case unit having the input / output interface circuit for the ON / OFF signal, the number of signals that can be input to and output from the extension case unit may be 16.
At this time, information identifying whether the signals that can be input / output to / from the additional chassis unit are in units of 8 points or in units of 16 points is added to the type-specific logical information. In this case, one station number is assigned to each of 8 input points or 8 output points.
また、ON/OFF信号用の入出力インタフェース回路を有する増設筐体ユニットにおいて、入出力をそれぞれ8点ずつ有していてもよい。
この場合も、入力8点、あるいは出力8点毎に、一つの局番が割り付けられるようになっている。
In addition, the expansion housing unit having the input / output interface circuit for the ON / OFF signal may have 8 inputs / outputs.
Also in this case, one station number is assigned for every 8 input points or 8 output points.
また、アナログ信号用の入出力インタフェース回路を有する増設筐体ユニットにおいて、増設筐体ユニットに入出力可能な信号は、8チャンネルであってもよい。また、入出力をそれぞれ4チャンネルずつ有していてもよい。
このとき、品種別論理情報には、増設筐体ユニットに入出力可能な信号が4チャンネル単位であるか、8チャンネル単位であるかを識別する情報が付加される。またこの場合、入力4チャンネル、あるいは出力4チャンネル毎に、それぞれ一つの局番が割り付けられるようになっている。
In addition, in an extension case unit having an input / output interface circuit for analog signals, signals that can be input to and output from the extension case unit may be eight channels. Moreover, you may have 4 channels each of input / output.
At this time, information identifying whether the signal that can be input / output to / from the additional chassis unit is in units of 4 channels or in units of 8 channels is added to the logical information for each product type. In this case, one station number is assigned to each of the four input channels or the four output channels.
上記の品種別論理情報は、データバスに対して接続、または解放するために設けられたデータセレクタの複数ビットの入力端子を、プリント基板によってグランド回路GNDに接続するか、定電圧電源線Vccに接続するかによって決定される配線パターン情報となっている。そのため、品種別論理情報を記憶したカード情報格納メモリと、局番情報を記憶する局番情報メモリとを総称して個別メモリとしたが、品種別論理情報には、読み書き可能なメモリが用いられているものではない。 The above-mentioned logic information for each product is obtained by connecting a multi-bit input terminal of a data selector provided for connection to or release from a data bus to a ground circuit GND by a printed circuit board or by connecting to a constant voltage power supply line Vcc. The wiring pattern information is determined depending on whether the connection is made. For this reason, the card information storage memory storing the type-specific logic information and the station number information memory storing the station number information are collectively referred to as individual memories, but a readable / writable memory is used for the type-specific logic information. It is not a thing.
貫通バス信号線BUSは、入出力インタフェース回路122〜152に対する局番を設定するためのアドレスバスとして用いられる。また、貫通バス信号線BUSは、カード情報を読み出したり、外部からの入力信号を読み出したりするための読み出し用のデータバスとして用いられる。また、貫通バス信号線BUSは、局番設定や外部負荷131に対する制御出力データを書き込むための書き込み用のデータバスとして用いられる。
これらの使い分けは、マイクロプロセッサ111が発生するコマンドデータに依存して決定されるようになっている。
The through bus signal line BUS is used as an address bus for setting station numbers for the input /
These usages are determined depending on command data generated by the
また、多数の入出力データを有するアナログ信号用の入出力インタフェース回路142、152については、複数回の交信によって全データの伝達が行われるものであって、読み書きのタイミングは、マイクロプロセッサ111が発生する制御信号であるタイミング信号によって決定されるようになっている。
In addition, for the analog signal input /
なお、上記の説明では、入出力インタフェース回路が、ON/OFF信号用である場合に、入力8点、あるいは出力8点毎に一つの局番が割り付けられ、アナログ信号用である場合に、入力4チャンネル、あるいは出力4チャンネル毎に一つの局番が割り付けられるとしたが、これに限定されることはない。
8点よりも多い入出力点数や、4チャンネルよりも多い入出力チャンネルのものに対して、一つの局番を割り付けてもよい。また、入出力混合のものに対して一つの局番を割り付けてもよい。
これらの場合も、同様の効果を奏することができる。
In the above description, when the input / output interface circuit is for an ON / OFF signal, one station number is assigned for every 8 input points or 8 output points, and when the input / output interface circuit is for an analog signal, the input 4 Although one station number is assigned to each channel or every four output channels, the present invention is not limited to this.
One station number may be assigned to the number of input / output points greater than 8 or the number of input / output channels greater than 4 channels. Further, one station number may be assigned to a mixture of input and output.
In these cases, similar effects can be achieved.
以下、図1とともに、図2および図3のフローチャートを参照しながら、この発明の実施の形態1に係るユニット形プログラマブルコントローラ100Aの動作について説明する。
なお、ステップS23、ステップS24、ステップS28は、局番設定の対象となっている増設筐体ユニットの動作を示しており、その他のステップは、マイクロプロセッサ111の動作を示している。
このフローチャートに示した処理は、所定の周期毎に実行される。
Hereinafter, the operation of the unit
Step S23, step S24, and step S28 show the operation of the additional enclosure unit that is the target of station number setting, and the other steps show the operation of the
The process shown in this flowchart is executed at predetermined intervals.
図2において、まず、電源スイッチ(図示せず)が投入されて、ユニット形プログラマブルコントローラ100Aに電源の供給が開始される(ステップS10)。また、電源立ち上がりパルス(図示せず)によって、増設筐体ユニット120〜150内のカード情報格納メモリおよび局番情報メモリの内容が初期化され、局番は、初期値(例えば、「00」)が設定される(ステップS11)。その結果、全ての個別完了論理信号FINは、論理レベル「L」となっているので、選択切り換え回路125a〜155aの出力は、全て論理信号「H」となっている。
In FIG. 2, first, a power switch (not shown) is turned on, and supply of power to the unit-type
続いて、マイクロプロセッサ111の動作が開始される(ステップS12)。
次に、後述する局番設定完了フラグ(図示せず)を確認することにより、局番設定が完了しているか否かが判定される(ステップS13)。
局番設定完了フラグは、基本筐体ユニット110Aに接続された全ての増設筐体ユニット120〜150に対する局番設定が完了した際にセットされる。
ここで、初回の動作にあっては、局番設定が完了していない(すなわち、No)と判定されて、ステップS14に移行する。また、次回以降の動作にあっては、局番設定が完了した(すなわち、Yes)と判定されて、図3のステップS32に移行する。
Subsequently, the operation of the
Next, it is determined whether or not the station number setting has been completed by checking a station number setting completion flag (not shown) which will be described later (step S13).
The station number setting completion flag is set when the station number setting for all the
Here, in the first operation, it is determined that the station number setting is not completed (ie, No), and the process proceeds to step S14. In the operation after the next time, it is determined that the station number setting has been completed (that is, Yes), and the process proceeds to step S32 in FIG.
続いて、接続確認信号END1の論理レベルを確認することにより、終端ブロック160が接続されているか否かが判定される(ステップS14)。
ステップS14において、接続確認信号END1が論理レベル「H」であり、終端ブロック160が接続されていない(すなわち、No)と判定された場合には、異常状態をRAMメモリ116に記憶させるとともに、異常表示LED(図示せず)を点滅表示させて異常報知する(ステップS15)。
なお、終端ブロック160が接続されていない場合だけでなく、例えばコネクタの接触不良によって増設筐体ユニット120〜150、および終端ブロック160の一部が脱落状態にある場合にも、接続確認信号END1が論理レベル「H」となる。
Subsequently, it is determined whether or not the
In step S14, when it is determined that the connection confirmation signal END1 is at the logic level “H” and the
Note that the connection confirmation signal END1 is not only when the
次に、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
したがって、終端ブロック160が未接続であれば、ステップS12〜ステップS16が循環動作して異常報知が継続する。この状態を脱出するためには、電源スイッチを開路する必要がある。
Next, the operation of the
After the operation of the
Therefore, if the
一方、ステップS14において、終端ブロック160が接続されている(すなわち、Yes)と判定された場合には、局番設定検索信号CF1の論理レベルが、「H」から「L」にされて送信される(ステップS17)。
ここで、局番設定検索信号CF1が論理レベル「L」になったことにより、選択切り換え回路125b〜155bのうち、選択切り換え回路125bの出力のみが論理レベル「L」となり、増設筐体ユニット120がマイクロプロセッサ111との交信権を得る。
On the other hand, if it is determined in step S14 that the
Here, since the station number setting search signal CF1 becomes the logic level “L”, only the output of the selection switching circuit 125b among the selection switching circuits 125b to 155b becomes the logic level “L”, and the
続いて、交信権を得た増設筐体ユニット120が貫通バス信号線BUSに送信したカード情報が読み出され(ステップS18)、正常なカード情報が受信されたか否かが判定される(ステップS19)。
ステップS19において、正常なカード情報が受信されていない(すなわち、No)と判定された場合には、直ちにステップS15に移行する。
Subsequently, the card information transmitted to the through bus signal line BUS by the
If it is determined in step S19 that normal card information has not been received (ie, No), the process immediately proceeds to step S15.
一方、ステップS19において、正常なカード情報が受信された(すなわち、Yes)と判定された場合には、カード情報のうち、接続位置論理情報を含む接続位置論理信号MDLの論理レベルを確認することにより、対象となっている増設筐体ユニットの接続位置が、最終の接続位置以外の中間の接続位置であるか否かが判定される(ステップS20)。
ここで、増設筐体ユニット120は、最終の接続位置ではないので、中間の接続位置であると判定される。
On the other hand, if it is determined in step S19 that normal card information has been received (ie, Yes), the logic level of the connection position logic signal MDL including the connection position logic information in the card information is confirmed. Thus, it is determined whether or not the connection position of the target additional enclosure unit is an intermediate connection position other than the final connection position (step S20).
Here, since the
ステップS20において、中間の接続位置である(すなわち、Yes)と判定された場合には、設定局番が貫通バス信号線BUSに送信される(ステップS21)。
一方、ステップS20において、中間の接続位置でない(最終の接続位置である)(すなわち、No)と判定された場合には、これから局番設定の行われる増設筐体ユニットが、最終の接続位置のものであることが記憶され(ステップS22)、ステップS21に移行する。
If it is determined in step S20 that the connection position is in the middle (that is, Yes), the set station number is transmitted to the through bus signal line BUS (step S21).
On the other hand, when it is determined in step S20 that the connection position is not the intermediate connection position (the final connection position) (ie, No), the additional enclosure unit for which the station number setting is to be performed is the one with the final connection position. (Step S22), the process proceeds to step S21.
続いて、貫通バス信号線BUSに送信された設定局番が、交信権を得た増設筐体ユニット120によって受信されて、局番情報メモリに書き込まれる(ステップS23)。
次に、局番情報メモリに書き込まれた局番情報が、交信権を得た増設筐体ユニット120によって、貫通バス信号線BUSを介して確認返信され(ステップS24)、局番情報が受信される(ステップS25)。
Subsequently, the set station number transmitted to the through bus signal line BUS is received by the
Next, the station number information written in the station number information memory is confirmed and returned via the through bus signal line BUS by the
続いて、ステップS21で送信した設定局番と、増設筐体ユニット120から受信した局番情報とが、一致するか否かが判定される(ステップS26)。
ステップS26において、設定局番と局番情報とが一致しない(すなわち、No)と判定された場合には、直ちにステップS15に移行する。
Subsequently, it is determined whether or not the set station number transmitted in step S21 matches the station number information received from the additional enclosure unit 120 (step S26).
If it is determined in step S26 that the set station number does not match the station number information (that is, No), the process immediately proceeds to step S15.
一方、ステップS26において、設定局番と局番情報とが一致する(すなわち、Yes)と判定された場合には、局番設定の対象となった増設筐体ユニット120に対して、局番設定が完了したことを示す個別完了論理信号FINが、論理レベル「H」で送信される(ステップS27)。
次に、個別完了論理信号FINが、局番設定の対象となった増設筐体ユニット120によって受信され、個別完了論理情報としてカード情報格納メモリに記憶される(ステップS28)。
On the other hand, if it is determined in step S26 that the set station number and the station number information match (that is, Yes), the station number setting has been completed for the
Next, the individual completion logic signal FIN is received by the
続いて、ステップS22における最終の接続位置についての記憶の有無に基づいて、全ての増設筐体ユニットに対する局番設定が完了したか否かが判定される(ステップS29)。
ステップS29において、全ての局番設定が完了していない(すなわち、No)と判定された場合には、直ちにステップS17に移行する。
一方、ステップS29において、全ての局番設定が完了した(すなわち、Yes)と判定された場合には、ステップS30(後述する)に移行する。
Subsequently, based on the presence / absence of the storage of the final connection position in step S22, it is determined whether or not the station number setting for all the additional chassis units has been completed (step S29).
If it is determined in step S29 that all the station number settings have not been completed (ie, No), the process immediately proceeds to step S17.
On the other hand, if it is determined in step S29 that all the station number settings have been completed (that is, Yes), the process proceeds to step S30 (described later).
ここで、増設筐体ユニット120の局番設定時には、ステップS22における最終の接続位置についての記憶が無いので、全ての局番設定が完了していないと判定され、ステップS17に移行する。
ステップS17において、再び局番設定検索信号CF1の論理レベルが、「H」から「L」にされて送信される。このとき、増設筐体ユニット120の局番設定が完了しているので、選択切り換え回路125aの第2入力端子には、論理レベル「L」の信号が入力され、選択切り換え回路125aから、論理レベル「L」の信号が出力される。
すなわち、選択切り換え回路135bの出力のみが論理レベル「L」となり、増設筐体ユニット130がマイクロプロセッサ111との交信権を得る。
Here, at the time of setting the station number of the
In step S17, the logic level of the station number setting search signal CF1 is changed from “H” to “L” and transmitted again. At this time, since the station number setting of the
That is, only the output of the selection switching circuit 135 b becomes the logic level “L”, and the
続いて、上記と同様にして増設筐体ユニット130〜150の局番が順次設定される。
なお、増設筐体ユニット150の局番設定時には、ステップS20において、中間の接続位置でないと判定され、ステップS22において、最終の接続位置のものであることが記憶されて、ステップS29において、全ての増設筐体ユニットに対する局番設定が完了したと判定される。
Subsequently, the station numbers of the
When the station number is set for the
次に、局番情報とカード情報との対応がカード編成情報として記憶され(ステップS30)、局番設定完了フラグがセットされて(ステップS31)、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
Next, the correspondence between the station number information and the card information is stored as card organization information (step S30), the station number setting completion flag is set (step S31), and the operation of the
After the operation of the
図3において、まず、現場のオペレータによって操作されるRUN/STOPスイッチ(図示せず)の状態を確認することにより、RUNモードであるか否かが判定される(ステップS32)。
ステップS32において、RUNモードでない(STOPモードである)(すなわち、No)と判定された場合には、外部ツール108(例えば、パーソナルコンピュータ)が接続されて、プログラムモードとしての通信が実行されているか否かが判定される(ステップS33)。
In FIG. 3, first, by checking the state of a RUN / STOP switch (not shown) operated by an operator at the site, it is determined whether or not the RUN mode is set (step S32).
If it is determined in step S32 that the mode is not the RUN mode (the STOP mode) (that is, No), is the external tool 108 (for example, a personal computer) connected and communication as a program mode being executed? It is determined whether or not (step S33).
ステップS33において、プログラムモードとしての通信が実行されている(すなわち、Yes)と判定された場合には、外部ツール108によって作成されたシーケンスプログラムが、プログラムメモリ115Aに転送される(ステップS34)。
続いて、プログラムモードが解除されるか、あるいは外部ツール108の接続が解除されることにより、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
If it is determined in step S33 that communication as a program mode is being executed (that is, Yes), the sequence program created by the
Subsequently, the program mode is released or the connection of the
After the operation of the
一方、ステップS33において、プログラムモードとしての通信が実行されていない(すなわち、No)と判定された場合には、直ちにステップS16に移行する。
なお、プログラムモードとしての通信が実行されていない状態とは、外部ツール108が接続されていないか、外部ツール108が接続されていても、例えばモニタモードとしての通信が実行されている状態である。
On the other hand, if it is determined in step S33 that the communication as the program mode is not executed (that is, No), the process immediately proceeds to step S16.
Note that the state where the communication as the program mode is not executed is a state where the
したがって、外部ツール108が接続されず、かつRUN/STOPスイッチがSTOPモードである場合には、ステップS12、ステップS13、ステップS32、ステップS33、ステップS16、ステップS12が循環動作する。
このとき、マイクロプロセッサ111は、RUN/STOPスイッチがRUNモードにされるか、あるいは外部ツール108(例えば、パーソナルコンピュータ)が接続されてプログラムモードとしての通信が実行されるかを待機する状態となる。
Therefore, when the
At this time, the
一方、ステップS32において、RUNモードである(すなわち、Yes)と判定された場合には、RUNモードでの初回の動作の際にセットされる初回動作フラグ(図示せず)を確認することにより、RUNモードでの初回動作であるか否かが判定される(ステップS35)。
ステップS35において、初回動作である(すなわち、Yes)と判定された場合には、現在のカード編成情報が読み出される(ステップS36)。
ステップS36において、マイクロプロセッサ111は、既に設定した設定局番を指定し、指定された局番に対応する増設筐体ユニットが、自身のカード情報を送信することにより、カード編成情報が確認される。
On the other hand, if it is determined in step S32 that the mode is the RUN mode (that is, Yes), by checking an initial operation flag (not shown) set at the time of the first operation in the RUN mode, It is determined whether or not the operation is an initial operation in the RUN mode (step S35).
If it is determined in step S35 that the operation is the first time (that is, Yes), the current card organization information is read (step S36).
In step S36, the
次に、図2のステップS30で記憶されたカード編成情報と、ステップS36で得られた現在のカード編成情報とが比較され、カード編成情報が異常(すなわち、比較結果が不一致)であるか否かが判定される(ステップS37)。
ステップS37において、カード編成情報が異常である(すなわち、Yes)と判定された場合には、カード編成情報の異常状態をRAMメモリ116に記憶させるとともに、異常表示LEDを点滅表示させて異常報知し(ステップS38)、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
一方、ステップS37において、カード編成情報が異常でない(すなわち、No)と判定された場合には、後述するステップS43に移行する。
Next, the card organization information stored in step S30 of FIG. 2 is compared with the current card organization information obtained in step S36, and whether or not the card organization information is abnormal (that is, the comparison result is inconsistent). Is determined (step S37).
If it is determined in step S37 that the card organization information is abnormal (that is, Yes), the abnormal state of the card organization information is stored in the
After the operation of the
On the other hand, when it is determined in step S37 that the card organization information is not abnormal (that is, No), the process proceeds to step S43 described later.
一方、ステップS35において、初回動作でない(すなわち、No)と判定された場合には、ステップS34でプログラムメモリ115Aに転送されたシーケンスプログラムが実行される(ステップS39)。
続いて、シーケンスプログラムの中にあるEND命令が実行されたか否かが判定される(ステップS40)。
On the other hand, if it is determined in step S35 that the operation is not the first operation (ie, No), the sequence program transferred to the
Subsequently, it is determined whether or not an END instruction in the sequence program has been executed (step S40).
ステップS40において、END命令が実行されていない(すなわち、No)と判定された場合には、再度ステップS39に移行して、END命令が実行されたか否かが判定される。
したがって、END命令が実行されるまでは、ステップS39、ステップS40が循環動作する。
一方、ステップS40において、END命令が実行された(すなわち、Yes)と判定された場合には、接続確認信号END1の論理レベルを確認することにより、増設筐体ユニット120〜150、および終端ブロック160が正常に接続されているか否かが判定される(ステップS41)。
If it is determined in step S40 that the END instruction has not been executed (that is, No), the process proceeds to step S39 again to determine whether or not the END instruction has been executed.
Therefore, step S39 and step S40 are circulated until the END instruction is executed.
On the other hand, if it is determined in step S40 that the END instruction has been executed (that is, Yes), by confirming the logical level of the connection confirmation signal END1, the
ステップS41において、接続確認信号END1が論理レベル「H」であり、増設筐体ユニット120〜150、および終端ブロック160が正常に接続されていない(すなわち、No)と判定された場合には、直ちにステップS38に移行する。
一方ステップS41において、増設筐体ユニット120〜150、および終端ブロック160が正常に接続されている(すなわち、Yes)と判定された場合には、ステップS39で実行されたシーケンスプログラムの実行結果として、増設筐体ユニット130、150に対して、制御信号である出力信号の書き込みが実行される(ステップS42)。
In step S41, if it is determined that the connection confirmation signal END1 is at the logic level “H” and the
On the other hand, when it is determined in step S41 that the
次に、増設筐体ユニット120、140から入力信号が読み出されて、RAMメモリ116に転送され(ステップS43)、ステップS32に移行して、再びRUNモードであるか否かが判定される。
なお、ステップS42およびステップS43において、入出力信号の読み出しおよび書き込みは、マイクロプロセッサ111によって指定された局番と合致する局番が設定された増設筐体ユニットが、マイクロプロセッサ111との交信権を得て実行される。
Next, input signals are read from the
In step S42 and step S43, the input / output signal is read and written by the additional enclosure unit set with the station number that matches the station number specified by the
図2および図3に示したフローチャートにおいて、ステップS17〜ステップS29から構成されるブロックは、局番設定手段となる。この局番設定動作は、電源投入後の初回動作で実行される。
また、ステップS14は、局番設定手段による局番設定前に実行される第1異常判定手段となる。第1異常判定手段は、終端ブロック160が未接続であるか、あるいは接続されていても、例えばコネクタの接触不良によって、接続確認信号END1が論理レベル「L」にならない場合に、終端処理未完了を判定する。
In the flowcharts shown in FIGS. 2 and 3, the block composed of Step S17 to Step S29 is a station number setting means. This station number setting operation is executed in the first operation after the power is turned on.
Step S14 serves as first abnormality determination means that is executed before the station number is set by the station number setting means. The first abnormality determination means determines that the termination process is not completed when the
また、ステップS19は、第2異常判定手段となる。第2異常判定手段は、最終の接続位置以前の入出力インタフェース回路からカード情報が得られない場合、あるいは、カード情報のうち、接続位置論理情報を含む接続位置論理信号MDLの論理レベルが「L」のものが、所定時間を経過しても得られない場合に異常判定する。
また、ステップS26は、第3異常判定手段となる。第3異常判定手段は、ステップS21で送信した設定局番と、ステップS25で受信した局番情報とが一致しない場合に異常判定する。
Step S19 serves as second abnormality determination means. When the card information cannot be obtained from the input / output interface circuit before the final connection position, or the second abnormality determination means has a logic level of the connection position logic signal MDL including the connection position logic information among the card information. "" Is not obtained even after a predetermined time has elapsed, an abnormality is determined.
Step S26 serves as third abnormality determination means. The third abnormality determination means determines an abnormality when the set station number transmitted in step S21 and the station number information received in step S25 do not match.
また、ステップS15は、設定異常処理手段となる。設定異常処理手段は、第1、第2、あるいは第3異常判定手段が異常判定した際に作用して、異常状態をRAMメモリ116に記憶させるとともに、異常表示LEDを点滅表示させて異常報知する。
また、ステップS30は、カード編成記憶手段となる。カード編成記憶手段は、全ての増設筐体ユニットに対する局番設定が完了した際に、局番情報とカード情報との対応をカード編成情報としてRAMメモリ116に記憶する。
Step S15 serves as a setting abnormality processing means. The setting abnormality processing means acts when the first, second, or third abnormality determining means makes an abnormality determination, stores the abnormal state in the
Step S30 serves as card organization storage means. The card organization storage means stores the correspondence between the station number information and the card information in the
また、ステップS37は、編成異常検出手段となる。編成異常検出手段は、ステップS36で得られた現在のカード編成情報と、ステップS30で記憶されたカード編成情報とが一致しない場合に異常判定する。
また、ステップS41は、脱落異常検出手段となる。脱落異常検出手段は、運転中において、終端ブロック160が接続されていないか、あるいは接続されていても、例えばコネクタの接触不良によって、増設筐体ユニット120〜150、および終端ブロック160の一部が脱落状態となり、接続確認信号END1が論理レベル「L」にならない場合に、終端処理未完了の判定を行う。
また、ステップS38は、編成異常処理手段となる。編成異常処理手段は、編成異常検出手段がカード編成情報の異常を検出した場合、あるいは脱落異常検出手段が終端処理未完了を判定した場合に作用して、異常状態をRAMメモリ116に記憶させるとともに、異常表示LEDを点滅表示させて異常報知する。
Step S37 serves as a knitting abnormality detection means. The knitting abnormality detecting means makes an abnormality determination when the current card knitting information obtained in step S36 does not match the card knitting information stored in step S30.
Step S41 serves as dropout abnormality detection means. Even if the
Step S38 serves as a knitting abnormality processing means. The knitting abnormality processing means acts when the knitting abnormality detecting means detects an abnormality in the card knitting information, or when the dropping abnormality detecting means determines that the termination process is not completed, and stores the abnormal state in the
なお、上記の説明において、ステップS41の脱落異常検出手段は、ステップS40でシーケンスプログラムのEND命令が実行される度に実行されている。それに対して、ステップS37の編成異常検出手段は、ステップS35において、RUNモードでの初回動作であると判定された場合に、一括して実行されている。
しかしながら、シーケンスプログラムのEND命令が実行される度に一つの増設筐体ユニットに関するカード編成異常をチェックし、順次他の増設筐体ユニットに関するカード編成異常をチェックしながら、運転中に複数の演算サイクルにわたってカード編成異常をチェックしてもよい。
In the above description, the drop abnormality detecting means in step S41 is executed every time the END instruction of the sequence program is executed in step S40. On the other hand, the knitting abnormality detection means in step S37 is collectively executed when it is determined in step S35 that the operation is the initial operation in the RUN mode.
However, each time the END instruction of the sequence program is executed, the card organization abnormality relating to one additional enclosure unit is checked, and multiple operation cycles are performed during operation while checking the card organization abnormality relating to other extension enclosure units sequentially. You may check for abnormal card formation.
このとき、ユニット形プログラマブルコントローラ100Aの演算周期が例えば10msであれば、不必要に高頻度にカード編成異常をチェックすることになる。しかしながら、シーケンスプログラムの中で、カード編成異常のチェックを適正な頻度で実行することができる。
その方法の一つとして、シーケンスプログラムの中でもアクセスが可能な特定メモリ領域にカード情報を格納し、一般のシーケンス命令を用いて異常判定と異常処理とを実行する方法がある。
また、他の方法として、シーケンスプログラムの中で使用することができる異常判定専用命令を準備して、シーケンスプログラムの中で、この異常判定専用命令を用いて異常判定を実行する方法がある。
このように、シーケンスプログラムの中で、異常判定と異常処理とを行う場合には、ユーザの意思に基づく判定頻度と異常処理方法を採用することができる。
At this time, if the calculation cycle of the unit-type
As one of the methods, there is a method in which card information is stored in a specific memory area accessible in a sequence program, and abnormality determination and abnormality processing are executed using a general sequence instruction.
As another method, there is a method of preparing an abnormality determination dedicated instruction that can be used in a sequence program and executing an abnormality determination using the abnormality determination dedicated instruction in the sequence program.
Thus, when performing abnormality determination and abnormality processing in a sequence program, the determination frequency and abnormality processing method based on the user's intention can be employed.
この発明の実施の形態1に係るユニット形プログラマブルコントローラ100Aによれば、マイクロプロセッサ111およびシーケンスプログラムが格納されたプログラムメモリ115Aを内蔵した基本筐体ユニット110Aと、基本筐体ユニット110Aに接続される増設筐体ユニット120〜150と、増設筐体ユニット120〜150を貫通して基本筐体ユニット110Aにバス接続され、複数の制御信号線および複数ビットのデータバスを含む貫通バスと、基本筐体ユニット110Aの反対側となるように貫通バスに接続された終端ブロック160と、基本筐体ユニット110Aおよび増設筐体ユニット120〜150の少なくとも一方に設けられ、マイクロプロセッサ111に対して選択的に接続される入出力インタフェース回路122〜152とを備え、外部入力機器121からの信号とプログラムメモリ115Aの内容とに応動して、外部出力機器に信号を出力するユニット形プログラマブルコントローラ100Aであって、基本筐体ユニット110Aは、入出力インタフェース回路122〜152を識別する局番を設定するための局番設定手段(ステップS17〜ステップS29)となる制御プログラムを含むシステムメモリ114Aと、入出力情報を記憶する演算処理用のRAMメモリ116と、マイクロプロセッサ111および貫通バスに接続されたバスインタフェース回路112とを含み、入出力インタフェース回路122〜152は、カード情報と局番を示す局番情報とを記憶する個別メモリを含み、カード情報は、入出力インタフェース回路122〜152が、入力インタフェース回路であるか出力インタフェース回路であるかを示す品種別論理情報と、入出力インタフェース回路122〜152の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報とを有し、終端ブロック160は、入出力インタフェース回路122〜152に接続されたプルアップ抵抗123〜153またはプルダウン抵抗を用いて、接続位置論理情報を得る接続位置確認回路LSTと、終端ブロック160の接続状態を、接続確認信号END1としてマイクロプロセッサ111に出力する終端処理確認回路ENDとを含み、局番設定手段は、マイクロプロセッサ111の運転開始時であって、接続確認信号END1により終端ブロック160の接続が確認された場合に、最初の接続位置から接続位置論理情報に含まれる最終の接続位置までの入出力インタフェース回路122〜152に対して、順次異なる局番を割り付け設定する。
すなわち、終端処理確認回路ENDによって終端ブロック160の接続が確認された場合に局番設定を開始し、増設筐体ユニット120〜150のカード情報格納メモリに格納されたカード情報を確認することによって、局番設定が完了したか否かを判定している。
そのため、終端ブロック160が未接続であって、データバスが不安定な状態で局番設定が行われることがなく、局番の誤設定を防止して確実に局番を設定することができる。
According to the unit
That is, the station number setting is started when the termination processing confirmation circuit END confirms the connection of the
Therefore, the station number is not set when the
また、カード情報のうち、品種別論理情報は、プリント基板に設けられた配線パターンによって決定される固定情報であるのに対して、接続位置論理情報は、入出力インタフェース回路122〜152の接続位置によって変化する可変情報である。
しかしながら、可変情報である接続位置論理情報も、終端ブロック160内に設けられた配線パターンである終端処理確認回路ENDによって決定される。
そのため、複雑な制御動作に依存せず、既存のデータバスを用いて、接続位置論理情報を、マイクロプロセッサ111に対して容易に伝達することができる。
Also, among the card information, the type-specific logic information is fixed information determined by the wiring pattern provided on the printed circuit board, whereas the connection position logic information is the connection position of the input /
However, the connection position logic information that is variable information is also determined by the termination processing confirmation circuit END that is a wiring pattern provided in the
Therefore, connection position logic information can be easily transmitted to the
また、入出力インタフェース回路122〜152には、マイクロプロセッサ111が出力する局番設定検索信号CF1を受信し、局番の設定完了に伴って順次後段に接続された入出力インタフェース回路122〜152に局番設定検索信号CF1を伝達するための選択切り換え回路125〜155が接続され、カード情報は、局番の設定が完了しているか否かを識別して、選択切り換え回路125〜155を切り換えるための個別完了論理情報をさらに有し、局番設定手段は、データバスを介して局番設定検索信号CF1を受信した入出力インタフェース回路122〜152のカード情報を読み出し、データバスを介して、局番設定検索信号CF1を受信した入出力インタフェース回路122〜152の個別メモリに、対応した局番を書き込み、マイクロプロセッサ111は、局番の設定が完了した後は、データバスを介して局番を指定し、指定された局番の入出力インタフェース回路122〜152との間で、データバスを介してデータを交信する。
そのため、複数の入出力インタフェース回路122〜152に対して、選択切り換え回路125〜155を用いて漏れなく確実に局番を設定することができる。また、最終の接続位置の入出力インタフェース回路122〜152を明確にすることができる。
The input /
Therefore, it is possible to reliably set station numbers for the plurality of input /
また、基本筐体ユニット110Aは、マイクロプロセッサ111の動作を監視するウォッチドッグタイマ117と、出力インタフェース回路を出力停止または現状保持する停止論理回路119とをさらに含み、ウォッチドッグタイマ117は、マイクロプロセッサ111が出力する暴走監視用パルス信号PLSのパルス幅が所定幅よりも大きくなった場合に、マイクロプロセッサ111および停止論理回路119に暴走異常検出信号WDを出力して、マイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行い、停止論理回路119は、暴走異常検出信号WDを受信した場合と、接続確認信号END1が終端ブロック160の未接続状態を示す場合とに、貫通停止信号線13を介して出力インタフェース回路の出力停止または現状保持を行う。
そのため、マイクロプロセッサ111の動作に異常が生じた場合に、速やかにマイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行うとともに、出力インタフェース回路の出力停止または現状保持を行うことができる。
また、接続確認信号END1が終端ブロック160の未接続状態を示す場合においても、貫通停止信号線13を用いて、出力インタフェース回路を出力停止または現状保持することができるので、少ない制御線によって安全性を向上させることができる。
The
Therefore, when an abnormality occurs in the operation of the
Further, even when the connection confirmation signal END1 indicates that the
また、システムメモリ114Aは、第1異常判定手段(ステップS14)と、第2異常判定手段(ステップS19)および第3異常判定手段(ステップS26)の少なくとも一方と、設定異常処理手段(ステップS15)ととなる制御プログラムをさらに含み、第1異常判定手段は、接続確認信号END1が終端ブロック160の未接続状態を示す場合に異常判定し、第2異常判定手段は、最終の接続位置以前の入出力インタフェース回路122〜152のカード情報が得られない場合、または最終の接続位置の入出力インタフェース回路122〜152が所定時間を経過しても発見されない場合に異常判定し、第3異常判定手段は、入出力インタフェース回路122〜152に設定した局番と、局番が設定された入出力インタフェース回路122〜152から確認返信された局番とが一致しない場合に異常判定し、設定異常処理手段は、第1異常判定手段、第2異常判定手段、および第3異常判定手段の何れかが異常判定した場合に、異常状態をRAMメモリ116に記憶するとともに、外部に報知する。
そのため、終端ブロック160が未接続状態である場合、または局番設定が未完了状態である場合に異常判定するので、保守点検を容易に行うことができる。
In addition, the
Therefore, when the
また、システムメモリ114Aは、カード編成記憶手段(ステップS30)と、編成異常検出手段(ステップS37)と、脱落異常検出手段(ステップS41)と、編成異常処理手段(ステップS38)ととなる制御プログラムをさらに含み、カード編成記憶手段は、局番の設定が完了した際に、カード情報と局番情報との対応を、カード編成情報としてRAMメモリ116に記憶し、編成異常検出手段は、局番を指定した入出力インタフェース回路122〜152から得られるカード編成情報と、カード編成記憶手段で記憶したカード編成情報とが一致しない場合に異常判定し、脱落異常検出手段は、運転中において、接続確認信号END1が終端ブロック160の未接続状態を示す場合に異常判定し、編成異常処理手段は、編成異常検出手段、および脱落異常検出手段の何れかが異常判定した場合に、異常状態をRAMメモリ116に記憶するとともに、外部に報知する。
そのため、運転開始時におけるカード編成情報のチェックと、運転中における脱落異常検出とによって、制御の安全性を向上させることができる。
In addition, the
Therefore, the safety of the control can be improved by checking the card organization information at the start of driving and detecting the dropout abnormality during driving.
実施の形態2.
図4は、この発明の実施の形態2に係るユニット形プログラマブルコントローラ100Bを示す構成図である。以下、図1との相違点を中心にして説明する。
図4において、ユニット形プログラマブルコントローラ100Bは、基本筐体ユニット110Bと、増設筐体ユニット180と、終端ブロック160と、貫通バス信号線BUSとを備えている。
Embodiment 2. FIG.
FIG. 4 is a block diagram showing a unit programmable controller 100B according to Embodiment 2 of the present invention. Hereinafter, the description will focus on the differences from FIG.
4, the unit type programmable controller 100B includes a basic housing unit 110B, an
基本筐体ユニット110Bは、マイクロプロセッサ111、バスインタフェース回路112、制御電源ユニット113、システムメモリ114B、プログラムメモリ115B、RAMメモリ116、ウォッチドッグタイマ117、シリアルインタフェース118、入出力基板170a、170b、プルアップ抵抗R、定電圧電源線Vcc、グランド回路GND、接続確認信号線11、局番設定検索信号線12、および貫通停止信号線13を含んでいる。
ここで、バスインタフェース回路112、システムメモリ114B、プログラムメモリ115B、RAMメモリ116、およびシリアルインタフェース118は、マイクロプロセッサ111と互いにバス接続されている。
The basic chassis unit 110B includes a
Here, the
入出力基板170aは、例えば図1に示した増設筐体ユニット120に相当する。また、入出力基板170bは、例えば図1に示した増設筐体ユニット130に相当する。入出力基板170a、170bは、それぞれ独立した筐体を持たず、基本筐体ユニット110Bに組み込まれている。
また、増設筐体ユニット180は、図1に示した増設筐体ユニット120〜150の何れかを代表したものである。
The input /
Further, the
入出力基板170a、170b、および増設筐体ユニット180には、それぞれ入出力機器101a、101b、101cが接続されている。また、入出力基板170a、170b、および増設筐体ユニット180は、それぞれ入出力インタフェース回路172a、172b、182と、選択切り換え回路175a、175b、185と、接続位置信号線14とを含んでいる。
入出力機器101aは、例えば図1に示した外部入力機器121に相当する。また、入出力機器101bは、例えば図1に示した外部負荷131に相当する。また、入出力機器101cは、適用された増設筐体ユニット180の品種に応じて、図1に示した外部入力機器121、外部負荷131、アナログ入力機器141、およびアナログ負荷151の何れかに相当する。
Input /
The input /
入出力インタフェース回路172a、172b、182は、入出力信号回路、多チャンネルAD変換器、および多チャンネルDA変換器の何れかと、カード情報格納メモリと、局番設定メモリとを有している。
また、選択切り換え回路175a、175b、185は、図1に示した選択切り換え回路125a、125bと同様に、それぞれ一対の論理和素子によって構成されている。
Each of the input /
In addition, the
なお、後述するように、基本筐体ユニット110B内の入出力インタフェース回路172a、172bに対して、あらかじめ所定の局番が割り付け設定されている場合には、基本筐体ユニット110B内の最終の接続位置(最終段)に接続された選択切り換え回路175bのみが必要となり、選択切り換え回路175aが不要となる。
すなわち、マイクロプロセッサ111が出力する局番設定検索信号CF1は、最終段に接続された入出力基板170bに直接供給される。
また、あらかじめ所定の局番が設定された入出力基板170a、170bのうち、終端ブロック160が接続されない(最終段ではない)入出力基板170aにおいて、接続位置信号線14を省略してもよい。
As will be described later, when a predetermined station number is assigned in advance to the input /
That is, the station number setting search signal CF1 output from the
Further, the connection
なお、上記の説明では、選択切り換え回路175a、175bは、それぞれ一対の論理和素子によって構成されているとしたが、ハードウェアを使用せず、マイクロプロセッサ111の制御による選択切り換え手段によって代替してもよい。
このとき、マイクロプロセッサ111は、まず、カード情報のうち、機種コード情報(後述する)を読み出して、基本筐体ユニット110Bの入出力編成の種別を確認する。続いて、マイクロプロセッサ111は、増設筐体ユニット180に対して局番設定検索信号CF1を送信する。
In the above description, the
At this time, the
また、基本筐体ユニット110Bに入出力される信号の点数規模には、様々なものがあり、入出力点数は、適用される用途の制御点数規模に応じて選択できるようになっている。
ここで、例えば出力点数よりも多い入力点数を必要とする場合、提供される基本筐体ユニット110Bの入出力点数が、実際の用途に比べて不足している場合、あるいはアナログ入出力を必要とする場合等には、増設筐体ユニット180が適宜増設される。
ただし、基本筐体ユニット110Bの入出力点数だけでまかなえる場合には、増設筐体ユニット180を接続する必要はなく、終端ブロック160が、基本筐体ユニット110Bの端面位置に直接接続される。
Moreover, there are various points in the scale of signals input to and output from the basic chassis unit 110B, and the number of inputs and outputs can be selected according to the scale of the control points for the application to be applied.
Here, for example, when the number of input points larger than the number of output points is required, when the number of input / output points of the provided basic housing unit 110B is insufficient compared to the actual application, or analog input / output is required. In such a case, the
However, when the number of input / output points of the basic chassis unit 110B can be met, it is not necessary to connect the
なお、基本筐体ユニット110B内に設けられた入出力インタフェース回路172a、172bの局番は、図1に示した増設筐体ユニット120、130と同様に、順次割り付け設定されてもよい。
しかしながら、本実施の形態では、入出力インタフェース回路172aには、局番「1」があらかじめ設定され、入出力インタフェース回路172bには、局番「2」があらかじめ設定されている。すなわち、増設筐体ユニット180には、局番「3」以降の局番が順次設定される。
Note that the station numbers of the input /
However, in this embodiment, the station number “1” is preset in the input /
また、入出力インタフェース回路172a、172bのカード情報格納メモリは、カード情報として、品種別論理情報と、個別完了論理情報と、接続位置論理情報とに加えて、内外識別論理情報を有している。
内外識別論理情報は、入出力インタフェース回路172a、172bが、基本筐体ユニット110Bに内蔵されていることを示している。
The card information storage memory of the input /
The inside / outside identification logic information indicates that the input /
さらに、最終段に接続された入出力インタフェース回路172bのカード情報格納メモリは、カード情報として、基本筐体ユニット110Bの入出力編成の種別を示す機種コード情報を有している。
この機種コードとしては、例えば基本筐体ユニット110B内の入力点数/出力点数が8点/8点のもの、16点/16点のもの、32点/32点のもの、および64点/64点のものに応じて、2ビット4種類の機種コードが与えられる。
ただし、機種コードとしては、基本筐体ユニット110Bにおける最終段の入出力インタフェース回路172bに与えられている局番そのものを使用することもできる。
Further, the card information storage memory of the input /
As this model code, for example, the number of input points / output points in the basic housing unit 110B is 8 points / 8 points, 16 points / 16 points, 32 points / 32 points, and 64 points / 64 points. Depending on the device type, 4 types of 2-bit model codes are given.
However, as the model code, the station number itself given to the input /
入出力インタフェース回路172a、172bのカード情報格納メモリに格納されたカード情報と、局番情報メモリに格納された局番情報のうち、最終段の入出力インタフェース回路172bの接続位置論理情報は、終端ブロック160が接続されているか否かによって論理レベルが変化するが、その他のカード情報と局番情報とは、全て固定された情報である。
上記の固定された情報は、データバスに対して接続、または解放するために設けられたデータセレクタの複数ビットの入力端子を、プリント基板によってグランド回路GNDに接続するか、定電圧電源線Vccに接続するかによって決定される配線パターン情報となっている。そのため、総称して個別メモリとしたが、入出力インタフェース回路172bの接続位置論理情報以外の情報には、読み書き可能なメモリが用いられているものではない。
その他の構成については、前述の実施の形態1と同様であり、その説明は省略する。
Of the card information stored in the card information storage memory of the input /
The fixed information is obtained by connecting a multi-bit input terminal of a data selector provided for connection to or release from the data bus to the ground circuit GND by a printed circuit board or by connecting to the constant voltage power supply line Vcc. The wiring pattern information is determined depending on whether the connection is made. For this reason, the individual memory is collectively called, but a readable / writable memory is not used for information other than the connection position logical information of the input /
Other configurations are the same as those in the first embodiment, and the description thereof is omitted.
以下、図4とともに、図5および図6のフローチャートを参照しながら、この発明の実施の形態2に係るユニット形プログラマブルコントローラ100Bの動作について説明する。
なお、実施の形態1と同様の動作については、説明を省略する。
Hereinafter, the operation of the unit programmable controller 100B according to the second embodiment of the present invention will be described with reference to the flowcharts of FIGS. 5 and 6 together with FIG.
Note that the description of the same operation as in the first embodiment is omitted.
図5において、ステップS14で、接続確認信号END1の論理レベルを確認することにより、終端ブロック160が接続されている(すなわち、Yes)と判定された場合には、局番設定検索信号CF1の論理レベルが、「H」から「L」にされて送信される(ステップS17)。
ここで、局番設定検索信号CF1が論理レベル「L」になったことにより、入出力インタフェース回路172bを含む入出力基板170bが、マイクロプロセッサ111との交信権を得る。
続いて、入出力基板170bが貫通バス信号線BUSに送信したカード情報が読み出され(ステップS18)、正常なカード情報が受信されたか否かが判定される(ステップS19)。
In FIG. 5, when it is determined in step S14 that the
Here, when the station number setting search signal CF1 becomes the logic level “L”, the input /
Subsequently, the card information transmitted from the input /
ステップS19において、正常なカード情報が受信された(すなわち、Yes)と判定された場合には、ステップS18で読み出されたカード情報のうち、機種コード情報を確認することにより、対象となっている入出力インタフェース回路が、基本筐体ユニット110B内に設けられているか否かが判定される(ステップS50)。
ここで、入出力インタフェース回路172bは、最終段に設けられているので、基本筐体ユニット110B内に設けられていると判定される。
If it is determined in step S19 that normal card information has been received (that is, Yes), the model code information in the card information read out in step S18 is checked to be the target. It is determined whether the input / output interface circuit is provided in the basic casing unit 110B (step S50).
Here, since the input /
ステップS50において、基本筐体ユニット110B内に設けられている(すなわち、Yes)と判定された場合には、カード情報のうち、接続位置論理情報を含む接続位置論理信号MDLの論理レベルを確認する(ステップS51)。
すなわち、終端ブロック160が、基本筐体ユニット110Bに直接接続されている場合には、接続位置論理信号MDLは、論理レベル「L」となる。また、終端ブロック160が、増設筐体ユニット180を介して基本筐体ユニット110Bに接続されている場合には、接続位置論理信号MDLは、論理レベル「H」となる。
ここで、基本筐体ユニット110Bには、増設筐体ユニット180を介して終端ブロック160が接続されているので、接続位置論理信号MDLは、論理レベル「H」となる。
In step S50, when it is determined that it is provided in the basic chassis unit 110B (that is, Yes), the logic level of the connection position logic signal MDL including the connection position logic information in the card information is confirmed. (Step S51).
That is, when the
Here, since the
次に、ステップS51で確認された接続位置論理信号MDLの論理レベルに基づいて、増設筐体ユニットが接続されているか否かが判定される(ステップS52)。
ステップS52において、増設筐体ユニットが接続されていない(すなわち、No)と判定された場合には、ステップS18で読み出されたカード情報のうち、機種コード情報に基づいて、あらかじめ設定されている局番に対応した品種別論理情報を含むカード編成情報を生成し、RAMメモリ116に記憶させ(ステップS53)、ステップS31に移行する。
Next, based on the logic level of the connection position logic signal MDL confirmed in step S51, it is determined whether or not the additional chassis unit is connected (step S52).
If it is determined in step S52 that the additional chassis unit is not connected (that is, No), it is set in advance based on the model code information in the card information read in step S18. Card organization information including type-specific logic information corresponding to the station number is generated and stored in the RAM memory 116 (step S53), and the process proceeds to step S31.
一方、ステップS52において、増設筐体ユニットが接続されている(すなわち、Yes)と判定された場合には、最終段の入出力インタフェース回路172bにおける個別完了論理信号FINを、論理レベル「H」に立ち上げて(ステップS54)、ステップS29に移行する。
ステップS54において、マイクロプロセッサ111は、例えば入出力インタフェース回路172bの局番を読み出して、この局番がステップS50で確認された機種コード情報に対応した局番と一致していることにより、個別完了論理信号FINを論理レベル「H」に立ち上げる。
ここで、個別完了論理信号FINを論理レベル「H」に立ち上げることにより、選択切り換え回路175bに入力された局番設定検索信号CF1が、後段の選択切り換え回路185に伝達される。
On the other hand, if it is determined in step S52 that the additional chassis unit is connected (that is, Yes), the individual completion logic signal FIN in the input /
In step S54, the
Here, by raising the individual completion logic signal FIN to the logic level “H”, the station number setting search signal CF1 input to the selection switching circuit 175b is transmitted to the
以下、ステップS29、ステップS17、ステップS18、ステップS19、ステップS50、ステップS20、ステップS21、ステップS25、ステップS26、ステップS27、ステップS29が循環動作して複数の増設筐体ユニットに対する局番が順次設定される。
続いて、ステップS20において、接続位置論理信号MDLの論理レベルが「H」から「L」に変化したことによって、終端ブロック160の接続が確認される。次に、ステップS29において、全ての増設筐体ユニットに対する局番設定が完了したと判定され、ステップS30に移行する。
Thereafter, step S29, step S17, step S18, step S19, step S50, step S20, step S21, step S25, step S26, step S27, and step S29 are circulated, and station numbers for a plurality of additional enclosure units are sequentially set. Is done.
Subsequently, in step S20, the connection of the
一方、ステップS50において、基本筐体ユニット110B内に設けられていない(すなわち、No)と判定された場合には、直ちにステップS20に移行する。
なお、ステップS50において、初回の動作にあっては、基本筐体ユニット110B内に設けられていると判定され、次回以降の動作にあっては、基本筐体ユニット110B内に設けられていないと判定されるのが正常である。
On the other hand, if it is determined in step S50 that it is not provided in the basic housing unit 110B (that is, No), the process immediately proceeds to step S20.
In step S50, it is determined that the first operation is provided in the basic casing unit 110B, and in the next and subsequent operations, it is not provided in the basic casing unit 110B. It is normal to be judged.
図5に示したフローチャートにおいて、ステップS17〜ステップS29およびステップS50〜ステップS54から構成されるブロックは、図2に示したステップS17〜ステップS29と同様に、局番設定手段となる。
また、ステップS53は、図2に示したステップS30と同様に、カード編成記憶手段となる。
In the flowchart shown in FIG. 5, the block composed of step S17 to step S29 and step S50 to step S54 serves as a station number setting unit, similarly to step S17 to step S29 shown in FIG. 2.
Further, step S53 serves as a card organization storage means, similarly to step S30 shown in FIG.
図6において、ステップS35で、初回動作フラグを確認することにより、RUNモードでの初回動作である(すなわち、Yes)と判定された場合には、ステップS43に移行する。
また、ステップS40で、シーケンスプログラムの中にあるEND命令が実行された(すなわち、Yes)と判定された場合には、例えばシーケンスプログラムの演算周期が、所定時間よりも短いか否かが判定される(ステップS60)。
In FIG. 6, when it is determined in step S35 that the initial operation flag is the initial operation in the RUN mode (ie, Yes), the process proceeds to step S43.
If it is determined in step S40 that the END instruction in the sequence program has been executed (that is, Yes), for example, it is determined whether the calculation cycle of the sequence program is shorter than a predetermined time. (Step S60).
ステップS60において、シーケンスプログラムの演算周期が、所定時間よりも長い(すなわち、No)と判定された場合には、ステップS42に移行する。
一方、ステップS60において、シーケンスプログラムの演算周期が、所定時間よりも短い(すなわち、Yes)と判定された場合には、接続確認信号END1の論理レベルを確認することにより、増設筐体ユニット180、および終端ブロック160が正常に接続されているか否かが判定される(ステップS61)。
If it is determined in step S60 that the calculation cycle of the sequence program is longer than the predetermined time (that is, No), the process proceeds to step S42.
On the other hand, if it is determined in step S60 that the operation cycle of the sequence program is shorter than the predetermined time (ie, Yes), the logical level of the connection confirmation signal END1 is confirmed to check the
ステップS61において、接続確認信号END1が論理レベル「L」であり、増設筐体ユニット180、および終端ブロック160が正常に接続されている(すなわち、Yes)と判定された場合には、現在のカード編成情報が読み出される(ステップS62)。
ステップS62において、マイクロプロセッサ111は、既に設定した設定局番を指定し、指定された局番に対応する増設筐体ユニットが、自身のカード情報を送信することにより、カード編成情報が確認される。
In step S61, if it is determined that the connection confirmation signal END1 is at the logic level “L” and the
In step S62, the
次に、図5のステップS30、あるいはステップS53で記憶されたカード編成情報と、ステップS62で得られた現在のカード編成情報とが比較され、カード編成情報が異常(すなわち、比較結果が不一致)であるか否かが判定される(ステップS63)。
ステップS63において、カード編成情報が異常である(すなわち、Yes)と判定された場合には、カード編成情報の異常状態をRAMメモリ116に記憶させるとともに、異常表示LEDを点滅表示させて異常報知し(ステップS64)、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
Next, the card organization information stored in step S30 or S53 of FIG. 5 is compared with the current card organization information obtained in step S62, and the card organization information is abnormal (that is, the comparison result is inconsistent). Is determined (step S63).
If it is determined in step S63 that the card organization information is abnormal (that is, Yes), the abnormal state of the card organization information is stored in the
After the operation of the
一方、ステップS63において、カード編成情報が異常でない(すなわち、No)と判定された場合には、ステップS42に移行する。
また、ステップS61において、増設筐体ユニット180、および終端ブロック160が正常に接続されていない(すなわち、No)と判定された場合には、直ちにステップS64に移行する。
On the other hand, if it is determined in step S63 that the card organization information is not abnormal (that is, No), the process proceeds to step S42.
If it is determined in step S61 that the
図6に示したフローチャートにおいて、ステップS61は、図3に示したステップS41と同様に、脱落異常検出手段となる。
また、ステップS63は、図3に示したステップS37と同様に、編成異常検出手段となる。
また、ステップS64は、図3に示したステップS38と同様に、編成異常処理手段となる。
In the flowchart shown in FIG. 6, step S61 serves as a dropout abnormality detection unit, similar to step S41 shown in FIG.
Further, step S63 serves as a knitting abnormality detection means, similarly to step S37 shown in FIG.
Further, step S64 serves as a knitting abnormality processing means, similarly to step S38 shown in FIG.
なお、脱落異常検出手段となるステップS61、カード編成確認手段となるステップS62、編成異常検出手段となるステップS63、および編成異常処理手段となるステップS64は、ユーザによって作成されたシーケンスプログラムの一部としてプログラムメモリ115Bに格納されている。
また、脱落異常検出手段、編成異常検出手段、および編成異常処理手段の具体的な制御内容は、ユーザプログラムによって決定されるようになっている。
また、カード編成異常のチェックは、基本筐体ユニット110Bと増設筐体ユニットとを合わせてチェックすることも可能である。
Step S61 serving as a dropout abnormality detecting unit, step S62 serving as a card composition confirmation unit, step S63 serving as a composition abnormality detection unit, and step S64 serving as a composition abnormality processing unit are part of a sequence program created by the user. Is stored in the program memory 115B.
The specific control contents of the dropout abnormality detecting means, the knitting abnormality detecting means, and the knitting abnormality processing means are determined by the user program.
Also, the card organization abnormality check can be performed by checking the basic chassis unit 110B and the additional chassis unit together.
この発明の実施の形態2に係るユニット形プログラマブルコントローラ100Bによれば、マイクロプロセッサ111およびシーケンスプログラムが格納されたプログラムメモリ115Bを内蔵した基本筐体ユニット110Bと、基本筐体ユニット110Bに接続される増設筐体ユニット180と、増設筐体ユニット180を貫通して基本筐体ユニット110Bにバス接続され、複数の制御信号線および複数ビットのデータバスを含む貫通バスと、基本筐体ユニット110Bの反対側となるように貫通バスに接続された終端ブロック160と、基本筐体ユニット110Bおよび増設筐体ユニット180にそれぞれ設けられ、マイクロプロセッサ111に対して選択的に接続される複数の入出力インタフェース回路172a、172b、182とを備え、外部入力機器121からの信号とプログラムメモリ115Bの内容とに応動して、外部出力機器に信号を出力するユニット形プログラマブルコントローラ100Bであって、基本筐体ユニット110Bに設けられた入出力インタフェース回路172a、172bには、あらかじめ所定の局番が識別用に設定されており、基本筐体ユニット110Bは、増設筐体ユニット180に設けられた入出力インタフェース回路182を識別する局番を設定するための局番設定手段(ステップS17〜ステップS29、およびステップS50〜ステップS54)となる制御プログラムを含むシステムメモリ114Bと、入出力情報を記憶する演算処理用のRAMメモリ116と、マイクロプロセッサ111および貫通バスに接続されたバスインタフェース回路112とを含み、入出力インタフェース回路172a、172b、182は、カード情報と局番を示す局番情報とを記憶する個別メモリを含み、カード情報は、入出力インタフェース回路172a、172b、182が、入力インタフェース回路であるか出力インタフェース回路であるかを示す品種別論理情報と、入出力インタフェース回路172a、172b、182の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報と、入出力インタフェース回路172a、172b、182が基本筐体ユニット110Bに設けられているか否かを示すとともに、入出力インタフェース回路172a、172b、182が基本筐体ユニット110Bに設けられている場合に、基本筐体ユニット110Bの入出力編成の種別を示す機種コード情報とを有し、終端ブロック160は、入出力インタフェース回路172a、172b、182に接続されたプルアップ抵抗またはプルダウン抵抗を用いて、接続位置論理情報を得る接続位置確認回路LSTと、終端ブロック160の接続状態を、接続確認信号END1としてマイクロプロセッサ111に出力する終端処理確認回路ENDとを含み、局番設定手段は、マイクロプロセッサ111の運転開始時であって、接続確認信号END1により終端ブロック160の接続が確認された場合に、増設筐体ユニット180の最初の接続位置から接続位置論理情報に含まれる最終の接続位置までの入出力インタフェース回路182に対して、基本筐体ユニット110Bに設けられた入出力インタフェース回路172a、172bに設定された局番に続く局番を、順次割り付け設定する。
すなわち、終端処理確認回路ENDによって終端ブロック160の接続が確認された場合に局番設定を開始し、増設筐体ユニット180のカード情報格納メモリに格納されたカード情報を確認することによって、局番設定が完了したか否かを判定している。
そのため、終端ブロック160が未接続であって、データバスが不安定な状態で局番設定が行われることがなく、局番の誤設定を防止して確実に局番を設定することができる。
また、基本筐体ユニット110B内の入出力基板170a、170bには、あらかじめ所定の局番が割り付け設定されているので、局番設定の能率を向上させることができる。
According to the unit-type programmable controller 100B according to the second embodiment of the present invention, the basic casing unit 110B including the
That is, the station number setting is started when the termination processing confirmation circuit END confirms the connection of the
Therefore, the station number is not set when the
In addition, since a predetermined station number is assigned and set in advance to the input /
また、基本筐体ユニット110Bに内蔵された最終段の入出力インタフェース回路172bには、最終段の入出力インタフェース回路172bからの、マイクロプロセッサ111によるカード情報の読み出し完了に伴って、後段に接続された増設筐体ユニット180内の入出力インタフェース回路182に対して、マイクロプロセッサ111が出力する局番設定検索信号CF1を送信するための選択切り換え手段が接続されるか、あるいは、システムメモリ114Bは、基本筐体ユニット110Bに内蔵された最終段の入出力インタフェース回路172bからの、マイクロプロセッサ111によるカード情報の読み出し完了に伴って、後段に接続された増設筐体ユニット180内の入出力インタフェース回路182に対して、マイクロプロセッサ111が出力する局番設定検索信号CF1を送信するための選択切り換え手段となる制御プログラムを含み、最終段の入出力インタフェース回路172bのカード情報は、マイクロプロセッサ111による読み出しが完了しているか否かを識別して、選択切り換え手段を切り換えるための個別完了論理情報をさらに有し、増設筐体ユニット180に内蔵された入出力インタフェース回路182には、局番設定検索信号CF1を受信し、局番の設定完了に伴って順次後段に接続された入出力インタフェース回路に局番設定検索信号CF1を伝達するための選択切り換え回路185が接続され、増設筐体ユニット180に内蔵された入出力インタフェース回路182のカード情報は、局番の設定が完了しているか否かを識別して、選択切り換え回路185を切り換えるための個別完了論理情報をさらに有し、局番設定手段は、データバスを介して最終段の入出力インタフェース回路172bのカード情報を読み出して、最終段の入出力インタフェース回路172bのカード情報内の接続位置論理情報が、最終の接続位置でないことを示す場合に、最終段の入出力インタフェース回路172bのカード情報内の機種コード情報に基づいて、データバスを介して、後段に接続された増設筐体ユニット180内の入出力インタフェース回路182の個別メモリに、対応した局番を書き込み、マイクロプロセッサ111は、局番の設定が完了した後は、データバスを介して局番を指定し、指定された局番の入出力インタフェース回路との間で、データバスを介してデータを交信する。
そのため、複数の増設筐体ユニット180の入出力インタフェース回路182に対して、選択切り換え回路185を用いて漏れなく確実に局番を設定することができる。
また、基本筐体ユニット110B内の最終段の入出力インタフェース回路172bに格納されたカード情報から、基本筐体ユニット110Bの入出力編成の種別を得て、これに続く局番を増設筐体ユニット180に割り付け設定することができる。
Further, the final stage input /
Therefore, it is possible to reliably set the station numbers for the input /
In addition, the type of input / output organization of the basic chassis unit 110B is obtained from the card information stored in the input /
また、基本筐体ユニット110Bは、マイクロプロセッサ111の動作を監視するウォッチドッグタイマ117と、出力インタフェース回路を出力停止または現状保持する停止論理回路119とをさらに含み、ウォッチドッグタイマ117は、マイクロプロセッサ111が出力する暴走監視用パルス信号PLSのパルス幅が所定幅よりも大きくなった場合に、マイクロプロセッサ111および停止論理回路119に暴走異常検出信号WDを出力して、マイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行い、停止論理回路119は、暴走異常検出信号WDを受信した場合と、接続確認信号END1が終端ブロック160の未接続状態を示す場合とに、貫通停止信号線13を介して出力インタフェース回路の出力停止または現状保持を行う。
そのため、マイクロプロセッサ111の動作に異常が生じた場合に、速やかにマイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行うとともに、出力インタフェース回路の出力停止または現状保持を行うことができる。
また、接続確認信号END1が終端ブロック160の未接続状態を示す場合においても、貫通停止信号線13を用いて、出力インタフェース回路を出力停止または現状保持することができるので、少ない制御線によって安全性を向上させることができる。
The basic housing unit 110B further includes a
Therefore, when an abnormality occurs in the operation of the
Further, even when the connection confirmation signal END1 indicates that the
また、システムメモリ114Bは、第1異常判定手段(ステップS14)と、第2異常判定手段(ステップS19)および第3異常判定手段(ステップS26)の少なくとも一方と、設定異常処理手段(ステップS15)ととなる制御プログラムをさらに含み、第1異常判定手段は、接続確認信号END1が終端ブロック160の未接続状態を示す場合に異常判定し、第2異常判定手段は、最終の接続位置以前の入出力インタフェース回路172b、182のカード情報が得られない場合、または最終の接続位置の入出力インタフェース回路182が所定時間を経過しても発見されない場合に異常判定し、第3異常判定手段は、入出力インタフェース回路に設定した局番と、局番が設定された入出力インタフェース回路から確認返信された局番とが一致しない場合に異常判定し、設定異常処理手段は、第1異常判定手段、第2異常判定手段、および第3異常判定手段の何れかが異常判定した場合に、異常状態をRAMメモリ116に記憶するとともに、外部に報知する。
そのため、終端ブロック160が未接続状態である場合、または局番設定が未完了状態である場合に異常判定するので、保守点検を容易に行うことができる。
Further, the system memory 114B includes at least one of a first abnormality determination unit (step S14), a second abnormality determination unit (step S19) and a third abnormality determination unit (step S26), and a setting abnormality processing unit (step S15). The first abnormality determining means determines an abnormality when the connection confirmation signal END1 indicates the unconnected state of the
Therefore, when the
また、システムメモリ114Bは、カード編成記憶手段(ステップS30、ステップS53)となる制御プログラムをさらに含み、プログラムメモリ115Bは、編成異常検出手段(ステップS63)と、脱落異常検出手段(ステップS61)と、編成異常処理手段(ステップS64)ととなる制御プログラムをさらに含み、カード編成記憶手段は、局番の設定が完了した際に、カード情報と局番情報との対応を、カード編成情報としてRAMメモリ116に記憶し、編成異常検出手段は、局番を指定した入出力インタフェース回路から得られるカード編成情報と、カード編成記憶手段で記憶したカード編成情報とが一致しない場合に異常判定し、脱落異常検出手段は、運転中において、接続確認信号END1が終端ブロック160の未接続状態を示す場合に異常判定し、編成異常処理手段は、編成異常検出手段、および脱落異常検出手段の何れかが異常判定した場合に、異常状態をRAMメモリ116に記憶するとともに、外部に報知する。
そのため、運転中における異常判定をユーザのシーケンスプログラムで実行することにより、用途に応じた異常処理を実行することができる。
Further, the system memory 114B further includes a control program serving as card knitting storage means (steps S30 and S53), and the program memory 115B includes knitting abnormality detection means (step S63) and dropout abnormality detection means (step S61). And a control program serving as knitting abnormality processing means (step S64), and the card knitting storage means stores the correspondence between the card information and the station number information in the
Therefore, the abnormality process according to a use can be performed by performing abnormality determination in driving | operation with a user's sequence program.
実施の形態3.
図7は、この発明の実施の形態3に係るユニット形プログラマブルコントローラ100Cを示す構成図である。以下、図1との相違点を中心にして説明する。
なお、実施の形態1と同様の構成については、説明を省略する。
FIG. 7 is a configuration diagram showing a unit
Note that the description of the same configuration as that of
図7において、ユニット形プログラマブルコントローラ100Cは、基本筐体ユニット110Cと、拡張親局ユニット190Aと、基本列の増設筐体ユニット180a〜180cと、基本列の終端ブロック160と、拡張子局ユニット290Aと、拡張列の増設筐体ユニット280a〜280cと、拡張列の終端ブロック260と、貫通バス信号線BUSとを備えている。
In FIG. 7, the unit-type
基本筐体ユニット110Cは、マイクロプロセッサ111、バスインタフェース回路112、制御電源ユニット113、システムメモリ114C、プログラムメモリ115C、RAMメモリ116、ウォッチドッグタイマ117、シリアルインタフェース118、プルアップ抵抗R、定電圧電源線Vcc、グランド回路GND、接続確認信号線11a、11b、局番設定検索信号線12a、12b、および貫通停止信号線13を含んでいる。
ここで、バスインタフェース回路112、システムメモリ114C、プログラムメモリ115C、RAMメモリ116、およびシリアルインタフェース118は、マイクロプロセッサ111と互いにバス接続されている。
The basic chassis unit 110C includes a
Here, the
マイクロプロセッサ111は、バスインタフェース回路112を介して、局番設定検索信号線12aに、基本列用の局番設定検索信号CF1を出力し、局番設定検索信号線12bに、拡張列用の局番設定検索信号CF2(拡張列用局番設定検索信号)を出力する。
また、プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11a、11bには、それぞれ終端ブロック160が接続されているか否かを示す基本列用の接続確認信号END1と、終端ブロック260が接続されているか否かを示す拡張列用の接続確認信号END2(拡張列用接続確認信号)とが伝達される。接続確認信号END1、END2は、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The
Further, the connection confirmation signal lines END1 for indicating whether or not the
増設筐体ユニット180a〜180c、280a〜280cは、それぞれ図1に示した増設筐体ユニット120〜150の何れかを代表したものである。
また、終端ブロック160、260は、互いに同一のものであり、接続列によって、便宜上異なる符号が与えられている。
なお、基本筐体ユニット110Cは、図4に示した基本筐体ユニット110Bと同様に、入出力基板を含んでいてもよいが、本実施の形態では、入出力基板を含まない基本筐体ユニット110Cを例にして説明する。
The
Further, the end blocks 160 and 260 are the same as each other, and are given different symbols for convenience depending on the connection sequence.
The basic chassis unit 110C may include an input / output board, as in the basic chassis unit 110B shown in FIG. 4, but in this embodiment, the basic chassis unit does not include an input / output board. 110C will be described as an example.
拡張親局ユニット190Aは、基本筐体ユニット110Cと増設筐体ユニット180aとの間に設けられ、バッファ回路196、および親局コネクタ197を含んでいる。
拡張親局ユニット190Aは、定電圧電源線Vcc、グランド回路GND、接続確認信号線11a、局番設定検索信号線12a、貫通停止信号線13、および貫通バス信号線BUSを、基本筐体ユニット110Cから増設筐体ユニット180aまで貫通接続する。
ここで、増設筐体ユニット180aに接続された貫通バス信号線BUSを貫通バス信号線BUS1と称する。
The extended
The extension
Here, the through bus signal line BUS connected to the
また、拡張親局ユニット190Aは、定電圧電源線Vcc、グランド回路GND、貫通停止信号線13、および貫通バス信号線BUSを分岐し、親局コネクタ197と拡張子局ユニット290Aに設けられた子局コネクタ297とを介して、拡張子局ユニット290Aに接続する。また、拡張列で使用される接続確認信号線11b、および局番設定検索信号線12bも、親局コネクタ197と子局コネクタ297とを介して、拡張子局ユニット290Aに接続される。
The extension
拡張子局ユニット290Aは、拡張親局ユニット190Aと増設筐体ユニット280aとの間に設けられ、バッファ回路296、子局コネクタ297、および拡張列用停止論理回路298を含んでいる。
拡張子局ユニット290Aは、定電圧電源線Vcc、接続確認信号線11b、局番設定検索信号線12b、および貫通バス信号線BUSを、増設筐体ユニット280aに貫通接続する。
ここで、増設筐体ユニット280aに接続された貫通バス信号線BUSを貫通バス信号線BUS2と称する。
The
The
Here, the through bus signal line BUS connected to the
貫通バス信号線BUS2は、それぞれドライバ/レシーバによって構成されたバッファ回路296、およびバッファ回路196を介して、貫通バス信号線BUSに接続されている。
拡張親局ユニット190A内に設けられたバッファ回路196は、拡張親局ユニット190Aと拡張子局ユニット290Aとの間の配線距離が比較的長い場合に有効となる。
また、拡張子局ユニット290A内に設けられたバッファ回路296は、拡張子局ユニット290Aに多数の増設筐体ユニットが接続される場合に有効となる。
The through bus signal line BUS2 is connected to the through bus signal line BUS via a buffer circuit 296 and a
The
Further, the buffer circuit 296 provided in the
拡張子局ユニット290A内に設けられた拡張列用停止論理回路298は、2入力の論理積素子によって構成されている。
拡張列用停止論理回路298の一方の入力端子には、貫通停止信号線13に出力される貫通停止信号WD1が入力され、他方の入力端子には、接続確認信号END2の反転論理信号が入力される。拡張列用停止論理回路298は、貫通停止信号線15に貫通停止信号WD2を出力する。
The extension column
The penetration stop signal WD1 output to the penetration
ここで、拡張子局ユニット290Aに接続された拡張列の増設筐体ユニット280a〜280cに設けられたコネクタピンの配置は、基本列の増設筐体ユニット180a〜180cに設けられたコネクタピンの配置と同様である。
また、増設筐体ユニット280aに代表記載した定電圧電源線Vcc、グランド回路GND、接続確認信号線11b、局番設定検索信号線12b、貫通停止信号線13、および貫通バス信号線BUS2のコネクタピンの配置と、増設筐体ユニット180aに代表記載した定電圧電源線Vcc、グランド回路GND、接続確認信号線11a、局番設定検索信号線12a、貫通停止信号線13、および貫通バス信号線BUS1のコネクタピンの配置とは、同一である。
しかし、増設筐体ユニット280aに代表記載した接続確認信号線11bと局番設定検索信号線12bとは、拡張子局ユニット290Aと拡張親局ユニット190Aとを介して、基本筐体ユニット110Cに設けられた接続確認信号線11bと局番設定検索信号線12bとにそれぞれ接続されている。
Here, the arrangement of the connector pins provided in the extension
In addition, the constant voltage power supply line Vcc, the ground circuit GND, the connection
However, the connection
また、基本列は、図1に示したものと同様に、基本筐体ユニット110Cと、増設筐体ユニット180a〜180cと、終端ブロック160とによって構成されている。
ここで、各種信号線および貫通バス信号線BUSを分岐取り出しするための拡張親局ユニット190Aが介在する点と、マイクロプロセッサ111が、複数の接続確認信号END1、END2と、複数の局番設定検索信号CF1、CF2とを取り扱う点とが図1に示したものと異なっている。
また、拡張列は、基本筐体ユニット110Cの代わりに、拡張子局ユニット290Aが設けられている点が異なっている。
In addition, the basic column is configured by a basic casing unit 110C,
Here, the extended
Further, the extension row is different in that an
上記の構成において、接続確認信号線11aによって伝達される接続確認信号END1は、拡張親局ユニット190A、および増設筐体ユニット180a〜180cを貫通して、終端ブロック160の終端処理確認回路ENDで論理レベル「L」にされる。また、接続確認信号線11bによって伝達される接続確認信号END2は、拡張親局ユニット190A、拡張子局ユニット290A、および増設筐体ユニット280a〜280cを貫通して、終端ブロック260の終端処理確認回路ENDで論理レベル「L」にされる。
また、局番設定検索信号線12aは、増設筐体ユニット180a〜180c内の選択切り換え回路を経由して、順次迂回配線される。また、局番設定検索信号線12bは、増設筐体ユニット280a〜280c内の選択切り換え回路を経由して、順次迂回配線される。
In the above configuration, the connection confirmation signal END1 transmitted through the connection
Further, the station number setting
また、基本列の最終の接続位置に接続された増設筐体ユニット180cにおいて、接続位置信号線によって伝達される接続位置論理信号MDLは、終端ブロック160の接続位置確認回路LSTで論理レベル「L」にされる。また、拡張列の最終の接続位置に接続された増設筐体ユニット280cにおいて、接続位置信号線によって伝達される接続位置論理信号MDLは、終端ブロック260の接続位置確認回路LSTで論理レベル「L」にされる。
Further, in the
また、貫通停止信号線13に出力される貫通停止信号WD1は、ウォッチドッグタイマ117から出力される暴走異常検出信号WDが論理レベル「L」である場合、あるいは接続確認信号END1が論理レベル「H」である場合に、論理レベル「L」となり、増設筐体ユニット180a〜180c中の出力インタフェース回路の出力停止または現状保持を行う。
これに対して、貫通停止信号線15に出力される貫通停止信号WD2は、暴走異常検出信号WDが論理レベル「L」である場合、接続確認信号END1が論理レベル「H」である場合、あるいは接続確認信号END2が論理レベル「H」である場合に、論理レベル「L」となり、増設筐体ユニット280a〜280c中の出力インタフェース回路の出力停止または現状保持を行う。
Further, the penetration stop signal WD1 output to the penetration
On the other hand, the through stop signal WD2 output to the through
なお、基本列の増設筐体ユニット180a〜180cの接続異常によって、拡張列の増設筐体ユニット280a〜280c中の出力インタフェース回路の出力停止または現状保持を行わない場合には、拡張列用停止論理回路298の一方の入力端子において、貫通停止信号WD1を入力する代わりに、ウォッチドッグタイマ117から出力される暴走異常検出信号WDを入力すればよい。
If the output of the output interface circuit in the expansion
以下、図7とともに、この発明の実施の形態3に係るユニット形プログラマブルコントローラ100Cの動作について説明する。
なお、実施の形態1と同様の動作については、説明を省略する。
Hereinafter, the operation of the unit
Note that the description of the same operation as in the first embodiment is omitted.
まず、ユニット形プログラマブルコントローラ100Cの運転開始時において、終端ブロック160、260が接続されていると判定された場合に、局番設定検索信号CF1によって、基本列の増設筐体ユニット180a〜180cに対する局番設定が行われる。
続いて、局番設定検索信号CF2によって、拡張列の増設筐体ユニット280a〜280cに対する局番設定が行われる。
ここで、増設筐体ユニット280aの局番は、基本列の最終の接続位置に接続された増設筐体ユニット180cの局番に続く局番となる。
First, at the start of operation of the unit-type
Subsequently, the station number is set for the
Here, the station number of the
この発明の実施の形態3に係るユニット形プログラマブルコントローラ100Cによれば、基本筐体ユニット110Cと終端ブロック160との間に設けられる拡張親局ユニットと、拡張親局ユニットに接続される拡張子局ユニットと、拡張子局ユニットの後段に接続される拡張列増設筐体ユニット280a〜280cおよび拡張列終端ブロック260とをさらに備え、拡張親局ユニットおよび拡張子局ユニットは、貫通バスに接続されたバッファ回路を含み、マイクロプロセッサ111は、基本筐体ユニット110C、増設筐体ユニット180a〜180cおよび終端ブロック160によって構成される基本列の入出力インタフェース回路の局番を設定する局番設定検索信号CF1とは異なる信号であり、拡張列増設筐体ユニット280a〜280cに設けられた拡張列入出力インタフェース回路の局番設定を開始するための拡張列用の局番設定検索信号CF2を出力し、マイクロプロセッサ111には、終端ブロック160の接続状態を示す接続確認信号END1とは異なる信号であり、拡張列終端ブロック260の接続状態を示す拡張列用の接続確認信号END2が入力され、局番設定手段は、拡張列入出力インタフェース回路に対して、基本筐体ユニット110Cあるいは増設筐体ユニット180a〜180cの入出力インタフェース回路に設定された局番に続く局番を設定する。
そのため、多数の増設筐体ユニットを複列配置して、設置寸法を抑制することができる。
また、複数の制御信号線とデータバスとを含む貫通バスを、バッファ回路を介して接続することにより、制御信号線やデータバスの電圧降下を抑制することができるとともに、ノイズの還流を抑制することができる。
また、局番設定にあたっては、接続位置論理信号MDLを用いて前列の最終位置に接続された入出力インタフェース回路の局番を確認するので、これに続く局番を後列の入出力インタフェース回路に容易に設定することができる。
According to the unit-type
Therefore, a large number of additional enclosure units can be arranged in a double row to reduce the installation size.
In addition, by connecting a through bus including a plurality of control signal lines and a data bus via a buffer circuit, it is possible to suppress a voltage drop of the control signal line and the data bus, and to suppress noise circulation. be able to.
Further, when setting the station number, the station number of the input / output interface circuit connected to the final position in the front row is confirmed using the connection position logic signal MDL, so that the subsequent station number is easily set in the input / output interface circuit in the back row. be able to.
また、基本筐体ユニット110Cは、マイクロプロセッサ111の動作を監視するウォッチドッグタイマ117をさらに含み、拡張子局ユニットは、拡張列増設筐体ユニット280a〜280cに設けられた出力インタフェース回路を出力停止または現状保持する停止論理回路298をさらに含み、ウォッチドッグタイマ117は、マイクロプロセッサ111が出力する暴走監視用パルス信号PLSのパルス幅が所定幅よりも大きくなった場合に、マイクロプロセッサ111および停止論理回路298に暴走異常検出信号WDを出力して、マイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行い、停止論理回路298は、暴走異常検出信号WDを受信した場合と、拡張列用の接続確認信号END2が、拡張列終端ブロック260の未接続状態を示す場合とに、貫通停止信号線15を介して出力インタフェース回路の出力停止または現状保持を行う。
そのため、マイクロプロセッサ111の動作に異常が生じた場合に、速やかにマイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行うとともに、出力インタフェース回路の出力停止または現状保持を行うことができる。
また、接続確認信号END2が拡張列終端ブロック260の未接続状態を示す場合においても、貫通停止信号線13を用いて、出力インタフェース回路を出力停止または現状保持することができるので、少ない制御線によって安全性を向上させることができる。
The basic chassis unit 110C further includes a
Therefore, when an abnormality occurs in the operation of the
Even when the connection confirmation signal END2 indicates the unconnected state of the extended
実施の形態4.
図8は、この発明の実施の形態4に係るユニット形プログラマブルコントローラ100Dを示す構成図である。以下、図7との相違点を中心にして説明する。
なお、実施の形態3と同様の構成については、説明を省略する。
Embodiment 4 FIG.
FIG. 8 is a block diagram showing a unit programmable controller 100D according to Embodiment 4 of the present invention. Hereinafter, the description will be focused on the difference from FIG.
Note that the description of the same configuration as that of
図8において、ユニット形プログラマブルコントローラ100Dは、基本筐体ユニット110Dと、基本列の増設筐体ユニット180d、180eと、拡張親局ユニット190Bと、終端ブロック160と、拡張子局ユニット290Bと、拡張列の増設筐体ユニット280d、280eと、終端ブロック260と、拡張孫局ユニット390Bと、拡張孫列の増設筐体ユニット380d、380eと、終端ブロック360とを備えている。
In FIG. 8, the unit-type programmable controller 100D includes a basic chassis unit 110D, basic chassis
基本筐体ユニット110Dは、マイクロプロセッサ111、バスインタフェース回路112、システムメモリ114D、プログラムメモリ115D、RAMメモリ116、ウォッチドッグタイマ117、接続確認信号線11a〜11c、局番設定検索信号線12a〜12c、および貫通停止信号線13を含んでいる。
なお、図7に示した制御電源ユニット113、シリアルインタフェース118、プルアップ抵抗R、定電圧電源線Vcc、グランド回路GND、および貫通バス信号線BUSについては、同様に設けられているものの、図8では、図示を省略している。
The basic chassis unit 110D includes a
Although the control
マイクロプロセッサ111は、システムメモリ114Dと協働し、バスインタフェース回路112を介して、局番設定検索信号線12aに、基本列用の局番設定検索信号CF1を出力し、局番設定検索信号線12bに、拡張列用の局番設定検索信号CF2を出力し、局番設定検索信号線12cに、拡張孫列用の局番設定検索信号CF3(拡張孫列用局番設定検索信号)を出力する。
また、プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11a〜11cには、それぞれ終端ブロック160が接続されているか否かを示す基本列用の接続確認信号END1と、終端ブロック260が接続されているか否かを示す拡張列用の接続確認信号END2と、終端ブロック360が接続されているか否かを示す拡張孫列用の接続確認信号END3(拡張孫列用接続確認信号)とが伝達される。接続確認信号END1〜END3は、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The
The connection
増設筐体ユニット180d、180e、280d、280e、380d、380eは、接続確認信号線11a〜11c、局番設定検索信号線12b、12c、および貫通停止信号線13と、図示しない定電圧電源線Vcc、グランド回路GND、および貫通バス信号線BUSとを貫通接続する。
増設筐体ユニット180d、180e、280d、280e、380d、380eのその他の構成は、図7に示した増設筐体ユニット180a〜180c、280a〜280cの構成と同様である。
また、終端ブロック160〜360は、互いに同一のものである。
The
Other configurations of the
The end blocks 160 to 360 are the same as each other.
ここで、増設筐体ユニット280d、280e、380d、380eについては、必ずしも接続確認信号線11b、11c、および局番設定検索信号線12b、12cを貫通接続する必要はない。
しかしながら、増設筐体ユニット280d、280e、380d、380eを上記のように構成することにより、増設筐体ユニットが標準化されるので、どの列においても使用することができる。
Here, the
However, since the additional enclosure units are standardized by configuring the
拡張親局ユニット190Bは、増設筐体ユニット180bと終端ブロック160との間に設けられ、親局コネクタ197を含んでいる。なお、図7に示したバッファ回路196については、図示を省略している。
拡張親局ユニット190Bは、接続確認信号線11a〜11c、局番設定検索信号線12a〜12c、貫通停止信号線13、および接続位置信号線14と、図示しない定電圧電源線Vcc、グランド回路GND、および貫通バス信号線BUSとを貫通接続する。
ここで、拡張親局ユニット190Bは、上記のように構成されているので、基本筐体ユニット110Dと終端ブロック160との間のどの位置に設けられた場合であっても、全てのデータを交信することができる。
The extension
The extension
Here, since the extended
また、拡張親局ユニット190Bは、接続確認信号線11b、11c、局番設定検索信号線12b、12c、および貫通停止信号線13を分岐し、親局コネクタ197と拡張子局ユニット290Aに設けられた子局第1コネクタ297aとを介して、拡張子局ユニット290Bに接続する。
The extension
拡張子局ユニット290Bは、拡張親局ユニット190Bと増設筐体ユニット280dとの間に設けられ、子局第1コネクタ297a、子局第2コネクタ297b、および拡張列用停止論理回路298を含んでいる。
拡張子局ユニット290Bは、接続確認信号線11b、および局番設定検索信号線12bを増設筐体ユニット280dに貫通接続する。
また、拡張子局ユニット290Bは、接続確認信号線11c、局番設定検索信号線12c、および貫通停止信号線15を、子局第2コネクタ297bと拡張孫局ユニット390Bに設けられた孫局第1コネクタ397aとを介して、拡張孫局ユニット390Bに接続する。
The extension station unit 290B is provided between the extension
The extension station unit 290B penetrates and connects the connection
Further, the extension station unit 290B includes a connection
拡張子局ユニット290B内に設けられた拡張列用停止論理回路298は、2入力の論理積素子によって構成されている。
拡張列用停止論理回路298の一方の入力端子には、貫通停止信号線13に出力される貫通停止信号WD1が入力され、他方の入力端子には、接続確認信号END2の反転論理信号が入力される。拡張列用停止論理回路298は、貫通停止信号線15に貫通停止信号WD2を出力する。
The extension column
The penetration stop signal WD1 output to the penetration
拡張孫局ユニット390Bは、拡張子局ユニット290Bと増設筐体ユニット380dとの間に設けられ、孫局第1コネクタ397a、孫局第2コネクタ397b、および拡張孫列用停止論理回路398を含んでいる。
拡張孫局ユニット390Bは、接続確認信号線11c、および局番設定検索信号線12cを増設筐体ユニット380dに貫通接続する。
The extended
The
拡張孫局ユニット390B内に設けられた拡張孫列用停止論理回路398は、2入力の論理積素子によって構成されている。
拡張孫列用停止論理回路398の一方の入力端子には、貫通停止信号線15に出力される貫通停止信号WD2が入力され、他方の入力端子には、接続確認信号END3の反転論理信号が入力される。拡張孫列用停止論理回路398は、貫通停止信号線16に貫通停止信号WD3を出力する。
The extended grandchild train
A penetration stop signal WD2 output to the penetration
ここで、基本列用、拡張列用、拡張孫列用の各増設筐体ユニットは、同一構造のものが使用されているとともに、拡張子局ユニット290Bおよび拡張孫局ユニット390Bも、同一構造のものが使用されている。
Here, the extension cabinet units for the base row, the extension row, and the extension grandchild row have the same structure, and the extension station unit 290B and the extension
なお、図7に示した拡張子局ユニット290Aは、拡張孫局ユニットを使用する構成になっていないので、拡張子局ユニット290Aには、図8の拡張子局ユニット290Bに設けられた子局第2コネクタ297bに相当するコネクタが設けられていない。
また、図7において、増設筐体ユニット180a〜180c、280a〜280c内に接続確認信号線11a、11b、および局番設定検索信号線12bを貫通接続することにより、拡張親局ユニット190Aを基本筐体ユニット110Cと終端ブロック160との間のどの位置にでも設けることができる。
Note that the
Further, in FIG. 7, by connecting the connection
また、図8において、貫通停止信号線13、15、16のコネクタピンの配置は、それぞれ同一である。すなわち、各増設筐体ユニット内を3本の貫通停止信号線が貫通しているのではなく、1本の貫通停止信号線が同一のコネクタピンで貫通接続されている。また、図7に示した貫通停止信号線13、15についても同様である。
In FIG. 8, the arrangement of the connector pins of the penetration
上記の構成において、接続確認信号線11aによって伝達される基本列用の接続確認信号END1は、増設筐体ユニット180d、180e、および拡張親局ユニット190Bを貫通して、終端ブロック160の終端処理確認回路ENDで論理レベル「L」にされる。
In the above configuration, the connection confirmation signal END1 for the basic column transmitted by the connection
また、接続確認信号線11bによって伝達される拡張列用の接続確認信号END2は、増設筐体ユニット180d、180e、拡張親局ユニット190B、拡張子局ユニット290B、および増設筐体ユニット280d、280eを貫通して、終端ブロック260の終端処理確認回路ENDで論理レベル「L」にされる。
ここで、増設筐体ユニット280d、280e内では、接続確認信号END1用の接続確認信号線11aを用いて信号が伝達されていて、拡張子局ユニット290B内で、接続確認信号END2用の接続確認信号線11bに振替接続が行われている。
Further, the connection confirmation signal END2 for the extended column transmitted by the connection
Here, in the
また、接続確認信号線11cによって伝達される拡張孫列用の接続確認信号END3は、増設筐体ユニット180d、180e、拡張親局ユニット190B、拡張子局ユニット290B、拡張孫局ユニット390B、および増設筐体ユニット380d、380eを貫通して、終端ブロック360の終端処理確認回路ENDで論理レベル「L」にされる。
ここで、増設筐体ユニット380d、380e内では、接続確認信号END1用の接続確認信号線11aを用いて信号が伝達されていて、拡張子局ユニット290B内と拡張孫局ユニット390B内とで、順次接続確認信号END3用の接続確認信号線11cに振替接続が行われている。
Further, the connection confirmation signal END3 for the extended grandchild train transmitted by the connection
Here, in the
また、基本列用の局番設定検索信号線12aは、増設筐体ユニット180d、180e内の選択切り換え回路を経由して順次迂回配線され、後段に接続されている。
また、拡張列用の局番設定検索信号線12bは、増設筐体ユニット180d、180e、拡張親局ユニット190B、拡張子局ユニット290Bを貫通し、増設筐体ユニット280d、280e内の選択切り換え回路を経由して順次迂回配線され、後段に接続されている。
ここで、増設筐体ユニット280d、280e内では、局番設定検索信号CF1用の局番設定検索信号線12aを用いて信号が伝達されていて、拡張子局ユニット290B内で、局番設定検索信号CF2用の局番設定検索信号線12bに振替接続が行われている。
Further, the station number setting
Further, the station number setting search signal line 12b for the extension string passes through the
Here, in the
また、拡張孫列用の局番設定検索信号線12cは、増設筐体ユニット180d、180e、拡張親局ユニット190B、拡張子局ユニット290B、および拡張孫局ユニット390Bを貫通し、増設筐体ユニット380d、380e内の選択切り換え回路を経由して順次迂回配線され、後段に接続されている。
ここで、増設筐体ユニット380d、380e内では、局番設定検索信号CF1用の局番設定検索信号線12aを用いて信号が伝達されていて、拡張孫局ユニット390Bおよび拡張子局ユニット290B内で順次、局番設定検索信号CF3用の局番設定検索信号線12cに振替接続が行われている。
Further, the station number setting search signal line 12c for the extended grandchild row penetrates through the
Here, in the
また、基本列の最終の接続位置に接続された増設筐体ユニット180eにおいて、接続位置信号線14によって伝達される接続位置論理信号MDLは、拡張親局ユニット190Bを貫通して、終端ブロック160の接続位置確認回路LSTで論理レベル「L」にされる。
In addition, in the additional enclosure unit 180e connected to the final connection position in the basic row, the connection position logic signal MDL transmitted by the connection
以下、図8とともに、この発明の実施の形態4に係るユニット形プログラマブルコントローラ100Dの動作について説明する。
なお、実施の形態3と同様の動作については、説明を省略する。
Hereinafter, the operation of the unit programmable controller 100D according to the fourth embodiment of the present invention will be described with reference to FIG.
Note that description of operations similar to those of the third embodiment is omitted.
まず、ユニット形プログラマブルコントローラ100Dの運転開始時において、終端ブロック160〜360が接続されていると判定された場合に、局番設定検索信号CF1によって、基本列の増設筐体ユニット180d、180eに対する局番設定が行われる。
続いて、局番設定検索信号CF2によって、拡張列の増設筐体ユニット280d、280eに対する局番設定が行われる。
次に、局番設定検索信号CF3によって、拡張孫列の増設筐体ユニット380d、380eに対する局番設定が行われる。
ここで、増設筐体ユニット280dの局番は、基本列の最終の接続位置に接続された増設筐体ユニット180eの局番に続く局番となり、増設筐体ユニット380dの局番は、拡張列の最終の接続位置に接続された増設筐体ユニット280eの局番に続く局番となる。
First, at the start of the operation of the unit-type programmable controller 100D, if it is determined that the end blocks 160 to 360 are connected, the station number setting for the
Subsequently, the station number is set for the
Next, the station number is set for the expanded
Here, the station number of the
この発明の実施の形態4に係るユニット形プログラマブルコントローラ100Dによれば、基本筐体ユニット110Dと終端ブロック160との間に設けられる拡張親局ユニットと、拡張親局ユニットに接続される拡張子局ユニットと、拡張子局ユニットの後段に接続される拡張列増設筐体ユニット280d、280eおよび拡張列終端ブロック260と、拡張子局ユニットに接続される拡張孫局ユニットと、拡張孫局ユニットの後段に接続される拡張孫列増設筐体ユニット380d、380eおよび拡張孫列終端ブロック360とをさらに備え、拡張親局ユニット、拡張子局ユニット、および拡張孫局ユニットは、貫通バスに接続されたバッファ回路を含み、マイクロプロセッサ111は、基本筐体ユニット110D、増設筐体ユニット180d、180eおよび終端ブロック160によって構成される基本列の入出力インタフェース回路の局番を設定する局番設定検索信号CF1とは異なる信号であり、拡張列増設筐体ユニット280d、280eに設けられた拡張列入出力インタフェース回路の局番設定を開始するための拡張列用の局番設定検索信号CF2を出力するとともに、拡張孫列増設筐体ユニット380d、380eに設けられた拡張孫列入出力インタフェース回路の局番設定を開始するための拡張孫列用の局番設定検索信号CF3を出力し、マイクロプロセッサ111には、終端ブロック160の接続状態を示す接続確認信号END1とは異なる信号であり、拡張列終端ブロック260の接続状態を示す拡張列用の接続確認信号END2が入力されるとともに、拡張孫列終端ブロック360の接続状態を示す拡張孫列用の接続確認信号END3が入力され、局番設定手段は、拡張列入出力インタフェース回路に対して、基本筐体ユニット110Dあるいは増設筐体ユニット180d、180eの入出力インタフェース回路に設定された局番に続く局番を設定するとともに、拡張孫列入出力インタフェース回路に対して、拡張列入出力インタフェース回路に設定された局番に続く局番を設定する。
そのため、多数の増設筐体ユニットを複列配置して、設置寸法を抑制することができる。
また、複数の制御信号線とデータバスとを含む貫通バスを、バッファ回路を介して接続することにより、制御信号線やデータバスの電圧降下を抑制することができるとともに、ノイズの還流を抑制することができる。
また、局番設定にあたっては、接続位置論理信号MDLを用いて前列の最終位置に接続された入出力インタフェース回路の局番を確認するので、これに続く局番を後列の入出力インタフェース回路に容易に設定することができる。
According to the unit-type programmable controller 100D according to the fourth embodiment of the present invention, the extension master station unit provided between the basic housing unit 110D and the
Therefore, a large number of additional enclosure units can be arranged in a double row to reduce the installation size.
In addition, by connecting a through bus including a plurality of control signal lines and a data bus via a buffer circuit, it is possible to suppress a voltage drop of the control signal line and the data bus, and to suppress noise circulation. be able to.
Further, when setting the station number, the station number of the input / output interface circuit connected to the final position in the front row is confirmed using the connection position logic signal MDL, so that the subsequent station number is easily set in the input / output interface circuit in the back row. be able to.
また、基本筐体ユニット110Dは、マイクロプロセッサ111の動作を監視するウォッチドッグタイマ117をさらに含み、拡張子局ユニットおよび拡張孫局ユニットは、拡張列増設筐体ユニット280d、280eおよび拡張孫列増設筐体ユニット380d、380eに設けられた出力インタフェース回路を出力停止または現状保持する停止論理回路298、398をさらに含み、ウォッチドッグタイマ117は、マイクロプロセッサ111が出力する暴走監視用パルス信号PLSのパルス幅が所定幅よりも大きくなった場合に、マイクロプロセッサ111および停止論理回路298、398に暴走異常検出信号WDを出力して、マイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行い、停止論理回路298、398は、暴走異常検出信号WDを受信した場合と、拡張列用接続確認信号END2、あるいは拡張孫列用接続確認信号END3が、拡張列終端ブロック260、あるいは拡張孫列終端ブロック360の未接続状態を示す場合とに、貫通停止信号線15、16を介して出力インタフェース回路の出力停止または現状保持を行う。
そのため、マイクロプロセッサ111の動作に異常が生じた場合に、速やかにマイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行うとともに、出力インタフェース回路の出力停止または現状保持を行うことができる。
また、接続確認信号END2、END3が拡張列終端ブロック260あるいは拡張孫列終端ブロック360の未接続状態を示す場合においても、貫通停止信号線15、16を用いて、出力インタフェース回路を出力停止または現状保持することができるので、少ない制御線によって安全性を向上させることができる。
The basic chassis unit 110D further includes a
Therefore, when an abnormality occurs in the operation of the
Even when the connection confirmation signals END2 and END3 indicate the unconnected state of the extended
また、複数の局番設定検索信号のうち、基本列用の局番設定検索信号CF1を除く局番設定検索信号CF2、CF3を伝達する信号線と、複数の接続確認信号を伝達する信号線とは、拡張親局ユニットおよび増設筐体ユニット180d、180e内を貫通接続されるとともに、基本列用の局番設定検索信号CF1を伝達する信号線と、接続位置論理情報を伝達する信号線とは、拡張親局ユニット内を貫通接続されている。
そのため、拡張親局ユニットは、増設筐体ユニット180d、180eの前段位置から後段位置までのどの位置でも接続可能である。
Among the plurality of station number setting search signals, the signal lines for transmitting the station number setting search signals CF2 and CF3 excluding the station number setting search signal CF1 for the basic column and the signal lines for transmitting the plurality of connection confirmation signals are extended. The signal line that transmits the base station station number setting search signal CF1 and the signal line that transmits the connection position logic information are connected to the master station unit and the
Therefore, the extension master station unit can be connected at any position from the front stage position to the rear stage position of the
また、複数の局番設定検索信号のうち、基本列用の局番設定検索信号CF1を除く局番設定検索信号CF2、CF3を伝達する信号線と、複数の接続確認信号を伝達する信号線END1、END2、END3とは、それぞれ拡張子局ユニット内で交差接続されることにより、互いに異なる信号線に振替接続される。
そのため、増設筐体ユニットは、基本列、拡張列、拡張孫列にかかわらず、標準化された同一構造のものを使用することができる。
また、拡張子局ユニットおよび拡張孫局ユニットは、標準化された同一構造のものを使用することができる。
Of the plurality of station number setting search signals, the signal lines for transmitting the station number setting search signals CF2 and CF3 excluding the station number setting search signal CF1 for the basic column, and the signal lines END1 and END2 for transmitting the plurality of connection confirmation signals, The END3 and the END3 are cross-connected in the extension station unit, respectively, so that they are transferred to different signal lines.
For this reason, the extended chassis unit can use the same standardized structure regardless of the basic row, the extended row, and the extended grandchild row.
In addition, the extension station unit and the extension grand station unit can use the same standardized structure.
実施の形態5.
図9は、この発明の実施の形態5に係るユニット形プログラマブルコントローラ100Eを示す構成図である。以下、図8を参照しながら説明する。
なお、実施の形態4と同様の構成については、説明を省略する。
Embodiment 5 FIG.
FIG. 9 is a block diagram showing a unit
Note that the description of the same configuration as that of Embodiment 4 is omitted.
図9において、ユニット形プログラマブルコントローラ100Eは、基本筐体ユニット110Eと、拡張親局ユニット190Cと、基本列の増設筐体ユニット180a〜180cと、終端ブロック160と、拡張子局ユニット290Cと、拡張列の増設筐体ユニット280a〜280cと、終端ブロック260と、拡張孫局ユニット390Cと、拡張孫列の増設筐体ユニット380a〜380cと、終端ブロック360とを備えている。
In FIG. 9, the unit-type
ここで、基本列は、基本筐体ユニット110Eと、拡張親局ユニット190Cと、増設筐体ユニット180a〜180cと、終端ブロック160とによって構成されている。
また、拡張列は、拡張子局ユニット290Cと、増設筐体ユニット280a〜280cと、終端ブロック260とによって構成されている。
また、拡張孫列は、拡張孫局ユニット390Cと、増設筐体ユニット380a〜380cと、終端ブロック360とによって構成されている。
Here, the basic column includes a
Further, the extension column is composed of an extension station unit 290C,
The extended grandchild row includes an extended grandchild station unit 390C,
基本筐体ユニット110Eは、マイクロプロセッサ111や各種メモリ等が搭載されるCPU基板1と、入出力インタフェース回路が搭載される入出力基板2と、制御電源ユニット113が搭載される電源基板3と、端子台コネクタとなる入出力コネクタ9を含んでいる。
ここで、CPU基板1と入出力基板2とは、互いにコネクタ接続されている。また、入出力基板2と電源基板3とは、互いにコネクタ接続されている。
また、入出力基板2には、拡張親局ユニット190Cを接続するための送出側コネクタ8a(第2送出側コネクタ)が設けられている。
また、入出力コネクタ9は、図4の入出力機器101a、101bに相当する入出力機器を接続するための端子台コネクタである。
The
Here, the
The input / output board 2 is provided with a sending side connector 8a (second sending side connector) for connecting the extension master station unit 190C.
The input / output connector 9 is a terminal block connector for connecting input / output devices corresponding to the input /
拡張親局ユニット190Cには、バッファ回路を搭載した両面プリント基板である拡張基板4aが取り付け固定されている。
拡張基板4aには、基本筐体ユニット110Eの送出側コネクタ8aと契合する受け取り側コネクタ7が表面実装されている。また、拡張基板4aの、受け取り側コネクタ7に対する裏面には、後段用の送出側コネクタ8が表面実装されている。
なお、拡張親局ユニット190C内の受け取り側コネクタ7の各端子と、送出側コネクタ8の各端子とは、拡張基板4aに設けられたスルーホールメッキによって、互いに貫通接続されている。
また、拡張基板4aには、親局コネクタ197が接続固定され、接続ケーブル(図示せず)によって、拡張子局ユニット290Cに設けられた子局第1コネクタ297aと接続されている。
An
A receiving-side connector 7 that mates with the sending-side connector 8a of the
Note that each terminal of the receiving connector 7 in the extension master station unit 190C and each terminal of the sending connector 8 are connected to each other by through-hole plating provided on the
Further, a
増設筐体ユニット180aには、両面プリント基板である増設基板6aが取り付け固定されている。
増設基板6aには、入出力インタフェース回路および選択切り換え回路等の回路部品が搭載されるとともに、前段の送出側コネクタ8と契合する受け取り側コネクタ7と、後段用の送出側コネクタ8が表面実装されている。
An extension board 6a, which is a double-sided printed board, is attached and fixed to the
On the extension board 6a, circuit components such as an input / output interface circuit and a selection switching circuit are mounted, and a receiving-side connector 7 that engages with the preceding-stage sending-side connector 8 and a sending-side connector 8 for the subsequent stage are surface-mounted. ing.
ここで、増設筐体ユニット180a内の受け取り側コネクタ7の各端子と、送出側コネクタ8の各端子とのうち、局番設定検索信号CF1を伝達する局番設定検索信号線12aが接続される端子以外の端子は、増設基板6aに設けられたスルーホールメッキによって、互いに貫通接続されている。
受け取り側コネクタ7に入力された局番設定検索信号CF1は、増設基板6a内の選択切り換え回路を経由して送出側コネクタ8に接続され、後段に出力される。
また、増設基板6aには、端子台コネクタとなる入出力コネクタ9aが接続固定され、図4の入出力機器101a〜101cに相当する入出力機器に接続される。
なお、増設筐体ユニット180b、180cの構成は、増設筐体ユニット180aと同様である。
Here, the terminals other than the terminal to which the station number setting
The station number setting search signal CF1 inputted to the receiving side connector 7 is connected to the sending side connector 8 via the selection switching circuit in the extension board 6a and outputted to the subsequent stage.
Further, an input /
The configuration of the
基本列の最終の接続位置に接続された増設筐体ユニット180cの後段には、終端ブロック160が接続されている。
終端ブロック160には、プリント基板である終端基板6eが取り付け固定されている。終端基板6eには、終端処理回路、接続位置確認回路、および終端処理確認回路等の回路部品が搭載されるとともに、前段の送出側コネクタ8と契合する受け取り側コネクタ7(第2受け取り側コネクタ、第3受け取り側コネクタ)が表面実装されている。
また、終端ブロック160は、送出側コネクタ8に対する防塵カバーを兼ねたものであり、基本筐体ユニット110E、拡張親局ユニット190C、あるいは増設筐体ユニット180a〜180cの端面位置に嵌合取り付けされる。
ここで、基本筐体ユニット110Eと終端ブロック160とは、互いに契合して出荷される。
A
A termination substrate 6e, which is a printed circuit board, is attached and fixed to the
The
Here, the
拡張子局ユニット290Cには、バッファ回路を搭載した両面プリント基板である拡張基板4bが取り付け固定されている。
拡張基板4bには、子局第1コネクタ297aおよび子局第2コネクタ297bが接続固定されている。子局第1コネクタ297aは、接続ケーブルによって、親局コネクタ197と接続されている。また、子局第2コネクタ297bは、接続ケーブルによって、拡張孫局ユニット390Cに設けられた孫局第1コネクタ397aと接続されている。
また、拡張基板4bには、後段用の送出側コネクタ8(第3送出側コネクタ)が表面実装されている。
ここで、拡張子局ユニットと終端ブロック260とは、互いに契合して出荷される。
An
A slave station
Further, on the
Here, the extension station unit and the
なお、拡張子局ユニット290Cと拡張孫局ユニット390Cとは、ハードウェアとしては互いに同一のものであり、接続列によって、便宜上異なる符号が与えられている。
また、基本列、拡張列、および拡張孫列にそれぞれ設けられた増設筐体ユニット180a〜180c、280a〜280c、380a〜380cは、機種毎に異なる機能を有しているが、同一の機能を有するものは、同一の構造であり、どの列に対しても自由に接続することができる。
また、終端ブロック160〜360についても同様であり、ハードウェアとしては互いに同一のものである。
Note that the extension station unit 290C and the extended grandchild station unit 390C are identical to each other as hardware, and different reference numerals are given for convenience depending on the connection sequence.
Further, the
The same applies to the end blocks 160 to 360, and the hardware is the same as each other.
なお、図9において、X軸は、図面に対して左右方向、Y軸は、図面に対して前後方向、Z軸は、素面に対して天地方向をそれぞれ示している。
また、ユニット形プログラマブルコントローラ100Eは、図9の下側を壁面としてDINレール(図示せず)を介して取り付けられるようになっている。
したがって、CPU基板1、入出力基板2、および電源基板3は、壁面に対して並行に設置され、入出力コネクタ9は、上下2列で左右方向に長い端子台構造となる。
すなわち、基本筐体ユニット110Eの左右方向の寸法は、基本筐体ユニット110Eに内蔵される入出力ユニットの多さで決定されるようになっている。
In FIG. 9, the X-axis indicates the left-right direction with respect to the drawing, the Y-axis indicates the front-rear direction with respect to the drawing, and the Z-axis indicates the vertical direction with respect to the raw surface.
The unit-type
Therefore, the
That is, the dimension in the left-right direction of the
この発明の実施の形態5に係るユニット形プログラマブルコントローラ100Eによれば、増設筐体ユニット180a〜180c、280a〜280c、380a〜380cは、入出力インタフェース回路と選択切り換え回路とを搭載した両面プリント基板である増設基板6aを含み、増設基板6aは、一方の配線面に受け取り側コネクタ7が表面実装されるとともに、他方の配線面に送出側コネクタ8が表面実装され、基本列用の局番設定検索信号CF1を伝達する信号線を除く複数の制御信号線および複数ビットのデータバスは、受け取り側コネクタ7から送出側コネクタ8に貫通して後段に接続された増設筐体ユニットに接続され、基本列用の局番設定検索信号CF1は、受け取り側コネクタ7から選択切り換え回路に入力され、選択切り換え回路からの出力信号が、次段の増設筐体ユニットに対する局番設定検索信号として、送出側コネクタ8から送出される。
そのため、
従って、局番設定検索信号CF1の迂回接続と、その他の制御信号線やデータバスの貫通接続とを容易に行うことができる。
According to the unit-type
for that reason,
Therefore, the bypass connection of the station number setting search signal CF1 and the through connection of other control signal lines and data buses can be easily performed.
また、基本筐体ユニット110Eは、受け取り側コネクタ7に契合する第2送出側コネクタ8aをさらに含み、終端ブロック160は、送出側コネクタ8aに契合する第2受け取り側コネクタ7をさらに含み、第2送出側コネクタ8aと第2受け取り側コネクタ7とは、互いに契合して出荷され、増設筐体ユニットを増設使用する際に、第2受け取り側コネクタ7を最終の接続位置に接続された増設筐体ユニットの送出側コネクタ8に移設契合する。
そのため、終端ブロック160の未手配、あるいは接続漏れによる運転トラブルの発生を防止することができる。
The
Therefore, it is possible to prevent the occurrence of operation troubles due to unarrangement of the
また、基本筐体ユニット110Eと終端ブロック160との間に設けられる拡張親局ユニットと、拡張親局ユニットに接続される拡張子局ユニットと、拡張子局ユニットの後段に接続される拡張列増設筐体ユニット280a〜280cおよび拡張列終端ブロック260と、拡張子局ユニットに接続される拡張孫局ユニットと、拡張孫局ユニットの後段に接続される拡張孫列増設筐体ユニット380a〜380cおよび拡張孫列終端ブロック360とをさらに備え、拡張子局ユニット、あるいは拡張孫局ユニットは、受け取り側コネクタ7に契合する第3送出側コネクタ8を含み、終端ブロック260、360は、送出側コネクタ8に契合する第3受け取り側コネクタ7をさらに含み、第3送出側コネクタ8と第3受け取り側コネクタ7とは、互いに契合して出荷され、拡張子局ユニット、あるいは拡張孫局ユニットを介して増設筐体ユニットを増設使用する際に、第3受け取り側コネクタ7を最終の接続位置に接続された増設筐体ユニットの送出側コネクタ8に移設契合する。
そのため、拡張列終端ブロック260、あるいは拡張孫列終端ブロック360の未手配、あるいは接続漏れによる運転トラブルの発生を防止することができる。
Also, an extension master station unit provided between the
Therefore, it is possible to prevent the occurrence of an operation trouble due to unarrangement of the extended
6a 増設基板、7 受け取り側コネクタ(第2受け取り側コネクタ、第3受け取り側コネクタ)、8、8a 送出側コネクタ(第2送出側コネクタ、第3送出側コネクタ)、11、11a〜11c 接続確認信号線、12、12a〜12c 局番設定検索信号線、13、15、16 貫通停止信号線、100A〜100E ユニット形プログラマブルコントローラ、110A〜110E 基本筐体ユニット、111 マイクロプロセッサ、112 バスインタフェース回路、114A〜114D システムメモリ、115A〜115D プログラムメモリ、116 RAMメモリ、117 ウォッチドッグタイマ、119 停止論理回路、120〜150、180、180a〜180e、280a〜280e、380a〜380e 増設筐体ユニット、121 外部入力機器、122〜152、172a、172b、182 入出力インタフェース回路、123〜153、124〜154、R プルアップ抵抗、125a〜155a、125b〜155b、175a、175b、185 選択切り換え回路、131 外部負荷、160 終端ブロック、190A〜190C 拡張親局ユニット、260 拡張列終端ブロック、290A〜290C 拡張子局ユニット、298 拡張列用停止論理回路、360 終端ブロック、390B〜390C 拡張孫局ユニット、398 拡張孫列用停止論理回路、BUS、BUS1、BUS2 貫通バス信号線、CF1〜CF3 局番設定検索信号、END 終端処理確認回路、END1〜END3 接続確認信号、FIN 個別完了論理信号、GND グランド回路、LST 接続位置確認回路、PLS 暴走監視用パルス信号、WD 暴走異常検出信号、WD1〜WD3 貫通停止信号、S17〜S29、S50〜S54 局番設定手段、S14 第1異常判定手段、S19 第2異常判定手段、S26 第3異常判定手段、S15 設定異常処理手段、S30、S53 カード編成記憶手段、S37、S63 編成異常検出手段、S41、S61 脱落異常検出手段、S38、S64 編成異常処理手段。 6a expansion board, 7 receiving side connector (second receiving side connector, third receiving side connector), 8, 8a sending side connector (second sending side connector, third sending side connector), 11, 11a-11c connection confirmation signal Line, 12, 12a to 12c Station number setting search signal line, 13, 15, 16 Penetration stop signal line, 100A to 100E unit type programmable controller, 110A to 110E basic casing unit, 111 microprocessor, 112 bus interface circuit, 114A to 114D system memory, 115A to 115D program memory, 116 RAM memory, 117 watchdog timer, 119 stop logic circuit, 120 to 150, 180, 180a to 180e, 280a to 280e, 380a to 380e additional chassis unit 121 External input device, 122-152, 172a, 172b, 182 I / O interface circuit, 123-153, 124-154, R pull-up resistor, 125a-155a, 125b-155b, 175a, 175b, 185 selection switching circuit, 131 External load, 160 terminal block, 190A to 190C extended master station unit, 260 extended column terminal block, 290A to 290C extension station unit, 298 extended column stop logic circuit, 360 terminal block, 390B to 390C extended grand station unit, 398 Extended grandchild stop logic circuit, BUS, BUS1, BUS2 through bus signal line, CF1-CF3 station number setting search signal, END termination processing confirmation circuit, END1-END3 connection confirmation signal, FIN individual completion logic signal, GND ground times , LST connection position confirmation circuit, PLS runaway monitoring pulse signal, WD runaway abnormality detection signal, WD1 to WD3 penetration stop signal, S17 to S29, S50 to S54 station number setting means, S14 first abnormality judgment means, S19 second abnormality judgment Means, S26 third abnormality determining means, S15 setting abnormality processing means, S30, S53 card knitting storage means, S37, S63 knitting abnormality detecting means, S41, S61 dropout abnormality detecting means, S38, S64 knitting abnormality processing means.
Claims (17)
前記基本筐体ユニットに接続される増設筐体ユニットと、
前記増設筐体ユニットを貫通して、一端が前記基本筐体ユニットにバス接続され、複数の制御信号線および複数ビットのデータバスを含む貫通バスと、
前記貫通バスの他端に接続された終端ブロックと、
前記基本筐体ユニットおよび前記増設筐体ユニットの少なくとも一方に設けられ、前記マイクロプロセッサに対して選択的に接続される入出力インタフェース回路とを備え、
外部入力機器からの信号と前記プログラムメモリの内容とに応動して、外部出力機器に信号を出力するユニット形プログラマブルコントローラであって、
前記基本筐体ユニットは、
前記入出力インタフェース回路を識別する局番を設定する局番設定手段となる制御プログラムを含むシステムメモリと、
入出力情報を記憶する演算処理用のRAMメモリと、
前記マイクロプロセッサおよび前記貫通バスに接続されたバスインタフェース回路とを含み、
前記入出力インタフェース回路は、
カード情報と前記局番を示す局番情報とを記憶する個別メモリを含み、
前記カード情報は、前記入出力インタフェース回路が、入力インタフェース回路であるか出力インタフェース回路であるかを示す品種別論理情報と、前記入出力インタフェース回路の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報とを有し、
前記終端ブロックは、
前記入出力インタフェース回路に接続されたプルアップ抵抗またはプルダウン抵抗を用いて、前記接続位置論理情報を得る接続位置確認回路と、
前記終端ブロックの接続状態を、接続確認信号として前記マイクロプロセッサに出力する終端処理確認回路とを含み、
前記局番設定手段は、前記マイクロプロセッサの運転開始時であって、前記接続確認信号により前記終端ブロックの接続が確認された場合に、最初の接続位置から前記接続位置論理情報に含まれる前記最終の接続位置までの入出力インタフェース回路に対して、順次異なる局番を割り付け設定することを特徴とするユニット形プログラマブルコントローラ。 A basic chassis unit having a built-in program memory storing a microprocessor and a sequence program;
An additional enclosure unit connected to the basic enclosure unit;
Passing through the additional chassis unit, one end is bus-connected to the basic chassis unit, and a through bus including a plurality of control signal lines and a multi-bit data bus,
A termination block connected to the other end of the through bus;
An input / output interface circuit provided in at least one of the basic chassis unit and the additional chassis unit and selectively connected to the microprocessor;
A unit-type programmable controller that outputs a signal to an external output device in response to a signal from an external input device and the contents of the program memory,
The basic housing unit is
A system memory including a control program serving as a station number setting means for setting a station number for identifying the input / output interface circuit;
RAM memory for arithmetic processing for storing input / output information;
A bus interface circuit connected to the microprocessor and the through bus;
The input / output interface circuit includes:
An individual memory for storing card information and station number information indicating the station number;
The card information includes product type logic information indicating whether the input / output interface circuit is an input interface circuit or an output interface circuit, and whether the connection position of the input / output interface circuit is the final connection position. Connection location logical information indicating
The end block is
A connection position confirmation circuit that obtains the connection position logic information using a pull-up resistor or a pull-down resistor connected to the input / output interface circuit;
A termination processing confirmation circuit that outputs the connection state of the termination block to the microprocessor as a connection confirmation signal;
The station number setting means is at the start of the operation of the microprocessor, and when the connection of the terminal block is confirmed by the connection confirmation signal, the final number included in the connection position logic information from the first connection position. A unit-type programmable controller characterized in that different station numbers are assigned and set sequentially to the input / output interface circuit up to the connection position.
前記基本筐体ユニットに接続される増設筐体ユニットと、
前記増設筐体ユニットを貫通して、一端が前記基本筐体ユニットにバス接続され、複数の制御信号線および複数ビットのデータバスを含む貫通バスと、
前記貫通バスの他端に接続された終端ブロックと、
前記基本筐体ユニットおよび前記増設筐体ユニットにそれぞれ設けられ、前記マイクロプロセッサに対して選択的に接続される複数の入出力インタフェース回路とを備え、
外部入力機器からの信号と前記プログラムメモリの内容とに応動して、外部出力機器に信号を出力するユニット形プログラマブルコントローラであって、
前記基本筐体ユニットに設けられた入出力インタフェース回路には、あらかじめ所定の局番が識別用に設定されており、
前記基本筐体ユニットは、
前記増設筐体ユニットに設けられた入出力インタフェース回路を識別する局番を設定する局番設定手段となる制御プログラムを含むシステムメモリと、
入出力情報を記憶する演算処理用のRAMメモリと、
前記マイクロプロセッサおよび前記貫通バスに接続されたバスインタフェース回路とを含み、
前記入出力インタフェース回路は、
カード情報と前記局番を示す局番情報とを記憶する個別メモリを含み、
前記カード情報は、前記入出力インタフェース回路が、入力インタフェース回路であるか出力インタフェース回路であるかを示す品種別論理情報と、前記入出力インタフェース回路の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報と、前記入出力インタフェース回路が前記基本筐体ユニットに設けられているか否かを示すとともに、前記入出力インタフェース回路が前記基本筐体ユニットに設けられている場合に、前記基本筐体ユニットの入出力編成の種別を示す機種コード情報とを有し、
前記終端ブロックは、
前記入出力インタフェース回路に接続されたプルアップ抵抗またはプルダウン抵抗を用いて、前記接続位置論理情報を得る接続位置確認回路と、
前記終端ブロックの接続状態を、接続確認信号として前記マイクロプロセッサに出力する終端処理確認回路とを含み、
前記局番設定手段は、前記マイクロプロセッサの運転開始時であって、前記接続確認信号により前記終端ブロックの接続が確認された場合に、前記増設筐体ユニットの最初の接続位置から前記接続位置論理情報に含まれる前記最終の接続位置までの入出力インタフェース回路に対して、前記基本筐体ユニットに設けられた入出力インタフェース回路に設定された局番に続く局番を、順次割り付け設定することを特徴とするユニット形プログラマブルコントローラ。 A basic chassis unit having a built-in program memory storing a microprocessor and a sequence program;
An additional enclosure unit connected to the basic enclosure unit;
Passing through the additional chassis unit, one end is bus-connected to the basic chassis unit, and a through bus including a plurality of control signal lines and a multi-bit data bus,
A termination block connected to the other end of the through bus;
A plurality of input / output interface circuits that are provided in each of the basic chassis unit and the additional chassis unit and selectively connected to the microprocessor;
A unit-type programmable controller that outputs a signal to an external output device in response to a signal from an external input device and the contents of the program memory,
In the input / output interface circuit provided in the basic casing unit, a predetermined station number is set in advance for identification,
The basic housing unit is
A system memory including a control program serving as a station number setting means for setting a station number for identifying an input / output interface circuit provided in the additional chassis unit;
RAM memory for arithmetic processing for storing input / output information;
A bus interface circuit connected to the microprocessor and the through bus;
The input / output interface circuit includes:
An individual memory for storing card information and station number information indicating the station number;
The card information includes product type logic information indicating whether the input / output interface circuit is an input interface circuit or an output interface circuit, and whether the connection position of the input / output interface circuit is the final connection position. Connection position logic information indicating whether or not the input / output interface circuit is provided in the basic casing unit, and when the input / output interface circuit is provided in the basic casing unit, Model code information indicating the type of input / output organization of the basic chassis unit,
The end block is
A connection position confirmation circuit that obtains the connection position logic information using a pull-up resistor or a pull-down resistor connected to the input / output interface circuit;
A termination processing confirmation circuit that outputs the connection state of the termination block to the microprocessor as a connection confirmation signal;
The station number setting means is at the start of operation of the microprocessor, and when the connection of the terminal block is confirmed by the connection confirmation signal, the connection position logic information from the first connection position of the additional enclosure unit The station numbers following the station number set in the input / output interface circuit provided in the basic housing unit are sequentially assigned and set to the input / output interface circuit up to the final connection position included in Unit-type programmable controller.
前記カード情報は、局番の設定が完了しているか否かを識別して、前記選択切り換え回路を切り換えるための個別完了論理情報をさらに有し、
前記局番設定手段は、前記データバスを介して前記局番設定検索信号を受信した入出力インタフェース回路のカード情報を読み出し、前記データバスを介して、前記局番設定検索信号を受信した入出力インタフェース回路の個別メモリに、対応した局番を書き込み、
前記マイクロプロセッサは、局番の設定が完了した後は、前記データバスを介して局番を指定し、指定された局番の入出力インタフェース回路との間で、前記データバスを介してデータを交信することを特徴とする請求項1に記載のユニット形プログラマブルコントローラ。 The input / output interface circuit receives the station number setting search signal output from the microprocessor, and transmits the station number setting search signal to the input / output interface circuit sequentially connected to the subsequent stage upon completion of the station number setting. A selection switching circuit is connected,
The card information further includes individual completion logic information for identifying whether the station number setting is completed and switching the selection switching circuit,
The station number setting means reads the card information of the input / output interface circuit that has received the station number setting search signal via the data bus, and the input of the input / output interface circuit that has received the station number setting search signal via the data bus. Write the corresponding station number in the individual memory,
After the setting of the station number is completed, the microprocessor designates the station number via the data bus, and communicates data with the input / output interface circuit of the designated station number via the data bus. The unit-type programmable controller according to claim 1.
前記最終段の入出力インタフェース回路のカード情報は、前記マイクロプロセッサによる読み出しが完了しているか否かを識別して、前記選択切り換え手段を切り換えるための個別完了論理情報をさらに有し、
前記増設筐体ユニットに内蔵された入出力インタフェース回路には、前記局番設定検索信号を受信し、局番の設定完了に伴って順次後段に接続された入出力インタフェース回路に前記局番設定検索信号を伝達するための選択切り換え回路が接続され、
前記増設筐体ユニットに内蔵された入出力インタフェース回路のカード情報は、局番の設定が完了しているか否かを識別して、前記選択切り換え回路を切り換えるための個別完了論理情報をさらに有し、
前記局番設定手段は、前記データバスを介して前記最終段の入出力インタフェース回路のカード情報を読み出して、前記最終段の入出力インタフェース回路のカード情報内の接続位置論理情報が、前記最終の接続位置でないことを示す場合に、前記最終段の入出力インタフェース回路のカード情報内の機種コード情報に基づいて、前記データバスを介して、後段に接続された増設筐体ユニット内の入出力インタフェース回路の個別メモリに、対応した局番を書き込み、
前記マイクロプロセッサは、局番の設定が完了した後は、前記データバスを介して局番を指定し、指定された局番の入出力インタフェース回路との間で、前記データバスを介してデータを交信することを特徴とする請求項2に記載のユニット形プログラマブルコントローラ。 The final-stage input / output interface circuit built in the basic chassis unit includes an additional chassis connected to the subsequent stage as the card information is read from the final-stage input / output interface circuit by the microprocessor. A selection switching means for transmitting a station number setting search signal output from the microprocessor is connected to an input / output interface circuit in the body unit,
The card information of the final stage I / O interface circuit further includes individual completion logic information for identifying whether or not reading by the microprocessor is completed and switching the selection switching means,
The station number setting search signal is received by the input / output interface circuit built in the additional chassis unit, and the station number setting search signal is transmitted to the input / output interface circuit connected to the subsequent stage as the station number setting is completed. A selection switching circuit is connected to
The card information of the input / output interface circuit built in the additional chassis unit further includes individual completion logic information for identifying whether or not the setting of the station number has been completed and switching the selection switching circuit,
The station number setting means reads the card information of the final stage input / output interface circuit via the data bus, and the connection position logic information in the card information of the final stage input / output interface circuit is the final connection. The input / output interface circuit in the additional enclosure unit connected to the subsequent stage via the data bus based on the model code information in the card information of the final stage input / output interface circuit when indicating that the position is not a position. Write the corresponding station number in the individual memory
After the setting of the station number is completed, the microprocessor designates the station number via the data bus, and communicates data with the input / output interface circuit of the designated station number via the data bus. The unit type programmable controller according to claim 2.
前記最終段の入出力インタフェース回路のカード情報は、前記マイクロプロセッサによる読み出しが完了しているか否かを識別して、前記選択切り換え手段を切り換えるための個別完了論理情報をさらに有し、
前記増設筐体ユニットに内蔵された入出力インタフェース回路には、前記局番設定検索信号を受信し、局番の設定完了に伴って順次後段に接続された入出力インタフェース回路に前記局番設定検索信号を伝達するための選択切り換え回路が接続され、
前記増設筐体ユニットに内蔵された入出力インタフェース回路のカード情報は、局番の設定が完了しているか否かを識別して、前記選択切り換え回路を切り換えるための個別完了論理情報をさらに有し、
前記局番設定手段は、前記データバスを介して前記最終段の入出力インタフェース回路のカード情報を読み出して、前記最終段の入出力インタフェース回路のカード情報内の接続位置論理情報が、前記最終の接続位置でないことを示す場合に、前記最終段の入出力インタフェース回路のカード情報内の機種コード情報に基づいて、前記データバスを介して、後段に接続された増設筐体ユニット内の入出力インタフェース回路の個別メモリに、対応した局番を書き込み、
前記マイクロプロセッサは、局番の設定が完了した後は、前記データバスを介して局番を指定し、指定された局番の入出力インタフェース回路との間で、前記データバスを介してデータを交信することを特徴とする請求項2に記載のユニット形プログラマブルコントローラ。 The system memory has an input / output in an additional chassis unit connected to a subsequent stage upon completion of reading of card information by the microprocessor from the final stage input / output interface circuit built in the basic chassis unit. A control program serving as a selection switching means for transmitting a station number setting search signal output by the microprocessor to the interface circuit;
The card information of the final stage I / O interface circuit further includes individual completion logic information for identifying whether or not reading by the microprocessor is completed and switching the selection switching means,
The station number setting search signal is received by the input / output interface circuit built in the additional chassis unit, and the station number setting search signal is transmitted to the input / output interface circuit connected to the subsequent stage as the station number setting is completed. A selection switching circuit is connected to
The card information of the input / output interface circuit built in the additional chassis unit further includes individual completion logic information for identifying whether or not the setting of the station number has been completed and switching the selection switching circuit,
The station number setting means reads the card information of the final stage input / output interface circuit via the data bus, and the connection position logic information in the card information of the final stage input / output interface circuit is the final connection. The input / output interface circuit in the additional enclosure unit connected to the subsequent stage via the data bus based on the model code information in the card information of the final stage input / output interface circuit when indicating that the position is not a position. Write the corresponding station number in the individual memory
After the setting of the station number is completed, the microprocessor designates the station number via the data bus, and communicates data with the input / output interface circuit of the designated station number via the data bus. The unit type programmable controller according to claim 2.
前記第1異常判定手段は、前記接続確認信号が前記終端ブロックの未接続状態を示す場合に異常判定し、
前記第2異常判定手段は、前記最終の接続位置以前の入出力インタフェース回路のカード情報が得られない場合、または前記最終の接続位置の入出力インタフェース回路が所定時間を経過しても発見されない場合に異常判定し、
前記第3異常判定手段は、入出力インタフェース回路に設定した局番と、局番が設定された入出力インタフェース回路から確認返信された局番とが一致しない場合に異常判定し、
前記設定異常処理手段は、前記第1異常判定手段、前記第2異常判定手段、および前記第3異常判定手段の何れかが異常判定した場合に、異常状態を前記RAMメモリに記憶するとともに、外部に報知することを特徴とする請求項1から請求項5までの何れか1項に記載のユニット形プログラマブルコントローラ。 The system memory further includes a control program serving as a first abnormality determination unit, at least one of a second abnormality determination unit and a third abnormality determination unit, and a setting abnormality processing unit.
The first abnormality determination means determines an abnormality when the connection confirmation signal indicates an unconnected state of the termination block,
The second abnormality determination unit is configured such that the card information of the input / output interface circuit before the final connection position cannot be obtained, or the input / output interface circuit at the final connection position is not found even after a predetermined time has elapsed. Is judged abnormal,
The third abnormality determining means determines an abnormality when the station number set in the input / output interface circuit and the station number confirmed and returned from the input / output interface circuit in which the station number is set do not match,
The setting abnormality processing means stores an abnormal state in the RAM memory when any of the first abnormality determination means, the second abnormality determination means, and the third abnormality determination means makes an abnormality determination, and externally The unit-type programmable controller according to any one of claims 1 to 5, wherein the unit-type programmable controller is notified.
前記カード編成記憶手段は、局番の設定が完了した際に、前記カード情報と前記局番情報との対応を、カード編成情報として前記RAMメモリに記憶し、
前記編成異常検出手段は、局番を指定した入出力インタフェース回路から得られるカード編成情報と、前記カード編成記憶手段で記憶したカード編成情報とが一致しない場合に異常判定し、
前記脱落異常検出手段は、運転中において、前記接続確認信号が前記終端ブロックの未接続状態を示す場合に異常判定し、
前記編成異常処理手段は、前記編成異常検出手段、および前記脱落異常検出手段の何れかが異常判定した場合に、異常状態を前記RAMメモリに記憶するとともに、外部に報知することを特徴とする請求項1から請求項6までの何れか1項に記載のユニット形プログラマブルコントローラ。 The system memory further includes a control program serving as card knitting storage means, knitting abnormality detection means, dropout abnormality detection means, and knitting abnormality processing means,
The card organization storage means stores the correspondence between the card information and the station number information in the RAM memory as card organization information when the setting of the station number is completed,
The knitting abnormality detecting means determines abnormality when the card knitting information obtained from the input / output interface circuit designating the station number and the card knitting information stored in the card knitting storage means do not match,
The drop abnormality detection means determines an abnormality when the connection confirmation signal indicates an unconnected state of the terminal block during operation,
The knitting abnormality processing means stores an abnormal state in the RAM memory and notifies the outside of the abnormality state when any of the knitting abnormality detection means and the dropout abnormality detection means makes an abnormality determination. The unit-type programmable controller according to any one of claims 1 to 6.
前記プログラムメモリは、編成異常検出手段と、脱落異常検出手段と、編成異常処理手段ととなる制御プログラムをさらに含み、
前記カード編成記憶手段は、局番の設定が完了した際に、前記カード情報と前記局番情報との対応を、カード編成情報として前記RAMメモリに記憶し、
前記編成異常検出手段は、局番を指定した入出力インタフェース回路から得られるカード編成情報と、前記カード編成記憶手段で記憶したカード編成情報とが一致しない場合に異常判定し、
前記脱落異常検出手段は、運転中において、前記接続確認信号が前記終端ブロックの未接続状態を示す場合に異常判定し、
前記編成異常処理手段は、前記編成異常検出手段、および前記脱落異常検出手段の何れかが異常判定した場合に、異常状態を前記RAMメモリに記憶するとともに、外部に報知することを特徴とする請求項1から請求項6までの何れか1項に記載のユニット形プログラマブルコントローラ。 The system memory further includes a control program serving as card organization storage means,
The program memory further includes a control program serving as a knitting abnormality detecting means, a dropout abnormality detecting means, and a knitting abnormality processing means,
The card organization storage means stores the correspondence between the card information and the station number information in the RAM memory as card organization information when the setting of the station number is completed,
The knitting abnormality detecting means determines abnormality when the card knitting information obtained from the input / output interface circuit designating the station number and the card knitting information stored in the card knitting storage means do not match,
The drop abnormality detection means determines an abnormality when the connection confirmation signal indicates an unconnected state of the terminal block during operation,
The knitting abnormality processing means stores an abnormal state in the RAM memory and notifies the outside of the abnormality state when any of the knitting abnormality detection means and the dropout abnormality detection means makes an abnormality determination. The unit-type programmable controller according to any one of claims 1 to 6.
前記マイクロプロセッサの動作を監視するウォッチドッグタイマと、
前記出力インタフェース回路を出力停止または現状保持する停止論理回路とをさらに含み、
前記ウォッチドッグタイマは、前記マイクロプロセッサが出力する暴走監視用パルス信号のパルス幅が所定幅よりも大きくなった場合に、前記マイクロプロセッサおよび前記停止論理回路に暴走異常検出信号を出力して、前記マイクロプロセッサのリセット処理および動作停止、あるいは再起動を行い、
前記停止論理回路は、前記暴走異常検出信号を受信した場合と、前記接続確認信号が前記終端ブロックの未接続状態を示す場合とに、貫通停止信号線を介して前記出力インタフェース回路の出力停止または現状保持を行うことを特徴とする請求項1から請求項8までの何れか1項に記載のユニット形プログラマブルコントローラ。 The basic housing unit is
A watchdog timer for monitoring the operation of the microprocessor;
A stop logic circuit for stopping output or maintaining the current state of the output interface circuit,
The watchdog timer outputs a runaway abnormality detection signal to the microprocessor and the stop logic circuit when the pulse width of the runaway monitoring pulse signal output by the microprocessor is larger than a predetermined width, Microprocessor reset processing and operation stop or restart,
The stop logic circuit stops the output of the output interface circuit via a through stop signal line when receiving the runaway abnormality detection signal and when the connection confirmation signal indicates an unconnected state of the termination block. The unit-type programmable controller according to any one of claims 1 to 8, wherein the current status is maintained.
前記拡張親局ユニットに接続される拡張子局ユニットと、
前記拡張子局ユニットの後段に接続される拡張列増設筐体ユニットおよび拡張列終端ブロックとをさらに備え、
前記拡張親局ユニットおよび前記拡張子局ユニットは、前記貫通バスに接続されたバッファ回路を含み、
前記マイクロプロセッサは、前記基本筐体ユニット、前記増設筐体ユニットおよび前記終端ブロックによって構成される基本列の前記入出力インタフェース回路の局番を設定する局番設定検索信号とは異なる信号であり、前記拡張列増設筐体ユニットに設けられた拡張列入出力インタフェース回路の局番設定を開始するための拡張列用の局番設定検索信号を出力し、
前記マイクロプロセッサには、前記終端ブロックの接続状態を示す接続確認信号とは異なる信号であり、前記拡張列終端ブロックの接続状態を示す拡張列用の接続確認信号が入力され、
前記局番設定手段は、前記拡張列入出力インタフェース回路に対して、前記基本筐体ユニットまたは前記増設筐体ユニットの入出力インタフェース回路に設定された前記局番に続く局番を設定することを特徴とする請求項3から請求項8までの何れか1項に記載のユニット形プログラマブルコントローラ。 An extended master station unit provided between the basic housing unit and the terminal block;
An extension station unit connected to the extended master station unit;
An extension column extension housing unit and an extension column termination block connected to a subsequent stage of the extension station unit;
The extended master station unit and the extension station unit include a buffer circuit connected to the through bus,
The microprocessor is a signal different from a station number setting search signal for setting a station number of the input / output interface circuit in a basic column composed of the basic chassis unit, the additional chassis unit, and the termination block, and the extension Outputs the station number setting search signal for the extension column to start the station number setting of the extension column input / output interface circuit provided in the column extension chassis unit.
The microprocessor is a signal different from the connection confirmation signal indicating the connection state of the termination block, and is input with a connection confirmation signal for an extension column indicating the connection state of the extension column termination block,
The station number setting means sets a station number subsequent to the station number set in the input / output interface circuit of the basic chassis unit or the extension chassis unit for the extended column input / output interface circuit. The unit-type programmable controller according to any one of claims 3 to 8.
前記拡張親局ユニットに接続される拡張子局ユニットと、
前記拡張子局ユニットの後段に接続される拡張列増設筐体ユニットおよび拡張列終端ブロックと、
前記拡張子局ユニットに接続される拡張孫局ユニットと、
前記拡張孫局ユニットの後段に接続される拡張孫列増設筐体ユニットおよび拡張孫列終端ブロックとをさらに備え、
前記拡張親局ユニット、前記拡張子局ユニット、および前記拡張孫局ユニットは、前記貫通バスに接続されたバッファ回路を含み、
前記マイクロプロセッサは、前記基本筐体ユニット、前記増設筐体ユニットおよび前記終端ブロックによって構成される基本列の前記入出力インタフェース回路の局番を設定する局番設定検索信号とは異なる信号であり、前記拡張列増設筐体ユニットに設けられた拡張列入出力インタフェース回路の局番設定を開始するための拡張列用の局番設定検索信号を出力するとともに、前記拡張孫列増設筐体ユニットに設けられた拡張孫列入出力インタフェース回路の局番設定を開始するための拡張孫列用の局番設定検索信号を出力し、
前記マイクロプロセッサには、前記終端ブロックの接続状態を示す接続確認信号とは異なる信号であり、前記拡張列終端ブロックの接続状態を示す拡張列用の接続確認信号が入力されるとともに、前記拡張孫列終端ブロックの接続状態を示す拡張孫列用の接続確認信号が入力され、
前記局番設定手段は、前記拡張列入出力インタフェース回路に対して、前記基本筐体ユニットまたは前記増設筐体ユニットの入出力インタフェース回路に設定された前記局番に続く局番を設定するとともに、前記拡張孫列入出力インタフェース回路に対して、前記拡張列入出力インタフェース回路に設定された前記局番に続く局番を設定することを特徴とする請求項3から請求項8までの何れか1項に記載のユニット形プログラマブルコントローラ。 An extended master station unit provided between the basic housing unit and the terminal block;
An extension station unit connected to the extended master station unit;
An extended column extension housing unit and an extended column termination block connected to the subsequent stage of the extension station unit;
An extension grand station unit connected to the extension station unit;
An extended grandchild row expansion housing unit connected to the subsequent stage of the extended grandchild station unit and an extended grandchild row termination block;
The extension master station unit, the extension station unit, and the extension slave station unit include a buffer circuit connected to the through bus,
The microprocessor is a signal different from a station number setting search signal for setting a station number of the input / output interface circuit in a basic column composed of the basic chassis unit, the additional chassis unit, and the termination block, and the extension Outputs an expansion column station number setting search signal for starting the station number setting of the expansion column input / output interface circuit provided in the column expansion chassis unit, and extends the grandchild in the expansion grand column expansion chassis unit. Output station number setting search signal for extended grandchild row to start station number setting of column I / O interface circuit,
The microprocessor is supplied with a connection confirmation signal for an extended column that is different from a connection confirmation signal that indicates a connection state of the termination block, and that indicates a connection state of the extension column termination block. The connection confirmation signal for the extended grandchild row indicating the connection status of the column end block is input,
The station number setting means sets a station number subsequent to the station number set in the input / output interface circuit of the basic chassis unit or the extension chassis unit for the extended column input / output interface circuit, and the extended grandchild 9. The unit according to claim 3, wherein a station number subsequent to the station number set in the extended column input / output interface circuit is set for a column input / output interface circuit. Programmable controller.
前記基本列用の局番設定検索信号を伝達する信号線と、前記接続位置論理情報を伝達する信号線とは、前記拡張親局ユニット内を貫通接続されていることを特徴とする請求項10または請求項11に記載のユニット形プログラマブルコントローラ。 Among the plurality of station number setting search signals, a signal line for transmitting a station number setting search signal excluding the station number setting search signal for the basic column, and a signal line for transmitting the plurality of connection confirmation signals are the extended master station While being connected through the unit and the additional enclosure unit,
11. The signal line for transmitting the station number setting search signal for the basic column and the signal line for transmitting the connection position logic information are connected through the extended master station unit. The unit type programmable controller according to claim 11.
前記拡張子局ユニットおよび前記拡張孫局ユニットの少なくとも一方は、前記拡張列増設筐体ユニット、あるいは前記拡張孫列増設筐体ユニットに設けられた出力インタフェース回路を出力停止または現状保持する停止論理回路をさらに含み、
前記ウォッチドッグタイマは、前記マイクロプロセッサが出力する暴走監視用パルス信号のパルス幅が所定幅よりも大きくなった場合に、前記マイクロプロセッサおよび前記停止論理回路に暴走異常検出信号を出力して、前記マイクロプロセッサのリセット処理および動作停止、あるいは再起動を行い、
前記停止論理回路は、前記暴走異常検出信号を受信した場合と、前記拡張列用接続確認信号、あるいは前記拡張孫列用接続確認信号が、前記拡張列終端ブロック、あるいは前記拡張孫列終端ブロックの未接続状態を示す場合とに、貫通停止信号線を介して前記出力インタフェース回路の出力停止または現状保持を行うことを特徴とする請求項10から請求項13までの何れか1項に記載のユニット形プログラマブルコントローラ。 The basic housing unit further includes a watchdog timer that monitors the operation of the microprocessor,
At least one of the extension station unit and the extended grandchild station unit is a stop logic circuit that stops output or maintains the current status of the output interface circuit provided in the extension column extension chassis unit or the extension grandchild extension chassis unit Further including
The watchdog timer outputs a runaway abnormality detection signal to the microprocessor and the stop logic circuit when the pulse width of the runaway monitoring pulse signal output by the microprocessor is larger than a predetermined width, Microprocessor reset processing and operation stop or restart,
The stop logic circuit receives the runaway abnormality detection signal, and the extension row connection confirmation signal or the extension grandchild row connection confirmation signal is sent to the extended row termination block or the extended grandchild row termination block. The unit according to any one of claims 10 to 13, wherein when the unconnected state is indicated, the output of the output interface circuit is stopped or the current state is maintained through a through stop signal line. Programmable controller.
前記増設基板は、一方の配線面に受け取り側コネクタが表面実装されるとともに、他方の配線面に送出側コネクタが表面実装され、
前記基本列用の局番設定検索信号を伝達する信号線を除く複数の制御信号線および複数ビットのデータバスは、前記受け取り側コネクタから前記送出側コネクタに貫通して後段に接続された増設筐体ユニットに接続され、
前記基本列用の局番設定検索信号は、前記受け取り側コネクタから前記選択切り換え回路に入力され、前記選択切り換え回路からの出力信号が、次段の増設筐体ユニットに対する局番設定検索信号として、前記送出側コネクタから送出されることを特徴とする請求項3から請求項14までの何れか1項に記載のユニット形プログラマブルコントローラ。 The extension chassis unit includes an extension board that is a double-sided printed board on which the input / output interface circuit and the selection switching circuit are mounted,
The extension board has a receiving-side connector surface-mounted on one wiring surface and a sending-side connector surface-mounted on the other wiring surface,
A plurality of control signal lines excluding signal lines for transmitting the station number setting search signal for the basic column and a plurality of bit data buses are extended from the receiving side connector to the sending side connector and connected to the subsequent stage. Connected to the unit,
The base column station number setting search signal is input from the receiving connector to the selection switching circuit, and the output signal from the selection switching circuit is transmitted as the station number setting search signal for the additional chassis unit at the next stage. The unit-type programmable controller according to any one of claims 3 to 14, wherein the unit-type programmable controller is sent from a side connector.
前記終端ブロックは、前記送出側コネクタに契合する第2受け取り側コネクタをさらに含み、
前記第2送出側コネクタと前記第2受け取り側コネクタとは、互いに契合して出荷され、前記増設筐体ユニットを増設使用する際に、前記第2受け取り側コネクタを前記最終の接続位置に接続された増設筐体ユニットの前記送出側コネクタに移設契合することを特徴とする請求項15に記載のユニット形プログラマブルコントローラ。 The basic housing unit further includes a second sending side connector that engages with the receiving side connector,
The termination block further includes a second receiving connector that engages with the sending connector,
The second sending-side connector and the second receiving-side connector are shipped after being engaged with each other, and the second receiving-side connector is connected to the final connection position when the additional enclosure unit is added and used. The unit-type programmable controller according to claim 15, wherein the unit-type programmable controller is transferred to the transmission side connector of the additional enclosure unit.
前記拡張親局ユニットに接続される拡張子局ユニットと、
前記拡張子局ユニットの後段に接続される拡張列増設筐体ユニットおよび拡張列終端ブロックと、
前記拡張子局ユニットに接続される拡張孫局ユニットと、
前記拡張孫局ユニットの後段に接続される拡張孫列増設筐体ユニットおよび拡張孫列終端ブロックとをさらに備え、
前記拡張子局ユニット、あるいは前記拡張孫局ユニットは、前記受け取り側コネクタに契合する第3送出側コネクタを含み、
前記終端ブロックは、前記送出側コネクタに契合する第3受け取り側コネクタをさらに含み、
前記第3送出側コネクタと前記第3受け取り側コネクタとは、互いに契合して出荷され、前記拡張子局ユニット、あるいは前記拡張孫局ユニットを介して前記増設筐体ユニットを増設使用する際に、前記第3受け取り側コネクタを前記最終の接続位置に接続された増設筐体ユニットの前記送出側コネクタに移設契合することを特徴とする請求項16に記載のユニット形プログラマブルコントローラ。 An extended master station unit provided between the basic housing unit and the terminal block;
An extension station unit connected to the extended master station unit;
An extended column extension housing unit and an extended column termination block connected to the subsequent stage of the extension station unit;
An extension grand station unit connected to the extension station unit;
An extended grandchild row expansion housing unit connected to the subsequent stage of the extended grandchild station unit and an extended grandchild row termination block;
The extension station unit or the extended sub-station unit includes a third sending side connector that engages with the receiving side connector,
The termination block further includes a third receiving connector that engages with the sending connector,
When the third sending side connector and the third receiving side connector are shipped in contact with each other, and when the extension housing unit is used via the extension station unit or the extension grandchild station unit, The unit-type programmable controller according to claim 16, wherein the third receiving-side connector is transferred to the sending-side connector of the additional enclosure unit connected to the final connection position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006140340A JP4290710B2 (en) | 2006-05-19 | 2006-05-19 | Unit-type programmable controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006140340A JP4290710B2 (en) | 2006-05-19 | 2006-05-19 | Unit-type programmable controller |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2007310719A JP2007310719A (en) | 2007-11-29 |
JP4290710B2 true JP4290710B2 (en) | 2009-07-08 |
Family
ID=38843499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006140340A Expired - Fee Related JP4290710B2 (en) | 2006-05-19 | 2006-05-19 | Unit-type programmable controller |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4290710B2 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4926299B1 (en) * | 2011-03-22 | 2012-05-09 | 三菱電機株式会社 | Programmable logic controller |
WO2012176625A1 (en) | 2011-06-22 | 2012-12-27 | 日本電気株式会社 | Server, power source administration system, power source administration method, and program |
JP5829737B1 (en) * | 2014-09-12 | 2015-12-09 | 三菱電機株式会社 | Programmable controller |
JP5843932B1 (en) * | 2014-09-12 | 2016-01-13 | 三菱電機株式会社 | Programmable controller |
JP6846989B2 (en) * | 2017-06-13 | 2021-03-24 | 三菱電機エンジニアリング株式会社 | Fail-safe circuit |
WO2019198257A1 (en) * | 2018-04-10 | 2019-10-17 | Smc Corporation | Actuator control device |
JP7326854B2 (en) * | 2019-05-09 | 2023-08-16 | 株式会社ジェイテクト | Control device and inter-module communication method |
-
2006
- 2006-05-19 JP JP2006140340A patent/JP4290710B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2007310719A (en) | 2007-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4290710B2 (en) | Unit-type programmable controller | |
JP4893931B2 (en) | Safety controller | |
JP5087557B2 (en) | Test equipment | |
US8887000B2 (en) | Safety device | |
CN100383737C (en) | SCM online loading and updating method and system | |
CN108228244B (en) | Light rail board card identification method and system | |
KR100932057B1 (en) | PL | |
CN102292679A (en) | Safety control and method for controlling an automated system | |
CN108139789A (en) | Usb circuit and the method for low electric power operation | |
CN114008984B (en) | Computer readable storage medium and management method | |
JP4758276B2 (en) | Power supply system and system power supply | |
JP4376892B2 (en) | Programmable controller | |
US8295956B2 (en) | Control device having an integrated machine model | |
US20110138199A1 (en) | Remote controlled power supply system | |
WO2021005824A1 (en) | Signal processor | |
EP1022697B1 (en) | Control apparatus for vending machine | |
US6738802B1 (en) | Method and system for transmitting data among various memory units of position measuring devices | |
CN110008160A (en) | Information processing unit | |
KR20070076747A (en) | Apparatus of data processing and method of setting program data thereof | |
US20150169483A1 (en) | Expansion unit | |
CN110704353A (en) | CPCI-ARINC429 hot plug system | |
JP7283817B1 (en) | Exchange support system, method for exchange support, and computer program for exchange support | |
KR100651761B1 (en) | Module replacement system in plc system | |
JP6940180B2 (en) | Optical module and optical module control method | |
EP2782013A2 (en) | Fault-spot locating method, switching apparatus, fault-spot locating apparatus, and information processing apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
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: 20090331 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090331 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090401 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120410 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120410 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130410 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130410 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140410 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |