JP4290710B2 - Unit-type programmable controller - Google Patents

Unit-type programmable controller Download PDF

Info

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
Application number
JP2006140340A
Other languages
Japanese (ja)
Other versions
JP2007310719A (en
Inventor
栄治 上本
誠悟 射延
嗣雄 川崎
英之 山田
利久 山本
要 寺田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2006140340A priority Critical patent/JP4290710B2/en
Publication of JP2007310719A publication Critical patent/JP2007310719A/en
Application granted granted Critical
Publication of JP4290710B2 publication Critical patent/JP4290710B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Document 1 includes a main unit (basic casing unit) including a microprocessor and various memories, and a plurality of input / output extension blocks (additional casing units) connected to the main unit. I have.
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 Patent Document 1, the microprocessor in the main unit sequentially designates station numbers for the connected input / output expansion blocks.
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 patent document 1, since the station number is sequentially transmitted backward to set the communication right with the microprocessor, when a large number of input / output expansion blocks are connected, the communication right is determined. Takes time. Therefore, there is a problem that high-speed processing cannot be performed.

この問題点を解決するために、特許文献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.

特開2003−167608号公報JP 2003-167608 A 特開平6−324721号公報JP-A-6-324721

上記特許文献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(貫通バス)とを備えている。
Embodiment 1 FIG.
1 is a block diagram showing a unit-type programmable controller 100A according to Embodiment 1 of the present invention.
In FIG. 1, the unit type programmable controller 100A includes a basic housing unit 110A, additional housing units 120, 130, 140, 150, a termination block 160, and a through bus signal line BUS (through bus). .

基本筐体ユニット110Aは、商用電源(例えば、AC100V〜240V)の外部電源103から給電されるとともに、脱着コネクタ(図示せず)を介して、外部ツール108(例えば、パーソナルコンピュータあるいはモニタ)と接続され、制御プログラムの書き込みや運転状態の監視を行うことができるようになっている。   The basic housing unit 110A is supplied with power from an external power source 103 of a commercial power source (for example, AC 100V to 240V) and is connected to an external tool 108 (for example, a personal computer or a monitor) via a detachable connector (not shown). The control program can be written and the operation state can be monitored.

基本筐体ユニット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 basic chassis unit 110A includes a microprocessor 111, a bus interface circuit 112, a control power supply unit 113, a system memory 114A, a program memory 115A, a RAM memory 116, a watchdog timer 117, a serial interface 118, a pull-up resistor R, a constant voltage power supply. A line Vcc, a ground circuit GND, a connection confirmation signal line 11, a station number setting search signal line 12, and a penetration stop signal line 13 are included.
Here, the bus interface circuit 112, the system memory 114A, the program memory 115A, the RAM memory 116, and the serial interface 118 are connected to the microprocessor 111 by a bus.
The bus interface circuit 112 is provided with a stop logic circuit 119 (described later).

制御電源ユニット113は、外部電源103から給電されて、入力信号回路(図示せず)に例えばDC24Vの安定化電圧を供給するとともに、定電圧電源線Vccに例えばDC5Vの安定化電圧を供給する。また、定電圧電源線Vccおよびグランド回路GNDは、それぞれ基本筐体ユニット110Aから終端ブロック160まで、増設筐体ユニット120〜150を貫通して設けられている。   The control power supply unit 113 is supplied with power from the external power supply 103 and supplies a stabilized voltage of, for example, DC 24V to an input signal circuit (not shown), and supplies a stabilized voltage of, for example, DC 5V to the constant voltage power supply line Vcc. Further, the constant voltage power supply line Vcc and the ground circuit GND are provided from the basic casing unit 110A to the terminal block 160 through the additional casing units 120 to 150, respectively.

システムメモリ114Aは、例えばマスクROMメモリであり、図2および図3に示す各種制御プログラム(後述する)を含んでいる。また、システムメモリ114Aは、プログラムメモリ115Aに格納されたシーケンス言語によるシーケンスプログラムを、マイクロプロセッサ111に対応した機械言語に変換する変換プログラムを含んでいる。
なお、システムメモリ114Aに含まれるプログラムは、製品の出荷段階でメーカによって格納されている。
The system memory 114A is, for example, a mask ROM memory, and includes various control programs (described later) shown in FIGS. The system memory 114 </ b> A includes a conversion program that converts the sequence program in the sequence language stored in the program memory 115 </ b> A into a machine language corresponding to the microprocessor 111.
The program included in the system memory 114A is stored by the manufacturer at the product shipment stage.

プログラムメモリ115Aは、例えば不揮発フラッシュメモリである。プログラムメモリ115Aには、ユーザにより、例えばパーソナルコンピュータ(外部ツール108)を用いて作成されたシーケンスプログラムが、シリアルインタフェース118を介して書き込まれている。
また、RAMメモリ116は、演算処理用のメモリである。
The program memory 115A is, for example, a non-volatile flash memory. A sequence program created by the user using, for example, a personal computer (external tool 108) is written in the program memory 115A via the serial interface 118.
The RAM memory 116 is a memory for arithmetic processing.

ウォッチドッグタイマ117は、マイクロプロセッサ111が発生する暴走監視用パルス信号PLSのパルス幅を監視している。ウォッチドッグタイマ117は、このパルス幅が、所定幅を超過した場合に、暴走異常検出信号WDを論理レベル「L」に変化させて出力する。また、ウォッチドッグタイマ117は、この状態を記憶し、暴走異常検出信号WDによって、マイクロプロセッサ111のリセット処理および動作停止を行う。
ここで、暴走異常検出信号WDは、停止論理回路119にも出力される。
なお、暴走異常検出信号WDをパルス信号にして、異常発生時にマイクロプロセッサ111を初期化して再起動するような仕様にしてもよい。この場合も、同様の効果を奏することができる。
The watchdog timer 117 monitors the pulse width of the runaway monitoring pulse signal PLS generated by the microprocessor 111. When the pulse width exceeds a predetermined width, the watchdog timer 117 changes the runaway abnormality detection signal WD to the logic level “L” and outputs it. Further, the watchdog timer 117 stores this state, and performs a reset process and operation stop of the microprocessor 111 by the runaway abnormality detection signal WD.
Here, the runaway abnormality detection signal WD is also output to the stop logic circuit 119.
The runaway abnormality detection signal WD may be changed to a pulse signal so that the microprocessor 111 is initialized and restarted when an abnormality occurs. In this case, the same effect can be obtained.

プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11は、増設筐体ユニット120〜150を貫通して、終端ブロック160の終端処理確認回路END(後述する)に接続されている。また、終端処理確認回路ENDは、グランド回路GNDに接続されている。
接続確認信号線11によって伝達される接続確認信号END1は、論理レベル「L」となることによって、終端ブロック160が接続されていることを認識するための信号であり、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The connection confirmation signal line 11 connected to the constant voltage power supply line Vcc via the pull-up resistor R passes through the additional enclosure units 120 to 150 and is connected to the termination processing confirmation circuit END (described later) of the termination block 160. Has been. The termination processing confirmation circuit END is connected to the ground circuit GND.
The connection confirmation signal END1 transmitted through the connection confirmation signal line 11 is a signal for recognizing that the termination block 160 is connected when the logic level is “L”. Input to the microprocessor 111.

停止論理回路119は、ウォッチドッグタイマ117から出力される暴走異常検出信号WDと、接続確認信号END1の反転論理信号とが入力される論理積素子によって構成されている。
停止論理回路119は、暴走異常検出信号WDが論理レベル「L」である場合、あるいは接続確認信号END1が終端ブロック160の未接続状態を示す場合に、論理レベル「L」の貫通停止信号WD1を貫通停止信号線13に出力する。また、停止論理回路119は、この貫通停止信号WD1によって、増設筐体ユニット130、150の出力インタフェース回路132、152(後述する)をそれぞれ出力停止する。
貫通停止信号線13は、増設筐体ユニット120〜150を貫通して設けられ、それぞれの増設筐体ユニット120〜150に接続されている。
The stop logic circuit 119 is configured by an AND element to which a runaway abnormality detection signal WD output from the watchdog timer 117 and an inverted logic signal of the connection confirmation signal END1 are input.
The stop logic circuit 119 outputs the through stop signal WD1 having the logic level “L” when the runaway abnormality detection signal WD is at the logic level “L” or when the connection confirmation signal END1 indicates that the terminal block 160 is not connected. Output to the penetration stop signal line 13. Further, the stop logic circuit 119 stops the output of the output interface circuits 132 and 152 (described later) of the additional enclosure units 130 and 150 by the penetration stop signal WD1.
The penetration stop signal line 13 is provided so as to penetrate through the additional enclosure units 120 to 150 and is connected to the respective additional enclosure units 120 to 150.

貫通バス信号線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 housing units 120 to 150 extending from the bus interface circuit 112 to the termination block 160. Signal wiring.
The microprocessor 111 outputs a station number setting search signal CF1 to the station number setting search signal line 12 via the bus interface circuit 112. The station number setting search signal line 12 is connected to a selection switching circuit 125a (described later) of the additional enclosure unit 120.
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 additional chassis unit 120 connected to the basic chassis unit 110A.

増設筐体ユニット120は、基本筐体ユニット110Aの端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット120には、入力端子台(図示せず)を介して外部入力機器121が接続されている。
外部入力機器121は、例えば操作盤に設けられた各種の操作スイッチや、アクチュエータの動作を確認するためのセンサスイッチである。増設筐体ユニット120は、例えば8点の信号が入力可能であり、さらに多くの外部入力機器121を接続する場合には、増設筐体ユニット120の接続台数を増やすようになっている。
The additional enclosure unit 120 is connected to the end face position of the basic enclosure unit 110A via a connector (not shown). An external input device 121 is connected to the expansion chassis unit 120 via an input terminal block (not shown).
The external input device 121 is, for example, various operation switches provided on the operation panel or a sensor switch for confirming the operation of the actuator. The extension chassis unit 120 can input, for example, eight signals, and when more external input devices 121 are connected, the number of extension chassis units 120 connected is increased.

増設筐体ユニット120は、入力インタフェース回路122(入出力インタフェース回路)、プルアップ抵抗123、124、選択切り換え回路125a、125b、および接続位置信号線14を含んでいる。
入力インタフェース回路122は、データセレクタ(図示せず)を介して、外部入力機器121からの信号を貫通バス信号線BUSに出力する入力信号回路と、カード情報を格納したカード情報格納メモリ(個別メモリ)と、入力インタフェース回路122を識別するための局番を示す局番情報メモリ(個別メモリ)とを有している。
The expansion chassis unit 120 includes an input interface circuit 122 (input / output interface circuit), pull-up resistors 123 and 124, selection switching circuits 125a and 125b, and a connection position signal line 14.
The input interface circuit 122 includes an input signal circuit that outputs a signal from the external input device 121 to the through bus signal line BUS via a data selector (not shown), and a card information storage memory (individual memory) that stores card information. ) And a station number information memory (individual memory) indicating a station number for identifying the input interface circuit 122.

プルアップ抵抗123は、一端が定電圧電源線Vccに接続され、他端が接続位置信号線14に接続されている。接続位置信号線14は、終端ブロック160の接続位置確認回路LST(後述する)に接続されるようになっている。また、接続位置確認回路LSTは、グランド回路GNDに接続されている。
接続位置信号線14によって伝達される接続位置論理信号MDLは、カード情報格納メモリに入力されて、入力インタフェース回路122の接続位置が、最終の接続位置であるか否かを示す接続位置論理情報として記憶される。
ここで、増設筐体ユニット120は、終端ブロック160に接続されていない(最終の接続位置ではない)ので、接続位置信号線14は、グランド回路GNDに接続されず、接続位置論理信号MDLは、論理レベル「H」となっている。
The pull-up resistor 123 has one end connected to the constant voltage power supply line Vcc and the other end connected to the connection position signal line 14. The connection position signal line 14 is connected to a connection position confirmation circuit LST (described later) of the termination block 160. The connection position confirmation circuit LST is connected to the ground circuit GND.
The connection position logic signal MDL transmitted by the connection position signal line 14 is input to the card information storage memory, and as connection position logic information indicating whether or not the connection position of the input interface circuit 122 is the final connection position. Remembered.
Here, since the additional enclosure unit 120 is not connected to the terminal block 160 (not the final connection position), the connection position signal line 14 is not connected to the ground circuit GND, and the connection position logic signal MDL is The logic level is “H”.

選択切り換え回路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 resistor 124. The station number setting search signal CF1 is input to the first input terminals of the selection switching circuits 125a and 125b, respectively.
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 microprocessor 111 changes the station number setting search signal CF1 to the logic level “L” in order to set the station number, the station number setting of the additional enclosure unit 120 is not completed (individual completion logic signal). When FIN is at the logic level “L”), the output of the selection switching circuit 125 b is at the logic level “L”, and the additional enclosure unit 120 obtains the right to communicate with the microprocessor 111.
The additional enclosure unit 120 that has obtained the communication right transmits card information to the microprocessor 111 via the through bus signal line BUS. Subsequently, at the next processing timing, the microprocessor 111 transmits a station number (set station number) to be set in the additional chassis unit 120 via the through bus signal line BUS, and the set station number is the station number of the additional chassis unit 120. Write to information memory.

次に、増設筐体ユニット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 additional enclosure unit 120 confirms and returns the written station number information to the microprocessor 111 via the through bus signal line BUS. Subsequently, the microprocessor 111 transmits the individual completion logic signal FIN as the logic level “H” to the additional enclosure unit 120 via the through bus signal line BUS.
The additional chassis unit 120 identifies the individual completion logic signal FIN in the card information storage memory as individual completion logic information for switching the selection switching circuits 125a and 125b by identifying whether or not the station number has been set. To do.
When the station number setting of the additional enclosure unit 120 is completed, a signal of logic level “L” is input to the second input terminal of the selection switching circuit 125a. At this time, a signal of logic level “L” is output from the selection switching circuit 125a. That is, the logic level “L” of the station number setting search signal CF1 is input to the first input terminals of the selection switching circuits 135a and 135b (described later) of the next additional enclosure unit 130, and the station numbers are sequentially set in the same manner. Is done.

増設筐体ユニット130は、増設筐体ユニット120の端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット130には、出力端子台(図示せず)を介して外部負荷131(外部出力機器)が接続されている。
外部負荷131は、例えば操作盤に設けられた各種の表示ランプや、アクチュエータ駆動用の電磁弁、あるいはモータ駆動用の電磁継電器である。増設筐体ユニット130は、例えば8点の信号を出力可能であり、さらに多くの外部負荷を接続する場合には、増設筐体ユニット130の接続台数を増やすようになっている。
The expansion enclosure unit 130 is connected to the end face position of the expansion enclosure unit 120 via a connector (not shown). An external load 131 (external output device) is connected to the additional enclosure unit 130 via an output terminal block (not shown).
The external load 131 is, for example, various display lamps provided on the operation panel, an electromagnetic valve for driving an actuator, or an electromagnetic relay for driving a motor. The expansion chassis unit 130 can output, for example, eight signals, and when more external loads are connected, the number of expansion chassis units 130 connected is increased.

増設筐体ユニット130は、出力インタフェース回路132(入出力インタフェース回路)、プルアップ抵抗133、134、選択切り換え回路135a、135b、および接続位置信号線14を含んでいる。
出力インタフェース回路132は、マイクロプロセッサ111から出力されて外部負荷131を駆動する駆動信号を、貫通バス信号線BUSからラッチメモリ(図示せず)に取り込む出力信号回路と、カード情報を格納したカード情報格納メモリ(個別メモリ)と、出力インタフェース回路132を識別するための局番を示す局番情報メモリ(個別メモリ)とを有している。
プルアップ抵抗133、134、および選択切り換え回路135a・135bの構成は、上記の増設筐体ユニット120と同様である。
The additional enclosure unit 130 includes an output interface circuit 132 (input / output interface circuit), pull-up resistors 133 and 134, selection switching circuits 135a and 135b, and a connection position signal line 14.
The output interface circuit 132 outputs an output signal circuit that outputs the drive signal output from the microprocessor 111 and drives the external load 131 to a latch memory (not shown) from the through bus signal line BUS, and card information that stores card information. A storage memory (individual memory) and a station number information memory (individual memory) indicating a station number for identifying the output interface circuit 132 are provided.
The configurations of the pull-up resistors 133 and 134 and the selection switching circuits 135a and 135b are the same as those of the additional enclosure unit 120 described above.

増設筐体ユニット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 expansion enclosure unit 140 is connected to the end face position of the expansion enclosure unit 130 via a connector (not shown). An analog input device 141 (external input device) is connected to the additional enclosure unit 140 via an input terminal block (not shown).
The additional enclosure unit 140 includes an input interface circuit 142 (input / output interface circuit), pull-up resistors 143 and 144, selection switching circuits 145a and 145b, and a connection position signal line 14.
For example, a 4-channel analog signal is input to the additional enclosure unit 140. The expansion enclosure unit 140 converts an analog signal into a digital signal by a multi-channel AD converter (not shown) in the input interface circuit 142, and converts each 12-bit digital conversion data corresponding to the 4-channel analog input into the microprocessor 111. Send to.
The configurations of the pull-up resistors 143 and 144 and the selection switching circuits 145a and 145b are the same as those of the additional enclosure unit 120 described above.

増設筐体ユニット150は、増設筐体ユニット140の端面位置に、コネクタ(図示せず)を介して接続されている。増設筐体ユニット150には、出力端子台(図示せず)を介してアナログ負荷151(外部出力機器)が接続されている。
増設筐体ユニット150は、出力インタフェース回路152(入出力インタフェース回路)、プルアップ抵抗153、154、選択切り換え回路155a、155b、および接続位置信号線14を含んでいる。
The expansion enclosure unit 150 is connected to the end face position of the expansion enclosure unit 140 via a connector (not shown). An analog load 151 (external output device) is connected to the additional enclosure unit 150 via an output terminal block (not shown).
The additional enclosure unit 150 includes an output interface circuit 152 (input / output interface circuit), pull-up resistors 153 and 154, selection switching circuits 155a and 155b, and a connection position signal line 14.

増設筐体ユニット150は、例えば4チャンネルのアナログ信号を出力する。増設筐体ユニット150は、出力インタフェース回路152内の多チャンネルDA変換器(図示せず)によってデジタル信号をアナログ信号に変換し、マイクロプロセッサ111から送信される12ビットのデジタルデータに対する4チャンネルのアナログ変換データを、アナログ負荷151に出力する。
プルアップ抵抗153、154、および選択切り換え回路155a・155bの構成は、上記の増設筐体ユニット120と同様である。
The additional enclosure unit 150 outputs, for example, 4-channel analog signals. The expansion chassis unit 150 converts a digital signal into an analog signal by a multi-channel DA converter (not shown) in the output interface circuit 152, and performs 4-channel analog to 12-bit digital data transmitted from the microprocessor 111. The converted data is output to the analog load 151.
The configurations of the pull-up resistors 153 and 154 and the selection switching circuits 155a and 155b are the same as those of the additional enclosure unit 120 described above.

なお、貫通停止信号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 external load 131 and the analog load 151 are stopped as described above.
However, when the penetration stop signal WD1 is at the logic level “L”, the output signals for the external load 131 and the analog load 151 may be held as they are, and writing of a new output signal may be stopped.
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 program memory 115A.

終端ブロック160は、増設筐体ユニット150の端面位置に設けられている。
終端ブロック160は、終端処理回路162、接続位置確認回路LST、および終端処理確認回路ENDを含んでいる。
終端処理回路162は、貫通バス信号線BUSの端末に接続されている。終端処理回路162は、高速信号の反射を防止するためのインピーダンス素子をグランド回路GNDに接続するプルダウン回路によって構成されている。あるいは、終端処理回路162は、インピーダンス素子を定電圧電源線Vccに接続するプルアップ回路によって構成されている。
The terminal block 160 is provided at the end surface position of the additional enclosure unit 150.
The termination block 160 includes a termination processing circuit 162, a connection position confirmation circuit LST, and a termination processing confirmation circuit END.
The termination processing circuit 162 is connected to the terminal of the through bus signal line BUS. The termination processing circuit 162 includes a pull-down circuit that connects an impedance element for preventing reflection of a high-speed signal to the ground circuit GND. Alternatively, the termination processing circuit 162 is configured by a pull-up circuit that connects the impedance element to the constant voltage power supply line Vcc.

接続位置確認回路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 position signal line 14 connected to the pull-up resistor 153 of the extension chassis unit 150 (the extension chassis unit connected to the final connection position) within the terminal block 160 to the ground circuit GND. Connect to and invert logic.
That is, the connection position signal line 14 connected to the pull-up resistor 153 is connected to the ground circuit GND by the connection position confirmation circuit LST in the termination block 160, and the connection position logic signal MDL becomes the logic level “L”. On the other hand, the connection position signal line 14 connected to the pull-up resistors 123 to 143 of the additional enclosure units 120 to 140 (additional enclosure units connected to an intermediate connection position) is not connected to the ground circuit GND. The connection position logic signal MDL is at the logic level “H”.
Note that the pull-up resistors 123 to 153 may be changed to pull-down resistors, and the pull-down resistors may be connected to the constant voltage power supply line Vcc by the connection position confirmation circuit LST in the termination block 160 and logically inverted. In this case, the same effect can be obtained.

終端処理確認回路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 microprocessor 111 as the connection confirmation signal END1 transmitted by the connection confirmation signal line 11 that the termination block 160 is connected.
The pull-up resistor R provided in the basic housing unit 110A is changed to a pull-down resistor, and connected to the constant voltage power supply line Vcc by the termination processing confirmation circuit END in the termination block 160 to give a high-level logic signal. Also good. In this case, the same effect can be obtained.

入出力インタフェース回路122〜152(入力インタフェース回路122、142、および出力インタフェース回路132、152)のカード情報格納メモリは、カード情報として、品種別論理情報と、個別完了論理情報と、接続位置論理情報とを有している。
品種別論理情報は、入出力インタフェース回路122〜152が、入力インタフェース回路であるか出力インタフェース回路であるかを示す。個別完了論理情報は、局番設定が完了しているか否かを識別して、選択切り換え回路125〜155を切り換えるための情報である。接続位置論理情報は、入出力インタフェース回路122〜152の接続位置が、最終の接続位置であるか、最終の接続位置以外の中間の接続位置であるかを示す。
The card information storage memory of the input / output interface circuits 122 to 152 (the input interface circuits 122 and 142 and the output interface circuits 132 and 152) includes, as card information, type-specific logic information, individual completion logic information, and connection position logic information. And have.
The type-specific logic information indicates whether the input / output interface circuits 122 to 152 are input interface circuits or output interface circuits. The individual completion logic information is information for identifying whether the station number setting is completed and switching the selection switching circuits 125 to 155. The connection position logic information indicates whether the connection position of the input / output interface circuits 122 to 152 is the final connection position or an intermediate connection position other than the final connection position.

また、上記品種別論理情報には、入出力インタフェース回路122〜152が、ON/OFF信号用であるか、アナログ信号用であるかを識別する情報も付加されている。
入出力インタフェース回路122〜152が、アナログ信号用の場合には、マイクロプロセッサ111と多チャンネルAD変換器、あるいは多チャンネルDA変換器との間で、複数回の読み出し、または書き込み操作が行われる。
In addition, information identifying whether the input / output interface circuits 122 to 152 are for ON / OFF signals or analog signals is also added to the above-mentioned logical information for each product type.
When the input / output interface circuits 122 to 152 are for analog signals, a plurality of reading or writing operations are performed between the microprocessor 111 and the multi-channel AD converter or the multi-channel DA converter.

なお、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 / output interface circuits 122 to 152. The through bus signal line BUS is used as a read data bus for reading card information and reading external input signals. The through bus signal line BUS is used as a data bus for writing for setting station numbers and writing control output data for the external load 131.
These usages are determined depending on command data generated by the microprocessor 111.

また、多数の入出力データを有するアナログ信号用の入出力インタフェース回路142、152については、複数回の交信によって全データの伝達が行われるものであって、読み書きのタイミングは、マイクロプロセッサ111が発生する制御信号であるタイミング信号によって決定されるようになっている。   In addition, for the analog signal input / output interface circuits 142 and 152 having a large number of input / output data, all data is transmitted by a plurality of communications, and the read / write timing is generated by the microprocessor 111. It is determined by a timing signal which is a control signal.

なお、上記の説明では、入出力インタフェース回路が、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 programmable controller 100A according to the first embodiment of the present invention will be described with reference to the flowcharts of FIGS. 2 and 3 together with FIG.
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 microprocessor 111.
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 programmable controller 100A is started (step S10). Further, the contents of the card information storage memory and the station number information memory in the additional enclosure units 120 to 150 are initialized by a power supply rising pulse (not shown), and the station number is set to an initial value (for example, “00”). (Step S11). As a result, all the individual completion logic signals FIN are at the logic level “L”, so that the outputs of the selection switching circuits 125a to 155a are all at the logic signal “H”.

続いて、マイクロプロセッサ111の動作が開始される(ステップS12)。
次に、後述する局番設定完了フラグ(図示せず)を確認することにより、局番設定が完了しているか否かが判定される(ステップS13)。
局番設定完了フラグは、基本筐体ユニット110Aに接続された全ての増設筐体ユニット120〜150に対する局番設定が完了した際にセットされる。
ここで、初回の動作にあっては、局番設定が完了していない(すなわち、No)と判定されて、ステップS14に移行する。また、次回以降の動作にあっては、局番設定が完了した(すなわち、Yes)と判定されて、図3のステップS32に移行する。
Subsequently, the operation of the microprocessor 111 is started (step S12).
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 additional chassis units 120 to 150 connected to the basic chassis unit 110A is completed.
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 termination block 160 is connected by checking the logic level of the connection confirmation signal END1 (step S14).
In step S14, when it is determined that the connection confirmation signal END1 is at the logic level “H” and the terminal block 160 is not connected (ie, No), the abnormal state is stored in the RAM memory 116 and the abnormality is detected. A display LED (not shown) blinks to notify abnormality (step S15).
Note that the connection confirmation signal END1 is not only when the terminal block 160 is not connected, but also when, for example, the additional enclosure units 120 to 150 and a part of the terminal block 160 are in a dropped state due to poor connector contact. Logic level “H”.

次に、マイクロプロセッサ111の動作が終了する(ステップS16)。
ステップS16でマイクロプロセッサ111の動作が終了した後は、次回の処理タイミングにおいて、ステップS12に示したマイクロプロセッサ111の動作が再び開始される。
したがって、終端ブロック160が未接続であれば、ステップS12〜ステップS16が循環動作して異常報知が継続する。この状態を脱出するためには、電源スイッチを開路する必要がある。
Next, the operation of the microprocessor 111 ends (step S16).
After the operation of the microprocessor 111 is finished in step S16, the operation of the microprocessor 111 shown in step S12 is started again at the next processing timing.
Therefore, if the termination block 160 is not connected, steps S12 to S16 are circulated and abnormality notification continues. In order to escape from this state, it is necessary to open the power switch.

一方、ステップ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 terminal block 160 is connected (ie, Yes), the logic level of the station number setting search signal CF1 is changed from “H” to “L” and transmitted. (Step S17).
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 additional enclosure unit 120 is The right to communicate with the microprocessor 111 is obtained.

続いて、交信権を得た増設筐体ユニット120が貫通バス信号線BUSに送信したカード情報が読み出され(ステップS18)、正常なカード情報が受信されたか否かが判定される(ステップS19)。
ステップS19において、正常なカード情報が受信されていない(すなわち、No)と判定された場合には、直ちにステップS15に移行する。
Subsequently, the card information transmitted to the through bus signal line BUS by the additional enclosure unit 120 that has obtained the communication right is read (step S18), and it is determined whether normal card information is received (step S19). ).
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 additional enclosure unit 120 is not the final connection position, it is determined to be an intermediate connection position.

ステップ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 additional chassis unit 120 that has obtained the communication right and is written in the station number information memory (step S23).
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 additional chassis unit 120 that has obtained the communication right (step S24), and the station number information is received (step S24). S25).

続いて、ステップ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 additional enclosure unit 120 that is the target of the station number setting. Is transmitted at the logic level “H” (step S27).
Next, the individual completion logic signal FIN is received by the additional enclosure unit 120 that is the target of station number setting, and is stored in the card information storage memory as individual completion logic information (step S28).

続いて、ステップ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 additional chassis unit 120, since there is no memory about the final connection position in step S22, it is determined that all the station number settings have not been completed, and the process proceeds to step S17.
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 additional chassis unit 120 has been completed, a signal of the logic level “L” is input to the second input terminal of the selection switching circuit 125a, and the logic level “ L "signal is output.
That is, only the output of the selection switching circuit 135 b becomes the logic level “L”, and the additional enclosure unit 130 obtains the right to communicate with the microprocessor 111.

続いて、上記と同様にして増設筐体ユニット130〜150の局番が順次設定される。
なお、増設筐体ユニット150の局番設定時には、ステップS20において、中間の接続位置でないと判定され、ステップS22において、最終の接続位置のものであることが記憶されて、ステップS29において、全ての増設筐体ユニットに対する局番設定が完了したと判定される。
Subsequently, the station numbers of the additional enclosure units 130 to 150 are sequentially set in the same manner as described above.
When the station number is set for the additional enclosure unit 150, it is determined in step S20 that it is not an intermediate connection position, in step S22 it is stored that it is the final connection position, and in step S29, all expansions are made. It is determined that the station number setting for the housing unit has been completed.

次に、局番情報とカード情報との対応がカード編成情報として記憶され(ステップ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 microprocessor 111 ends (step S16).
After the operation of the microprocessor 111 is finished in step S16, the operation of the microprocessor 111 shown in step S12 is started again at the next processing timing.

図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 external tool 108 is transferred to the program memory 115A (step S34).
Subsequently, the program mode is released or the connection of the external tool 108 is released, whereby the operation of the microprocessor 111 is finished (step S16).
After the operation of the microprocessor 111 is finished in step S16, the operation of the microprocessor 111 shown in step S12 is started again at the next processing timing.

一方、ステップ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 external tool 108 is not connected or the communication as the monitor mode is executed even when the external tool 108 is connected. .

したがって、外部ツール108が接続されず、かつRUN/STOPスイッチがSTOPモードである場合には、ステップS12、ステップS13、ステップS32、ステップS33、ステップS16、ステップS12が循環動作する。
このとき、マイクロプロセッサ111は、RUN/STOPスイッチがRUNモードにされるか、あるいは外部ツール108(例えば、パーソナルコンピュータ)が接続されてプログラムモードとしての通信が実行されるかを待機する状態となる。
Therefore, when the external tool 108 is not connected and the RUN / STOP switch is in the STOP mode, Step S12, Step S13, Step S32, Step S33, Step S16, and Step S12 are circulated.
At this time, the microprocessor 111 is in a state of waiting for the RUN / STOP switch to be set to the RUN mode or the external tool 108 (for example, a personal computer) to be connected to execute communication as the program mode. .

一方、ステップ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 microprocessor 111 designates the set station number that has already been set, and the additional enclosure unit corresponding to the designated station number transmits its own card information, thereby confirming the card organization information.

次に、図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 RAM memory 116, and the abnormality indication LED blinks to notify the abnormality. (Step S38), the operation of the microprocessor 111 ends (Step S16).
After the operation of the microprocessor 111 is finished in step S16, the operation of the microprocessor 111 shown in step S12 is started again at the next processing timing.
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 program memory 115A in step S34 is executed (step S39).
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 additional enclosure units 120 to 150 and the termination block 160 are confirmed. Is determined to be normally connected (step S41).

ステップ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 additional enclosure units 120 to 150 and the terminal block 160 are not normally connected (that is, No), immediately. Control goes to step S38.
On the other hand, when it is determined in step S41 that the additional enclosure units 120 to 150 and the terminal block 160 are normally connected (that is, Yes), as the execution result of the sequence program executed in step S39, Writing of an output signal, which is a control signal, is executed for the additional enclosure units 130 and 150 (step S42).

次に、増設筐体ユニット120、140から入力信号が読み出されて、RAMメモリ116に転送され(ステップS43)、ステップS32に移行して、再びRUNモードであるか否かが判定される。
なお、ステップS42およびステップS43において、入出力信号の読み出しおよび書き込みは、マイクロプロセッサ111によって指定された局番と合致する局番が設定された増設筐体ユニットが、マイクロプロセッサ111との交信権を得て実行される。
Next, input signals are read from the additional enclosure units 120 and 140, transferred to the RAM memory 116 (step S43), the process proceeds to step S32, and it is determined again whether the RUN mode is set.
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 microprocessor 111 with the right to communicate with the microprocessor 111. Executed.

図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 termination block 160 is not connected or is connected, but the connection confirmation signal END1 does not become the logic level “L” due to, for example, a connector contact failure. Determine.

また、ステップ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 RAM memory 116, and notifies the abnormality by blinking the abnormality display LED. .
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 RAM memory 116 as card organization information when the station number setting for all the additional enclosure units is completed.

また、ステップ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 terminal block 160 is not connected during the operation or is connected, the dropout abnormality detecting means detects that the additional enclosure units 120 to 150 and a part of the terminal block 160 are not connected due to, for example, poor connector contact. When the connection confirmation signal END1 does not become the logic level “L” due to the dropped state, it is determined that the termination process is not completed.
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 RAM memory 116. Then, the abnormality display LED blinks to notify the abnormality.

なお、上記の説明において、ステップ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 programmable controller 100A is, for example, 10 ms, the card organization abnormality is checked unnecessarily frequently. However, the card program abnormality check can be executed at an appropriate frequency in the sequence program.
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 programmable controller 100A according to the first embodiment of the present invention, the basic casing unit 110A including the microprocessor 111 and the program memory 115A in which the sequence program is stored is connected to the basic casing unit 110A. An additional chassis unit 120-150, a through bus that passes through the additional chassis unit 120-150 and is connected to the basic chassis unit 110A by bus and includes a plurality of control signal lines and a multi-bit data bus, and a basic chassis The terminal block 160 connected to the through bus so as to be opposite to the unit 110 </ b> A, and at least one of the basic chassis unit 110 </ b> A and the additional chassis units 120 to 150 are selectively connected to the microprocessor 111. Input / output interface circuit 22-152, a unit-type programmable controller 100A that outputs a signal to an external output device in response to a signal from the external input device 121 and the contents of the program memory 115A. A system memory 114A including a control program serving as station number setting means (steps S17 to S29) for setting station numbers for identifying the input / output interface circuits 122 to 152, and an arithmetic processing RAM memory 116 for storing input / output information. And a microprocessor 111 and a bus interface circuit 112 connected to the through bus. The input / output interface circuits 122 to 152 include an individual memory for storing card information and station number information indicating a station number. Input / output interface circuit 122-1 2 is logic information for each product type indicating whether it is an input interface circuit or an output interface circuit, and connection position logic information indicating whether or not the connection position of the input / output interface circuits 122 to 152 is the final connection position. The termination block 160 includes a connection position confirmation circuit LST that obtains connection position logic information using pull-up resistors 123 to 153 or pull-down resistors connected to the input / output interface circuits 122 to 152, and a termination block 160. And a termination processing confirmation circuit END that outputs a connection confirmation signal END1 to the microprocessor 111 as a connection confirmation signal END1, and the station number setting means is at the start of the operation of the microprocessor 111, and is connected to the termination block 160 by the connection confirmation signal END1. When the connection is confirmed, the connection position logical information is displayed from the first connection position. Different station numbers are sequentially assigned to the input / output interface circuits 122 to 152 up to the final connection position included in the information.
That is, the station number setting is started when the termination processing confirmation circuit END confirms the connection of the termination block 160, and the card information stored in the card information storage memory of the additional enclosure units 120 to 150 is confirmed. It is determined whether the setting is completed.
Therefore, the station number is not set when the terminal block 160 is not connected and the data bus is unstable, and the station number can be reliably set by preventing erroneous setting of the station number.

また、カード情報のうち、品種別論理情報は、プリント基板に設けられた配線パターンによって決定される固定情報であるのに対して、接続位置論理情報は、入出力インタフェース回路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 / output interface circuits 122 to 152. It is variable information that varies depending on.
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 termination block 160.
Therefore, connection position logic information can be easily transmitted to the microprocessor 111 using an existing data bus without depending on a complicated control operation.

また、入出力インタフェース回路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 / output interface circuits 122 to 152 receive the station number setting search signal CF1 output from the microprocessor 111, and set the station numbers in the input / output interface circuits 122 to 152 sequentially connected to the subsequent stage when the station number setting is completed. Selection switching circuits 125 to 155 for transmitting the search signal CF1 are connected, and the card information identifies whether or not the setting of station numbers has been completed, and individual completion logic for switching the selection switching circuits 125 to 155. The station number setting means reads the card information of the input / output interface circuits 122 to 152 that received the station number setting search signal CF1 via the data bus, and receives the station number setting search signal CF1 via the data bus. The corresponding station number is written in the individual memory of the input / output interface circuits 122 to 152 After the setting of the station number is completed, the microprocessor 111 designates the station number via the data bus and communicates data with the input / output interface circuits 122 to 152 of the designated station number via the data bus. To do.
Therefore, it is possible to reliably set station numbers for the plurality of input / output interface circuits 122 to 152 using the selection switching circuits 125 to 155 without omission. Further, the input / output interface circuits 122 to 152 at the final connection position can be clarified.

また、基本筐体ユニット110Aは、マイクロプロセッサ111の動作を監視するウォッチドッグタイマ117と、出力インタフェース回路を出力停止または現状保持する停止論理回路119とをさらに含み、ウォッチドッグタイマ117は、マイクロプロセッサ111が出力する暴走監視用パルス信号PLSのパルス幅が所定幅よりも大きくなった場合に、マイクロプロセッサ111および停止論理回路119に暴走異常検出信号WDを出力して、マイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行い、停止論理回路119は、暴走異常検出信号WDを受信した場合と、接続確認信号END1が終端ブロック160の未接続状態を示す場合とに、貫通停止信号線13を介して出力インタフェース回路の出力停止または現状保持を行う。
そのため、マイクロプロセッサ111の動作に異常が生じた場合に、速やかにマイクロプロセッサ111のリセット処理および動作停止、あるいは再起動を行うとともに、出力インタフェース回路の出力停止または現状保持を行うことができる。
また、接続確認信号END1が終端ブロック160の未接続状態を示す場合においても、貫通停止信号線13を用いて、出力インタフェース回路を出力停止または現状保持することができるので、少ない制御線によって安全性を向上させることができる。
The basic housing unit 110A further includes a watchdog timer 117 that monitors the operation of the microprocessor 111, and a stop logic circuit 119 that stops the output of the output interface circuit or maintains the current state. The watchdog timer 117 includes the microprocessor. When the pulse width of the runaway monitoring pulse signal PLS output from 111 becomes larger than a predetermined width, the runaway abnormality detection signal WD is output to the microprocessor 111 and the stop logic circuit 119, and the microprocessor 111 is reset. The operation is stopped or restarted, and the stop logic circuit 119 displays the through stop signal line 13 when the runaway abnormality detection signal WD is received and when the connection confirmation signal END1 indicates that the terminal block 160 is not connected. Output interface circuit output stop via Others do currently being held.
Therefore, when an abnormality occurs in the operation of the microprocessor 111, the microprocessor 111 can be promptly reset, stopped, or restarted, and the output of the output interface circuit can be stopped or the current status can be maintained.
Further, even when the connection confirmation signal END1 indicates that the termination block 160 is not connected, the output interface circuit can be stopped or the current state can be maintained by using the penetration stop signal line 13, so that the safety can be achieved with fewer control lines. Can be improved.

また、システムメモリ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 system memory 114A 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 an unconnected state of the terminal block 160, and the second abnormality determining means is an input before the final connection position. When the card information of the output interface circuits 122 to 152 cannot be obtained, or when the input / output interface circuits 122 to 152 at the final connection position are not found even after a predetermined time has passed, the abnormality determination is made, and the third abnormality determination means The station number set in the input / output interface circuits 122 to 152, and the input / output interface circuit in which the station number is set An abnormality is determined when the station numbers confirmed and returned from 22 to 152 do not match, and the setting abnormality processing means has determined that one of the first abnormality determination means, the second abnormality determination means, and the third abnormality determination means is abnormal. In this case, the abnormal state is stored in the RAM memory 116 and notified to the outside.
Therefore, when the terminal block 160 is not connected or when the station number setting is not completed, an abnormality is determined, so that maintenance and inspection can be easily performed.

また、システムメモリ114Aは、カード編成記憶手段(ステップS30)と、編成異常検出手段(ステップS37)と、脱落異常検出手段(ステップS41)と、編成異常処理手段(ステップS38)ととなる制御プログラムをさらに含み、カード編成記憶手段は、局番の設定が完了した際に、カード情報と局番情報との対応を、カード編成情報としてRAMメモリ116に記憶し、編成異常検出手段は、局番を指定した入出力インタフェース回路122〜152から得られるカード編成情報と、カード編成記憶手段で記憶したカード編成情報とが一致しない場合に異常判定し、脱落異常検出手段は、運転中において、接続確認信号END1が終端ブロック160の未接続状態を示す場合に異常判定し、編成異常処理手段は、編成異常検出手段、および脱落異常検出手段の何れかが異常判定した場合に、異常状態をRAMメモリ116に記憶するとともに、外部に報知する。
そのため、運転開始時におけるカード編成情報のチェックと、運転中における脱落異常検出とによって、制御の安全性を向上させることができる。
In addition, the system memory 114A is a control program serving as card knitting storage means (step S30), knitting abnormality detection means (step S37), dropout abnormality detection means (step S41), and knitting abnormality processing means (step S38). The card organization storage means stores the correspondence between the card information and the station number information in the RAM memory 116 as the card organization information when the setting of the station number is completed, and the organization abnormality detection means designates the station number. When the card organization information obtained from the input / output interface circuits 122 to 152 does not match the card organization information stored in the card organization storage means, an abnormality determination is made, and the dropout abnormality detection means receives the connection confirmation signal END1 during operation. When the terminal block 160 indicates an unconnected state, an abnormality is determined, and the knitting abnormality processing means detects the knitting abnormality. Stage, and when any one of the dropping abnormality detection means abnormality determination, stores the abnormal condition in the RAM memory 116, to notify the outside.
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 additional housing unit 180, a termination block 160, and a through bus signal line BUS.

基本筐体ユニット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 microprocessor 111, a bus interface circuit 112, a control power supply unit 113, a system memory 114B, a program memory 115B, a RAM memory 116, a watchdog timer 117, a serial interface 118, input / output boards 170a and 170b, pulls. An up resistor R, a constant voltage power supply line Vcc, a ground circuit GND, a connection confirmation signal line 11, a station number setting search signal line 12, and a through stop signal line 13 are included.
Here, the bus interface circuit 112, the system memory 114B, the program memory 115B, the RAM memory 116, and the serial interface 118 are connected to the microprocessor 111 by a bus.

入出力基板170aは、例えば図1に示した増設筐体ユニット120に相当する。また、入出力基板170bは、例えば図1に示した増設筐体ユニット130に相当する。入出力基板170a、170bは、それぞれ独立した筐体を持たず、基本筐体ユニット110Bに組み込まれている。
また、増設筐体ユニット180は、図1に示した増設筐体ユニット120〜150の何れかを代表したものである。
The input / output board 170a corresponds to, for example, the additional enclosure unit 120 shown in FIG. The input / output board 170b corresponds to, for example, the additional enclosure unit 130 illustrated in FIG. The input / output boards 170a and 170b do not have independent casings, but are incorporated in the basic casing unit 110B.
Further, the additional enclosure unit 180 represents one of the additional enclosure units 120 to 150 shown in FIG.

入出力基板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 / output devices 101a, 101b, and 101c are connected to the input / output boards 170a and 170b and the additional enclosure unit 180, respectively. The input / output boards 170a and 170b and the additional enclosure unit 180 include input / output interface circuits 172a, 172b, and 182; selection switching circuits 175a, 175b, and 185;
The input / output device 101a corresponds to, for example, the external input device 121 illustrated in FIG. The input / output device 101b corresponds to, for example, the external load 131 illustrated in FIG. The input / output device 101c corresponds to any of the external input device 121, the external load 131, the analog input device 141, and the analog load 151 shown in FIG. To do.

入出力インタフェース回路172a、172b、182は、入出力信号回路、多チャンネルAD変換器、および多チャンネルDA変換器の何れかと、カード情報格納メモリと、局番設定メモリとを有している。
また、選択切り換え回路175a、175b、185は、図1に示した選択切り換え回路125a、125bと同様に、それぞれ一対の論理和素子によって構成されている。
Each of the input / output interface circuits 172a, 172b, and 182 includes an input / output signal circuit, a multi-channel AD converter, and a multi-channel DA converter, a card information storage memory, and a station number setting memory.
In addition, the selection switching circuits 175a, 175b, and 185 are each configured by a pair of OR elements similarly to the selection switching circuits 125a and 125b shown in FIG.

なお、後述するように、基本筐体ユニット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 / output interface circuits 172a and 172b in the basic chassis unit 110B, the final connection position in the basic chassis unit 110B. Only the selection switching circuit 175b connected to the (final stage) is necessary, and the selection switching circuit 175a is unnecessary.
That is, the station number setting search signal CF1 output from the microprocessor 111 is directly supplied to the input / output board 170b connected to the final stage.
Further, the connection position signal line 14 may be omitted in the input / output board 170a to which the terminal block 160 is not connected (not the final stage) among the input / output boards 170a and 170b in which predetermined station numbers are set in advance.

なお、上記の説明では、選択切り換え回路175a、175bは、それぞれ一対の論理和素子によって構成されているとしたが、ハードウェアを使用せず、マイクロプロセッサ111の制御による選択切り換え手段によって代替してもよい。
このとき、マイクロプロセッサ111は、まず、カード情報のうち、機種コード情報(後述する)を読み出して、基本筐体ユニット110Bの入出力編成の種別を確認する。続いて、マイクロプロセッサ111は、増設筐体ユニット180に対して局番設定検索信号CF1を送信する。
In the above description, the selection switching circuits 175a and 175b are each constituted by a pair of OR elements. However, the hardware is not used, and the selection switching circuits 175a and 175b are replaced by selection switching means controlled by the microprocessor 111. Also good.
At this time, the microprocessor 111 first reads out model code information (to be described later) from the card information to confirm the type of input / output organization of the basic chassis unit 110B. Subsequently, the microprocessor 111 transmits a station number setting search signal CF1 to the additional enclosure unit 180.

また、基本筐体ユニット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 additional enclosure unit 180 is added as appropriate.
However, when the number of input / output points of the basic chassis unit 110B can be met, it is not necessary to connect the additional chassis unit 180, and the terminal block 160 is directly connected to the end face position of the basic chassis unit 110B.

なお、基本筐体ユニット110B内に設けられた入出力インタフェース回路172a、172bの局番は、図1に示した増設筐体ユニット120、130と同様に、順次割り付け設定されてもよい。
しかしながら、本実施の形態では、入出力インタフェース回路172aには、局番「1」があらかじめ設定され、入出力インタフェース回路172bには、局番「2」があらかじめ設定されている。すなわち、増設筐体ユニット180には、局番「3」以降の局番が順次設定される。
Note that the station numbers of the input / output interface circuits 172a and 172b provided in the basic chassis unit 110B may be sequentially assigned and set in the same manner as the additional chassis units 120 and 130 shown in FIG.
However, in this embodiment, the station number “1” is preset in the input / output interface circuit 172a, and the station number “2” is preset in the input / output interface circuit 172b. That is, station numbers after station number “3” are sequentially set in the additional enclosure unit 180.

また、入出力インタフェース回路172a、172bのカード情報格納メモリは、カード情報として、品種別論理情報と、個別完了論理情報と、接続位置論理情報とに加えて、内外識別論理情報を有している。
内外識別論理情報は、入出力インタフェース回路172a、172bが、基本筐体ユニット110Bに内蔵されていることを示している。
The card information storage memory of the input / output interface circuits 172a and 172b has internal / external identification logical information as card information in addition to product type logical information, individual completion logical information, and connection position logical information. .
The inside / outside identification logic information indicates that the input / output interface circuits 172a and 172b are built in the basic casing unit 110B.

さらに、最終段に接続された入出力インタフェース回路172bのカード情報格納メモリは、カード情報として、基本筐体ユニット110Bの入出力編成の種別を示す機種コード情報を有している。
この機種コードとしては、例えば基本筐体ユニット110B内の入力点数/出力点数が8点/8点のもの、16点/16点のもの、32点/32点のもの、および64点/64点のものに応じて、2ビット4種類の機種コードが与えられる。
ただし、機種コードとしては、基本筐体ユニット110Bにおける最終段の入出力インタフェース回路172bに与えられている局番そのものを使用することもできる。
Further, the card information storage memory of the input / output interface circuit 172b connected to the last stage has model code information indicating the type of input / output organization of the basic chassis unit 110B as card information.
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 / output interface circuit 172b at the final stage in the basic casing unit 110B can also be used.

入出力インタフェース回路172a、172bのカード情報格納メモリに格納されたカード情報と、局番情報メモリに格納された局番情報のうち、最終段の入出力インタフェース回路172bの接続位置論理情報は、終端ブロック160が接続されているか否かによって論理レベルが変化するが、その他のカード情報と局番情報とは、全て固定された情報である。
上記の固定された情報は、データバスに対して接続、または解放するために設けられたデータセレクタの複数ビットの入力端子を、プリント基板によってグランド回路GNDに接続するか、定電圧電源線Vccに接続するかによって決定される配線パターン情報となっている。そのため、総称して個別メモリとしたが、入出力インタフェース回路172bの接続位置論理情報以外の情報には、読み書き可能なメモリが用いられているものではない。
その他の構成については、前述の実施の形態1と同様であり、その説明は省略する。
Of the card information stored in the card information storage memory of the input / output interface circuits 172a and 172b and the station number information stored in the station number information memory, the connection position logic information of the input / output interface circuit 172b at the final stage is the termination block 160. The logic level changes depending on whether or not is connected, but the other card information and station number information are all fixed information.
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 / output interface circuit 172b.
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 termination block 160 is connected (ie, Yes) by checking the logic level of the connection confirmation signal END1, the logic level of the station number setting search signal CF1 Is transmitted from “H” to “L” (step S17).
Here, when the station number setting search signal CF1 becomes the logic level “L”, the input / output board 170b including the input / output interface circuit 172b obtains the right to communicate with the microprocessor 111.
Subsequently, the card information transmitted from the input / output board 170b to the through bus signal line BUS is read (step S18), and it is determined whether normal card information is received (step S19).

ステップ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 / output interface circuit 172b is provided in the final stage, it is determined that the input / output interface circuit 172b is provided in the basic casing unit 110B.

ステップ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 end block 160 is directly connected to the basic housing unit 110B, the connection position logic signal MDL is at the logic level “L”. When the terminal block 160 is connected to the basic chassis unit 110B via the additional chassis unit 180, the connection position logic signal MDL is at the logic level “H”.
Here, since the terminal block 160 is connected to the basic chassis unit 110B via the additional chassis unit 180, the connection position logic signal MDL is at the logic level “H”.

次に、ステップ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 / output interface circuit 172b at the final stage is set to the logic level “H”. After starting up (step S54), the process proceeds to step S29.
In step S54, the microprocessor 111 reads out the station number of the input / output interface circuit 172b, for example, and if this station number matches the station number corresponding to the model code information confirmed in step S50, the individual completion logic signal FIN is read. Is raised to a logic level “H”.
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 selection switching circuit 185 in the subsequent stage.

以下、ステップ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 termination block 160 is confirmed by the logic level of the connection position logic signal MDL being changed from “H” to “L”. Next, in step S29, it is determined that the station number setting for all the additional enclosure units has been completed, and the process proceeds to step S30.

一方、ステップ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 additional enclosure unit 180, It is then determined whether the end block 160 is normally connected (step S61).

ステップ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 additional enclosure unit 180 and the terminal block 160 are normally connected (ie, Yes), the current card The organization information is read out (step S62).
In step S62, the microprocessor 111 designates the set station number that has already been set, and the additional enclosure unit corresponding to the designated station number transmits its own card information, thereby confirming the card organization information.

次に、図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 RAM memory 116, and the abnormality indication LED blinks to notify the abnormality. (Step S64), the operation of the microprocessor 111 ends (Step S16).
After the operation of the microprocessor 111 is finished in step S16, the operation of the microprocessor 111 shown in step S12 is started again at the next processing timing.

一方、ステップ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 additional enclosure unit 180 and the terminal block 160 are not normally connected (that is, No), the process immediately proceeds to step S64.

図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 microprocessor 111 and the program memory 115B storing the sequence program is connected to the basic casing unit 110B. An extension chassis unit 180, a penetration bus that passes through the extension chassis unit 180 and is connected to the basic chassis unit 110B, and includes a plurality of control signal lines and a multi-bit data bus, and the opposite of the basic chassis unit 110B Terminal block 160 connected to the through bus so as to be on the side, a plurality of input / output interface circuits that are provided in the basic chassis unit 110B and the additional chassis unit 180, and are selectively connected to the microprocessor 111 172a, 172b, 182 , A unit-type programmable controller 100B that outputs a signal to an external output device in response to a signal from the external input device 121 and the contents of the program memory 115B, and an input / output provided in the basic casing unit 110B A predetermined station number is set in advance for identification in the interface circuits 172a and 172b, and the basic chassis unit 110B sets a station number for identifying the input / output interface circuit 182 provided in the additional chassis unit 180. System memory 114B including a control program serving as station number setting means (steps S17 to S29 and steps S50 to S54), an arithmetic processing RAM memory 116 for storing input / output information, a microprocessor 111 and a through bus Bus in connected to And the input / output interface circuits 172a, 172b, and 182 include individual memories that store card information and station number information indicating station numbers. The card information is stored in the input / output interface circuits 172a, 172b, and 182. Type-specific logic information indicating whether the interface circuit is an input interface circuit or an output interface circuit; connection position logic information indicating whether the connection position of the input / output interface circuits 172a, 172b, and 182 is the final connection position; When the input / output interface circuits 172a, 172b, and 182 are provided in the basic casing unit 110B, and the input / output interface circuits 172a, 172b, and 182 are provided in the basic casing unit 110B, Type of input / output organization of basic chassis unit 110B The terminal block 160 includes a connection position confirmation circuit LST that obtains connection position logic information using a pull-up resistor or a pull-down resistor connected to the input / output interface circuits 172a, 172b, and 182. The terminal block 160 includes a termination processing confirmation circuit END that outputs the connection state of the termination block 160 to the microprocessor 111 as a connection confirmation signal END1, and the station number setting means is at the start of the operation of the microprocessor 111 and is based on the connection confirmation signal END1. When the connection of the terminal block 160 is confirmed, the basic chassis unit 110B is connected to the input / output interface circuit 182 from the first connection position of the additional chassis unit 180 to the final connection position included in the connection position logic information. Input / output interface circuits 172a, 172 The station following the set codes to be sequentially set allocation.
That is, the station number setting is started when the termination processing confirmation circuit END confirms the connection of the termination block 160, and the station number setting is confirmed by confirming the card information stored in the card information storage memory of the additional enclosure unit 180. It is determined whether or not it has been completed.
Therefore, the station number is not set when the terminal block 160 is not connected and the data bus is unstable, and the station number can be reliably set by preventing erroneous setting of the station number.
In addition, since a predetermined station number is assigned and set in advance to the input / output boards 170a and 170b in the basic casing unit 110B, the efficiency of station number setting can be improved.

また、基本筐体ユニット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 / output interface circuit 172b built in the basic chassis unit 110B is connected to the subsequent stage when the microprocessor 111 completes reading the card information from the final stage input / output interface circuit 172b. The selection switching means for transmitting the station number setting search signal CF1 output from the microprocessor 111 is connected to the input / output interface circuit 182 in the additional enclosure unit 180, or the system memory 114B As the card information is completely read out by the microprocessor 111 from the final stage input / output interface circuit 172b built in the chassis unit 110B, the input / output interface circuit 182 in the additional chassis unit 180 connected to the subsequent stage is transferred to the input / output interface circuit 182. In contrast, the microprocessor Whether or not the card information of the input / output interface circuit 172b at the final stage has been read by the microprocessor 111, including a control program serving as a selection switching means for transmitting the station number setting search signal CF1 output by the processor 111. And the individual completion logic information for switching the selection switching means, and the input / output interface circuit 182 built in the additional enclosure unit 180 receives the station number setting search signal CF1 and sets the station number. Upon completion, the selection switching circuit 185 for transmitting the station number setting search signal CF1 is connected to the input / output interface circuit sequentially connected to the subsequent stage, and the card information of the input / output interface circuit 182 built in the additional enclosure unit 180 is connected. Identifies whether the station number setting is complete and And individual completion logic information for switching the circuit 185. The station number setting means reads the card information of the final stage I / O interface circuit 172b via the data bus, and the card of the final stage I / O interface circuit 172b. When the connection position logic information in the information indicates that it is not the final connection position, it is connected to the subsequent stage via the data bus based on the model code information in the card information of the input / output interface circuit 172b at the final stage. The corresponding station number is written to the individual memory of the input / output interface circuit 182 in the additional enclosure unit 180. After the setting of the station number is completed, the microprocessor 111 designates the station number via the data bus. Data is exchanged with the input / output interface circuit of the specified station number via the data bus.
Therefore, it is possible to reliably set the station numbers for the input / output interface circuits 182 of the plurality of additional enclosure units 180 by using the selection switching circuit 185 without omission.
In addition, the type of input / output organization of the basic chassis unit 110B is obtained from the card information stored in the input / output interface circuit 172b at the final stage in the basic chassis unit 110B, and the station number following this is obtained as the additional chassis unit 180. Can be assigned.

また、基本筐体ユニット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 watchdog timer 117 that monitors the operation of the microprocessor 111, and a stop logic circuit 119 that stops the output of the output interface circuit or maintains the current state. The watchdog timer 117 includes the microprocessor. When the pulse width of the runaway monitoring pulse signal PLS output from 111 becomes larger than a predetermined width, the runaway abnormality detection signal WD is output to the microprocessor 111 and the stop logic circuit 119, and the reset processing of the microprocessor 111 is performed. The operation is stopped or restarted, and the stop logic circuit 119 supplies the through stop signal line 13 when the runaway abnormality detection signal WD is received and when the connection confirmation signal END1 indicates that the terminal block 160 is not connected. Output interface circuit output stop via Others do currently being held.
Therefore, when an abnormality occurs in the operation of the microprocessor 111, the microprocessor 111 can be promptly reset, stopped, or restarted, and the output of the output interface circuit can be stopped or the current status can be maintained.
Further, even when the connection confirmation signal END1 indicates that the termination block 160 is not connected, the output interface circuit can be stopped or the current state can be maintained by using the penetration stop signal line 13, so that the safety can be achieved with fewer control lines. Can be improved.

また、システムメモリ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 terminal block 160, and the second abnormality determining means is an input before the final connection position. When the card information of the output interface circuits 172b and 182 is not obtained, or when the input / output interface circuit 182 at the final connection position is not found even after a predetermined time has elapsed, an abnormality is determined. The station number set in the output interface circuit and the station that was confirmed and returned from the I / O interface circuit in which the station number was set Is determined to be abnormal, and the setting abnormality processing means indicates the abnormal state when any of the first abnormality determination means, the second abnormality determination means, and the third abnormality determination means determines an abnormality. And informing the outside.
Therefore, when the terminal block 160 is not connected or when the station number setting is not completed, an abnormality is determined, so that maintenance and inspection can be easily performed.

また、システムメモリ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 RAM memory 116 as card knitting information when the setting of the station number is completed. And the knitting abnormality detecting means determines an 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, and a drop abnormality detecting means Indicates that the connection confirmation signal END1 is not connected to the end block 160 during operation. If any of the knitting abnormality detection means and the dropout abnormality detection means makes an abnormality determination, the knitting abnormality processing means stores the abnormal state in the RAM memory 116 and notifies the outside. .
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と同様の構成については、説明を省略する。
Embodiment 3 FIG.
FIG. 7 is a configuration diagram showing a unit programmable controller 100C according to Embodiment 3 of the present invention. Hereinafter, the description will focus on the differences from FIG.
Note that the description of the same configuration as that of Embodiment 1 is omitted.

図7において、ユニット形プログラマブルコントローラ100Cは、基本筐体ユニット110Cと、拡張親局ユニット190Aと、基本列の増設筐体ユニット180a〜180cと、基本列の終端ブロック160と、拡張子局ユニット290Aと、拡張列の増設筐体ユニット280a〜280cと、拡張列の終端ブロック260と、貫通バス信号線BUSとを備えている。   In FIG. 7, the unit-type programmable controller 100C includes a basic casing unit 110C, an extended master station unit 190A, basic column additional casing units 180a to 180c, a basic column end block 160, and an extension station unit 290A. And an expansion column extension housing units 280a to 280c, an expansion column end block 260, and a through bus signal line BUS.

基本筐体ユニット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 microprocessor 111, a bus interface circuit 112, a control power supply unit 113, a system memory 114C, a program memory 115C, a RAM memory 116, a watchdog timer 117, a serial interface 118, a pull-up resistor R, a constant voltage power supply. A line Vcc, a ground circuit GND, connection confirmation signal lines 11a and 11b, station number setting search signal lines 12a and 12b, and a through stop signal line 13 are included.
Here, the bus interface circuit 112, the system memory 114C, the program memory 115C, the RAM memory 116, and the serial interface 118 are connected to the microprocessor 111 by a bus.

マイクロプロセッサ111は、バスインタフェース回路112を介して、局番設定検索信号線12aに、基本列用の局番設定検索信号CF1を出力し、局番設定検索信号線12bに、拡張列用の局番設定検索信号CF2(拡張列用局番設定検索信号)を出力する。
また、プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11a、11bには、それぞれ終端ブロック160が接続されているか否かを示す基本列用の接続確認信号END1と、終端ブロック260が接続されているか否かを示す拡張列用の接続確認信号END2(拡張列用接続確認信号)とが伝達される。接続確認信号END1、END2は、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The microprocessor 111 outputs the station number setting search signal CF1 for the basic column to the station number setting search signal line 12a via the bus interface circuit 112, and the station number setting search signal for the extension column to the station number setting search signal line 12b. Output CF2 (extended string station number setting search signal).
Further, the connection confirmation signal lines END1 for indicating whether or not the termination block 160 is connected to the connection confirmation signal lines 11a and 11b connected to the constant voltage power supply line Vcc via the pull-up resistor R, respectively. The extension string connection confirmation signal END2 (expansion string connection confirmation signal) indicating whether or not the termination block 260 is connected is transmitted. The connection confirmation signals END1 and END2 are input to the microprocessor 111 via the bus interface circuit 112.

増設筐体ユニット180a〜180c、280a〜280cは、それぞれ図1に示した増設筐体ユニット120〜150の何れかを代表したものである。
また、終端ブロック160、260は、互いに同一のものであり、接続列によって、便宜上異なる符号が与えられている。
なお、基本筐体ユニット110Cは、図4に示した基本筐体ユニット110Bと同様に、入出力基板を含んでいてもよいが、本実施の形態では、入出力基板を含まない基本筐体ユニット110Cを例にして説明する。
The additional enclosure units 180a to 180c and 280a to 280c are representative of any of the additional enclosure units 120 to 150 shown in FIG.
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 master station unit 190A is provided between the basic chassis unit 110C and the additional chassis unit 180a, and includes a buffer circuit 196 and a master station connector 197.
The extension master station unit 190A includes a constant voltage power supply line Vcc, a ground circuit GND, a connection confirmation signal line 11a, a station number setting search signal line 12a, a penetration stop signal line 13, and a penetration bus signal line BUS from the basic casing unit 110C. A through connection is made to the additional chassis unit 180a.
Here, the through bus signal line BUS connected to the additional enclosure unit 180a is referred to as a through bus signal line BUS1.

また、拡張親局ユニット190Aは、定電圧電源線Vcc、グランド回路GND、貫通停止信号線13、および貫通バス信号線BUSを分岐し、親局コネクタ197と拡張子局ユニット290Aに設けられた子局コネクタ297とを介して、拡張子局ユニット290Aに接続する。また、拡張列で使用される接続確認信号線11b、および局番設定検索信号線12bも、親局コネクタ197と子局コネクタ297とを介して、拡張子局ユニット290Aに接続される。   The extension master station unit 190A branches the constant voltage power supply line Vcc, the ground circuit GND, the penetration stop signal line 13, and the penetration bus signal line BUS, and is provided in the master station connector 197 and the extension station unit 290A. The extension station unit 290A is connected via the station connector 297. Further, the connection confirmation signal line 11b and the station number setting search signal line 12b used in the extension column are also connected to the extension station unit 290A via the master station connector 197 and the slave station connector 297.

拡張子局ユニット290Aは、拡張親局ユニット190Aと増設筐体ユニット280aとの間に設けられ、バッファ回路296、子局コネクタ297、および拡張列用停止論理回路298を含んでいる。
拡張子局ユニット290Aは、定電圧電源線Vcc、接続確認信号線11b、局番設定検索信号線12b、および貫通バス信号線BUSを、増設筐体ユニット280aに貫通接続する。
ここで、増設筐体ユニット280aに接続された貫通バス信号線BUSを貫通バス信号線BUS2と称する。
The extension station unit 290A is provided between the extension master station unit 190A and the additional enclosure unit 280a, and includes a buffer circuit 296, a slave station connector 297, and an extension string stop logic circuit 298.
The extension station unit 290A connects the constant voltage power supply line Vcc, the connection confirmation signal line 11b, the station number setting search signal line 12b, and the through bus signal line BUS to the additional enclosure unit 280a.
Here, the through bus signal line BUS connected to the additional enclosure unit 280a is referred to as a through bus signal line BUS2.

貫通バス信号線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 buffer circuit 196 respectively configured by a driver / receiver.
The buffer circuit 196 provided in the extension master station unit 190A is effective when the wiring distance between the extension master station unit 190A and the extension station unit 290A is relatively long.
Further, the buffer circuit 296 provided in the extension station unit 290A is effective when a large number of additional enclosure units are connected to the extension station unit 290A.

拡張子局ユニット290A内に設けられた拡張列用停止論理回路298は、2入力の論理積素子によって構成されている。
拡張列用停止論理回路298の一方の入力端子には、貫通停止信号線13に出力される貫通停止信号WD1が入力され、他方の入力端子には、接続確認信号END2の反転論理信号が入力される。拡張列用停止論理回路298は、貫通停止信号線15に貫通停止信号WD2を出力する。
The extension column stop logic circuit 298 provided in the extension station unit 290A is configured by a 2-input AND element.
The penetration stop signal WD1 output to the penetration stop signal line 13 is input to one input terminal of the extended column stop logic circuit 298, and the inverted logic signal of the connection confirmation signal END2 is input to the other input terminal. The The extended column stop logic circuit 298 outputs a through stop signal WD 2 to the through stop signal line 15.

ここで、拡張子局ユニット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 case extension units 280a to 280c connected to the extension station unit 290A is the arrangement of the connector pins provided in the extension case units 180a to 180c in the basic row. It is the same.
In addition, the constant voltage power supply line Vcc, the ground circuit GND, the connection confirmation signal line 11b, the station number setting search signal line 12b, the penetration stop signal line 13, and the penetration bus signal line BUS2 which are representatively described in the additional enclosure unit 280a Arrangement and connector pins of constant voltage power supply line Vcc, ground circuit GND, connection confirmation signal line 11a, station number setting search signal line 12a, penetration stop signal line 13, and penetration bus signal line BUS1 which are representatively described in the additional chassis unit 180a This arrangement is the same.
However, the connection confirmation signal line 11b and the station number setting search signal line 12b, which are representatively described in the additional chassis unit 280a, are provided in the basic chassis unit 110C via the extension station unit 290A and the extension master station unit 190A. The connection confirmation signal line 11b and the station number setting search signal line 12b are connected to each other.

また、基本列は、図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, additional casing units 180a to 180c, and a terminal block 160, as shown in FIG.
Here, the extended master station unit 190A for branching and extracting various signal lines and through bus signal lines BUS is interposed, and the microprocessor 111 has a plurality of connection confirmation signals END1, END2 and a plurality of station number setting search signals. The point of handling CF1 and CF2 is different from that shown in FIG.
Further, the extension row is different in that an extension station unit 290A is provided instead of the basic housing unit 110C.

上記の構成において、接続確認信号線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 confirmation signal line 11a passes through the extension master station unit 190A and the additional enclosure units 180a to 180c, and is logically processed by the termination processing confirmation circuit END of the termination block 160. The level is set to “L”. Further, the connection confirmation signal END2 transmitted through the connection confirmation signal line 11b passes through the extension master station unit 190A, the extension station unit 290A, and the additional enclosure units 280a to 280c, and terminates the termination processing confirmation circuit of the termination block 260. The logic level is set to “L” at END.
Further, the station number setting search signal line 12a is sequentially detoured via the selection switching circuit in the additional enclosure units 180a to 180c. Further, the station number setting search signal line 12b is sequentially detoured via the selection switching circuit in the additional enclosure units 280a to 280c.

また、基本列の最終の接続位置に接続された増設筐体ユニット180cにおいて、接続位置信号線によって伝達される接続位置論理信号MDLは、終端ブロック160の接続位置確認回路LSTで論理レベル「L」にされる。また、拡張列の最終の接続位置に接続された増設筐体ユニット280cにおいて、接続位置信号線によって伝達される接続位置論理信号MDLは、終端ブロック260の接続位置確認回路LSTで論理レベル「L」にされる。   Further, in the additional enclosure unit 180c connected to the final connection position in the basic row, the connection position logic signal MDL transmitted by the connection position signal line is logical level “L” by the connection position confirmation circuit LST of the termination block 160. To be. In addition, the connection position logic signal MDL transmitted by the connection position signal line in the additional enclosure unit 280c connected to the final connection position of the expansion row is logical level “L” by the connection position confirmation circuit LST of the termination block 260. To be.

また、貫通停止信号線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 stop signal line 13 is the same as that when the runaway abnormality detection signal WD output from the watchdog timer 117 is at the logic level “L” or the connection confirmation signal END1 is at the logic level “H”. ”, The logic level becomes“ L ”, and the output of the output interface circuit in the additional enclosure units 180a to 180c is stopped or the current status is maintained.
On the other hand, the through stop signal WD2 output to the through stop signal line 15 includes the runaway abnormality detection signal WD at the logic level “L”, the connection confirmation signal END1 at the logic level “H”, or When the connection confirmation signal END2 is at the logic level “H”, the logic level becomes “L”, and the output of the output interface circuit in the additional chassis units 280a to 280c is stopped or the current status is maintained.

なお、基本列の増設筐体ユニット180a〜180cの接続異常によって、拡張列の増設筐体ユニット280a〜280c中の出力インタフェース回路の出力停止または現状保持を行わない場合には、拡張列用停止論理回路298の一方の入力端子において、貫通停止信号WD1を入力する代わりに、ウォッチドッグタイマ117から出力される暴走異常検出信号WDを入力すればよい。   If the output of the output interface circuit in the expansion column expansion unit 280a to 280c is not stopped or the current status is not maintained due to the connection abnormality of the expansion column units 180a to 180c in the basic column, the expansion column stop logic Instead of inputting the penetration stop signal WD1 at one input terminal of the circuit 298, a runaway abnormality detection signal WD output from the watchdog timer 117 may be input.

以下、図7とともに、この発明の実施の形態3に係るユニット形プログラマブルコントローラ100Cの動作について説明する。
なお、実施の形態1と同様の動作については、説明を省略する。
Hereinafter, the operation of the unit programmable controller 100C according to the third embodiment of the present invention will be described with reference to FIG.
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 programmable controller 100C, if it is determined that the end blocks 160 and 260 are connected, the station number setting for the additional case units 180a to 180c in the basic row is performed by the station number setting search signal CF1. Is done.
Subsequently, the station number is set for the additional chassis units 280a to 280c in the expansion row by the station number setting search signal CF2.
Here, the station number of the additional chassis unit 280a is the station number following the station number of the additional chassis unit 180c connected to the final connection position in the basic row.

この発明の実施の形態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 programmable controller 100C according to the third embodiment of the present invention, the extension master station unit provided between the basic housing unit 110C and the terminal block 160, and the extension station connected to the extension master station unit And an extension column extension housing unit 280a to 280c and an extension column termination block 260 connected to the subsequent stage of the extension station unit, and the extension master station unit and the extension station unit are connected to the through bus The microprocessor 111 includes a buffer circuit, and the microprocessor 111 is a station number setting search signal CF1 for setting the station number of the input / output interface circuit in the basic column composed of the basic chassis unit 110C, the additional chassis units 180a to 180c, and the termination block 160. It is a different signal, and the expansion row expansion enclosure unit 280a The expansion column input / output interface circuit provided in 280c outputs the expansion column station number setting search signal CF2 for starting the station number setting, and the microprocessor 111 receives a connection confirmation signal END1 indicating the connection state of the termination block 160. The extension column connection confirmation signal END2 indicating the connection state of the extension column termination block 260 is input, and the station number setting means is connected to the basic chassis unit 110C or the extension column input / output interface circuit. A station number subsequent to the station number set in the input / output interface circuit of the additional enclosure units 180a to 180c is set.
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 watchdog timer 117 that monitors the operation of the microprocessor 111, and the extension station unit stops output of the output interface circuits provided in the extended column extension chassis units 280a to 280c. Alternatively, the watchdog timer 117 further includes a stop logic circuit 298 that holds the current state, and the watchdog timer 117 includes the microprocessor 111 and the stop logic when the pulse width of the runaway monitoring pulse signal PLS output from the microprocessor 111 becomes larger than a predetermined width. A runaway abnormality detection signal WD is output to the circuit 298 to perform reset processing and operation stop or restart of the microprocessor 111. The stop logic circuit 298 receives the runaway abnormality detection signal WD and The connection confirmation signal END2 In the case shown the unconnected state of the click 260, performs output stop or currently being held in the output interface circuit via the through-stop signal line 15.
Therefore, when an abnormality occurs in the operation of the microprocessor 111, the microprocessor 111 can be promptly reset, stopped, or restarted, and the output of the output interface circuit can be stopped or the current status can be maintained.
Even when the connection confirmation signal END2 indicates the unconnected state of the extended column termination block 260, the output interface circuit can be stopped using the through stop signal line 13 or the current state can be maintained. Safety can be improved.

実施の形態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 Embodiment 3 is omitted.

図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 extension chassis units 180d and 180e, an extension master station unit 190B, a terminal block 160, an extension station unit 290B, The extended enclosure units 280d and 280e in the row, the end block 260, the extended grandchild station unit 390B, the extended enclosure units 380d and 380e in the extended grandchild row, and the end block 360 are provided.

基本筐体ユニット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 microprocessor 111, a bus interface circuit 112, a system memory 114D, a program memory 115D, a RAM memory 116, a watchdog timer 117, connection confirmation signal lines 11a to 11c, station number setting search signal lines 12a to 12c, And a through stop signal line 13.
Although the control power supply unit 113, serial interface 118, pull-up resistor R, constant voltage power supply line Vcc, ground circuit GND, and through bus signal line BUS shown in FIG. 7 are provided in the same manner, FIG. Then, illustration is abbreviate | omitted.

マイクロプロセッサ111は、システムメモリ114Dと協働し、バスインタフェース回路112を介して、局番設定検索信号線12aに、基本列用の局番設定検索信号CF1を出力し、局番設定検索信号線12bに、拡張列用の局番設定検索信号CF2を出力し、局番設定検索信号線12cに、拡張孫列用の局番設定検索信号CF3(拡張孫列用局番設定検索信号)を出力する。
また、プルアップ抵抗Rを介して定電圧電源線Vccに接続される接続確認信号線11a〜11cには、それぞれ終端ブロック160が接続されているか否かを示す基本列用の接続確認信号END1と、終端ブロック260が接続されているか否かを示す拡張列用の接続確認信号END2と、終端ブロック360が接続されているか否かを示す拡張孫列用の接続確認信号END3(拡張孫列用接続確認信号)とが伝達される。接続確認信号END1〜END3は、バスインタフェース回路112を介してマイクロプロセッサ111に入力される。
The microprocessor 111 cooperates with the system memory 114D to output the base number station number setting search signal CF1 to the station number setting search signal line 12a via the bus interface circuit 112, and to the station number setting search signal line 12b. The station number setting search signal CF2 for the extension string is output, and the station number setting search signal CF3 for extension grandchild string (the station number setting search signal for extension grandchild string) is output to the station number setting search signal line 12c.
The connection confirmation signal lines 11a to 11c connected to the constant voltage power supply line Vcc through the pull-up resistor R are connected to the connection confirmation signal END1 for the basic column indicating whether or not the termination block 160 is connected. , An extension column connection confirmation signal END2 indicating whether or not the termination block 260 is connected, and an extension grandchild connection confirmation signal END3 (extended grandchild column connection) indicating whether or not the termination block 360 is connected. Confirmation signal) is transmitted. The connection confirmation signals END1 to END3 are input to the microprocessor 111 through the bus interface circuit 112.

増設筐体ユニット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 additional enclosure units 180d, 180e, 280d, 280e, 380d, and 380e include connection confirmation signal lines 11a to 11c, station number setting search signal lines 12b and 12c, a penetration stop signal line 13, and a constant voltage power supply line Vcc (not shown). The ground circuit GND and the through bus signal line BUS are through-connected.
Other configurations of the additional enclosure units 180d, 180e, 280d, 280e, 380d, and 380e are the same as those of the additional enclosure units 180a to 180c and 280a to 280c shown in FIG.
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 extension enclosure units 280d, 280e, 380d, and 380e are not necessarily connected through the connection confirmation signal lines 11b and 11c and the station number setting search signal lines 12b and 12c.
However, since the additional enclosure units are standardized by configuring the additional enclosure units 280d, 280e, 380d, and 380e as described above, they can be used in any row.

拡張親局ユニット190Bは、増設筐体ユニット180bと終端ブロック160との間に設けられ、親局コネクタ197を含んでいる。なお、図7に示したバッファ回路196については、図示を省略している。
拡張親局ユニット190Bは、接続確認信号線11a〜11c、局番設定検索信号線12a〜12c、貫通停止信号線13、および接続位置信号線14と、図示しない定電圧電源線Vcc、グランド回路GND、および貫通バス信号線BUSとを貫通接続する。
ここで、拡張親局ユニット190Bは、上記のように構成されているので、基本筐体ユニット110Dと終端ブロック160との間のどの位置に設けられた場合であっても、全てのデータを交信することができる。
The extension master station unit 190B is provided between the extension chassis unit 180b and the terminal block 160, and includes a master station connector 197. Note that illustration of the buffer circuit 196 shown in FIG. 7 is omitted.
The extension master station unit 190B includes connection confirmation signal lines 11a to 11c, station number setting search signal lines 12a to 12c, a penetration stop signal line 13, and a connection position signal line 14, a constant voltage power supply line Vcc, a ground circuit GND, Further, the through bus signal line BUS is through-connected.
Here, since the extended master station unit 190B is configured as described above, all the data is exchanged regardless of the position between the basic housing unit 110D and the terminal block 160. can do.

また、拡張親局ユニット190Bは、接続確認信号線11b、11c、局番設定検索信号線12b、12c、および貫通停止信号線13を分岐し、親局コネクタ197と拡張子局ユニット290Aに設けられた子局第1コネクタ297aとを介して、拡張子局ユニット290Bに接続する。   The extension master station unit 190B branches the connection confirmation signal lines 11b and 11c, the station number setting search signal lines 12b and 12c, and the penetration stop signal line 13, and is provided in the master station connector 197 and the extension station unit 290A. The extension station unit 290B is connected to the slave station first connector 297a.

拡張子局ユニット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 master station unit 190B and the additional enclosure unit 280d, and includes a slave station first connector 297a, a slave station second connector 297b, and an extension string stop logic circuit 298. Yes.
The extension station unit 290B penetrates and connects the connection confirmation signal line 11b and the station number setting search signal line 12b to the additional enclosure unit 280d.
Further, the extension station unit 290B includes a connection confirmation signal line 11c, a station number setting search signal line 12c, and a penetration stop signal line 15 that are connected to the slave station second connector 297b and the extension slave station unit 390B. It connects to the extension grand station unit 390B via the connector 397a.

拡張子局ユニット290B内に設けられた拡張列用停止論理回路298は、2入力の論理積素子によって構成されている。
拡張列用停止論理回路298の一方の入力端子には、貫通停止信号線13に出力される貫通停止信号WD1が入力され、他方の入力端子には、接続確認信号END2の反転論理信号が入力される。拡張列用停止論理回路298は、貫通停止信号線15に貫通停止信号WD2を出力する。
The extension column stop logic circuit 298 provided in the extension station unit 290B is configured by a 2-input AND element.
The penetration stop signal WD1 output to the penetration stop signal line 13 is input to one input terminal of the extended column stop logic circuit 298, and the inverted logic signal of the connection confirmation signal END2 is input to the other input terminal. The The extended column stop logic circuit 298 outputs a through stop signal WD 2 to the through stop signal line 15.

拡張孫局ユニット390Bは、拡張子局ユニット290Bと増設筐体ユニット380dとの間に設けられ、孫局第1コネクタ397a、孫局第2コネクタ397b、および拡張孫列用停止論理回路398を含んでいる。
拡張孫局ユニット390Bは、接続確認信号線11c、および局番設定検索信号線12cを増設筐体ユニット380dに貫通接続する。
The extended slave station unit 390B is provided between the extension station unit 290B and the additional enclosure unit 380d, and includes a first slave station first connector 397a, a second slave station second connector 397b, and an extended grandchild row stop logic circuit 398. It is out.
The extended sub-station unit 390B connects the connection confirmation signal line 11c and the station number setting search signal line 12c through the extension housing unit 380d.

拡張孫局ユニット390B内に設けられた拡張孫列用停止論理回路398は、2入力の論理積素子によって構成されている。
拡張孫列用停止論理回路398の一方の入力端子には、貫通停止信号線15に出力される貫通停止信号WD2が入力され、他方の入力端子には、接続確認信号END3の反転論理信号が入力される。拡張孫列用停止論理回路398は、貫通停止信号線16に貫通停止信号WD3を出力する。
The extended grandchild train stop logic circuit 398 provided in the extended grandchild station unit 390B is configured by a 2-input AND element.
A penetration stop signal WD2 output to the penetration stop signal line 15 is input to one input terminal of the extended grandchild stop logic circuit 398, and an inverted logic signal of the connection confirmation signal END3 is input to the other input terminal. Is done. The extension grandchild stop logic circuit 398 outputs a penetration stop signal WD 3 to the penetration stop signal line 16.

ここで、基本列用、拡張列用、拡張孫列用の各増設筐体ユニットは、同一構造のものが使用されているとともに、拡張子局ユニット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 grandchild station unit 390B have the same structure. Things are used.

なお、図7に示した拡張子局ユニット290Aは、拡張孫局ユニットを使用する構成になっていないので、拡張子局ユニット290Aには、図8の拡張子局ユニット290Bに設けられた子局第2コネクタ297bに相当するコネクタが設けられていない。
また、図7において、増設筐体ユニット180a〜180c、280a〜280c内に接続確認信号線11a、11b、および局番設定検索信号線12bを貫通接続することにより、拡張親局ユニット190Aを基本筐体ユニット110Cと終端ブロック160との間のどの位置にでも設けることができる。
Note that the extension station unit 290A shown in FIG. 7 is not configured to use the extended slave station unit, and therefore, the extension station unit 290A includes a slave station provided in the extension station unit 290B of FIG. A connector corresponding to the second connector 297b is not provided.
Further, in FIG. 7, by connecting the connection confirmation signal lines 11a and 11b and the station number setting search signal line 12b through the extension chassis units 180a to 180c and 280a to 280c, the extension master station unit 190A is connected to the basic chassis. It can be provided at any position between the unit 110C and the end block 160.

また、図8において、貫通停止信号線13、15、16のコネクタピンの配置は、それぞれ同一である。すなわち、各増設筐体ユニット内を3本の貫通停止信号線が貫通しているのではなく、1本の貫通停止信号線が同一のコネクタピンで貫通接続されている。また、図7に示した貫通停止信号線13、15についても同様である。   In FIG. 8, the arrangement of the connector pins of the penetration stop signal lines 13, 15 and 16 is the same. That is, three penetration stop signal lines do not penetrate through each additional enclosure unit, but one penetration stop signal line is penetrated by the same connector pin. The same applies to the penetration stop signal lines 13 and 15 shown in FIG.

上記の構成において、接続確認信号線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 confirmation signal line 11a passes through the additional enclosure units 180d and 180e and the extended master station unit 190B and confirms the termination process of the termination block 160. The circuit END is set to a logic level “L”.

また、接続確認信号線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 confirmation signal line 11b is used for the extension chassis units 180d and 180e, the extension master station unit 190B, the extension station unit 290B, and the extension chassis units 280d and 280e. The signal passes through and is set to the logic level “L” by the termination processing confirmation circuit END of the termination block 260.
Here, in the extension chassis units 280d and 280e, the signal is transmitted using the connection confirmation signal line 11a for the connection confirmation signal END1, and the connection confirmation for the connection confirmation signal END2 is performed in the extension station unit 290B. Transfer connection is made to the signal line 11b.

また、接続確認信号線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 confirmation signal line 11c includes the extension chassis units 180d and 180e, the extension master station unit 190B, the extension station unit 290B, the extension grandchild station unit 390B, and the extension. The signal passes through the housing units 380d and 380e and is set to the logic level “L” by the termination processing confirmation circuit END of the termination block 360.
Here, in the extension chassis units 380d and 380e, a signal is transmitted using the connection confirmation signal line 11a for the connection confirmation signal END1, and the extension station unit 290B and the extension grandchild station unit 390B Transfer connection is made to the connection confirmation signal line 11c for the sequential connection confirmation signal END3.

また、基本列用の局番設定検索信号線12aは、増設筐体ユニット180d、180e内の選択切り換え回路を経由して順次迂回配線され、後段に接続されている。
また、拡張列用の局番設定検索信号線12bは、増設筐体ユニット180d、180e、拡張親局ユニット190B、拡張子局ユニット290Bを貫通し、増設筐体ユニット280d、280e内の選択切り換え回路を経由して順次迂回配線され、後段に接続されている。
ここで、増設筐体ユニット280d、280e内では、局番設定検索信号CF1用の局番設定検索信号線12aを用いて信号が伝達されていて、拡張子局ユニット290B内で、局番設定検索信号CF2用の局番設定検索信号線12bに振替接続が行われている。
Further, the station number setting search signal line 12a for the basic column is sequentially detoured via the selection switching circuit in the additional enclosure units 180d and 180e and connected to the subsequent stage.
Further, the station number setting search signal line 12b for the extension string passes through the extension casing units 180d and 180e, the extension master station unit 190B, and the extension station unit 290B, and passes through the selection switching circuit in the extension casing units 280d and 280e. Bypass detours are routed sequentially and connected to the subsequent stage.
Here, in the extension chassis units 280d and 280e, a signal is transmitted using the station number setting search signal line 12a for the station number setting search signal CF1, and for the station number setting search signal CF2 in the extension station unit 290B. Is connected to the station number setting search signal line 12b.

また、拡張孫列用の局番設定検索信号線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 additional chassis units 180d and 180e, the extended master station unit 190B, the extension station unit 290B, and the extended slave station unit 390B, and the extended chassis unit 380d. 380e is sequentially routed via a selection switching circuit in 380e and connected to the subsequent stage.
Here, in the extension chassis units 380d and 380e, signals are transmitted using the station number setting search signal line 12a for the station number setting search signal CF1, and the extension grand station unit 390B and the extension station unit 290B sequentially The transfer connection is made to the station number setting search signal line 12c for the station number setting search signal CF3.

また、基本列の最終の接続位置に接続された増設筐体ユニット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 position signal line 14 passes through the extended master station unit 190B and passes through the extension block unit 160B. The connection level confirmation circuit LST sets the logic level to “L”.

以下、図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 additional case units 180d and 180e in the basic row is performed by the station number setting search signal CF1. Is done.
Subsequently, the station number is set for the additional chassis units 280d and 280e in the expansion row by the station number setting search signal CF2.
Next, the station number is set for the expanded chassis units 380d and 380e of the extended grandchild row by the station number setting search signal CF3.
Here, the station number of the expansion chassis unit 280d is the station number following the station number of the expansion chassis unit 180e connected to the final connection position in the basic column, and the station number of the expansion chassis unit 380d is the last connection in the expansion column. The station number follows the station number of the additional enclosure unit 280e connected to the position.

この発明の実施の形態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 terminal block 160, and the extension station connected to the extension master station unit Unit, extension column extension housing units 280d and 280e and extension column termination block 260 connected to the subsequent stage of the extension station unit, the extension slave station unit connected to the extension station unit, and the subsequent stage of the extension slave station unit And an extended grandchild station termination block 360, and the extended master station unit, the extension station unit, and the extended grandchild station unit are buffers connected to the through bus. Including a circuit, the microprocessor 111 includes a basic chassis unit 110D, an additional chassis unit 1 This is a signal different from the station number setting search signal CF1 for setting the station number of the input / output interface circuit of the basic column composed of 0d, 180e and the termination block 160, and is provided in the expansion column provided in the expansion column expansion enclosure units 280d, 280e The station number setting search signal CF2 for the extended column for starting the station number setting of the input / output interface circuit is output, and the station number setting of the expanded grandchild column input / output interface circuit provided in the expanded grandchild column expansion chassis units 380d and 380e The extension grandchild station number setting search signal CF3 for starting the output is output, and the microprocessor 111 is a signal different from the connection confirmation signal END1 indicating the connection state of the termination block 160. The connection confirmation signal END2 for the extended column indicating the connection state is input and A connection confirmation signal END3 for the extended grandchild row indicating the connection state of the grandchild row termination block 360 is input, and the station number setting means sends the basic case unit 110D or the extended case unit 180d to the extended row input / output interface circuit. A station number following the station number set in the input / output interface circuit of 180e is set, and a station number following the station number set in the extended column input / output interface circuit is set for the extended grandchild column input / output interface circuit.
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 watchdog timer 117 that monitors the operation of the microprocessor 111, and the extension station unit and the extended grandchild station unit are the extension column extension chassis units 280d and 280e and the extension grandchild column extension. It further includes stop logic circuits 298 and 398 for stopping the output of the output interface circuits provided in the housing units 380d and 380e or holding the current state, and the watchdog timer 117 is a pulse of the runaway monitoring pulse signal PLS output from the microprocessor 111. When the width becomes larger than the predetermined width, a runaway abnormality detection signal WD is output to the microprocessor 111 and the stop logic circuits 298 and 398, and the microprocessor 111 is reset and stopped or restarted. Logic circuit 298, 98, when the runaway abnormality detection signal WD is received, and when the extended column connection confirmation signal END2 or the extended grandchild column connection confirmation signal END3 is not connected to the extended column termination block 260 or the extended grandchild column termination block 360. In this case, the output of the output interface circuit is stopped or the current status is maintained through the penetration stop signal lines 15 and 16.
Therefore, when an abnormality occurs in the operation of the microprocessor 111, the microprocessor 111 can be promptly reset, stopped, or restarted, and the output of the output interface circuit can be stopped or the current status can be maintained.
Even when the connection confirmation signals END2 and END3 indicate the unconnected state of the extended column termination block 260 or the extended grandchild column termination block 360, the output interface circuit is stopped using the through stop signal lines 15 and 16, or the current state Since it can hold | maintain, safety | security can be improved with few control lines.

また、複数の局番設定検索信号のうち、基本列用の局番設定検索信号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 extension chassis units 180d and 180e through the extension master station. It is connected through through the unit.
Therefore, the extension master station unit can be connected at any position from the front stage position to the rear stage position of the additional enclosure units 180d and 180e.

また、複数の局番設定検索信号のうち、基本列用の局番設定検索信号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 programmable controller 100E according to Embodiment 5 of the present invention. Hereinafter, a description will be given with reference to FIG.
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 programmable controller 100E includes a basic casing unit 110E, an extended master station unit 190C, basic casing additional casing units 180a to 180c, a terminal block 160, an extension station unit 290C, The extended enclosure units 280a to 280c in the row, the end block 260, the extended grandchild station unit 390C, the extended enclosure units 380a to 380c in the extended grandchild row, and the end block 360 are provided.

ここで、基本列は、基本筐体ユニット110Eと、拡張親局ユニット190Cと、増設筐体ユニット180a〜180cと、終端ブロック160とによって構成されている。
また、拡張列は、拡張子局ユニット290Cと、増設筐体ユニット280a〜280cと、終端ブロック260とによって構成されている。
また、拡張孫列は、拡張孫局ユニット390Cと、増設筐体ユニット380a〜380cと、終端ブロック360とによって構成されている。
Here, the basic column includes a basic casing unit 110E, an extended master station unit 190C, additional casing units 180a to 180c, and a terminal block 160.
Further, the extension column is composed of an extension station unit 290C, additional enclosure units 280a to 280c, and a terminal block 260.
The extended grandchild row includes an extended grandchild station unit 390C, additional enclosure units 380a to 380c, and a terminal block 360.

基本筐体ユニット110Eは、マイクロプロセッサ111や各種メモリ等が搭載されるCPU基板1と、入出力インタフェース回路が搭載される入出力基板2と、制御電源ユニット113が搭載される電源基板3と、端子台コネクタとなる入出力コネクタ9を含んでいる。
ここで、CPU基板1と入出力基板2とは、互いにコネクタ接続されている。また、入出力基板2と電源基板3とは、互いにコネクタ接続されている。
また、入出力基板2には、拡張親局ユニット190Cを接続するための送出側コネクタ8a(第2送出側コネクタ)が設けられている。
また、入出力コネクタ9は、図4の入出力機器101a、101bに相当する入出力機器を接続するための端子台コネクタである。
The basic chassis unit 110E includes a CPU board 1 on which a microprocessor 111 and various memories are mounted, an input / output board 2 on which an input / output interface circuit is mounted, a power board 3 on which a control power unit 113 is mounted, An input / output connector 9 serving as a terminal block connector is included.
Here, the CPU board 1 and the input / output board 2 are connected to each other by a connector. The input / output board 2 and the power supply board 3 are connected to each other by a connector.
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 / output devices 101a and 101b in FIG.

拡張親局ユニット190Cには、バッファ回路を搭載した両面プリント基板である拡張基板4aが取り付け固定されている。
拡張基板4aには、基本筐体ユニット110Eの送出側コネクタ8aと契合する受け取り側コネクタ7が表面実装されている。また、拡張基板4aの、受け取り側コネクタ7に対する裏面には、後段用の送出側コネクタ8が表面実装されている。
なお、拡張親局ユニット190C内の受け取り側コネクタ7の各端子と、送出側コネクタ8の各端子とは、拡張基板4aに設けられたスルーホールメッキによって、互いに貫通接続されている。
また、拡張基板4aには、親局コネクタ197が接続固定され、接続ケーブル(図示せず)によって、拡張子局ユニット290Cに設けられた子局第1コネクタ297aと接続されている。
An extension board 4a, which is a double-sided printed board on which a buffer circuit is mounted, is attached and fixed to the extension master station unit 190C.
A receiving-side connector 7 that mates with the sending-side connector 8a of the basic housing unit 110E is surface-mounted on the expansion board 4a. Further, on the back surface of the extension board 4a with respect to the receiving side connector 7, a post-stage sending side connector 8 is surface-mounted.
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 extension board 4a.
Further, a master station connector 197 is connected and fixed to the extension board 4a, and is connected to a slave station first connector 297a provided in the extension station unit 290C by a connection cable (not shown).

増設筐体ユニット180aには、両面プリント基板である増設基板6aが取り付け固定されている。
増設基板6aには、入出力インタフェース回路および選択切り換え回路等の回路部品が搭載されるとともに、前段の送出側コネクタ8と契合する受け取り側コネクタ7と、後段用の送出側コネクタ8が表面実装されている。
An extension board 6a, which is a double-sided printed board, is attached and fixed to the extension housing unit 180a.
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 search signal line 12a for transmitting the station number setting search signal CF1 is connected among the terminals of the receiving side connector 7 and the terminals of the sending side connector 8 in the additional enclosure unit 180a. The terminals are connected to each other by through-hole plating provided on the extension board 6a.
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 / output connector 9a serving as a terminal block connector is connected and fixed to the extension board 6a and connected to input / output devices corresponding to the input / output devices 101a to 101c of FIG.
The configuration of the additional enclosure units 180b and 180c is the same as that of the additional enclosure unit 180a.

基本列の最終の接続位置に接続された増設筐体ユニット180cの後段には、終端ブロック160が接続されている。
終端ブロック160には、プリント基板である終端基板6eが取り付け固定されている。終端基板6eには、終端処理回路、接続位置確認回路、および終端処理確認回路等の回路部品が搭載されるとともに、前段の送出側コネクタ8と契合する受け取り側コネクタ7(第2受け取り側コネクタ、第3受け取り側コネクタ)が表面実装されている。
また、終端ブロック160は、送出側コネクタ8に対する防塵カバーを兼ねたものであり、基本筐体ユニット110E、拡張親局ユニット190C、あるいは増設筐体ユニット180a〜180cの端面位置に嵌合取り付けされる。
ここで、基本筐体ユニット110Eと終端ブロック160とは、互いに契合して出荷される。
A terminal block 160 is connected to the subsequent stage of the additional enclosure unit 180c connected to the final connection position in the basic row.
A termination substrate 6e, which is a printed circuit board, is attached and fixed to the termination block 160. Circuit components such as a termination processing circuit, a connection position confirmation circuit, and a termination processing confirmation circuit are mounted on the termination board 6e, and a reception side connector 7 (second reception side connector, A third receiving side connector) is surface mounted.
The terminal block 160 also serves as a dust-proof cover for the sending-side connector 8, and is fitted and attached to the end face position of the basic housing unit 110E, the extended master station unit 190C, or the additional housing units 180a to 180c. .
Here, the basic casing unit 110E and the end block 160 are shipped in a mutually intertwined manner.

拡張子局ユニット290Cには、バッファ回路を搭載した両面プリント基板である拡張基板4bが取り付け固定されている。
拡張基板4bには、子局第1コネクタ297aおよび子局第2コネクタ297bが接続固定されている。子局第1コネクタ297aは、接続ケーブルによって、親局コネクタ197と接続されている。また、子局第2コネクタ297bは、接続ケーブルによって、拡張孫局ユニット390Cに設けられた孫局第1コネクタ397aと接続されている。
また、拡張基板4bには、後段用の送出側コネクタ8(第3送出側コネクタ)が表面実装されている。
ここで、拡張子局ユニットと終端ブロック260とは、互いに契合して出荷される。
An extension board 4b, which is a double-sided printed board mounted with a buffer circuit, is attached and fixed to the extension station unit 290C.
A slave station first connector 297a and a slave station second connector 297b are connected and fixed to the extension board 4b. The slave station first connector 297a is connected to the master station connector 197 by a connection cable. The slave station second connector 297b is connected to the grandchild station first connector 397a provided in the extended grandchild station unit 390C by a connection cable.
Further, on the extension board 4b, a sending-side connector 8 (third sending-side connector) for the rear stage is surface-mounted.
Here, the extension station unit and the termination block 260 are shipped after being engaged with each other.

なお、拡張子局ユニット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 additional enclosure units 180a to 180c, 280a to 280c, and 380a to 380c respectively provided in the basic row, the extended row, and the extended grandchild row have different functions depending on the models, but the same functions are provided. It has the same structure and can be freely connected to any column.
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 programmable controller 100E is attached via a DIN rail (not shown) with the lower side of FIG. 9 as a wall surface.
Therefore, the CPU board 1, the input / output board 2, and the power supply board 3 are installed in parallel to the wall surface, and the input / output connector 9 has a terminal block structure that is long in the left-right direction in two vertical rows.
That is, the dimension in the left-right direction of the basic casing unit 110E is determined by the number of input / output units built in the basic casing unit 110E.

この発明の実施の形態5に係るユニット形プログラマブルコントローラ100Eによれば、増設筐体ユニット180a〜180c、280a〜280c、380a〜380cは、入出力インタフェース回路と選択切り換え回路とを搭載した両面プリント基板である増設基板6aを含み、増設基板6aは、一方の配線面に受け取り側コネクタ7が表面実装されるとともに、他方の配線面に送出側コネクタ8が表面実装され、基本列用の局番設定検索信号CF1を伝達する信号線を除く複数の制御信号線および複数ビットのデータバスは、受け取り側コネクタ7から送出側コネクタ8に貫通して後段に接続された増設筐体ユニットに接続され、基本列用の局番設定検索信号CF1は、受け取り側コネクタ7から選択切り換え回路に入力され、選択切り換え回路からの出力信号が、次段の増設筐体ユニットに対する局番設定検索信号として、送出側コネクタ8から送出される。
そのため、
従って、局番設定検索信号CF1の迂回接続と、その他の制御信号線やデータバスの貫通接続とを容易に行うことができる。
According to the unit-type programmable controller 100E according to the fifth embodiment of the present invention, the additional enclosure units 180a to 180c, 280a to 280c, and 380a to 380c are double-sided printed boards on which an input / output interface circuit and a selection switching circuit are mounted. The extension board 6a includes a receiving-side connector 7 on the surface of one wiring surface and a sending-side connector 8 on the other wiring surface. A plurality of control signal lines and a plurality of bit data buses excluding the signal line for transmitting the signal CF1 are connected to an extension casing unit that penetrates from the receiving side connector 7 to the sending side connector 8 and is connected to the subsequent stage. Station number setting search signal CF1 is input from the receiving connector 7 to the selection switching circuit and is selected. The output signal from the Rikae circuit, as station number setting search signal for the next stage of the expanded chassis units are delivered from the delivery side connector 8.
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 basic housing unit 110E further includes a second sending-side connector 8a that engages with the receiving-side connector 7, and the end block 160 further includes a second receiving-side connector 7 that engages with the sending-side connector 8a. The sending-side connector 8a and the second receiving-side connector 7 are shipped after being engaged with each other, and when the additional housing unit is expanded and used, the second receiving-side connector 7 is connected to the final connection position. Relocation contract is made to the sending connector 8 of the unit.
Therefore, it is possible to prevent the occurrence of operation troubles due to unarrangement of the end block 160 or connection leakage.

また、基本筐体ユニット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 basic chassis unit 110E and the terminal block 160, an extension station unit connected to the extension master station unit, and an extension column extension connected to the subsequent stage of the extension station unit Enclosure units 280a to 280c and extended column termination block 260, an extended grandchild station unit connected to the extension station unit, an extended grandchild row additional chassis unit 380a to 380c and an extension connected to the subsequent stage of the extended slave station unit The extension station unit or the extended slave station unit includes a third sending side connector 8 that engages with the receiving side connector 7, and the end blocks 260 and 360 are connected to the sending side connector 8. It further includes a third receiving side connector 7 to be engaged, and the third sending side connector 8 and the third receiving side connector 7 are: When the extension chassis unit is expanded and used via the extension station unit or the extension sub-station unit, the extension chassis in which the third receiving side connector 7 is connected to the final connection position is used. Relocation contract is made to the sending connector 8 of the unit.
Therefore, it is possible to prevent the occurrence of an operation trouble due to unarrangement of the extended row termination block 260 or the extended grandchild row termination block 360 or connection leakage.

この発明の実施の形態1に係るユニット形プログラマブルコントローラを示す構成図である。It is a block diagram which shows the unit type programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るユニット形プログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the unit type programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るユニット形プログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the unit type programmable controller which concerns on Embodiment 1 of this invention. この発明の実施の形態2に係るユニット形プログラマブルコントローラを示す構成図である。It is a block diagram which shows the unit type programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るユニット形プログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the unit type programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るユニット形プログラマブルコントローラの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the unit type programmable controller which concerns on Embodiment 2 of this invention. この発明の実施の形態3に係るユニット形プログラマブルコントローラを示す構成図である。It is a block diagram which shows the unit type programmable controller which concerns on Embodiment 3 of this invention. この発明の実施の形態4に係るユニット形プログラマブルコントローラを示す構成図である。It is a block diagram which shows the unit type programmable controller which concerns on Embodiment 4 of this invention. この発明の実施の形態5に係るユニット形プログラマブルコントローラを示す構成図である。It is a block diagram which shows the unit type programmable controller which concerns on Embodiment 5 of this invention.

符号の説明Explanation of symbols

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異常判定手段は、入出力インタフェース回路に設定した局番と、局番が設定された入出力インタフェース回路から確認返信された局番とが一致しない場合に異常判定し、
前記設定異常処理手段は、前記第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から請求項12までの何れか1項に記載のユニット形プログラマブルコントローラ。   Among the plurality of station number setting search signals, a signal line for transmitting a station number setting search signal excluding a station number setting search signal for the basic column and a plurality of signal lines for transmitting the plurality of connection confirmation signals are respectively the extensions. The unit-type programmable controller according to any one of claims 10 to 12, wherein the unit-type programmable controller is transferred to different signal lines by being cross-connected in the station unit. 前記基本筐体ユニットは、前記マイクロプロセッサの動作を監視するウォッチドッグタイマをさらに含み、
前記拡張子局ユニットおよび前記拡張孫局ユニットの少なくとも一方は、前記拡張列増設筐体ユニット、あるいは前記拡張孫列増設筐体ユニットに設けられた出力インタフェース回路を出力停止または現状保持する停止論理回路をさらに含み、
前記ウォッチドッグタイマは、前記マイクロプロセッサが出力する暴走監視用パルス信号のパルス幅が所定幅よりも大きくなった場合に、前記マイクロプロセッサおよび前記停止論理回路に暴走異常検出信号を出力して、前記マイクロプロセッサのリセット処理および動作停止、あるいは再起動を行い、
前記停止論理回路は、前記暴走異常検出信号を受信した場合と、前記拡張列用接続確認信号、あるいは前記拡張孫列用接続確認信号が、前記拡張列終端ブロック、あるいは前記拡張孫列終端ブロックの未接続状態を示す場合とに、貫通停止信号線を介して前記出力インタフェース回路の出力停止または現状保持を行うことを特徴とする請求項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受け取り側コネクタとは、互いに契合して出荷され、前記増設筐体ユニットを増設使用する際に、前記第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.
JP2006140340A 2006-05-19 2006-05-19 Unit-type programmable controller Expired - Fee Related JP4290710B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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