JPH0158524B2 - - Google Patents
Info
- Publication number
- JPH0158524B2 JPH0158524B2 JP20566281A JP20566281A JPH0158524B2 JP H0158524 B2 JPH0158524 B2 JP H0158524B2 JP 20566281 A JP20566281 A JP 20566281A JP 20566281 A JP20566281 A JP 20566281A JP H0158524 B2 JPH0158524 B2 JP H0158524B2
- Authority
- JP
- Japan
- Prior art keywords
- output
- address
- input
- rack
- power
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/04—Program control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/11—Plc I-O input output
- G05B2219/1125—I-O addressing
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】
この発明は、プログラマブル・コントローラの
入出力装置に係わり、特に入力回路又は出力回路
を一定回路数毎にまとめて1チヤンネルにすると
ともに、搭載チヤンネル数の異なる複数種の入力
又は出力カードを形成し、更にこの入力又は出力
カードを一定枚数接続するための入出力ラツクを
設けてなるプログラマブル・コントローラにおい
て、前記入力回路又は出力回路を1チヤンネル単
位で駆動しつつも、各チヤンネル、カード及び入
出力ラツクに対して最小ビツト数のアドレスバス
によりアクセスすることを可能としたプログラマ
ブル・コントローラの入出力装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an input/output device for a programmable controller, and in particular, to combine input circuits or output circuits into one channel for each fixed number of circuits, and to combine multiple types of input circuits with different numbers of installed channels. Or, in a programmable controller which forms an output card and is further provided with an input/output rack for connecting a certain number of these input or output cards, while driving the input circuit or output circuit in units of channels, each channel This invention relates to an input/output device for a programmable controller that allows access to cards and input/output racks using an address bus with a minimum number of bits.
2のK乗ビツトの広さを有する入出力アドレス
空間を、1チヤンネルあたり2のL乗ビツトのア
ドレスからなる複数チヤンネルに分割し、かつ入
力又は出力回路を1チヤンネルあたり2のL乗回
路数からなる2のZ乗(Zは相異なる複数個の整
数)チヤンネル数だけそれぞれ搭載した搭載チヤ
ンネル数の異なる複数種の入力又は出力カードを
設け、更に前記入力又は出力カードが接続可能な
2のN乗個のカードコネクタを有する複数個の入
出力ラツクを設けたプログラマブル・コントロー
ラにおいて、各入力又は出力回路に対して1チヤ
ンネル単位でアクセスしようとする場合、各カー
ドコネクタに対して任意のチヤンネル数が搭載さ
れたカードを接続可能に構成するためには、通常
入出力ラツクアドレス、入出力カードアドレス及
びチヤンネルアドレスにそれぞれ対応する3本の
専用のアドレスバスを必要とする。 An input/output address space having a width of 2 K bits is divided into multiple channels consisting of addresses of 2 L bits per channel, and input or output circuits are divided from the number of 2 L circuits per channel. A plurality of types of input or output cards each having a different number of installed channels are provided, each having a number of channels equal to 2 to the Z power (Z is a plurality of different integers), and furthermore, 2 to the N power to which the input or output cards can be connected. In a programmable controller with multiple input/output racks each having 1 card connector, if you want to access each input or output circuit in units of 1 channel, any number of channels can be installed for each card connector. In order to configure the card to be connectable, three dedicated address buses are usually required, each corresponding to an input/output rack address, an input/output card address, and a channel address.
ところが、このように3本のアドレスバスを設
けた場合、各アドレスラインの最大桁数は最大ラ
ツク数、最大カード数及び最大チヤンネル数に対
応して決定されるため実際の入出力回路に対応す
るアドレス空間は2のK乗の広さで足りるのに対
し、大幅に無駄なアドレス空間が存在することと
なり、極めて不経済な設計とならざるを得ない。 However, when three address buses are provided in this way, the maximum number of digits for each address line is determined according to the maximum number of racks, the maximum number of cards, and the maximum number of channels, so it does not correspond to the actual input/output circuit. Although it is sufficient for the address space to be as wide as 2 to the K power, there is a large amount of wasted address space, resulting in an extremely uneconomical design.
また、このように入力又は出力回路を、チヤン
ネル、カード及びラツク単位に分割し、ラツク単
位で入出力回路を任意の場所に設置可能に構成し
ようとすると、各チヤンネルについては当該カー
ド内の固定(絶対)アドレス、各カードについて
は当該ラツク内の固定(絶対)アドレスを付すこ
とにより、それぞれ識別することが可能である
が、各ラツクについては全体のラツク数及び各ラ
ツクの配置等によつてアドレスが変更するため、
上述のような固定アドレスを付すことができず、
このためユーザ側の仕様に合せて変更可能なアド
レス設定器を設けざるを得ない。このため、従来
この種のPCにおいては、しばしばアドレス設定
器の設定誤りによつて、入力又は出力データが間
違つたラツクへと転送され、予期せぬ誤動作が招
来されるという問題があつた。 Also, if you divide the input or output circuit into channels, cards, and racks in this way, and attempt to configure the input/output circuit for each rack so that it can be installed at any location, each channel will be fixed ( It is possible to identify each card by assigning a fixed (absolute) address within the rack, but each rack has an address based on the total number of racks and the arrangement of each rack. changes, so
It is not possible to attach a fixed address as mentioned above,
Therefore, it is necessary to provide an address setting device that can be changed according to the user's specifications. For this reason, conventional PCs of this type have had the problem that input or output data is often transferred to the wrong rack due to setting errors in the address setting device, resulting in unexpected malfunctions.
この発明は上記の問題を解決するためになされ
たもので、その目的とするところはこの種の入出
力装置において、入出力ラツクに設けられ各コネ
クタに対して、搭載チヤンネル数の異なる複数種
の入力又は出力カードの中から任意のカードを選
択的に接続可能に構成しつつも、各カードのチヤ
ンネルに対して最小ビツト数のアドレスバスによ
りアクセスを可能とし、更にCPUに対して各入
出力ラツクを一定の順序でいもづる式に接続する
ことにより、何等特別なアドレス設定手段を設け
ずとも、各ラツクに対して固有アドレスを割り付
け可能とすることにある。 This invention was made in order to solve the above-mentioned problem, and its purpose is to provide multiple types of connectors with different numbers of installed channels to each connector provided in the input/output rack in this type of input/output device. While the configuration allows for selective connection of any input or output card, the channel of each card can be accessed using an address bus with the minimum number of bits, and each input/output rack can be connected to the CPU. By connecting the racks in a fixed order in a sequential manner, it is possible to allocate a unique address to each rack without providing any special address setting means.
この発明は上記の目的を達成するために、
CPUへ通ずるアドレスバスの必要上位桁を、各
ラツク内に設けられた演算回路を介していもづる
式に接続せしめるとともに、各ラツクには演算デ
ータの切替設定器を設け、更に前記演算手段の演
算結果を所定基準データに基づいて大小比較する
デジタルマルチコンパレータを設けることによ
り、各ラツクに対して固有アドレスを割り付ける
ことを可能とし、他方各カードコネクタのカード
識別用共通ラインの重み付けを、前記デジタルマ
ルチコンパレータの出力に基づいて切替えるライ
ンセレタタを設けることによつて、最小ビツト数
のアドレスバスにより各カードの各チヤンネルに
対してアクセスを可能としたものである。 In order to achieve the above object, this invention
The necessary high-order digits of the address bus leading to the CPU are connected in a flexible manner through an arithmetic circuit provided in each rack, and each rack is provided with an arithmetic data switch and setter, and furthermore, the arithmetic results of the arithmetic means are By providing a digital multi-comparator that compares the size based on predetermined reference data, it is possible to assign a unique address to each rack, and on the other hand, the weighting of the common line for card identification of each card connector is determined by the digital multi-comparator. By providing a line selector that switches based on the output, each channel of each card can be accessed using an address bus with a minimum number of bits.
以下に、この発明の好適な一実施例を添付図面
に従つて詳細に説明する。 Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.
第1図に示す如く、PCの基本的なシステム構
成は、外部センサ等からの入力信号を取込むため
の入力回路1と、外部負荷機器を駆動するための
出力回路2と、ユーザプログラムを記憶させたユ
ーザプログラムメモリ3と、入力回路1から取込
まれた入力データを入出力メモリ4内の所定の入
力エリアに書込むとともに、この書込まれた入力
データに基づいて、プログラムメモリ3に記憶さ
れたユーザ命令を逐次実行し、その実行結果で入
出力メモリ4の所定の出力エリアを書替えるとと
もに、この書替えられたデータを出力回路2へと
転送するCPU5とから構成されており、ワーキ
ングメモリ6はCPU5における演算途中のワー
キングエリアとして使用され、更にCPU5の動
作を規定するシステムプログラムはシステムプロ
グラムメモリ7に記憶されている。 As shown in Figure 1, the basic system configuration of a PC includes an input circuit 1 for receiving input signals from external sensors, an output circuit 2 for driving external load equipment, and a memory for storing user programs. The user program memory 3 and the input data taken in from the input circuit 1 are written to a predetermined input area in the input/output memory 4, and the data is stored in the program memory 3 based on the written input data. It consists of a CPU 5 that sequentially executes user commands, rewrites a predetermined output area of the input/output memory 4 with the execution results, and transfers the rewritten data to the output circuit 2, and a working memory. 6 is used as a working area during calculations in the CPU 5, and a system program that defines the operation of the CPU 5 is stored in a system program memory 7.
第2図に示す如く、入出力メモリ4内の入出力
エリアには、それぞれ入力又は出力回路の1回路
に割り付けことが可能な2の9乗(=512)ビツ
トの広さを有する記憶エリアが設けられており、
特にこの例では1ワード2の3乗(=8)ビツト
からなる2の(9−3)乗(=64)ワード構成と
なつている。 As shown in FIG. 2, the input/output area in the input/output memory 4 has a storage area with a width of 2 to the 9th power (=512) bits that can be allocated to one input or output circuit. It is provided,
In particular, in this example, each word has a word structure of 2 to the power of 2 (9-3) (=64) consisting of 2 to the power of 2 (=8) bits.
次に、入力回路又は出力回路の1回路分にそれ
ぞれ割り当てられる2の9乗(=512)ビツトの
広さを有する入出力アドレス空間は、1チヤンネ
ル2の3乗(=8)個のアドレスからなる2の
(9−3)乗(=64)チヤンネルに分割され、各
入力又は出力カードには、入力又は出力回路が2
の0乗(=1)又は2の2乗(=4)チヤンネル
(1チヤンネルは2の3乗(=8)回路数とする)
だけ搭載され、これにより搭載チヤンネル数が1
と4とからなる2種類の入力又は出力カードが用
意されている。 Next, the input/output address space, which has a width of 2 to the 9th power (=512) bits and is allocated to each input circuit or output circuit, is made up of 2 to the 3 power of 2 (=8) addresses for one channel. Each input or output card has two input or output circuits.
0th power (=1) or 2 to the 2nd power (=4) channels (one channel has 2 to the 3rd power (=8) number of circuits)
This reduces the number of installed channels to 1.
Two types of input or output cards are available:
そして、これらの入力又は出力カードは、後述
する入出力ラツクに設けられた2の3乗(=8)
個のカードコネクタに接続可能に構成されてい
る。 These input or output cards are installed in the input/output rack described later.
It is configured so that it can be connected to multiple card connectors.
次に、この実施例に係わるPCは、前記ユーザ
プログラムメモリ3、入出力メモリ4、CPU5、
ワーキングメモリ6及びシステムプログラムメモ
リ7を一体に収容したCPUユニツト(図示せず)
と複数台の入出力ラツク#0〜#4とから構成さ
れる。そして、各入出力ラツク内には、2の3乗
(=8)枚の入力又は出力カードが着脱可能に取
り付けられており、この例では第3図に示す如く
#1ラツク内には2の2乗(=4)チヤンネル用
カードが2の3乗(=8)枚取り付けられてお
り、他方#0,#2〜#4ラツク内には、2の0
乗(=1)チヤンネル用のカードが2の3乗(=
8)枚取り付けられている。 Next, the PC according to this embodiment includes the user program memory 3, the input/output memory 4, the CPU 5,
A CPU unit (not shown) that integrally accommodates working memory 6 and system program memory 7
and a plurality of input/output racks #0 to #4. In each input/output rack, 2 to the power of 3 (=8) input or output cards are removably attached, and in this example, as shown in FIG. Two to the third power (=8) cards for square (=4) channels are attached, and on the other hand, in racks #0, #2 to #4, there are cards for 2 to the third power (=8).
The card for the power (=1) channel is 2 to the power of 3 (=
8) Attached.
次に、第4図は各入出力ラツク内に設けられる
インターフエイスの電気的な構成を示すブロツク
図である。同図において、アドレスデータ入力端
子T3〜T5は、当該ラツクが初段ラツクとして
使用される場合には、前述したCPUユニツトの
アドレスデータ送出端子へ通ずる9−3(=6)
本のアドレスラインA00〜A05の上位3本A
03〜A05へと接続され、かつ当該ラツクが次
段以降のラツクとして使用される場合には、各前
段ラツクのアドレスデータ送出端子T3′〜T
5′へと接続される。 Next, FIG. 4 is a block diagram showing the electrical configuration of the interface provided in each input/output rack. In the figure, address data input terminals T3 to T5 are connected to address data output terminals 9-3 (=6) of the aforementioned CPU unit when the rack is used as a first-stage rack.
The top three A00 to A05 address lines of the book
03 to A05, and when the rack is used as a rack in the next stage or later, the address data sending terminals T3' to T3 of each previous stage rack are connected to
5'.
数値設定器8は、前記各カードの搭載チヤンネ
ル数に対応する数値2の0乗(=1)、2の2乗
(=4)の1つを切替設定可能に構成されている。 The numerical value setter 8 is configured to be able to switch and set one of the numerical values 2 to the 0th power (=1) and 2 to the 2nd power (=4) corresponding to the number of installed channels of each card.
演算回路9は、前記アドレスデータ入力端子T
3〜T5から入力されるアドレス数値データに対
して、前記数値設定器8の設定数値を加算するよ
うに構成されている。デジタルマルチコンパレー
タ10は、前記演算回路9の演算結果に相当する
数値データを、前記数値設定器8における設定数
値2の0乗(=1)、2の2乗(=4)に対応す
る2つの数値データ2の0乗(=1)、2の2乗
(=4)と大小比較し、その比較結果が2の0乗
よりも小さい場合には、ライン11に“0”を出
力し、他方の2の2乗(=4)よりも小さい場合
には、ライン12に“0”を出力する。 The arithmetic circuit 9 has the address data input terminal T.
The configuration is such that the numerical value set by the numerical value setting device 8 is added to the address numerical data input from T3 to T5. The digital multi-comparator 10 converts the numerical data corresponding to the calculation result of the calculation circuit 9 into two sets corresponding to the set numerical value 2 in the numerical value setter 8 to the 0th power (=1) and the squared power of 2 (=4). The numerical data 2 to the 0th power (=1) and 2 to the 2nd power (=4) are compared in magnitude, and if the comparison result is smaller than 2 to the 0th power, "0" is output to line 11, and the other If it is smaller than 2 squared (=4), "0" is output to line 12.
アドレスデータ出力端子T3′〜T5′は、前記
演算回路9の演算結果に相当する数値データを、
後段の入出力ラツクへ送出するために使用され
る。 Address data output terminals T3' to T5' output numerical data corresponding to the calculation results of the calculation circuit 9.
Used to send to the subsequent I/O rack.
下位アドレスデータ入力端子T0〜T2は、前
記CPUユニツトへ通ずるアドレスラインA00
〜A05の中で、下位3ビツトA00〜A02に
接続される。 The lower address data input terminals T0 to T2 are connected to the address line A00 leading to the CPU unit.
~A05, it is connected to the lower 3 bits A00~A02.
ラインセレクタ回路13は、前記CPUユニツ
トから出力される9−3(=6)本のアドレスラ
インの中から、前記数値設定器8における設定数
値2のZ乗(Z=0又は2)及び前記各ラツク内
コネクタ数2のN乗(N=3)に対応するN本の
ライン(第2のZ乗ビツト、第2の(Z+1)乗
ビツト、……第2の(Z+N−1)乗ビツト)を
選択出力するように構成されている。例えば、数
値設定器8において2の0乗(=1)が設定さ
れ、かつ前記ラツク内のコネクタ数が2の3乗
(=8)である場合、ラインセレクタ回路13の
端子Y1〜Y3には、3本のライン(第2の0乗
ビツトA00、第2の1乗ビツトA01、第2の
乗ビツトA02)が出力され、これに対して前記
数値設定器8における設定数値が2の2乗(=
4)で、かつ前記コネクタ数が2の3乗(=8)
である場合には、端子Y1〜Y3からは3本のビ
ツトライン(第2の2乗ビツトA02、第2の3
乗ビツトA03、第2の4乗ビツトA04)が出
力されることとなる。 The line selector circuit 13 selects from among the 9-3 (=6) address lines output from the CPU unit the set value 2 in the value setter 8 to the Z power (Z=0 or 2) and each of the above. N lines corresponding to the number of connectors in the rack (2) to the Nth power (N=3) (second Z-th bit, second (Z+1)-th power bit, ... second (Z+N-1)-th power bit) is configured to selectively output. For example, if 2 to the 0th power (=1) is set in the numerical setting device 8 and the number of connectors in the rack is 2 to the 3rd power (=8), the terminals Y1 to Y3 of the line selector circuit 13 are , three lines (second 0th power bit A00, second 1st power bit A01, second power bit A02) are output, and on the other hand, the numerical value set in the numerical value setting device 8 is 2 to the 2nd power. (=
4), and the number of connectors is 2 to the 3rd power (=8)
In this case, three bit lines (second square bit A02, second third bit line
The power bit A03 and the second power bit A04) are output.
1カード1チヤンネル選択回路14は、前記数
値設定器8において数値2の2乗(=4)が設定
されている場合、アドレスラインA00,A01
に“11”(不論理の零の意味)が出力されたこと
を検出するもので、この1カード1チヤンネル選
択回路の出力は、前記ラインセレクタ回路13の
端子A4に入力される。 1 card 1 channel selection circuit 14 selects address lines A00 and A01 when the value setter 8 is set to the square of 2 (=4).
The output of this one card one channel selection circuit is input to the terminal A4 of the line selector circuit 13.
他方、ラインセレクタ回路13の端子B4,B
5には、前記デジタルマルチコンパレータ10の
2の0乗(=1)出力が入力され、更に同ライン
セレクタ回路13の端子A5には、デジタルマル
チコンパレータ10の2の2乗(=4)出力が入
力されている。 On the other hand, terminals B4 and B of the line selector circuit 13
5, the 2 to the 0th power (=1) output of the digital multi-comparator 10 is inputted, and furthermore, the 2 to the 0th power (=4) output of the digital multi-comparator 10 is input to the terminal A5 of the same line selector circuit 13. It has been entered.
このため、数値設定器8において2の0乗(=
1)を設定したことに伴い、ラインセレクタ回路
13の端子Sに“0”が入力されると、ラインセ
レクタ回路13においてはB入力側が選択され、
出力端子Y4及びY5にはそれぞれデジタルマル
チコンパレータ10の2の0乗(=1)出力が現
れる。 Therefore, the value setter 8 uses 2 to the 0th power (=
1) When "0" is input to the terminal S of the line selector circuit 13, the B input side is selected in the line selector circuit 13,
2 to the power of 0 (=1) output from the digital multi-comparator 10 appears at the output terminals Y4 and Y5, respectively.
これに対して数値設定器8において2の2乗
(=4)を設定したことに伴い、ラインセレクタ
回路13の端子Sに“1”が入力されると、ライ
ンセレクタ回路13においてはA入力が選択さ
れ、出力端子Y4には1カード1チヤンネル検出
回路14の出力が現れ、他方出力端子Y5にはデ
ジタルマルチコンパレータ10の2の2乗(=
4)出力が現れることとなる。 On the other hand, when "1" is input to the terminal S of the line selector circuit 13 due to the setting of the square of 2 (=4) in the numerical value setter 8, the A input is input to the line selector circuit 13. selected, the output of the 1 card 1 channel detection circuit 14 appears at the output terminal Y4, and the 2 squared (=
4) Output will appear.
次いで、下位アドレスデータ入力端子T0,T
1及びラインセレクタ回路13の各出力端子Y1
〜Y5は、ラツク内に固定されたマザーボード上
の導電パターンを介して、各カードコネクタC0
〜C7の該当する端子へと接続される。 Next, lower address data input terminals T0, T
1 and each output terminal Y1 of the line selector circuit 13
~Y5 connects each card connector C0 via a conductive pattern on the motherboard fixed in the rack.
~C7 is connected to the corresponding terminal.
各カードコネクタC0〜C7のコネクタ固有ア
ドレス出力端子CS0〜CS2は、当該コネクタラ
ツク内固有(絶対)アドレスを示すデータを出力
するように構成されている。 Connector specific address output terminals CS0 to CS2 of each card connector C0 to C7 are configured to output data indicating a specific (absolute) address within the connector rack.
チヤンネルアドレス出力端子DAB0,DAB1
は、CPUのアドレスデータ送出端子へ直接通ず
る6本のアドレスラインの中で、下位2本のビツ
トライン(第2の0乗ビツトA00、第2の1乗
ビツトA01)へ接続されており、これにより各
チヤンネルのカード内固有アドレスを示すデータ
を出力するように構成されている。 Channel address output terminal DAB0, DAB1
is connected to the lower two bit lines (second 0th power bit A00, second 1st power bit A01) among the six address lines that lead directly to the address data sending terminal of the CPU. It is configured to output data indicating the unique address within the card of each channel.
コネクタ指定アドレス出力端子AB0〜AB2
は、ラインセレクタ回路13の端子Y1〜Y3か
ら出力される3本のラインに接続され、これによ
り各コネクタに相当するラツク内固有(絶対)ア
ドレスを示すデータを出力するように構成されて
いる。 Connector specified address output terminal AB0~AB2
are connected to three lines output from terminals Y1 to Y3 of the line selector circuit 13, and are configured to output data indicating a unique (absolute) address within the rack corresponding to each connector.
最大チヤンネル数出力端子AB3,DAB3は、
前記ラインセレクタ回路13の出力端子Y4,Y
5へとそれぞれ接続され、前記数値設定器8にお
いて数値2の0乗(=1)が設定されている場
合、端子AB3には当該ラツクの最大搭載チヤン
ネル数が8チヤンネルであることを示す1ビツト
信号が出力され、他方前記数値設定器8におい
て、数値2の2乗(=4)が設定されている場
合、端子DAB3には当該ラツクの最大搭載チヤ
ンネル数が32チヤンネルであることを示す1ビツ
ト信号が出力される。 The maximum channel number output terminals AB3 and DAB3 are
Output terminals Y4, Y of the line selector circuit 13
5, and when the value 2 to the 0th power (=1) is set in the numerical value setter 8, a 1 bit indicating that the maximum number of installed channels of the rack concerned is 8 channels is sent to the terminal AB3. When a signal is output and the value 2 squared (=4) is set in the value setter 8, a 1-bit signal is sent to the terminal DAB3 indicating that the maximum number of channels installed in the rack is 32. A signal is output.
これに対して、前記数値設定器8において数値
2の0乗(=1)が設定されている場合、端子
DAB3には前記デジタルマルチコンパレータ1
0の2の0乗(=1)出力が出力され、他方前記
数値設定器8において数値2の2乗(=4)が設
定されている場合、端子AB3には前記1カード
1チヤンネル選択回路14の出力が出力される。 On the other hand, if the numerical value setter 8 sets the numerical value 2 to the 0th power (=1), the terminal
DAB3 has the digital multi comparator 1
When 0 to the power of 2 (=1) is output, and on the other hand, the square of 2 (=4) is set in the numerical value setter 8, the terminal AB3 is connected to the 1 card 1 channel selection circuit 14. The output will be output.
次に、第5図は2の0乗(=1)チヤンネル用
のカードに搭載されるチヤンネル能動化制御回路
のブロツク図、第6図は2の2乗(=4)チヤン
ネル用のカードに搭載されるチヤンネル能動化制
御回路のブロツク図である。 Next, Figure 5 is a block diagram of the channel activation control circuit installed in a card for 2 to the 0th power (=1) channel, and Figure 6 is a block diagram of the channel activation control circuit installed to a card for 2 to the 2nd power (=4) channel. FIG. 2 is a block diagram of a channel activation control circuit according to the present invention.
これらの図面において、コネクタ固有アドレス
入力端子CS0′〜CS2′は、前記各コネクタのコ
ネクタ固有アドレス出力端子CS0〜CS2へと接
続可能に構成される。 In these drawings, connector-specific address input terminals CS0' to CS2' are configured to be connectable to connector-specific address output terminals CS0 to CS2 of each connector.
コネクタ指定アドレス入力端子AB0′〜AB
2′は、前記各コネクタのコネクタ指定アドレス
出力端子AB0〜AB2へと接続可能に構成され
ている。 Connector specified address input terminal AB0'~AB
2' is configured to be connectable to connector designation address output terminals AB0 to AB2 of each of the connectors.
チヤンネルアドレス入力端子DAB0′,DAB
1′は、前記各コネクタのチヤンネルアドレス出
力端子DAB0,DAB1へと接続可能に構成され
ている。 Channel address input terminal DAB0', DAB
1' is configured to be connectable to channel address output terminals DAB0 and DAB1 of each of the connectors.
最大チヤンネル数信号入力端子AB3′,DAB
3′は、それぞれ各前記各コネクタの最大チヤン
ネル数信号出力端子AB3,DAB3へと接続され
る。 Maximum number of channels signal input terminal AB3', DAB
3' are connected to the maximum channel number signal output terminals AB3 and DAB3 of each of the connectors, respectively.
E−OR回路群15の各出力は、コネクタ固有
アドレス入力端子CS0′〜CS2′のデータと、コ
ネクタ指定アドレス入力端子AB0′〜AB2′の
データとの一致に基づいてそれぞれ“1”を出力
し、またアンドゲート16は、最大チヤンネル数
信号入力端子AB3′又はDAB3′に“0”が到来
する度に開状態となる。 Each output of the E-OR circuit group 15 outputs "1" based on the match between the data of the connector-specific address input terminals CS0' to CS2' and the data of the connector specified address input terminals AB0' to AB2'. , and the AND gate 16 is opened every time "0" arrives at the maximum channel number signal input terminal AB3' or DAB3'.
そして、2の0乗(=1)チヤンネル用カード
の場合、第5図に示す如くこのアンドゲート16
の出力が1チヤンネル分の入力回路又は出力回路
用の能動化信号となる。 In the case of a 2 to the 0th power (=1) channel card, this AND gate 16 is used as shown in FIG.
The output becomes an activation signal for the input circuit or output circuit for one channel.
これに対して、2の2乗(=4)チヤンネル用
のカードの場合、第6図に示す如くアンドゲート
16の出力は、チヤンネルデコーダ17に対する
イネーブル信号となり、これによりチヤンネルデ
コーダ17からは、前記チヤンネルアドレス入力
端子DAB0′,DAB1′のデータがデコードされ
てCH0〜CH3として出力され、これらの信号
がそれぞれ該当するチヤンネルの入力又は出力回
路に対する能動化信号となるのである。 On the other hand, in the case of a card for 2 squared (=4) channels, the output of the AND gate 16 becomes an enable signal for the channel decoder 17, as shown in FIG. The data on the channel address input terminals DAB0' and DAB1' are decoded and output as CH0 to CH3, and these signals become activation signals for the input or output circuits of the respective channels.
以上の構成において、第3図に示す如くCPU
ユニツトから出力されるアドレスラインA00〜
A05を、各入出力ラツク#0〜#4を介してい
もづる式に接続し、かつ#1ラツクについては数
値設定器を2の2乗(=4)に設定し、他方
#0,#2〜#4ラツクについては、数値設定器
を2の0乗(=1)に設定すると、各ラツク内の
各カードに搭載された入力回路又は出力回路は、
自動的に第3図に示す如く個々にアドレス割り付
けが行なわれる。 In the above configuration, the CPU
Address line A00~ output from the unit
A05 is connected in a flexible manner through each input/output rack #0 to #4, and the numerical value setter is set to the square of 2 (=4) for the #1 rack, and the other racks #0, #2 to #4 are set. For 4 racks, if the value setter is set to 2 to the 0th power (=1), the input circuit or output circuit mounted on each card in each rack will be:
Address assignment is automatically performed individually as shown in FIG.
次いで、第3図に示すCPUユニツトの各アド
レスラインA00〜A05に対して、各入力回路
又は出力回路に対応したアドレスデータを負論理
で送出すると、第7図に示す如く各ラツク内に設
けられた演算回路9の出力側には、当該ラツク内
の入力又は出力回路がアドレス指定されている期
間に限り、2の0乗(=1)又は2の2乗(=
4)よりも小さな数値が出力され、これによりデ
ジタルマルチコンパレータを介して、各ラツクは
自分がアドレス指定を受けていることを検出する
こととなる。 Next, when address data corresponding to each input circuit or output circuit is sent in negative logic to each address line A00 to A05 of the CPU unit shown in FIG. 3, the address data provided in each rack as shown in FIG. On the output side of the arithmetic circuit 9, 2 to the 0th power (=1) or 2 to the 2nd power (=
4) is output, which causes each rack to detect, via the digital multicomparator, that it is being addressed.
一方、このようにして各ラツクがアドレス指定
を受けると、当該ラツクに設定された最大搭載チ
ヤンネル数に応じてラインセレクタ回路13が切
替制御され、その出力端子Y1〜Y3には、当該
ラツクに接続された各カード内の各チヤンネル走
査に同期して歩進するカードアドレスデータが出
力され、他方カードコネクタの端子DAB0,
DAB1には、各カード内のチヤンネルを順次走
査するチヤンネルアドレスデータが供給される。 On the other hand, when each rack receives address designation in this way, the line selector circuit 13 is switched and controlled according to the maximum number of installed channels set for the rack, and its output terminals Y1 to Y3 are connected to the rack. Card address data that advances in synchronization with each channel scan in each card is output, and terminals DAB0 and DAB0 of the other card connector are output.
DAB1 is supplied with channel address data for sequentially scanning the channels in each card.
従つて、第3図示す如く、#1ラツク内に2の
2乗(=4)チヤンネル用カードを2の3乗(=
8)枚接続し、かつ当該ラツクの数値設定器8を
2の2乗(=4)に設定しておきさえすれば、各
カードに搭載された各チヤンネルの入力又は出力
回路は順次アドレス指定され、第4図示すデータ
バス18を介して入力又は出力データの転送が正
常に行なわれることとなる。 Therefore, as shown in Fig. 3, there are 2 squared (=4) channel cards in the #1 rack.
8) and set the numerical value setting device 8 of the rack to the square of 2 (=4), the input or output circuit of each channel mounted on each card can be sequentially addressed. , input or output data is normally transferred via the data bus 18 shown in FIG.
一方、第8図に示す如く、例えば#0ラツク内
に2の2乗(=4)チヤンネル用カードを2の3
乗(=8)枚接続し、当該ラツクの数値設定器を
2の0乗(=1)に設定したとすれば、同図に示
す如く、各カードの第1チヤンネル目だけが実際
の入力又は出力回路として利用されることとな
り、各カードの残り3チヤンネル分は補助リレー
用のアドレスとして使用可能となる。つまり、第
2図に示す入出力メモリの前記3チヤンネル分に
対応するエリアを補助リレー用のアドレスとして
利用することができるのである。 On the other hand, as shown in FIG.
If you connect 8 cards and set the value setting device of the rack to 2 to the 0 power (=1), only the first channel of each card will be used for actual input or input, as shown in the figure. It will be used as an output circuit, and the remaining three channels of each card can be used as addresses for auxiliary relays. In other words, the area corresponding to the three channels of the input/output memory shown in FIG. 2 can be used as the address for the auxiliary relay.
すなわち、#0ラツクにおいて数値2の0乗
(=1)を設定すると、ラインセレクタ回路13
の切替作用により、コネクタC0の端子DAB3
には、デジタルマルチコンパレータ10の2の0
乗(=1)出力が供給されることとなるため、こ
れにより各カード内のチヤンネル走査は行われ
ず、各カード内においては第1チヤンネルのみが
アドレス指定を受けることとなる。 That is, when setting the value 2 to the 0th power (=1) in rack #0, the line selector circuit 13
Due to the switching action of , terminal DAB3 of connector C0
In the digital multi comparator 10 2 0
Since a multiplied (=1) output is provided, there is no channel scanning within each card, and only the first channel within each card is addressed.
更に、第9図に示す如く、#0ラツクに2の0
乗(=1)チヤンネル用のカードを2の3乗(=
8)枚接続し、かつ当該ラツクの数値設定器8を
2の2乗(=4)に設定したものとすれば、各カ
ードは第9図に示す如くアドレス指定を受けるこ
ととなり、同様にして空きチヤンネルを補助リレ
ー用エリアとして使用することが可能となる。す
なわち、数値設定器8を2の2乗(=4)に設定
した場合、ラインセレクタ回路13の切替作用に
よつて、コネクタC0の端子DAB3には、1カ
ード1チヤンネル選択回路14の出力が供給され
ることとなり、これにより第9図に示すごときア
ドレス割り当てが行なわれる訳である。 Furthermore, as shown in Figure 9, 0 of 2 is placed in #0 rack.
Multiply (= 1) channel cards to the power of 2 (=
If 8) cards are connected and the numerical value setter 8 of the rack is set to the square of 2 (=4), each card will receive address designation as shown in Figure 9, and in the same way. It becomes possible to use an empty channel as an auxiliary relay area. That is, when the numerical value setter 8 is set to the square of 2 (=4), the output of the 1-card 1-channel selection circuit 14 is supplied to the terminal DAB3 of the connector C0 by the switching action of the line selector circuit 13. As a result, address assignment as shown in FIG. 9 is performed.
かくして、この実施例に係わるPCによれば、
各入出力ラツクをCPUユニツトに対して順次い
もづる式に接続し、かつ必要に応じて数値設定器
8を切替設定することにより、各ラツク内の各コ
ネクタに2の0乗(=1)又は2の2乗(=4)
チヤンネルいずれのカードを接続した場合にも、
各カード内のチヤンネルにCPUから6本のアド
レスラインでアクセスすることができ、この種
PCにおけるアドレスバスの構成を極めて簡単な
ものとすることができるとともに、各ラツクの固
有アドレスを設定するための可変設定器を設けた
場合のように、アドレス設定誤りによる誤動作も
未然に防止することが可能となる。 Thus, according to the PC related to this example,
By sequentially connecting each input/output rack to the CPU unit and switching the numerical setting device 8 as necessary, each connector in each rack can be set to 2 to the 0th power (=1) or 2 to the power of 2. squared (=4)
No matter which channel card is connected,
Channels within each card can be accessed from the CPU through six address lines, making this type of
To make the configuration of an address bus in a PC extremely simple, and to prevent malfunctions due to address setting errors as in the case where a variable setting device is provided for setting the unique address of each rack. becomes possible.
なお、前記実施例においては、2の9乗ビツト
の広さを有する入出力アドレス空間を、1チヤン
ネルあたり2の3乗ビツトのアドレスからなる2
の6乗チヤンネルに分割し、かつ入力又は出力回
路を1チヤンネルあたり2の3乗(=8)回路か
らなる2の0乗(=1)、2の2乗(=4)チヤ
ンネル数だけそれぞれ搭載した搭載チヤンネル数
の異なる2種類の入力又は出力カードを設け、更
に前記入力又は出力カードが接続可能な2の3乗
(=8)個のカードコネクタを有する入出力ラツ
クを設けたプログラマブル・コントローラの入出
力装置によつて説明したが、この発明は前記実施
例に限定されるものではない。 In the above embodiment, the input/output address space having a width of 2 to the 9th power bit is divided into 2 to 3 bits per channel.
divided into 6 channels, and each channel is equipped with input or output circuits as many as 2 to the 0 power (=1) and 2 to the power of 2 (=4) channels, each consisting of 2 to the 3 power (=8) circuits. A programmable controller is provided with two types of input or output cards having different numbers of installed channels, and further provided with an input/output rack having 2 to the power of 2 (=8) card connectors to which the input or output cards can be connected. Although the input/output device has been described, the present invention is not limited to the above embodiment.
すなわち、2のK乗ビツトの広さを有する入出
力アドレス空間を1チヤンネルあたり2のL乗ビ
ツトのアドレスからなる2の(K−L)乗チヤン
ネルに分割し、かつ入力又は出力回路を1チヤン
ネルあたり2のL乗回路数からなる2のZ乗(Z
=M1、M2、……MP)チヤンネル数だけそれぞ
れ搭載した搭載チヤンネル数の異なるP種の入力
又は出力カードを設け、更に入力又は出力カード
が接続可能な2のN乗個のカードコネクタを有す
る入出力ラツクを設けたプログラマブル・コント
ローラの入出力装置に適用することができる。 In other words, an input/output address space having a width of 2K bits is divided into 2(K-L) channels each having addresses of 2L bits per channel, and the input or output circuit is divided into 2(K-L) channels having a width of 2K bits. 2 to the Z power (Z
= M1, M2, ...MP) Input or output cards of P types each equipped with a different number of installed channels are provided, and the input or output card has 2 N card connectors to which the input or output cards can be connected. It can be applied to an input/output device of a programmable controller provided with an output rack.
そして、この場合、前記各入出力ラツクのそれ
ぞれには当該ラツクが初段ラツクとして使用され
る場合には、CPUのアドレスデータ送出端子へ
通ずる(K−L)本のアドレスラインの上位少な
くともN本へ接続され、かつ当該ラツクが次段以
降のラツクとして使用される場合には、各ラツク
のアドレスデータ送出端子へ接続されるアドレス
データ入力端子と、前記各チヤンネル数に対応す
る数値2のZ乗の1つを切替設定可能な数値設定
器と、前記アドレスデータ入力端子から入力され
たアドレスデータに対して前記数値設定器の設定
数値を加算又は減算する減算回路と、前記演算回
路の演算結果に相当する数値データを前記数値設
定器における設定数値2のZ乗に対応する特定の
数値データと大小比較し、その比較結果を前記設
定数値に対応する該当端子に出力するデジタルマ
ルチコンパレータと、前記演算回路の演算結果に
相当する数値データを後段の入出力ラツクへ送出
するためのアドレスデータ出力端子と、前記
CPUから出力される(K−L)本のアドレスラ
インの中から、前記数値設定器における設定数値
2のZ乗及びコネクタ数2のN乗に対応するN本
のビツトライン(第2のZ乗ビツト、2の(Z+
1)乗ビツト、……第2の(Z+N−1)乗ビツ
ト)を選択出力するラインセレクタ回路等を設け
れば良い。 In this case, in each of the input/output racks, if the rack is used as the first stage rack, at least the upper N of the (K-L) address lines leading to the address data output terminal of the CPU are connected to the input/output racks. If the rack is connected and the rack is used as a rack in the next stage or later, the address data input terminal connected to the address data output terminal of each rack and the Z-th power of the numerical value 2 corresponding to the number of channels are connected. a numerical value setter that can be switched and set; a subtraction circuit that adds or subtracts the set value of the numerical value setter to or from the address data input from the address data input terminal; and a subtraction circuit that corresponds to the calculation result of the calculation circuit. a digital multi-comparator that compares the numerical data set in the numerical value setter with specific numerical data corresponding to the Z power of the set numerical value 2, and outputs the comparison result to the corresponding terminal corresponding to the set numerical value; and the arithmetic circuit. an address data output terminal for sending numerical data corresponding to the calculation result to the subsequent input/output rack;
Among the (K-L) address lines output from the CPU, N bit lines (second Z-th power) corresponding to the Z power of the set value 2 in the numerical value setter and the N power of the number of connectors 2 are selected. , 2 (Z+
1) A line selector circuit or the like may be provided for selectively outputting the power bit, . . . the second (Z+N-1) power bit.
更にこの場合、前記入出力ラツク内に設けられ
た各カードコネクタには、当該コネクタのラツク
内固有アドレス示すデータを出力するコネクタ固
有アドレス出力端子と、CPUのアドレスデータ
送出端子へ通ずる(K−L)本のアドレスライン
の中で、下位少なくともP本(但し、2のMP乗
は最大チヤンネル数)のライン(第2の0乗ビツ
ト、第2の1乗ビツト……第2の(P−1)乗ビ
ツト)へ接続され、かつ各チヤンネルのカード内
固有アドレスを示すデータを出力するチヤンネル
アドレス出力端子と、前記ラインセレクタ回路か
ら出力されN本のビツトラインに接続され、かつ
各コネクタに相当するラツク内固有アドレスを示
すデータを出力するコネクタ指定アドレス出力端
子と、前記デジタルマルチコンパレータの各出力
ラインに接続され、かつ当該ラツクの最大搭載チ
ヤンネル数がN×(2のM1乗)、N×(2のM2
乗)、……N×(2のMP乗)のいずれであるかを
示す信号を出力する複数本の最大チヤンネル数出
力端子とを設ければ良い。 Furthermore, in this case, each card connector provided in the input/output rack has a connector-specific address output terminal that outputs data indicating the unique address within the rack of the connector, and a connector-specific address output terminal that leads to the address data output terminal of the CPU (K-L). ) address lines, the lower at least P (however, 2 to the MP power is the maximum number of channels) lines (second 0th power bit, second 1st power bit... second (P-1 ) a channel address output terminal that is connected to the N bit lines and outputs data indicating a unique address in the card for each channel; and a rack that is output from the line selector circuit and connected to the N bit lines and corresponds to each connector. The connector is connected to the connector designated address output terminal that outputs data indicating the unique address in the rack, and to each output line of the digital multi-comparator, and the maximum number of installed channels of the rack is N x (2 to the power of M1), N x (2 M2 of
. . N×(2 to the power of MP).
更に前記各入力又は出力カードには、前記コネ
クタ固有アドレス出力端子へ接続可能なコネクタ
固有アドレス入力端子と、前記コネクタ指定アド
レス出力端子へ接続可能なコネクタ指定アドレス
入力端子と、前記チヤンネルアドレス出力端子を
構成する各ビツトラインの中で、当該カードの搭
載チヤンネル数に対応する1又は2以上のビツト
に接続可能なチヤンネルアドレス入力端子と、前
記最大チヤンネル数信号出力端子の中で、当該カ
ードの搭載チヤンネル数に対応する端子に接続可
能な最大チヤンネル数信号入力端子と、前記コネ
クタ固有アドレスデータ、前記コネクタ指定アド
レスデータ、前記チヤンネルアドレスデータ及び
前記最大チヤンネル数信号とに基づいて、該当す
るチヤンネルの入力又は出力回路回路を能動化す
る能動化制御回路とを設ければ良い。 Furthermore, each input or output card has a connector specific address input terminal connectable to the connector specific address output terminal, a connector specified address input terminal connectable to the connector specified address output terminal, and the channel address output terminal. Among the constituent bit lines, a channel address input terminal that can be connected to one or more bits corresponding to the number of channels installed on the card, and among the maximum channel number signal output terminals, the number of channels installed on the card. Input or output of the corresponding channel based on the maximum number of channels signal input terminal that can be connected to the terminal corresponding to the terminal, the connector-specific address data, the connector specified address data, the channel address data, and the maximum number of channels signal. An activation control circuit for activating the circuit may be provided.
以上の実施例の説明でも明らかなように、この
発明によれば、この種PCにおけるメーカ側にお
いてのシステム構成の自由度を大幅に向上させる
ことができるとともに、ユーザ側においてはラツ
クアドレスの設定誤り等による誤動作を未然に防
止することができ、この種PCの機能性信頼性を
著しく向上させかつコストダウンが可能となる。 As is clear from the description of the embodiments above, according to the present invention, it is possible to greatly improve the degree of freedom in system configuration on the manufacturer's side in this type of PC, and it is also possible for the user to avoid errors in setting the rack address. This makes it possible to prevent malfunctions caused by such factors, significantly improving the functionality and reliability of this type of PC, and reducing costs.
第1図はPCの基本的なシステム構成を示すブ
ロツク図、第2図は入出力メモリの構成を示すメ
モリマツプ、第3図は入出力ラツクの接続関係
と、各ラツク内に接続されたカード内のアドレス
割り付けを示すブロツク図、第4図は入出力ラツ
ク内のインターフエイスの電気的な構成を示すブ
ロツク図、第5図は1チヤンネルカード用チヤン
ネル能動化回路の構成を示すブロツク図、第6図
は4チヤンネルカード用チヤンネル能動化回路の
構成を示すブロツク図、第7図はアドレスデータ
と各演算回路の出力との関係を示す図、第8図は
8チヤンネル用ラツクに32チヤンネルを搭載した
場合のアドレス割り付けを示す図、第9図は32チ
ヤンネル用ラツクに8チヤンネルを搭載した場合
のアドレス割り付けを示す図である。
1……入力回路、2……出力回路、3……ユー
ザプログラムメモリ、4……入出力メモリ、5…
…CPU、6……ワーキングメモリ、7……シス
テムプログラムメモリ、8……数値設定器、9…
…演算回路、10……デジタルマルチコンパレー
タ、11……2の0乗ビツト出力ライン、12…
…2の2乗ビツト出力ライン、13……ラインセ
レクタ回路、14……1カード1チヤンネル選択
回路、15……EOR回路群、16……アンドゲ
ート、17……チヤンネルデコーダ、18……デ
ータバス、T0〜T2……下位アドレスデータ入
力端子、T3〜T5……アドレスデータ入力端
子、T3′〜T5′……アドレスデータ出力端子、
A00〜A05……CPUへ通ずるアドレスライ
ン、C0〜C7……カードコネクタ、CS0〜SC
2……チヤンネルアドレス出力端子、AB0〜
AB2……コネクタ指定アドレス出力端子、AB
3,DAB3……最大チヤンネル数出力端子、CS
0′〜CS2′……コネクタ固有アドレス入力端子、
AB0′〜AB2′……コネクタ指定アドレス入力
端子、DAB0′,DAB1′……チヤンネルアドレ
ス入力端子、AB3′,DAB3′……最大チヤンネ
ル数信号入力端子。
Figure 1 is a block diagram showing the basic system configuration of a PC, Figure 2 is a memory map showing the input/output memory configuration, and Figure 3 is the connection relationship between input/output racks and the contents of the cards connected to each rack. 4 is a block diagram showing the electrical configuration of the interface in the input/output rack. FIG. 5 is a block diagram showing the configuration of the channel activation circuit for a 1-channel card. The figure is a block diagram showing the configuration of a channel activation circuit for a 4-channel card, Figure 7 is a diagram showing the relationship between address data and the output of each arithmetic circuit, and Figure 8 is a diagram showing the relationship between address data and the output of each arithmetic circuit. FIG. 9 is a diagram showing address allocation when 8 channels are mounted on a 32-channel rack. 1... Input circuit, 2... Output circuit, 3... User program memory, 4... Input/output memory, 5...
...CPU, 6... Working memory, 7... System program memory, 8... Numerical setting device, 9...
...Arithmetic circuit, 10...Digital multi-comparator, 11...2 to the 0th power bit output line, 12...
...2 squared bit output line, 13... Line selector circuit, 14... 1 card 1 channel selection circuit, 15... EOR circuit group, 16... AND gate, 17... Channel decoder, 18... Data bus , T0-T2...lower address data input terminals, T3-T5...address data input terminals, T3'-T5'...address data output terminals,
A00-A05...Address line leading to CPU, C0-C7...Card connector, CS0-SC
2...Channel address output terminal, AB0~
AB2……Connector specified address output terminal, AB
3, DAB3...Maximum channel number output terminal, CS
0'~CS2'...Connector specific address input terminal,
AB0' to AB2'...Connector specification address input terminals, DAB0', DAB1'...Channel address input terminals, AB3', DAB3'...Maximum channel number signal input terminals.
Claims (1)
ス空間を、1チヤンネルあたり2のL乗ビツトの
アドレスからなる複数チヤンネルに分割し、かつ
入力又は出力回路を1チヤンネルあたり2のL乗
回路数からなる2のZ乗(Zは相異なる複数個の
整数)チヤンネル数だけそれぞれ搭載した搭載チ
ヤンネル数の異なる複数種の入力又は出力カード
を設け、更に前記入力又は出力カードが接続可能
な2のN乗個のカードコネクタを有する複数個の
入出力ラツクを設けたプログラマブル・コントロ
ーラの入出力装置であつて; 前記各入出力ラツクのそれぞれには、当該ラツ
クが初段ラツクとして使用される場合には、
CPUから出力される(K−L)本のアドレスラ
インの上位少なくともN本へ接続され、かつ当該
ラツクが次段以降のラツクとして使用される場合
には、各前段ラツクのK−L本のアドレスデータ
送出端子へ接続されるK−L本のアドレスデータ
入力端子と、 前記各チヤンネル数Zにそれぞれ対応する数値
の1つを択一的に設定可能な数値設定器と、 前記アドレスデータ入力端子から入力されたア
ドレス数値データに対して、前記数値設定器の設
定数値を加算又は減算する演算回路と、 前記演算回路の演算結果に相当する数値データ
を、前記数値設定器における設定数値2のZ乗に
対応する特定の数値データと大小比較し、その比
較結果を各設定数値に対応する該当端子に出力す
るデジタルマルチコンパレータと、 前記演算回路の演算結果に相当する数値データ
を、後段の入出力ラツクへ送出するためのK−L
本のアドレスデータ出力端子と、 前記CPUから出力されるK−L本のアドレス
ラインの中から、前記数値設定器における設定数
値(2のZ乗)及び前記コネクタ数(2のN乗)
によつて定められるN本のライン(第2のZ乗ビ
ツト、第2のZ+1乗ビツト、……第2のZ+N
−1乗ビツト)を選択するラインセレクタ回路と
が設けられ; 前記入出力ラツク内に設けられた各カードコネ
クタには、当該コネクタのラツク内固有アドレス
を示すデータを出力するコネクタ固有アドレス出
力端子と、 CPUのアドレスデータ送出端子へ通ずるK−
L本のアドレスラインの中で、下位少なくともP
本(但し、2のP乗は入出力カードの最大チヤン
ネル数)のライン(第2の0乗ビツト、第2の1
乗ビツト……第2のP−1乗ビツト)へ接続さ
れ、かつ各チヤンネルのカード内固有アドレスを
示すデータを出力するチヤンネルアドレス出力端
子と、 前記ラインセレクタ回路から出力されるN本の
ライン(第2のZ乗ビツト、第2のZ+1乗ビツ
ト、……第2のZ+N−1乗ビツト)に接続さ
れ、かつ各コネクタのラツク内固有アドレスを示
すデータを出力するコネクタアドレス出力端子
と、 前記デジタルマルチコンパレータの各出力ライ
ンに接続され、かつ当該ラツクの最大搭載チヤン
ネル数が、(2のZ乗)×N(但し、Zは複数個の
整数)のいずれであるかを示す1ビツト信号を出
力する複数本の最大チヤンネル数出力端子とが設
けられ; 前記各入力又は出力カードには、前記コネクタ
固有アドレス出力端子へ接続可能なコネクタ固有
アドレス入力端子と、 前記コネクタアドレス出力端子へ接続可能なコ
ネクタ指定アドレス入力端子と、 前記チヤンネルアドレス出力端子を構成する各
ビツトラインの中で、当該カードの搭載チヤンネ
ル数に対応する1又は2以上のビツトに接続可能
なチヤンネルアドレス入力端子と、 前記最大チヤンネル数信号出力端子の中で、当
該カードの搭載チヤンネル数に対応する端子に接
続可能な最大チヤンネル数信号入力端子と、 前記コネクタ固有アドレスデータ、前記コネク
タ指定アドレスデータ、前記チヤンネルアドレス
データ及び前記最大チヤンネル数信号とに基づい
て、該当するチヤンネルの入力又は出力回路を能
動化する能動化制御回路とが設けられ; 前記各入出力ラツクを各アドレスデータ入力端
子及び出力端子を順次経由させていもづる式に接
続するとともに、初段ラツクのアドレスデータ入
力端子をCPUのアドレスデータ出力端子へ接続
し、かつ各ラツクの数値設定器に適宜数値を設定
することにより、2のK乗ビツトのアドレス空間
を構成する任意のラツクの任意のカードの任意の
チヤンネルにK−L本のアドレスラインでCPU
からアクセス可能としたことを特徴とするプログ
ラマブル・コントローラの入出力装置。[Scope of Claims] An input/output address space having a width of 12 K bits is divided into multiple channels each consisting of an address of 2 L bits per channel, and an input or output circuit is arranged per channel. A plurality of types of input or output cards each having a different number of installed channels each having a number of 2 to the power of Z (Z is a plurality of different integers) channels each having a number of circuits of 2 to the power of L are provided, and furthermore, the input or output card is An input/output device for a programmable controller having a plurality of input/output racks each having connectable card connectors to the power of 2; If
If the rack is connected to at least the upper N of the (K-L) address lines output from the CPU, and the rack is used as a rack in the next stage or later, the K-L addresses of each previous stage rack are connected. K-L address data input terminals connected to the data transmission terminal; a numerical value setter capable of selectively setting one of the numerical values corresponding to each of the channel numbers Z; and from the address data input terminal. an arithmetic circuit that adds or subtracts a numerical value set by the numerical value setter to input address numerical data; and a numerical data corresponding to the calculation result of the arithmetic circuit, which is set to the Z power of the numerical value 2 set in the numerical value setter. A digital multi-comparator that compares the size with specific numerical data corresponding to the set value and outputs the comparison result to the corresponding terminal corresponding to each set numerical value, and a digital multi-comparator that outputs the comparison result to the corresponding terminal corresponding to each set value, and a subsequent input/output rack that outputs the numerical data corresponding to the calculation result of the arithmetic circuit. K-L for sending to
From the address data output terminal of the book and the K-L address lines output from the CPU, set the numerical value in the numerical setting device (2 to the Z power) and the number of connectors (2 to the N power).
N lines defined by (second Z-th power bit, second Z+1-th power bit, ... second Z+N
-1 power bit); Each card connector provided in the input/output rack is provided with a connector-specific address output terminal that outputs data indicating the unique address of the connector in the rack. , K- leading to the address data sending terminal of the CPU
Among L address lines, at least P
(where 2 to the power of P is the maximum number of channels of the input/output card)
a channel address output terminal that is connected to the second P-1 power bit) and outputs data indicating the unique address in the card of each channel, and a channel address output terminal that is connected to the N lines ( a connector address output terminal connected to the second Z bit, second Z+1 bit, ... second Z+N-1 bit) and outputting data indicating the in-rack unique address of each connector; A 1-bit signal that is connected to each output line of the digital multi-comparator and indicates which one of (2 to the power of Z) x N (where Z is an integer) is the maximum number of channels that can be installed in the rack. A plurality of maximum channel number output terminals are provided; each input or output card is provided with a connector-specific address input terminal connectable to the connector-specific address output terminal; and a connector-specific address input terminal connectable to the connector address output terminal. a connector designation address input terminal; a channel address input terminal connectable to one or more bits corresponding to the number of installed channels of the card among the bit lines forming the channel address output terminal; and the maximum number of channels. Among the signal output terminals, the maximum number of channels signal input terminal that can be connected to the terminal corresponding to the number of installed channels of the card, the connector-specific address data, the connector specified address data, the channel address data, and the maximum number of channels. an activation control circuit for activating the input or output circuit of the corresponding channel based on the signal; and connecting each of the input/output racks in sequence through each address data input terminal and output terminal. At the same time, by connecting the address data input terminal of the first stage rack to the address data output terminal of the CPU, and setting an appropriate value in the numerical value setter of each rack, any rack constituting the address space of 2 K bits can be created. CPU with K-L address lines on any channel of any card.
An input/output device for a programmable controller, characterized in that it can be accessed from.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20566281A JPS58106608A (en) | 1981-12-18 | 1981-12-18 | Input and output device for programmable controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP20566281A JPS58106608A (en) | 1981-12-18 | 1981-12-18 | Input and output device for programmable controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS58106608A JPS58106608A (en) | 1983-06-25 |
| JPH0158524B2 true JPH0158524B2 (en) | 1989-12-12 |
Family
ID=16510604
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP20566281A Granted JPS58106608A (en) | 1981-12-18 | 1981-12-18 | Input and output device for programmable controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS58106608A (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0731523B2 (en) * | 1986-01-22 | 1995-04-10 | 株式会社東芝 | Programmable controller device |
-
1981
- 1981-12-18 JP JP20566281A patent/JPS58106608A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS58106608A (en) | 1983-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0061324A2 (en) | Computer memory management | |
| JP2501874B2 (en) | IC card | |
| WO1985004501A1 (en) | Method of selecting address in input/output board | |
| KR890002469B1 (en) | Microcomputer Memory Paging System | |
| EP0347929A3 (en) | Parallel processor | |
| US6000005A (en) | Method of writing a flash memory including dynamically switching and allocating memory spaces to the flash memory blocks | |
| JPH0158524B2 (en) | ||
| US5574932A (en) | One-chip microcomputer and program development/evaluation system therefor | |
| US5918027A (en) | Data processor having bus controller | |
| JPH0728393A (en) | Controller | |
| US5949984A (en) | Emulator system | |
| JPH0148570B2 (en) | ||
| KR0145541B1 (en) | Method of using the reserved node of communication board between big capacity processors in digital mobile communication ess | |
| JPS60251403A (en) | Digital processor | |
| JPS5842545B2 (en) | Memory card block selection method | |
| JPH0121383Y2 (en) | ||
| RU2071635C1 (en) | Digital regulator for multimotored electric drive | |
| JP3491838B2 (en) | Input/Output Expansion System | |
| JP2922963B2 (en) | Sequence controller | |
| KR850000978Y1 (en) | Interface circuit for memory board | |
| JP4174272B2 (en) | Device controller | |
| JPS6324348A (en) | Memory sharing method | |
| JPH01277946A (en) | Word length variable storage device | |
| JPS61173310A (en) | Numerical controlling device | |
| JPH03269652A (en) | Address control system for memory module |