JPH0143322B2 - - Google Patents
Info
- Publication number
- JPH0143322B2 JPH0143322B2 JP26690284A JP26690284A JPH0143322B2 JP H0143322 B2 JPH0143322 B2 JP H0143322B2 JP 26690284 A JP26690284 A JP 26690284A JP 26690284 A JP26690284 A JP 26690284A JP H0143322 B2 JPH0143322 B2 JP H0143322B2
- Authority
- JP
- Japan
- Prior art keywords
- channel
- input
- address
- output
- multiplex transmission
- 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/1104—Display state of connection of I-O
-
- 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/1113—Address setting
-
- 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/1115—Avoid to give two different addresses to same I-O, no duplicate
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、複数のマシンユニツトのそれぞれに
設けられたリミツトスイツチ、リレー等の入出力
要素とシーケンスコントローラとの間を多重伝送
線路を介して接続するようにした多重伝送装置に
関する。[Detailed Description of the Invention] [Field of Industrial Application] The present invention connects input/output elements such as limit switches and relays provided in each of a plurality of machine units and a sequence controller via multiple transmission lines. The present invention relates to a multiplex transmission device configured to do so.
特に、多重伝送線路のチヤンネルとシーケンス
コントローラの制御の対象となる入出力要素の入
出力アドレスの変換を可変的に行え、かつ入出力
アドレスの重複設定の検出を行うことのできる機
能を有した多重伝送装置に関する。 In particular, the multiplex transmission line has the function of variably converting the input/output addresses of the input/output elements that are controlled by the channel of the multiplex transmission line and the sequence controller, as well as detecting duplicate settings of input/output addresses. Regarding transmission equipment.
[従来の技術]
従来、数多くのマシンユニツトを、同期制御す
るシステムとしてシリアル伝送路を介してシーケ
ンスコントローラで時分割制御する制御システム
が知られている。[Prior Art] Conventionally, as a system for synchronously controlling a large number of machine units, there has been known a control system that performs time-division control using a sequence controller via a serial transmission path.
この制御システムは、第2図に示す様に、チヤ
ンネルを制御するマスタコントロールユニツト3
と、多重伝送線路4と、各マシンユニツトを制御
するシーケンスコントローラ1と、シーケンスコ
ントローラ1と多重伝送線路4とのインタフエー
スである多重伝送インタフエース2と、多重伝送
線路4に接続され、各マシンユニツトに配設され
ている送信ユニツト52,53、受信ユニツト5
1,54等から成る。 This control system consists of a master control unit 3 that controls the channels, as shown in Figure 2.
, a multiplex transmission line 4, a sequence controller 1 that controls each machine unit, a multiplex transmission interface 2 that is an interface between the sequence controller 1 and the multiplex transmission line 4, and a multiplex transmission line 4 connected to each machine unit. Transmitting units 52, 53 and receiving unit 5 arranged in the unit
It consists of 1,54 mag.
マスタコントロールユニツト3は、第3図に示
す様に、リセツトパルスP1、チヤンネルカウン
トパルスP6を順次出力する。各送受信ユニツト
は、デイツプスイツチ531,511等で特定の
チヤンネル番号が設定されており、それの有する
チヤンネルカウンタ532,512の値が、設定
されたチヤンネル番号と等しくなつたとき、その
チヤンネル番号によつて特定された送受信ユニツ
トは、多重伝送線路にデータ信号P2,P4を出
力したり、多重伝送線路からデータ信号P2,P
4を入力する。 The master control unit 3 sequentially outputs a reset pulse P1 and a channel count pulse P6, as shown in FIG. Each transmitting/receiving unit has a specific channel number set by a deep switch 531, 511, etc., and when the value of its channel counter 532, 512 becomes equal to the set channel number, The identified transmitter/receiver unit outputs the data signals P2, P4 to the multiplex transmission line, or outputs the data signals P2, P4 from the multiplex transmission line.
Enter 4.
マスタコントロールユニツト3の出力するリセ
ツトパルスP1は、各送受信ユニツトの有するチ
ヤンネルカウンタ532,512及び多重伝送イ
ンタフエース2の有するチヤンネルカウンタの内
容をリセツトし、チヤンネル番号を零とする。ま
たチヤンネルカウントパルスP6は、一定周期で
マスタコントロールユニツト3から出力されてお
り、各チヤンネルカウンタの値を1だけ更新し、
伝送線路の使用されているチヤンネルを順次更新
する。設定された最大チヤンネルまで更新される
と、次にリセツトパルスP1が出力され、伝送線
路は、再度零チヤンネルから順次時分割多重化さ
れる。 The reset pulse P1 outputted from the master control unit 3 resets the contents of the channel counters 532, 512 of each transmitting/receiving unit and the channel counter of the multiplex transmission interface 2, and sets the channel number to zero. In addition, the channel count pulse P6 is outputted from the master control unit 3 at a constant cycle, and updates the value of each channel counter by 1.
The used channels of the transmission line are sequentially updated. When the set maximum channel is reached, a reset pulse P1 is outputted, and the transmission line is again time-division multiplexed sequentially starting from the zero channel.
この様に、マスタコントロールユニツト3は、
伝送線路のチヤンネルを時分割制御しており、各
送受信ユニツトは、それの有するチヤンネルに、
伝送線路が設定されたとき、シーケンスコントロ
ーラ1との間でデータの送受信を行なうことがで
きる。以上の様にして、送信ユニツト52,53
は、それぞれのチヤンネルを利用して、リミツト
スイツチ、操作スイツチ、リレー接点等の入力要
素の状態をシーケンスコントローラ1に出力する
ことができ、又シーケンスコントローラ1は、受
信ユニツト51,54へ、それぞれのチヤンネル
を利用して、ランプ、リレーコイル等の出力要素
の作動状態を示す信号を出力することができる。 In this way, the master control unit 3
The channels of the transmission line are controlled in a time-division manner, and each transmitter/receiver unit
When the transmission line is set, data can be sent and received to and from the sequence controller 1. In the above manner, the transmitting units 52, 53
can output the states of input elements such as limit switches, operation switches, and relay contacts to the sequence controller 1 using their respective channels, and the sequence controller 1 can output the states of input elements such as limit switches, operation switches, and relay contacts to the receiving units 51 and 54 through their respective channels. can be used to output a signal indicating the operating state of an output element such as a lamp or relay coil.
従来の多重伝送システムは、上記の構成、作用
により複数のマシンユニツトをシーケンスコント
ローラによつて制御するものである。 In the conventional multiplex transmission system, a plurality of machine units are controlled by a sequence controller with the above configuration and operation.
[発明が解決しようとする問題点]
上記多重伝送システムには、シーケンスコント
ローラ1と多重伝送線路4との間のインタフエー
スである多重伝送インタフエース2が設けられて
いる。この多重伝送インタフエース2は、独立に
シーケンスコントローラが入出力アドレス単位で
制御するデータと、チヤンネル単位の時分割多重
化されたデータとの相互変換を行う装置である。
従つて、本多重伝送インタフエース2において、
チヤンネルと、シーケンスコントローラの制御単
位の入出力アドレスとの相互変換を行う装置が必
要であり、この対応関係は、容易に変更できるの
がシステムの設計及び運用上望ましい。しかしな
がら、従来装置は、各チヤンネル毎にデイプスイ
ツチを設け、対応する入出力アドレスを設定する
もにであつた。このため、装置の容積が大きく、
1多重伝送装置当りのチヤンネル数を大きくとる
ことができなかつた。又チヤンネルから入出力ア
ドレスへの変換には、デコーダ及びデイプスイツ
チの動作状態に対応したコード発生器を使用して
いたため、回路構成が複雑であつた。又入出力ア
ドレスは、誤つて異なつたチヤンネルに対して重
複設定されるおそれがあり、その場合には、シス
テムが暴走すると共に、一度設定されると、これ
を検出するのは容易でなかつた。[Problems to be Solved by the Invention] The multiplex transmission system described above is provided with a multiplex transmission interface 2 that is an interface between the sequence controller 1 and the multiplex transmission line 4. This multiplex transmission interface 2 is a device that performs mutual conversion between data controlled independently by a sequence controller in units of input/output addresses and data multiplexed in time division in units of channels.
Therefore, in this multiplex transmission interface 2,
A device is required to perform mutual conversion between the channel and the input/output address of the control unit of the sequence controller, and it is desirable in terms of system design and operation that this correspondence relationship can be easily changed. However, in the conventional device, a depth switch is provided for each channel, and corresponding input/output addresses are set. For this reason, the volume of the device is large;
It was not possible to increase the number of channels per multiplex transmission device. Furthermore, since a code generator corresponding to the operating state of the decoder and depth switch is used to convert the channel to the input/output address, the circuit configuration is complicated. In addition, there is a risk that input/output addresses may be mistakenly set twice for different channels, and in that case, the system will run out of control, and once set, it is not easy to detect this.
本発明は、上記欠点を改良するために成された
ものであり、チヤンネル/入出力アドレスの変換
及びそれらの設定、変更を容易に行うと共に、入
出力アドレスの重複設定を防止し、システムの信
頼性の向上を図り、システムの円滑な運行を行う
ことを目的とする。 The present invention was made in order to improve the above-mentioned drawbacks, and it facilitates channel/input/output address conversion and their settings and changes, prevents duplicate settings of input/output addresses, and improves system reliability. The purpose is to improve performance and ensure smooth operation of the system.
[問題点を解決するための手段]
本発明は、複数の送受信ユニツトが接続された
時分割の多重伝送線路と、シーケンスコントロー
ラとを接続するインタフエースに、
前記多重伝送線路に接続され、該多重線路のチ
ヤンネルを決定するカウントパルスを入力するチ
ヤンネルカウンタと、
前記シーケンスコントローラと前記多重伝送線
路の間に配設された、バツフアであつて、前記シ
ーケンスコントローラのアドレスバスに接続さ
れ、入出力アドレスの指定によつてアクセスされ
るデータ記憶装置と、
前記チヤンネルに対応した前記入出力アドレス
を記憶し、アドレスバスを前記チヤンネルカウン
タに接続し、データバスを前記データ記憶装置を
アクセスするそのアドレスバスに接続した記憶装
置から成り、前記チヤンネルと入出力アドレスの
変換を行うチヤンネル/アドレス変換装置と、
前記チヤンネル/アドレス変換装置に対し、該
装置へのアクセスが可能に接続され、前記チヤン
ネルに対応した前記入出力アドレスを前記チヤン
ネル/アドレス変換装置に設定する入出力アドレ
ス設定装置と、
前記チヤンネル/アドレス設定装置によつて設
定されたそ入出力アドレスの重複設定を検出し、
重複した入出力アドレスを表示する重複設定検出
装置とを設けたことを特徴とするものである。[Means for Solving the Problems] The present invention provides an interface that connects a time-division multiplex transmission line to which a plurality of transmitter/receivers are connected and a sequence controller. a channel counter that inputs count pulses that determine the channel of a line; and a buffer that is arranged between the sequence controller and the multiplex transmission line and that is connected to the address bus of the sequence controller and that inputs and outputs input and output addresses. a data storage device to be accessed by designation, storing said input/output address corresponding to said channel, connecting an address bus to said channel counter, and connecting a data bus to said address bus for accessing said data storage device; a channel/address converting device comprising a storage device configured to convert the channel and input/output address; and a channel/address converting device connected to the channel/address converting device so as to be able to access the device, and configured to convert the input/output address corresponding to the channel. an input/output address setting device that sets an output address to the channel/address conversion device; detecting duplicate settings of the input/output address set by the channel/address setting device;
The present invention is characterized in that it includes a duplicate setting detection device that displays duplicate input/output addresses.
本発明装置は、チヤンネルと入出力アドレスと
を変換する変換装置に、チヤンネルによつて特定
されるアドレスに、そのチヤンネルに対応する入
出力アドレスをデータとして記憶した記憶装置を
用いていることを特徴としている。従つて、チヤ
ンネル信号をアドレス信号として、その記憶装置
をアクセスすれば、そのデータ線上に入出力アド
レス信号を取出すことができ、チヤンネル/入出
力アドレスの変換が容易に行われる。又、変換装
置には、各チヤンネルに対応した入出力アドレス
を設定する入出力アドレス設定装置が設けられて
おり、該装置によつて、前記記憶装置に入出力ア
ドレスを設定できる。さらに上記変換装置には、
設定された入出力アドレスの重複を検出してこれ
を表示する重複設定検出装置が接続されており、
容易に入出力アドレスの誤つた重複設定を防止で
きる。 The apparatus of the present invention is characterized in that the conversion device for converting a channel and an input/output address uses a storage device that stores, as data, an input/output address corresponding to the channel at an address specified by the channel. It is said that Therefore, by accessing the memory device using the channel signal as an address signal, the input/output address signal can be taken out on the data line, and channel/input/output address conversion is easily performed. Further, the conversion device is provided with an input/output address setting device for setting an input/output address corresponding to each channel, and the input/output address can be set in the storage device by this device. Furthermore, the above conversion device includes
A duplicate setting detection device is connected that detects and displays duplicate set input/output addresses.
Erroneous and duplicate settings of input/output addresses can be easily prevented.
前記チヤンネルカウンタの値は、シーケンシヤ
ルに変化する番号を示し、伝送線路が現在その番
号のチヤンネルに使用されていることを示してい
る。各チヤンネルは、シーケンスコントローラか
ら見て、入力要素、出力要素のための入力用チヤ
ンネルと出力用チヤンネルにそれぞれ分けられて
いる。入力用チヤンネルは、送信ユニツトから、
データをシーケンスコントローラ側に伝送するチ
ヤンネルであり、出力用チヤンネルはシーケンス
コントローラから受信ユニツトへデータを出力す
るためのチヤンネルである。従つて、入力用チヤ
ンネルは入力アドレスに、出力用チヤンネルは出
力アドレスに対応する。 The value of the channel counter indicates a number that changes sequentially, indicating that the transmission line is currently being used for the channel of that number. Viewed from the sequence controller, each channel is divided into an input channel and an output channel for input elements and output elements. The input channel is from the transmitting unit.
This is a channel for transmitting data to the sequence controller side, and the output channel is a channel for outputting data from the sequence controller to the receiving unit. Therefore, the input channel corresponds to the input address, and the output channel corresponds to the output address.
前記データ記憶装置は、シーケンスコントロー
ラから入出力アドレスを指定して、アクセスされ
ると同時に、チヤンネル/アドレス変換装置から
もアクセスされる。通常、1のチヤンネルは、複
数の入力又は出力要素を制御するデータを伝送す
るので、1のチヤンネルが、入力又は出力アドレ
ス群と対応する。従つて、チヤンネルに対応する
入出力アドレスは、前記入出力アドレス群の代表
値で表される。 The data storage device is accessed by the sequence controller by specifying an input/output address, and at the same time, it is also accessed by the channel/address conversion device. Typically, one channel carries data that controls multiple input or output elements, so one channel corresponds to a group of input or output addresses. Therefore, the input/output address corresponding to the channel is represented by a representative value of the input/output address group.
前記チヤンネル/アドレス変換装置は、チヤン
ネルカウンタ及び入出力アドレス設定装置の双方
からアクセス可能に接続されている。 The channel/address translation device is connected so as to be accessible from both the channel counter and the input/output address setting device.
[作用]
まず、入出力アドレス設定装置によつて、各チ
ヤンネルに対応した入出力アドレスを設定してお
く。この状態でシステムは稼動状態となり、時分
割的に、順次チヤンネルが切変り、各チヤンネル
のデータの送受信が行われる。今、チヤンネルカ
ウンタが第0チヤンネルを示していたとすれば、
チヤンネル/アドレス変換装置のデータバスに
は、対応する第0チヤンネルの入出力アドレス信
号が発生している。この入出力アドレス信号をデ
ータ記憶装置のアドレス信号(たとえば上位アド
レス信号)とすることにより、そのチヤンネルの
専有する入出力アドレス群をアクセスすることが
でき、そのチヤンネルの受信データを順次対応ア
ドレスに記憶したり、反対に、そのチヤンネルに
対応する入出力アドレス群を順次アクセスするこ
とにより、シリアルデータをそのチヤンネルに出
力することができる。又重複設定検出装置は、シ
ステムの運用前に作用し、入出力アドレス設定装
置によつて、誤つて重複設定された入出力アドレ
スを表示する。このため、多重伝送装置の暴走を
未然に防止できる。[Operation] First, an input/output address corresponding to each channel is set using the input/output address setting device. In this state, the system is in operation, and channels are sequentially switched in a time-division manner, and data on each channel is transmitted and received. Now, if the channel counter indicates the 0th channel,
A corresponding input/output address signal of the 0th channel is generated on the data bus of the channel/address conversion device. By using this input/output address signal as the address signal of the data storage device (for example, an upper address signal), the input/output address group exclusive to that channel can be accessed, and the received data of that channel can be sequentially stored in the corresponding address. Or, conversely, serial data can be output to that channel by sequentially accessing the input/output address group corresponding to that channel. Further, the duplicate setting detection device operates before the system is operated, and displays input/output addresses that have been erroneously set duplicated by the input/output address setting device. Therefore, it is possible to prevent the multiplex transmission device from running out of control.
[実施例]
以下、本発明を具体的な実施例に基づいて詳述
する。[Examples] Hereinafter, the present invention will be described in detail based on specific examples.
第1図は、本発明の具体的な一実施例に係る多
重伝送装置に用いられる多重伝送インタフエース
の構成を示したブロツクダイアグラムである。 FIG. 1 is a block diagram showing the configuration of a multiplex transmission interface used in a multiplex transmission apparatus according to a specific embodiment of the present invention.
又第2図は、多重伝送インタフエース2を有す
る多重伝送システム全体の構成を示したブロツク
ダイアグラムである。 FIG. 2 is a block diagram showing the overall configuration of a multiplex transmission system having a multiplex transmission interface 2. As shown in FIG.
多重伝送線路4(シリアル伝送線路)は、ライ
ンドライバ/レシーバ200に接続されており、
ラインドライバ/レシーバ200は、データ信号
を多重伝送線路4へ出力し、多重伝送線路4から
チヤンネルカウントパルス、及びデータ信号を受
信する。ラインドライバ/レシーバ200には、
チヤンネルカウントパルスを入力するチヤンネル
カウンタ21と、受信データとシリアルデータか
らパラレルデータに変換するシリアル/パラレル
変換器22が接続されている。シリアル/パラレ
ル変換器22は、アドレサブルゲート201を介
し、データ記憶装置28に接続され、受信データ
は、1ビツトずつ異なるアドレスに記憶される。
データ記憶装置28は、記憶ユニツトのRAM2
81、RAM282、RAM283、RAM284
から成り、それらは、同一アドレスでアクセスさ
れる1ビツトRAMである。各RAMは、さらに、
マルチプレクサ285,286,287,288
を有しており、シーケンスコントローラ1のアド
レスバス11、チヤンネル/アドレス変換装置2
9側のアドレスバス291の双方からアクセスさ
れる。RAM選択回路206は、多重伝送線路か
ら入力されるリセツトパルスを入力する毎に、
RAM281,282,283,284を順次選
択する。即ち、全ての入出力アドレスに対して、
データを記憶するRAMが4個設けられており、
チヤンネルの多重化周期毎に、多重伝送線路から
入力され、記憶されるRAMが切換られる。2連
照回路207は、多重伝送線路側からアクセスさ
れていない3つのRAMの内容の多数決の値をと
る機能を有しており、シーケンスコントローラ1
は、データ記憶装置28に記憶されている入力要
素のデータを多数決値として、読取ることができ
る。チヤンネル/アドレス変換装置29は、チヤ
ンネル/アドレス設定RAM291、マルチプレ
クサ292、ラツチ回路293、ゲート回路29
4から成り、伝送線路のチヤンネルと、シーケン
スコントローラの入出力アドレスとの変換を行な
う機能を有する。シーケンスコントローラの入出
力アドレスは、11ビツトで構成されており、1ビ
ツトデータ毎に1アドレスが割当てられている。
チヤンネルは、1チヤンネル当り8ビツトのデー
タを専有している。従つて、各チヤンネルは、1
チヤンネルにつき、8つの入出力アドレスを専有
している。従つて、チヤンネル/アドレス設定
RAM291は、チヤンネル番号と、上位8ビツ
トの入出力アドレスとの対応表を記憶しており、
チヤンネルカウンタ21に設定されているチヤン
ネルの専有する入出力アドレス群の上位8ビツト
のアドレスがラツチ回路293に設定される。
又、チヤンネル/アドレス設定RAM291は、
そのチヤンネルが入力アドレス群か、出力アドレ
ス群のいずれに対応するか、即ち、入力チヤンネ
ルか、出力チヤンネルであるかを記憶したRAM
を有している。従つてこの信号も、ラツチ回路2
93に出力され、送信、受信のモード切換の制御
信号として利用されている。結局、入出力アドレ
スの上位8ビツトのアドレス信号が出力される。
即ち本実施例では、最大入出力チヤンネル数は
256である。この対応表は、コンピユータ26、
コンソールパネル27を用いて、作成することが
できる。又、入出力アドレスの下位3ビツトは、
クロツク205によつてシーケンシヤルに設定さ
れる。 The multiplex transmission line 4 (serial transmission line) is connected to the line driver/receiver 200,
Line driver/receiver 200 outputs data signals to multiplex transmission line 4 and receives channel count pulses and data signals from multiplex transmission line 4 . The line driver/receiver 200 includes
A channel counter 21 that inputs channel count pulses and a serial/parallel converter 22 that converts received data and serial data into parallel data are connected. The serial/parallel converter 22 is connected to a data storage device 28 via an addressable gate 201, and the received data is stored at different addresses bit by bit.
The data storage device 28 includes RAM 2 of the storage unit.
81, RAM282, RAM283, RAM284
They are 1-bit RAM accessed at the same address. Each RAM is further
Multiplexer 285, 286, 287, 288
It has an address bus 11 of the sequence controller 1, a channel/address conversion device 2
It is accessed from both address buses 291 on the 9 side. Each time the RAM selection circuit 206 receives a reset pulse input from the multiplex transmission line,
RAM281, 282, 283, and 284 are selected in sequence. That is, for all input and output addresses,
There are four RAMs for storing data.
At every channel multiplexing period, the RAM that is input from the multiplex transmission line and stored is switched. The double-check circuit 207 has a function of taking the majority value of the contents of the three RAMs that are not accessed from the multiplex transmission line side, and the sequence controller 1
can read the input element data stored in the data storage device 28 as the majority decision value. The channel/address conversion device 29 includes a channel/address setting RAM 291, a multiplexer 292, a latch circuit 293, and a gate circuit 29.
4, and has the function of converting the transmission line channel and the input/output address of the sequence controller. The input/output address of the sequence controller consists of 11 bits, and one address is assigned to each bit of data.
Each channel occupies 8 bits of data. Therefore, each channel has 1
Eight input/output addresses are occupied per channel. Therefore, channel/address settings
The RAM 291 stores a correspondence table between channel numbers and upper 8-bit input/output addresses.
The upper 8-bit address of the input/output address group exclusive to the channel set in the channel counter 21 is set in the latch circuit 293.
In addition, the channel/address setting RAM 291 is
A RAM that stores whether the channel corresponds to an input address group or an output address group, that is, whether it is an input channel or an output channel.
have. Therefore, this signal is also connected to the latch circuit 2.
93 and is used as a control signal for switching modes between transmission and reception. Eventually, the address signal of the upper 8 bits of the input/output address is output.
That is, in this embodiment, the maximum number of input/output channels is
It is 256. This correspondence table shows the computer 26,
It can be created using the console panel 27. Also, the lower 3 bits of the input/output address are
Sequentially set by clock 205.
一方、シーケンスコントローラ1からの出力デ
ータは、データ線Dを介して、アドレスバス11
によつて設定されたアドレスの多重伝送線路側か
らアクセスされていない3つのRAMに記憶され
る。データの多重伝送線路への出力は、次の様に
行なわれる。まず、チヤンネルカウンタ21に設
定されたチヤンネルに、対応するアドレスの選択
されている1の記憶ユニツトの内容がゲート回路
289を介して、出力用シフトレジスタ202に
クロツク205によつてシーケンシヤルに出力さ
れる。次に、パラレル/シリアル変換器203に
よつてシリアルデータがラインドライバ/レシー
バ200を介して多重伝送線路に送出される。 On the other hand, the output data from the sequence controller 1 is transmitted via the data line D to the address bus 11.
The data is stored in three RAMs that are not accessed from the multiplex transmission line side at addresses set by . Data is output to the multiplex transmission line as follows. First, the contents of one memory unit selected at the corresponding address are sequentially outputted to the output shift register 202 by the clock 205 via the gate circuit 289 to the channel set in the channel counter 21. . Next, the parallel/serial converter 203 sends the serial data to the multiplex transmission line via the line driver/receiver 200.
以上の様にして、チヤンネルカウンタ21は、
零チヤンネルから設定された最大チヤンネルま
で、サイクリツクに変化し、チヤンネル/アドレ
ス変換装置29は、その時の設定されたチヤンネ
ルに対応した入出力アドレスの上位アドレスを設
定する。入力データはシリアル/パラレル変換器
22に入力され、アドレツサブルゲート201を
介して、1ビツトずつ、RAM選択回路206で
選択された1つのRAMに入力される。 In the above manner, the channel counter 21
The channel changes cyclically from the zero channel to the set maximum channel, and the channel/address conversion device 29 sets the upper address of the input/output address corresponding to the set channel at that time. Input data is input to the serial/parallel converter 22, and is input bit by bit to one RAM selected by the RAM selection circuit 206 via the addressable gate 201.
第4図a,bは、チヤンネル/アドレス設定
RAM291のデータ構成を示した図である。チ
ヤンネル#0〜#nに対応する入出力アドレスが
順次記憶されている。入出力アドレスが記憶され
ている相対アドレスがチヤンネル番号と一致して
いる。従つて、チヤンネル信号を相対アドレス信
号とし、それをテーブルの先頭アドレス(SRM)
に加えることにより、そのチヤンネルに対応した
入出力アドレスを記憶した絶対アドレスを求める
ことができる。この絶対アドレス(SRM+#)
のデータによつてチヤンネル#に対応する入出
力アドレスをデータバスに出力することができ
る。又、第4図bに示す様に同様な処理によつ
て、チヤンネル#の入出力モードをアクセス
し、データパスに、入出力モード制御信号を出力
することができる。 Figure 4 a and b are channel/address settings
3 is a diagram showing a data structure of RAM 291. FIG. Input/output addresses corresponding to channels #0 to #n are sequentially stored. The relative address where the input/output address is stored matches the channel number. Therefore, the channel signal is used as a relative address signal, and it is used as the start address of the table (SRM).
By adding , it is possible to obtain the absolute address that stores the input/output address corresponding to that channel. This absolute address (SRM+#)
The input/output address corresponding to channel # can be outputted to the data bus using the data. Further, as shown in FIG. 4b, the input/output mode of channel # can be accessed by similar processing, and an input/output mode control signal can be output to the data path.
入出力アドレス設定装置は、コンピユータ26
とコンソールパネル27とで構成されている。第
5図はコンソールパネル27を示す平面図であ
る。入出力アドレスを入力するために、キーボー
ド270が設けられており、入出力アドレスを表
示するためにアドレス表示部273、チヤンネル
を表示するためにチヤンネル表示部271が設け
られている。 The input/output address setting device is the computer 26
and a console panel 27. FIG. 5 is a plan view showing the console panel 27. FIG. A keyboard 270 is provided for inputting input/output addresses, an address display section 273 for displaying input/output addresses, and a channel display section 271 for displaying channels.
第6図は、コンピユータ26の処理を示したフ
ローチヤートである。ステツプ100では、選択キ
ー275が操作されたかを判別し、操作された場
合には、ステツプ102で入力モードの変換を行う。
入力モードとは、キーボード270から入力でき
る値が入出力アドレスであるか、チヤンネルであ
るかを決めるモードであり、そのモードの選択状
態はモード表示部274において点灯表示され
る。ステツプ104では、テンキー270aが操作
されたかを判別し、操作された場合には、ステツ
プ106に移行し、現在の入力モードを判別し、そ
のモード側の表示部に入力された値を表示する。
即ち、入出力アドレスモードである場合には、ス
テツプ108で入出力アドレス表示部273に入力
値を表示する。又チヤンネルモードである場合に
は、ステツプ110でチヤンネル表示部271に入
力値を表示する。以下、説明を簡単にするため、
チヤンネルを基準として入出力アドレスを設定す
るものとする。ステツプ110で、最初のチヤンネ
ル番号が入力され表示される。コンピユータはス
テツプ100、112、116、120をサイクリツクに実行
し、キーの入力があるまでループしている。次に
選択キー275が操作されると、ステツプ100、ステ
ツプ102で入力モードが入出力アドレス側に切替
り、チヤンネル表示部271に表示されたチヤン
ネルに対応した入出力アドレスを入力できる状態
となる。テンキー270aを操作して、入出力ア
ドレス表示部273に表示する。次にチヤンネル
が入力チヤンネルか出力チヤンネルかを示すた
め、入出力モードキー270b,270cを操作
して、ステツプ114で、入出力モードを設定する。
これはモード表示部276に表示される。次に書
込キー270dを操作すると、ステツプ116で判
別され、ステツプ118で、チヤンネル番号から記
憶すべきアドレスを計算し、このアドレスの
RAM291に入出力アドレスを設定する。又同
様に、入出力モードも設定する。この様にして最
初のチヤンネルに対応する入出力アドレスが設定
される。次に更新キー270e,270fが操作
されるとステツプ122で選択されていない入力モ
ード側即ち、チヤンネルの表示値を+1又は−1
更新し、次のチヤンネルの入出力アドレスが設定
し得る状態とする。次に入出力アドレスを入力し
て上記と同様の操作をすれば入出力アドレスが設
定される。この様に順次すべてのチヤンネルは番
号を変化させて入出力アドレスを設定することが
でる。 FIG. 6 is a flowchart showing the processing of the computer 26. In step 100, it is determined whether the selection key 275 has been operated, and if it has been operated, the input mode is converted in step 102.
The input mode is a mode that determines whether a value that can be input from the keyboard 270 is an input/output address or a channel, and the selected state of the mode is displayed by lighting on the mode display section 274. In step 104, it is determined whether the numeric keypad 270a has been operated. If it has been operated, the process moves to step 106, where the current input mode is determined and the input value is displayed on the display section on the mode side.
That is, if it is the input/output address mode, the input value is displayed on the input/output address display section 273 in step 108. If the channel mode is selected, the input value is displayed on the channel display section 271 in step 110. Below, to simplify the explanation,
The input and output addresses shall be set based on the channel. At step 110, the first channel number is entered and displayed. The computer cycles through steps 100, 112, 116, and 120, looping until a key is pressed. Next, when the selection key 275 is operated, the input mode is switched to the input/output address side in steps 100 and 102, and the input/output address corresponding to the channel displayed on the channel display section 271 can be input. The address is displayed on the input/output address display section 273 by operating the numeric keypad 270a. Next, in order to indicate whether the channel is an input channel or an output channel, the input/output mode keys 270b and 270c are operated to set the input/output mode in step 114.
This is displayed on the mode display section 276. Next, when the write key 270d is operated, a determination is made in step 116, and an address to be stored is calculated from the channel number in step 118.
Set the input/output address in RAM291. Similarly, the input/output mode is also set. In this way, the input/output address corresponding to the first channel is set. Next, when the update keys 270e and 270f are operated, the display value of the unselected input mode side, that is, the channel, is changed by +1 or -1 in step 122.
Update it so that the input/output address of the next channel can be set. Next, enter the input/output address and perform the same operation as above to set the input/output address. In this way, input and output addresses can be set by sequentially changing the numbers for all channels.
上例は、チヤンネルを基準とする設定方法につ
いて説明したが、入出力アドレスを基準として、
チヤンネル番号を順次入力設定することもでき
る。 The above example explained the setting method based on the channel, but using the input/output address as the reference,
You can also input and set channel numbers sequentially.
重複設定検出装置は入出力アドレス設定装置と
同様にコンピユータ26およびコンソールパネル
27とで構成されている。重複設定検出装置は入
出力アドレス設定装置によつて設定された入出力
アドレスが異なつたチヤンネルに対して重複して
設定されることを検出する機能を有したものであ
る。第7図はコンピユータ26の処理を示したフ
ローチヤートであり、第8図aは第4図aと同様
にチヤンネル/アドレス設定RAMの内容を具体
的に表示したものである。第8図bは本重複して
設定された入出力アドレスを検出するために作成
した入出力アドレスとチヤンネルとの対応表であ
る。計算機はステツプ200から実行を開始する。
ステツプ200からステツプ210のルーチンはチヤン
ネル/アドレス設定RAM291に形成された入
出力アドレステーブルから入出力アドレスの小さ
い順番にその入出力アドレスとそれに対応したチ
ヤンネル番号とを対応させたテーブル第8図bを
作成するルーチンである。IOADCは入出力アド
レスを示すパラメータである。ステツプ202で、
IOADCの示す入出力アドレスをチヤンネル/ア
ドレス設定RAMをアクセスして、それが記憶さ
れているアドレスを検出する。ステツプ204で
IOADCによつて特定された入出力アドレスと、
共にそれが記憶されているアドレス即ちチヤンネ
ル番号が第8図bのシステムテーブルのように作
成される。ステツプ208でIOADCの値を1更新し
てステツプ202から再度サーチを繰り返すことに
よりシステムテーブルとして第8図bの表が作成
される。 The duplicate setting detection device is composed of a computer 26 and a console panel 27 similarly to the input/output address setting device. The duplicate setting detection device has a function of detecting that the input/output address set by the input/output address setting device is set redundantly for different channels. FIG. 7 is a flowchart showing the processing of the computer 26, and FIG. 8a, like FIG. 4a, specifically displays the contents of the channel/address setting RAM. FIG. 8b is a correspondence table between input/output addresses and channels created in order to detect input/output addresses that have been set overlappingly. The calculator begins execution at step 200.
The routine from step 200 to step 210 uses the input/output address table formed in the channel/address setting RAM 291 to create a table (b) in FIG. This is a routine to create. IOADC is a parameter indicating the input/output address. In step 202,
The channel/address setting RAM is accessed for the input/output address indicated by the IOADC, and the address where it is stored is detected. At step 204
the input/output addresses identified by the IOADC,
At the same time, the address where it is stored, ie, the channel number, is created as shown in the system table of FIG. 8b. In step 208, the value of IOADC is updated by 1, and the search is repeated again from step 202, thereby creating the table shown in FIG. 8b as a system table.
次にステツプ212に移行してパラメータROCの
値を作成されたテーブルの先頭アドレスSTAD
にセツトし、ステツプ214でROCの指定するアド
レスの内容を入出力アドレス表示部273に表示す
る。次にステツプ216に移り、ROCの値を1更新
してステツプ218に移行してそのROCの指定する
アドレスの内容即ちチヤンネル番号をチヤンネル
表示部271に表示する。これにより入出力アド
レスの小さい順に入出力アドレスとそれに対応し
たチヤンネル番号が表示されることになる。次に
ステツプ220に移りキーの入力を待ち、ステツプ
224で「+1」のキーが操作されるとステツプ226
に移行してROCの値を1更新してステツプ214に
移行する。即ち次のテーブルをアクセスして次の
入出力アドレスとそれに対応したチヤンネルの表
示することになる。またステツプ228で「−1」
のキーが入力されるとステツプ230に移り1つ前
の入出力アドレスを再表示することになる。この
ようにして「+1」キー270e、「−1」キー
270fの操作により入出力アドレスとそれに対
応したチヤンネル番号を順次入出力アドレス表示
部273、チヤンネル表示部271に表示するこ
とができる。従つて重複設定がある場合には入出
力アドレスが変化しないがチヤンネルが番号変化
することになる。これによつて容易に入出力アド
レスの重複設定を検出することができる。以上の
実施例では一例として入出力アドレスとそのチヤ
ンネルを順次表示するようにして重複設定を検出
するようにしている。しかし本発明はこれらの実
施例に限定されることなく自動的にその重複部分
を検出してその入出力アドレス及びチヤンネルを
表示するようにしてもよい。 Next, proceed to step 212 and set the value of the parameter ROC to the start address STAD of the created table.
In step 214, the content of the address specified by the ROC is displayed on the input/output address display section 273. Next, the process moves to step 216, where the value of the ROC is updated by 1, and the process moves to step 218, where the content of the address specified by the ROC, that is, the channel number, is displayed on the channel display section 271. As a result, the input/output addresses and their corresponding channel numbers are displayed in descending order of input/output address. Next, proceed to step 220, wait for key input, and proceed to step 220.
When the "+1" key is operated in 224, step 226
Then, the ROC value is updated by 1, and the process moves to step 214. That is, the next table is accessed to display the next input/output address and the corresponding channel. Also, at step 228, “-1”
When the key is input, the process moves to step 230 and the previous input/output address is displayed again. In this way, input/output addresses and corresponding channel numbers can be sequentially displayed on the input/output address display section 273 and the channel display section 271 by operating the "+1" key 270e and the "-1" key 270f. Therefore, if there is a duplicate setting, the input/output address will not change, but the channel number will change. This makes it possible to easily detect duplicate settings of input/output addresses. In the above embodiment, as an example, duplicate settings are detected by sequentially displaying input/output addresses and their channels. However, the present invention is not limited to these embodiments, and the overlap may be automatically detected and its input/output address and channel displayed.
[発明の効果]
本発明は、チヤンネル/アドレス変換装置に、
チンネル番号によつて特定されるアドレスに入出
力アドレスを記憶した記憶装置を使用している。
従つて、記憶装置のアドレスバスからチヤンネル
信号を入力すれば、そのデータバスには記憶され
た入出力アドレス信号が出力され、容易にチヤン
ネル/アドレスの変換を行うことができる。又、
上記方式であるため、集積度が高く一台の装置で
の変換チヤンネル数を向上させることができる。
又、チヤンネル/入出力アドレス変換装置には、
入出力アドレス設定装置が接続されているため、
アドレスの設定、変更、を容易に行うことができ
る。又、重複設定検出装置によつて、入出力アド
レスの重複設定を容易に検出でき、システムの暴
走を未然に防止でき、システムの変更設計が容易
になる。[Effects of the Invention] The present invention provides a channel/address translation device with the following features:
A storage device is used that stores input and output addresses at addresses specified by channel numbers.
Therefore, when a channel signal is input from the address bus of the storage device, the stored input/output address signal is output to the data bus, and channel/address conversion can be easily performed. or,
Since the above method has a high degree of integration, it is possible to increase the number of conversion channels in one device.
In addition, the channel/input/output address conversion device includes
Because the input/output address setting device is connected,
You can easily set and change addresses. Further, the duplicate setting detection device can easily detect duplicate settings of input/output addresses, prevent system runaway, and facilitate system change design.
第1図は、本発明の具体的な一実施例に係る多
重伝送インタフエースの構成を示したブロツクダ
イアグラムである。第2図は多重伝送装置全体の
構成を示したブロツクダイアグラムである。第3
図は多重伝送線路上に表われる信号波形を示した
波形図である。第4図は、実施例装置のチヤンネ
ル/アドレス設定RAMのデータ構造を示した構
造図である。第5図は、同実施例装置のコンソー
ルパネルを示した平面図である。第6図は同実施
例装置の有するコンピユータ処理を示したフロー
チヤートである。第7図はコンピユータ26の処
理を示したフローチヤートである。第8図は、同
コンピユータの処理によつて作成されるシステム
テーブルを表わした構成図である。
P1……リセツトパルス、P2,P4……デー
タ信号、P6……チヤンネルカウントパルス、2
71……チヤンネル表示部、272……データ表
示部、270……キーボード。
FIG. 1 is a block diagram showing the configuration of a multiplex transmission interface according to a specific embodiment of the present invention. FIG. 2 is a block diagram showing the overall configuration of the multiplex transmission device. Third
The figure is a waveform diagram showing signal waveforms appearing on multiple transmission lines. FIG. 4 is a structural diagram showing the data structure of the channel/address setting RAM of the embodiment device. FIG. 5 is a plan view showing the console panel of the same embodiment device. FIG. 6 is a flowchart showing the computer processing of the apparatus of the embodiment. FIG. 7 is a flowchart showing the processing of the computer 26. FIG. 8 is a configuration diagram showing a system table created through processing by the same computer. P1...Reset pulse, P2, P4...Data signal, P6...Channel count pulse, 2
71...Channel display section, 272...Data display section, 270...Keyboard.
Claims (1)
多重伝送線路と、シーケンスコントローラとの間
を接続するインタフエースを備えたシーケンスコ
ントローラの多重伝送装置であつて、 前記インタフエースは、前記多重伝送線路に接
続され、該多重線路のチヤンネルを決定するカウ
ントパルスを入力するチヤンネルカウンタと、 前記シーケンスコントローラと前記多重伝送線
路の間に配設された、バツフアであつて、前記シ
ーケンスコントローラのアドレスバスに接続さ
れ、入出力アドレスの指定によつてアクセスされ
るデータ記憶装置と、 前記チヤンネルに対応した前記入出力アドレス
を記憶し、アドレスバスを前記チヤンネルカウン
タに接続し、データバスを前記データ記憶装置を
アクセスするそのアドレスバスに接続した記憶装
置から成り前記チヤンネルと入出力アドレスの変
換を行なうチヤンネル/アドレス変換装置と、 前記チヤンネル/アドレス変換装置に対し、該
装置へのアクセスが可能に接続され、前記チヤン
ネルに対応した前記入出力アドレスを前記チヤン
ネル/アドレス変換装置に設定する入出力アドレ
ス設定装置と、 前記チヤンネル/アドレス設定装置によつて設
定された入出力アドレスの重複設定を検出し、重
複した入出力アドレスを表示する重複設定検出装
置とから成ることを特徴とするシーケンスコント
ローラの多重伝送装置。[Scope of Claims] 1. A multiplex transmission device for a sequence controller, comprising an interface for connecting a time-division multiplex transmission line to which a plurality of transmitter/receiver units are connected and a sequence controller, the interface comprising: , a channel counter connected to the multiplex transmission line and inputting a count pulse for determining a channel of the multiplex transmission line; and a buffer disposed between the sequence controller and the multiplex transmission line, the buffer disposed between the sequence controller and the multiplex transmission line. a data storage device connected to the address bus of the channel counter and accessed by specifying an input/output address; and a data storage device that stores the input/output address corresponding to the channel, connects the address bus to the channel counter, and connects the data bus to the channel counter; a channel/address translation device comprising a storage device connected to the address bus for accessing a data storage device and converting the channel and input/output address; and a channel/address translation device capable of accessing the device. an input/output address setting device that is connected and sets the input/output address corresponding to the channel to the channel/address conversion device; and detects duplicate settings of the input/output address set by the channel/address setting device. 1. A multiplex transmission device for a sequence controller, comprising: a duplicate setting detection device for displaying duplicate input/output addresses.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26690284A JPS61145609A (en) | 1984-12-18 | 1984-12-18 | Multiplex transmitter of sequence controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP26690284A JPS61145609A (en) | 1984-12-18 | 1984-12-18 | Multiplex transmitter of sequence controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61145609A JPS61145609A (en) | 1986-07-03 |
| JPH0143322B2 true JPH0143322B2 (en) | 1989-09-20 |
Family
ID=17437243
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP26690284A Granted JPS61145609A (en) | 1984-12-18 | 1984-12-18 | Multiplex transmitter of sequence controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61145609A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01282606A (en) * | 1988-05-10 | 1989-11-14 | Fanuc Ltd | Pmc device |
| JPH0276432A (en) * | 1988-09-13 | 1990-03-15 | Matsushita Electric Ind Co Ltd | Communication device with address duplication detection function |
-
1984
- 1984-12-18 JP JP26690284A patent/JPS61145609A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61145609A (en) | 1986-07-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR880009311A (en) | Production line control system | |
| JPH06188850A (en) | Data transfer method and data transfer device | |
| US3921139A (en) | Test system having memory means at test module | |
| JPH0143322B2 (en) | ||
| JPH0339420B2 (en) | ||
| KR950033799A (en) | Remote controller and remote control method using LCD touch screen | |
| JPH028321B2 (en) | ||
| US5283647A (en) | Compatible digital processing unit for teletext and control method thereof | |
| JPH0332938B2 (en) | ||
| JPH05336060A (en) | Data signal switching system | |
| KR970058191A (en) | Combined Function Control Method of Remote Controller | |
| JPH0215112B2 (en) | ||
| JP2708366B2 (en) | Data processing system and auxiliary control device | |
| JPH04289776A (en) | Data transmission method between a plurality of inverters | |
| JP2940509B2 (en) | Data detection circuit | |
| KR920008781B1 (en) | Automatic controller for wire bonding apparatus | |
| JPH05282088A (en) | Data reading device for key matrix | |
| JPH0712233B2 (en) | Remote control signal generator | |
| SU1149238A1 (en) | Information input device | |
| KR970014442A (en) | How to receive multiple remote control signals | |
| JPH03106139A (en) | Discrimination device for quality of transmission line | |
| JPS6346868B2 (en) | ||
| JPH05103375A (en) | Remote control device | |
| JPS61170142A (en) | Serial data processing unit | |
| JPS6314257A (en) | Interface diagnosing system |