JP3016156B2 - Transmission equipment - Google Patents

Transmission equipment

Info

Publication number
JP3016156B2
JP3016156B2 JP2306873A JP30687390A JP3016156B2 JP 3016156 B2 JP3016156 B2 JP 3016156B2 JP 2306873 A JP2306873 A JP 2306873A JP 30687390 A JP30687390 A JP 30687390A JP 3016156 B2 JP3016156 B2 JP 3016156B2
Authority
JP
Japan
Prior art keywords
transmission
data
memory
signal
control circuit
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
JP2306873A
Other languages
Japanese (ja)
Other versions
JPH04178048A (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.)
Via Mechanics Ltd
Original Assignee
Hitachi Via Mechanics Ltd
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 Hitachi Via Mechanics Ltd filed Critical Hitachi Via Mechanics Ltd
Priority to JP2306873A priority Critical patent/JP3016156B2/en
Publication of JPH04178048A publication Critical patent/JPH04178048A/en
Application granted granted Critical
Publication of JP3016156B2 publication Critical patent/JP3016156B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータやNC装置などの処理装置(プロ
セッサ)と、それから離れた場所に設置された分離型I/
O装置の間のデータ伝送を司る伝送制御回路及び伝送制
御システムに関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a processing device (processor) such as a computer or an NC device, and a separation type I / O installed at a place away from the processing device.
The present invention relates to a transmission control circuit and a transmission control system that control data transmission between O devices.

〔従来の技術〕[Conventional technology]

工作機械やFA装置等は機械側に多数の電磁弁,モータ
等のアクチュエータやリミットスイッチ,近接センサ等
のセンサ類が取付けられている。これらのアクチュエー
タやセンサ類はNC装置やシーケンスコントローラ(シー
ケンサ)で制御されるが、NC装置やシーケンサは機械と
分離された制御筐体に収納される場合が多く、前記アク
チュエータやセンサ等へのI/O信号線が機械と該制御筐
体の間に布線されている。
2. Description of the Related Art Machine tools, FA devices, and the like are provided with a large number of solenoid valves, actuators such as motors, and sensors such as limit switches and proximity sensors on the machine side. These actuators and sensors are controlled by an NC device or a sequence controller (sequencer), but the NC device or sequencer is often housed in a control housing separated from the machine. An / O signal line is routed between the machine and the control enclosure.

しかし、I/O信号点数の増大につれ、布線本数が多く
なり、布線の占めるスペースや布線処理等が問題になっ
た。一方、電子部品の発達により、前記プロセッサはま
すます小型,高性能となり、I/O信号線を接続するため
のスペースが小型化や、プロセッサ設置位置選定のあい
路となってきた。
However, as the number of I / O signal points increases, the number of wirings increases, and the space occupied by the wirings, wiring processing, and the like have become problems. On the other hand, due to the development of electronic components, the processors have become smaller and higher in performance, and the space for connecting I / O signal lines has become smaller, and it has become a path for selecting a processor installation position.

そこでプロセッサと、I/O装置やサーボ装置,場合に
よっては、NC装置とシーケンサまでも分離し、前者(プ
ロセッサ)は操作機器(スイッチやキーボード,CRT等)
を含むもので、操作者の利便を考慮した位置に設置し、
後者(I/O装置やサーボ装置,場合によっては、NC装置
とシーケンサまで)は布線や機械構造を考慮した上での
合理的な位置に設置されるようになった。そして、それ
らの間が電気的あるいは光学的通信路で結ばれている。
Therefore, the processor is separated from the I / O device and servo device, and in some cases, the NC device and the sequencer, and the former (processor) is the operating device (switch, keyboard, CRT, etc.)
It is installed in a position considering the convenience of the operator,
The latter (up to I / O devices and servo devices, and in some cases up to NC devices and sequencers) have come to be installed at reasonable positions taking into account wiring and mechanical structure. These are connected by an electrical or optical communication path.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

上述の通信路としては、布線量を減少させるために、
シリアル伝送路が用いられる場合が多いが、その場合、
例えば、RS−232−C規格に準拠した伝送方式が使用さ
れている。この場合、直列伝送制御用ICは各種市販され
ていて、標準的な回路構成が確立されているので、ハー
ドウェア設計は比較的簡単に行われる。しかし、I/O装
置側にもマイクロプロセッサを備える必要がある上、プ
ロセッサ側、I/O装置側ともに通信処理用の複雑なソフ
トウェアを要する。特に問題となるのは、伝送の一方の
側(例えばプロセッサ)が他方の側で発生した事象(例
えばセンサ信号のような入力信号)を表す信号データを
参照(取り込み)しようとする場合である。この場合、
プロセッサは、まず、要求内容を示す信号、例えば参照
したいデータのアドレスをI/O装置側に送り、I/O装置側
は送られて来た信号を解析して必要な信号データを回答
として送り返す。一方、プロセッサ側は回答つまりデー
タの返送を待ち続ける。この為、繁雑なプログラムを要
するとともにプロセッサのデータ処理性能が低下する。
しかも、伝送回線の容量すなわち必要なデータ量に対す
る伝送のビットレートを大きくとって、伝送遅延に対処
しなければならない等の問題があった。
As the above communication path, in order to reduce the cloth dose,
In many cases, a serial transmission line is used.
For example, a transmission system conforming to the RS-232-C standard is used. In this case, since various serial transmission control ICs are commercially available and a standard circuit configuration is established, hardware design is relatively easy. However, the I / O device must include a microprocessor, and both the processor and the I / O device require complicated software for communication processing. A particular problem arises when one side of the transmission (eg, a processor) attempts to reference (capture) signal data representing an event (eg, an input signal such as a sensor signal) that has occurred on the other side. in this case,
The processor first sends a signal indicating the content of the request, for example, the address of the data to be referred to, to the I / O device side, and the I / O device analyzes the sent signal and sends back necessary signal data as an answer . On the other hand, the processor continues to wait for an answer, that is, a return of data. Therefore, a complicated program is required and the data processing performance of the processor is reduced.
In addition, there is a problem that the transmission bit rate must be increased with respect to the capacity of the transmission line, that is, the required data amount, to cope with the transmission delay.

本発明の課題は、分離型I/O装置とプロセッサ間を、
複雑な通信用ソフトウェアを用いることなく、プロセッ
サが入力信号を参照しようとする場合もプロセッサの処
理能力を低下させることなく、シリアル伝送回路で結合
するにある。
An object of the present invention is to provide a communication between a separated I / O device and a processor.
Even when the processor tries to refer to the input signal without using complicated communication software, the connection is made by the serial transmission circuit without reducing the processing capability of the processor.

〔課題を解決するための手段〕[Means for solving the problem]

上記の課題は、双方向に直列信号を伝送する伝送路
と、この伝送路に接続されてデータの送受信を行う一対
の伝送制御回路と、を含んでなる伝送装置において、各
伝送制御回路の送信側に、送信信号を格納するメモリと
該メモリに格納された前記送信信号をあらかじめ定めら
れた順に取り出して直列電気信号に変換し構成データ長
が一定のデータブロックとして送出する並直変換回路と
を設け、各伝送制御回路の受信側に、受信したデータブ
ロックを並列化する直並変換回路とこの直並変換回路の
出力をあらかじめ定められた順に格納するメモリとを設
け、前記一対の伝送制御回路は、いずれか一方が送信す
るデータブロックの数を規定する信号を他方の伝送制御
回路に送信したのち前記直列電気信号に変換されたデー
タブロックの送出を開始したとき、他方の伝送制御回路
は、受信したデータブロックを直並変換して前記定めら
れた順に前記受信信号を格納するメモリに格納するとと
もに、前記送信信号を格納するメモリに格納された送信
信号を前記定められた順に取出して並直変換し、前記一
方の伝送制御回路から他方の伝送制御回路への各データ
ブロックの送出に合わせて、前記一方の伝送制御回路へ
の前記並直変換されたデータブロックの送出を行うもの
とすることによって達成される。
The above object is achieved by a transmission apparatus including a transmission path for transmitting serial signals in two directions and a pair of transmission control circuits connected to the transmission path for transmitting and receiving data. On the side, a memory for storing the transmission signal and a parallel-to-parallel conversion circuit that extracts the transmission signal stored in the memory in a predetermined order, converts it into a serial electric signal, and sends it out as a data block having a fixed data length. A serial-parallel conversion circuit for parallelizing the received data blocks and a memory for storing the output of the serial-parallel conversion circuit in a predetermined order on the receiving side of each transmission control circuit; Transmits a signal specifying the number of data blocks to be transmitted by one of them to the other transmission control circuit, and then starts transmitting the data block converted to the serial electric signal. Then, the other transmission control circuit converts the received data block into a parallel-to-parallel format and stores the data block in the memory storing the reception signal in the predetermined order, and the transmission signal stored in the memory storing the transmission signal. Is taken out in the predetermined order and subjected to the parallel-to-parallel conversion, and in accordance with the transmission of each data block from the one transmission control circuit to the other transmission control circuit, the parallel-to-parallel conversion is performed to the one transmission control circuit. This is achieved by sending data blocks.

各伝送制御回路は、前記送信信号が格納されたメモリ
からの送信信号の取り出し、並直変換及び送出からなる
送信動作を前記送信信号が格納されたメモリのアドレス
順に行うとともに、受信したデータブロックの直並変換
と直並変換回路の出力をアドレス順にメモリに格納する
更新動作を行い、前記規定された数のデータブロックの
送出が終了したら、前記送信信号を格納したメモリの最
初のアドレスに戻って前記送信動作を繰り返すととも
に、前記更新動作を、直並変換回路の出力をアドレス順
に格納するメモリの最初のアドレスに戻って繰り返すも
のとするのが望ましい。
Each transmission control circuit takes out the transmission signal from the memory in which the transmission signal is stored, performs a transmission operation consisting of parallel conversion and transmission in the order of the address of the memory in which the transmission signal is stored, and executes the transmission of the received data block. Performs an update operation of storing the output of the serial-parallel conversion and the serial-parallel conversion circuit in the address order in the memory, and when the transmission of the specified number of data blocks is completed, returns to the first address of the memory storing the transmission signal. Preferably, the transmitting operation is repeated, and the updating operation is repeated by returning to the first address of the memory that stores the output of the serial-parallel conversion circuit in address order.

〔作用〕[Action]

データ伝送にあたっては、送信部では、メモリの送信
信号格納部のデータがアドレス順に取り出され、直列電
気信号に変換して送出される。設定された最終アドレス
のデータまで送出されたら、自動的に最初のアドレスに
戻ってデータの送出が繰り返される。一方、受信部で
は、受信端で受信された直列電気信号が並列信号に変換
され、メモリの受信信号格納部にアドレス順に格納され
る。設定された最終アドレスまでデータが格納された
ら、自動的に最初のアドレスに戻って受信とデータの格
納が繰り返される。
In data transmission, in the transmission section, data in the transmission signal storage section of the memory is taken out in address order, converted into a serial electric signal, and transmitted. When the data at the set final address has been transmitted, the operation automatically returns to the first address and repeats the data transmission. On the other hand, in the receiving unit, the serial electric signal received by the receiving end is converted into a parallel signal, and stored in the received signal storage unit of the memory in order of address. When the data is stored up to the set final address, the process automatically returns to the first address and the reception and the data storage are repeated.

前記「最初のアドレス」から「設定された最終アドレ
ス」までのアドレス幅は、送信用と受信用とで同一であ
る。そして初期同期化動作により、最初のアドレスの送
信と受信とほぼ同時に行われる。
The address width from the “first address” to the “set last address” is the same for transmission and reception. By the initial synchronization operation, transmission and reception of the first address are performed almost simultaneously.

〔実施例〕〔Example〕

第1図及び第2図に本発明の実施例を示す。第1図に
おいて、プロセッサ4と分離型I/O装置5Aがデータ伝送
路3により結合され、分離型I/O装置5Aは被制御対象6
に接続されている。本実施例においては、データ伝送路
3は電気信号を伝送するものであるが、光学的信号を伝
送するもの,例えば光ファイバでもよい。プロセッサ4
は中央処理装置(CPU)7Aを中心に構成されたNC装置で
あり、シーケンスコントローラ(シーケンサ)等でもよ
い。CPU7Aとデータ伝送路3はプロセッサ側伝送制御回
路1を介して接続されている。
1 and 2 show an embodiment of the present invention. In FIG. 1, a processor 4 and a separation type I / O device 5A are connected by a data transmission line 3, and the separation type I / O device 5A
It is connected to the. In the present embodiment, the data transmission path 3 transmits an electric signal, but may transmit an optical signal, for example, an optical fiber. Processor 4
Is an NC device mainly composed of a central processing unit (CPU) 7A, and may be a sequence controller (sequencer) or the like. The CPU 7A and the data transmission path 3 are connected via the processor-side transmission control circuit 1.

分離型I/O装置5Aは、被制御対象(一般には工作機械,
FA装置等の機械)6とデータ伝送路3を結ぶインターフ
ェイス装置であり、出力回路8と入力回路9と該入出力
回路8,9とデータ伝送路3を接続するI/O装置側伝送制御
回路2Aとを含んで構成されている。その機能の一つは、
プロセッサ4からデータ伝送路3を介して送られてくる
データにより、出力回路8をオン・オフさせることであ
る。このオン・オフにより、被制御対象6である機械の
バルブ・モータ等のアクチュエータを制御し,あるいは
ランプを点滅させて状態を表示する。その機能の他の一
つは、入力回路9を介して入力される、リミットスイッ
チや近接センサ等のセンサ信号、あるいはマニュアルス
イッチのスイッチ情報等をデータ伝送路3を通してプロ
セッサ4に伝達することである。
The separation type I / O device 5A is a controlled object (generally a machine tool,
An interface device that connects the machine 6 such as an FA device) to the data transmission line 3, and an output circuit 8, an input circuit 9, and an I / O device-side transmission control circuit that connects the input / output circuits 8, 9 and the data transmission line 3. 2A. One of its functions is
That is, the output circuit 8 is turned on / off by data transmitted from the processor 4 via the data transmission path 3. By this ON / OFF, the actuator such as the valve / motor of the machine to be controlled 6 is controlled or the lamp is blinked to indicate the state. Another of the functions is to transmit a sensor signal of a limit switch, a proximity sensor, or the like, or switch information of a manual switch, which is input through the input circuit 9, to the processor 4 through the data transmission path 3. .

被制御対象6が、モータを駆動して機械の速度や位置
の制御を行うサーボ装置を含む場合、出力回路8を介し
て出力される信号には、位置指令信号,速度指令信号や
モータ電流指令信号があり、入力回路9を介して入力さ
れる信号には、位置センサ,速度センサや電流センサ等
のセンサ信号がある。
When the controlled object 6 includes a servo device that drives the motor to control the speed and position of the machine, the signals output via the output circuit 8 include a position command signal, a speed command signal, and a motor current command. There are signals, and the signals input through the input circuit 9 include sensor signals such as a position sensor, a speed sensor, and a current sensor.

出力回路8にディジタル−アナログ変換回路を含め
ば、分割型I/O装置5Aはアナログ信号の出力が可能であ
るし、入力回路9にアナログ−ディジタル変換回路を含
めば、アナログ信号の入力が可能である。
If the output circuit 8 includes a digital-analog conversion circuit, the split-type I / O device 5A can output analog signals. If the input circuit 9 includes an analog-digital conversion circuit, analog signals can be input. It is.

I/O装置側伝送制御回路2Aは、データ伝送路3を通し
て送られてきたデータを出力回路8に出力し、一方、入
力回路9を通して得られるデータをデータ伝送路3を通
してプロセッサ4に伝達するための回路である。
The I / O device side transmission control circuit 2A outputs the data transmitted through the data transmission line 3 to the output circuit 8, while transmitting the data obtained through the input circuit 9 to the processor 4 through the data transmission line 3. Circuit.

第3図は、データ伝送路3を通過する信号の概念を示
し、第4図は、その信号の1ブロックの構成例を示す。
また、以下の説明においては、信号のない場合を「0」
レベルとし、信号のある場合を「1」レベルとする。ま
た、図の左方が先行事象であり、右方ほど後発事象とす
る。第4図において、ヘッダHは1ブロックの先頭を意
味し、「1」レベルとする。通常「0」レベルであるリ
クェストビットRは、プロセッサ側伝送制御回路1と、
I/O装置側伝送制御回路2Aとの同期用ビットである。第
3欄のDATAは、8bit,16bit等の固定長のデータである。
末尾がパリティビットPであり、ブロック全体として固
定長である。
FIG. 3 shows the concept of a signal passing through the data transmission line 3, and FIG. 4 shows a configuration example of one block of the signal.
Further, in the following description, “0” indicates that there is no signal.
The level is set to “1” when there is a signal. The left side of the figure is a preceding event, and the right side is a subsequent event. In FIG. 4, the header H indicates the head of one block, and is set to the “1” level. The request bit R, which is normally at “0” level,
This is a bit for synchronization with the I / O device side transmission control circuit 2A. DATA in the third column is data of a fixed length such as 8 bits and 16 bits.
The end is a parity bit P, which has a fixed length as a whole block.

このデータブロックが、データ伝送路3上を第3図に
示されるように次々に伝送される。第3図(a)はプロ
セッサから分離型I/O装置へ伝達される信号を、第3図
(b)は分離型I/O装置からプロセッサへ伝達される信
号を、それぞれ示している。
These data blocks are sequentially transmitted on the data transmission path 3 as shown in FIG. FIG. 3 (a) shows a signal transmitted from the processor to the separation type I / O device, and FIG. 3 (b) shows a signal transmitted from the separation type I / O device to the processor.

以下、上記構成の装置におけるデータ伝送方法を説明
する。電源投入後、CPU7Aの指令により、プロセッサ側
伝送制御回路1は、伝送開始の合図として、Rに
「1」、DATAに伝送するワード数(以下imaxという)
を載せたブロックを送る。最初のブロックの伝送後、予
め設計された数クロックの休止期間をおいてワード0の
ブロックを伝送し、以下、ワード1,ワード2…と順次伝
送する。ワードimaxまで伝送を終えるとワード0に戻
り、再びワード1,ワード2…と無限に繰り返して伝送す
る。ワード0,ワード1,ワード2…ワードimaxの伝送に
おいては、Rは「0」レベルに設定される。第3図の伝
送例はimaxが10に設定された場合である。この時、プ
ロセッサ側伝送制御回路1からI/O装置側伝送制御回路2
Aに送られるワード0〜…ワードimaxのデータは必ずし
も特定の意味を持つ制御信号等である必要はない。
Hereinafter, a data transmission method in the device having the above configuration will be described. After the power is turned on, the processor-side transmission control circuit 1 instructs the processor-side transmission control circuit 1 to signal the start of transmission by "1" for R and the number of words to be transmitted to DATA (hereinafter, imax).
And send the block with. After the transmission of the first block, the block of word 0 is transmitted after a pause period of several clocks designed in advance, and thereafter, the block is transmitted in order of word 1, word 2, and so on. When the transmission is completed up to the word imax, the process returns to the word 0, and the transmission is repeated indefinitely as the word 1, the word 2, and so on. In the transmission of word 0, word 1, word 2... Word imax, R is set to the "0" level. The transmission example in FIG. 3 is a case where imax is set to 10. At this time, the transmission control circuit 1 on the processor side transmits the transmission control circuit 2 on the I / O device side.
The data of word 0 to word imax sent to A need not necessarily be a control signal or the like having a specific meaning.

一方、I/O装置側伝送制御回路2Aは、最初の、Rが
「1」レベルであるブロックを受信して動作を開始す
る。受信したimax値を、自己のレジスタに格納し、R
が「1」レベルであるブロックの受信終了後、数クロッ
クの休止期間をおいてプロセッサ側伝送制御回路1に対
し、入力回路9から取り出したワード0のブロックを伝
送し、以下、ワード1,ワード2…と順次伝送する。ワー
ドimaxまで伝送を終えるとワード0に戻り、再びワー
ド1,ワード2…と無限に繰り返して伝送する。プロセッ
サ側伝送制御回路1は、受信したデータブロックのRビ
ットの値は無視し、受信したデータを受信順に内部メモ
リ11の定められたアドレスに格納する。このように、R
ビットを使用することにより、双方向の伝送データのア
ドレスを毎回送信することなく、データを伝送できた。
なお、送信したブロックがワード0であれば、同時に受
信したブロックがワード0であることは明白である。休
止期間には、Rビット,Pビットの判定,送信準備等に必
要なクロック数を回路設計時に設定する。
On the other hand, the I / O device side transmission control circuit 2A receives the first block in which R is at the “1” level, and starts operating. The received imax value is stored in its own register.
After completion of the reception of the block having the “1” level, a block of word 0 taken out from the input circuit 9 is transmitted to the processor-side transmission control circuit 1 after a pause of several clocks. 2 and so on. When the transmission is completed up to the word imax, the process returns to the word 0, and the transmission is repeated indefinitely as the word 1, the word 2, and so on. The processor-side transmission control circuit 1 ignores the value of the R bit of the received data block and stores the received data at a predetermined address in the internal memory 11 in the order of reception. Thus, R
By using bits, data could be transmitted without transmitting the address of bidirectional transmission data each time.
If the transmitted block is word 0, it is clear that the simultaneously received block is word 0. In the idle period, the number of clocks required for the determination of the R bit and the P bit, preparation for transmission, and the like are set at the time of circuit design.

送信,受信のデータはプロセッサ側伝送制御回路1に
おいてはメモリ11から取り出され、もしくは格納され、
I/O装置側伝送制御回路2Aにおいては、ワードiに対応
するアドレス線にアドレス信号がI/O装置側伝送制御回
路2Aから出力されるので、それに応じて、入力回路9か
らI/O装置側伝送制御回路2Aへ入力され、あるいは出力
回路8へI/O装置側伝送制御回路2Aから出力される。
The transmission and reception data is extracted or stored from the memory 11 in the processor-side transmission control circuit 1,
In the I / O device-side transmission control circuit 2A, an address signal is output from the I / O device-side transmission control circuit 2A to the address line corresponding to the word i. It is input to the transmission control circuit 2A on the side, or output from the transmission control circuit 2A on the I / O device side to the output circuit 8.

第2図に本発明の第2の実施例を示す。本実施例が前
記第1の実施例と異なるのは、I/O装置側伝送制御回路2
Bがプロセッサ側伝送制御回路1と同様にメモリ11を含
んで構成され、さらに、入力回路9,出力回路8及びI/O
装置側伝送制御回路2Bに接続してCPU7Bが設けられてい
る点にある。本実施例においては、送信,受信のデータ
は、プロセッサ側伝送制御回路1,I/O装置側伝送制御回
路2Bの双方で、メモリ11から取り出され、もしくは格納
される。分離型I/O装置5Bにおいては、入力回路9に入
力する信号はCPU7BによってI/O装置側伝送制御回路2Bの
メモリ11に格納され、前述の手順により、プロセッサ側
伝送制御回路1のメモリ11に順次伝送される。また、被
制御対象6に出力される信号は、CPU7BによってI/O装置
側伝送制御回路2Bのメモリ11から出力回路8に移され
る。つまり、本実施例の場合、前記第1の実施例に比べ
ると、データを保持する部分が、入出力回路8,9とメモ
リ11の2段階となっている点が異なる。
FIG. 2 shows a second embodiment of the present invention. This embodiment is different from the first embodiment in that the I / O device side transmission control circuit 2
B includes a memory 11 similarly to the processor-side transmission control circuit 1, and further includes an input circuit 9, an output circuit 8, and an I / O
The point is that a CPU 7B is provided so as to be connected to the device-side transmission control circuit 2B. In the present embodiment, transmission and reception data are taken out of the memory 11 or stored in both the processor-side transmission control circuit 1 and the I / O device-side transmission control circuit 2B. In the separation type I / O device 5B, the signal input to the input circuit 9 is stored in the memory 11 of the I / O device side transmission control circuit 2B by the CPU 7B, and the memory 11 of the processor side transmission control circuit 1 is processed according to the above-described procedure. Are sequentially transmitted. The signal output to the controlled object 6 is transferred from the memory 11 of the I / O device side transmission control circuit 2B to the output circuit 8 by the CPU 7B. That is, the present embodiment is different from the first embodiment in that the portion for holding data has two stages of the input / output circuits 8, 9 and the memory 11.

本実施例によれば、伝送制御回路にメモリが内蔵さ
れ、上位(プロセッサ)側,下位(I/O装置)側の双方
の伝送制御回路内のメモリに、多少の時間遅延を伴うも
のの、伝送制御回路の外からはあたかも同一のデータが
格納されているかのように見えるようなデータ転送が自
動的に行われるので、前述のCPUの負担が解消され、伝
送制御回路のメモリにデータを書き込むだけでデータが
転送されると同時に、メモリからデータを読みだすのみ
で必要なデータが得られる。この方法によりアドレスの
伝送が不要となり、伝送ビットレートに対する伝送され
る有意味データの比率を向上させることができた。ま
た、データ伝送は、自律的にかつ循環して行われるの
で、外部回路はデータ伝送による負担が減少し、データ
伝送を意識してプログラムを組んだり、回路を設計した
りする必要がないので、プログラムや外部回路の簡略化
が可能となった。
According to this embodiment, the memory is built in the transmission control circuit, and the memory in the transmission control circuit on both the upper (processor) side and the lower (I / O device) side has some time delay, Data transfer is automatically performed as if the same data is stored from outside the control circuit, eliminating the burden on the CPU described above and only writing data to the memory of the transmission control circuit. The necessary data can be obtained simply by reading the data from the memory at the same time as the data is transferred. According to this method, the transmission of the address becomes unnecessary, and the ratio of the meaningful data transmitted to the transmission bit rate can be improved. In addition, since data transmission is performed autonomously and cyclically, the load on the external circuit due to data transmission is reduced, and there is no need to design programs or design circuits with awareness of data transmission, Simplification of programs and external circuits has become possible.

伝送途中のある時点で、繰返し更新するデータの範囲
を変えたい場合や、緊急に特定のデータがほしいとき等
に、CPU7Aからの指令により、リクェストビットRに
「1」をたて、DATAに新しいimaxの値を載せたブロッ
クを伝送することができる。I/O装置側伝送制御回路2A
あるいは2Bは、Rが「1」であることにより、imaxの
値の更新と判断して、新しいimax値を自己のレジスタ
に格納するとともに、次に送信するブロックはワード0
のブロックとし、以下、順次ワード1,ワード2…のブロ
ックを伝送する。プロセッサ側伝送制御回路1もRに
「1」をたてたブロックの伝送後、Rを「0」に戻し
て、ワード0の送受信から再開する。これにより例え
ば、装置の起動時など大量のデータを必要とする時期が
終わり、定常運転に入って必要なデータ量が減った場合
に、imax値を減らすことにより更新するデータ数を少
なくし、リアルタイム性(応答性)を向上させることが
できる。また、ワード0〜imaxのデータを重要度の高
いものを若い番号に配列しておき、重要なデータのみを
リアルタイムで監視したい場合に、imaxを該重要なデ
ータを含む範囲に限定することにより、当該データの伝
送直後であっても速やかに再送させることが可能であ
る。
At a certain point during transmission, when it is desired to change the range of data to be repeatedly updated, or when a specific data is urgently required, etc., the request bit R is set to "1" by a command from the CPU 7A, and a new data is stored in DATA. A block carrying the value of imax can be transmitted. I / O device side transmission control circuit 2A
Alternatively, 2B determines that the value of imax has been updated because R is "1", stores the new imax value in its own register, and sets the next block to be transmitted to the word 0.
, And thereafter, blocks of word 1, word 2,... Are sequentially transmitted. After transmitting the block in which R is set to "1", the processor-side transmission control circuit 1 also returns R to "0" and resumes transmission / reception of word 0. Thus, for example, when the time when a large amount of data is required, such as when the apparatus is started, ends, and when the required data amount is reduced by entering the steady operation, the number of data to be updated is reduced by reducing the imax value, and Performance (responsiveness) can be improved. In addition, when the data of words 0 to imax are arranged in the order of higher importance and smaller numbers, and only the important data is to be monitored in real time, imax is limited to the range including the important data. Even immediately after the transmission of the data, it is possible to promptly retransmit the data.

第5図に、プロセッサ側伝送制御回路1のブロック図
の例を示す。これはI/O装置側伝送制御回路2Bとも共通
である。図示のプロセッサ側伝送制御回路1は、データ
入出力端子25にメモリインタフェイス回路16を介して接
続されたランダムアクセス可能なメモリ11と、該メモリ
11に接続されたもう1つのメモリインタフェイス回路17
と、該メモリインタフェイス回路17に接続された同期制
御回路19と、該同期制御回路19に受信制御回路15を介し
て接続されたクロック入力端子24と、前記同期制御回路
19に送信制御回路13を介して接続された同期クロック出
力端子22と、前記受信制御回路15に直並変換回路14を介
して接続されたデータ受信端子23と、前記送信制御回路
13に並直変換回路12を介して接続されたデータ送信出力
端子21と、前記メモリインタフェイス回路16,17に接続
された調停回路18とを含んで構成されている。メモリイ
ンタフェイス回路17は、前記並直変換回路12及び直並変
換回路14にも接続されている。また、前記メモリ11は、
送信信号格納部11Aと受信信号格納部11Bに区分されてい
る。
FIG. 5 shows an example of a block diagram of the processor-side transmission control circuit 1. This is common to the I / O device side transmission control circuit 2B. The illustrated processor-side transmission control circuit 1 includes a randomly accessible memory 11 connected to a data input / output terminal 25 via a memory interface circuit 16;
Another memory interface circuit 17 connected to 11
A synchronization control circuit 19 connected to the memory interface circuit 17; a clock input terminal 24 connected to the synchronization control circuit 19 via a reception control circuit 15;
A synchronous clock output terminal 22 connected to the transmission control circuit 13 via a transmission control circuit 13; a data reception terminal 23 connected to the reception control circuit 15 via a serial / parallel conversion circuit 14;
13 includes a data transmission output terminal 21 connected via a parallel / parallel conversion circuit 12 and an arbitration circuit 18 connected to the memory interface circuits 16 and 17. The memory interface circuit 17 is also connected to the serial / parallel conversion circuit 12 and the serial / parallel conversion circuit 14. Further, the memory 11 includes:
It is divided into a transmission signal storage section 11A and a reception signal storage section 11B.

上記構成の伝送制御装置の動作を以下に説明する。デ
ータ入出力端子25から入力されるデータは、メモリイン
タフェイス回路16を介してメモリ11の送信信号格納部11
Aに書き込まれる。送信信号格納部11Aに書き込まれたデ
ータは、メモリインタフェイス回路17を介して並直変換
回路12に送りこまれ、直列信号に変換されたのちデータ
送信出力端子21より送出される。この信号は同期クロッ
ク出力端子22より出力される送信クロックに同期してい
る。
The operation of the transmission control device having the above configuration will be described below. Data input from the data input / output terminal 25 is transmitted to the transmission signal storage unit 11 of the memory 11 through the memory interface circuit 16.
Written to A. The data written in the transmission signal storage unit 11A is sent to the parallel / parallel conversion circuit 12 via the memory interface circuit 17, converted into a serial signal, and transmitted from the data transmission output terminal 21. This signal is synchronized with the transmission clock output from the synchronization clock output terminal 22.

データ受信端子23に入力された直列信号は、直並変換
回路14で並列信号に変換され、メモリインタフェイス回
路17を介してメモリ11の受信信号格納部11Bに書き込ま
れる。受信信号格納部11Bに書き込まれたデータは、デ
ータ入出力端子25に読出しコマンドが入力されると、メ
モリインタフェイス回路16を介してデータ入出力端子25
に出力される。メモリインタフェイス回路16,17の双方
が同時にメモリ11へアクセスしようとしたときは、調停
回路18の働きにより、高い優先順位を持つ方のアクセス
が先になる。
The serial signal input to the data receiving terminal 23 is converted into a parallel signal by the serial / parallel conversion circuit 14, and is written to the reception signal storage unit 11B of the memory 11 via the memory interface circuit 17. When a read command is input to the data input / output terminal 25, the data written to the received signal storage unit 11B is transmitted to the data input / output terminal 25 via the memory interface circuit 16.
Is output to When both of the memory interface circuits 16 and 17 try to access the memory 11 at the same time, the arbitration circuit 18 works to access the memory with the higher priority first.

データ受信端子23に入力される直列信号は、クロック
入力端子24に入力されるクロック信号と同期していて、
このクロック信号を使用することにより、正しく並列信
号に変換される。データ送信出力端子21,データ受信端
子23の直列信号のビットレートに対して十分高い内部ク
ロックを使用して、非同期式伝送制御回路を構成するこ
とも可能である。
The serial signal input to the data receiving terminal 23 is synchronized with the clock signal input to the clock input terminal 24,
By using this clock signal, it is correctly converted to a parallel signal. It is also possible to configure an asynchronous transmission control circuit using an internal clock that is sufficiently high with respect to the bit rate of the serial signal of the data transmission output terminal 21 and the data reception terminal 23.

しかし、同期クロック出力端子22か出力されるクロッ
クの周波数と、クロック入力端子24に入力されるクロッ
クの周波数とは同一もしくは近似のものでなければなら
ない。
However, the frequency of the clock output from the synchronous clock output terminal 22 and the frequency of the clock input to the clock input terminal 24 must be the same or similar.

次に、データとメモリ11のアドレスについて説明す
る。メモリ11はアドレス0〜31(十進数、以下すべて十
進数表示する)の32ワード構成として説明する。送信信
号格納部11Aのアドレスは0〜15、受信信号格納部11Bの
アドレスは16〜31である。同期制御回路19による初期同
期化により、アドレス0に書き込まれているデータが送
出されている間に、同時にデータ受信端子23から受信さ
れているデータは、並列変換後、アドレス16に書き込ま
れる。次にアドレス1のデータが送出され、同時に受信
されたデータはアドレス17に書き込まれる。次は、アド
レス2と18が送受のペアという具合にアドレスはインク
リメントされていく。予め設定されている最終アドレス
(例えばimaxが10と設定されていたとするとアドレス
9と25のペアが最終アドレスとなる)のデータ送受が完
了すると、再びアドレス0と16のペアに戻ってデータの
送出と受信を継続する。
Next, data and addresses of the memory 11 will be described. The memory 11 will be described as a 32-word configuration having addresses 0 to 31 (decimal numbers, hereinafter all represented in decimal numbers). The addresses of the transmission signal storage unit 11A are 0 to 15, and the addresses of the reception signal storage unit 11B are 16 to 31. By the initial synchronization by the synchronization control circuit 19, while the data written to the address 0 is being transmitted, the data received from the data receiving terminal 23 at the same time is written to the address 16 after the parallel conversion. Next, the data at the address 1 is transmitted, and the data received at the same time is written to the address 17. Next, the addresses are incremented so that addresses 2 and 18 are pairs of transmission and reception. When the data transmission / reception of the preset final address (for example, if imax is set to 10, the pair of addresses 9 and 25 becomes the final address) is completed, the data returns to the pair of addresses 0 and 16 and the data is transmitted again. And continue receiving.

第6図は前記第1図のI/O装置側伝送制御回路2Aの構
成の実施例を示すブロック図で、前記第5図に示された
例に比べ、メモリ11,メモリインタフェイス回路16,調停
回路18がなく、メモリインタフェイス回路17に接続して
受信用アドレスカウンタ27,送信用アドレスカウンタ28
が設けられている。本伝送制御回路は、送信用アドレス
カウンタ28の値とリードコマンドを入出力端子25より出
力して伝送制御回路外部のレジスタから送信データを受
け取り、受け取った送信データを同期制御回路19,送信
制御回路13,並直変換回路12を経てデータ送信出力端子2
1から出力する。データ受信端子23を経て受信データが
入力されると、受信用アドレスカウンタ27の値とライト
コマンドを入出力端子25より出力して伝送制御回路外部
のレジスタへ受信データを格納する。各アドレスカウン
タは、その値が一度使用されるたびにアップカウントさ
れ、当該伝送制御回路と対をなす伝送制御回路に内装さ
れるアドレスカウンタの値も、ほぼ同期してカウントア
ップする。
FIG. 6 is a block diagram showing an embodiment of the configuration of the I / O device-side transmission control circuit 2A of FIG. 1, and is different from the example shown in FIG. There is no arbitration circuit 18 and it is connected to the memory interface circuit 17 to connect to the reception address counter 27 and the transmission address counter 28
Is provided. The transmission control circuit outputs the value of the transmission address counter 28 and the read command from the input / output terminal 25, receives transmission data from a register outside the transmission control circuit, and transmits the received transmission data to the synchronization control circuit 19, the transmission control circuit. 13, Data transmission output terminal 2 via parallel-to-parallel conversion circuit 12
Output from 1. When the received data is input via the data receiving terminal 23, the value of the receiving address counter 27 and the write command are output from the input / output terminal 25, and the received data is stored in a register outside the transmission control circuit. Each address counter is incremented each time its value is used once, and the value of the address counter incorporated in the transmission control circuit paired with the transmission control circuit also counts up almost in synchronization.

第7図は、第6図に示された伝送制御回路1と外部レ
ジスタ29,30の接続状態を示している。本実施例によれ
ば、送受信データをフリップフロップ等のレジスタより
授受する場合、通信制御用のコントローラを必要とせず
にレジスタと送受信データを授受きるので、経済的にも
機能的にも冗長のない伝送制御が行える効果がある。
FIG. 7 shows a connection state between the transmission control circuit 1 and the external registers 29 and 30 shown in FIG. According to the present embodiment, when transmitting and receiving data from a register such as a flip-flop, the transmitting and receiving data is transmitted and received without using a controller for communication control, so that there is no redundancy in terms of economy and function. There is an effect that transmission control can be performed.

〔発明の効果〕〔The invention's effect〕

本発明によれば、伝送路下位端の所定の範囲のデータ
が、伝送路上位端のメモリに定められた順序で繰返し伝
送され、伝送路上位端のメモリが、常時最新のデータに
更新されるので、データごとにアドレスを付加して伝送
する必要がなく、伝送ビット数が減って伝送速度が向上
する。
According to the present invention, data in a predetermined range at the lower end of the transmission path is repeatedly transmitted in the order determined in the memory at the upper end of the transmission path, and the memory at the upper end of the transmission path is constantly updated with the latest data. Therefore, there is no need to add an address for each data and transmit the data, and the number of transmission bits is reduced, and the transmission speed is improved.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の第1の実施例を要部構成を示すブロッ
ク図、第2図は本発明の第2の実施例を示すブロック
図、第3図は伝送されるデータの順序を説明する概念
図、第4図は伝送されるデータの構成例を示す概念図、
第5図は本発明の伝送制御回路の実施例を示すブロック
図、第6図は本発明の伝送制御回路の他の実施例を示す
ブロック図、第7図は第6図に示した実施例と外部レジ
スタの接続状態を示すブロック図である。 1……プロセッサ側伝送制御回路、2A,2B……I/O装置側
伝送制御回路、3……伝送路、4……制御装置、5A,5B
……I/O装置,6……被制御対象、7A,7B……CPU,8……出
力回路、9……入力回路、11……メモリ、12……並直変
換回路、13……送信制御回路、14……直並変換回路、15
……受信制御回路、16,17……メモリインタフェイス回
路、18……調停回路、19……同期制御回路、21……デー
タ送信出力端子、22……同期クロック出力端子、23……
データ送信端子、24……クロック入力端子、25……デー
タ入出力端子、27……受信用アドレスカウンタ、28……
送信用アドレスカウンタ、29,30……外部レジスタ。
FIG. 1 is a block diagram showing a main part of a first embodiment of the present invention, FIG. 2 is a block diagram showing a second embodiment of the present invention, and FIG. 3 explains an order of data to be transmitted. FIG. 4 is a conceptual diagram showing a configuration example of data to be transmitted,
FIG. 5 is a block diagram showing an embodiment of the transmission control circuit of the present invention, FIG. 6 is a block diagram showing another embodiment of the transmission control circuit of the present invention, and FIG. 7 is an embodiment shown in FIG. FIG. 3 is a block diagram showing a connection state between the external register and the external register. 1 ... Processor side transmission control circuit, 2A, 2B ... I / O device side transmission control circuit, 3 ... Transmission path, 4 ... Control device, 5A, 5B
... I / O device, 6 ... controlled object, 7A, 7B ... CPU, 8 ... output circuit, 9 ... input circuit, 11 ... memory, 12 ... parallel-to-linear conversion circuit, 13 ... transmission Control circuit, 14 …… Series-conversion circuit, 15
...... Reception control circuit, 16, 17 ... Memory interface circuit, 18 ... Arbitration circuit, 19 ... Synchronization control circuit, 21 ... Data transmission output terminal, 22 ... Synchronous clock output terminal, 23 ...
Data transmission terminal, 24 clock input terminal, 25 data input / output terminal, 27 reception address counter, 28
Transmission address counters, 29, 30 ... external registers.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 29/02 G06F 13/00 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04L 29/02 G06F 13/00

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】双方向に直列信号を伝送する伝送路と、こ
の伝送路に接続されてデータの送受信を行う一対の伝送
制御回路と、を含んでなる伝送装置において、各伝送制
御回路の送信側に、送信信号を格納するメモリと該メモ
リに格納された前記送信信号をあらかじめ定められた順
に取り出して直列電気信号に変換し構成データ長が一定
のデータブロックとして送出する並直変換回路とを設
け、各伝送制御回路の受信側に、受信したデータブロッ
クを並列化する直並変換回路とこの直並変換回路の出力
をあらかじめ定められた順に格納するメモリとを設け、
前記一対の伝送制御回路は、いずれか一方が送信するデ
ータブロックの数を規定する信号を他方の伝送制御回路
に送信したのち前記直列電気信号に変換されたデータブ
ロックの送出を開始したとき、他方の伝送制御回路は、
受信したデータブロックを直並変換して前記定められた
順に前記受信信号を格納するメモリに格納するととも
に、前記送信信号を格納するメモリに格納された送信信
号を前記定められた順に取出して並直変換し、前記一方
の伝送制御回路から他方の伝送制御回路への各データブ
ロックの送出に合わせて、前記一方の伝送制御回路への
前記並直変換されたデータブロックの送出を行うもので
あることを特徴とする伝送装置。
1. A transmission apparatus comprising: a transmission path for transmitting a serial signal bidirectionally; and a pair of transmission control circuits connected to the transmission path for transmitting and receiving data. On the side, a memory for storing the transmission signal and a parallel-to-parallel conversion circuit that extracts the transmission signal stored in the memory in a predetermined order, converts it into a serial electric signal, and sends it out as a data block having a fixed data length. Provided, on the receiving side of each transmission control circuit, a serial-parallel conversion circuit for parallelizing the received data blocks and a memory for storing the output of the serial-parallel conversion circuit in a predetermined order,
The pair of transmission control circuits, when starting transmission of the data block converted to the serial electric signal after transmitting a signal defining the number of data blocks transmitted by either one to the other transmission control circuit, the other The transmission control circuit of
The received data block is subjected to serial-parallel conversion and stored in the memory for storing the reception signal in the predetermined order, and the transmission signals stored in the memory for storing the transmission signal are extracted and rearranged in the predetermined order. Converting, and sending the parallel-converted data block to the one transmission control circuit in accordance with sending each data block from the one transmission control circuit to the other transmission control circuit. A transmission device characterized by the above-mentioned.
【請求項2】請求項1記載の伝送装置において、各伝送
制御回路は、前記送信信号が格納されたメモリからの送
信信号の取り出し、並直変換及び送出からなる送信動作
を前記送信信号が格納されたメモリのアドレス順に行う
とともに、受信したデータブロックの直並変換と直並変
換回路の出力をアドレス順にメモリに格納する更新動作
を行い、前記規定された数のデータブロックの送出が終
了したら、前記送信信号を格納したメモリの最初のアド
レスに戻って前記送信動作を繰り返すとともに、前記更
新動作を、直並変換回路の出力をアドレス順に格納する
メモリの最初のアドレスに戻って繰り返すものであるこ
とを特徴とする伝送装置。
2. The transmission apparatus according to claim 1, wherein each transmission control circuit stores a transmission operation including fetching a transmission signal from a memory in which the transmission signal is stored, parallel-conversion, and transmission. Performed in the order of the addresses of the memory, and performed an update operation of storing the output of the serial-parallel conversion and the serial-parallel conversion circuit of the received data block in the memory in the address order, and when the transmission of the specified number of data blocks is completed, The transmission operation is repeated by returning to the first address of the memory storing the transmission signal, and the updating operation is repeated by returning to the first address of the memory storing the output of the serial-parallel conversion circuit in address order. A transmission device characterized by the above-mentioned.
JP2306873A 1990-11-13 1990-11-13 Transmission equipment Expired - Fee Related JP3016156B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2306873A JP3016156B2 (en) 1990-11-13 1990-11-13 Transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2306873A JP3016156B2 (en) 1990-11-13 1990-11-13 Transmission equipment

Publications (2)

Publication Number Publication Date
JPH04178048A JPH04178048A (en) 1992-06-25
JP3016156B2 true JP3016156B2 (en) 2000-03-06

Family

ID=17962275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2306873A Expired - Fee Related JP3016156B2 (en) 1990-11-13 1990-11-13 Transmission equipment

Country Status (1)

Country Link
JP (1) JP3016156B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6413698B2 (en) 2014-11-26 2018-10-31 富士ゼロックス株式会社 Image forming apparatus and communication monitoring system

Also Published As

Publication number Publication date
JPH04178048A (en) 1992-06-25

Similar Documents

Publication Publication Date Title
US4809217A (en) Remote I/O port for transfer of I/O data in a programmable controller
US4228495A (en) Multiprocessor numerical control system
US4918589A (en) Method and apparatus for linking processors in a hierarchical control system
JPH08123520A (en) Driving control commanding device, system and method for controlling synchronism between plural driving control commanders
JPH0217818B2 (en)
JP3016156B2 (en) Transmission equipment
WO1990002366A1 (en) System for diagnosing cnc
JPH10171516A (en) Numerical controller and method for displaying picture and inputting/outputting data in numerical controller
JPH05257852A (en) Process data processing system and processing method
JP3014059B2 (en) Programmable controller
JPS60194647A (en) Data transmission system
US20050192790A1 (en) Serial communication system and serial communication local terminal
JPS6126706B2 (en)
JPH0876822A (en) Drive control command device and synchronization control system and method for plural drive control command devices
JP3388246B2 (en) Remote I / O system for programmable controller
JPS63227149A (en) Communication control method in loop communication system
JP2819516B2 (en) Redundant controller
JPS5941214B2 (en) Condition monitoring method
JP2000276687A (en) Center terminal
JPS6177948A (en) Data processor
JPH077770A (en) Remote supervisory equipment
KR920005234B1 (en) System network architecture converter system
KR100244681B1 (en) System for controlling multiple motor of robot and commumication method of the system
JPH04260903A (en) Specific function unit for programmable controller
JP3350904B2 (en) Data transfer method between programmable controller and motion controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071224

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081224

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091224

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees