JP2005012622A - Communication system apparatus - Google Patents

Communication system apparatus Download PDF

Info

Publication number
JP2005012622A
JP2005012622A JP2003176256A JP2003176256A JP2005012622A JP 2005012622 A JP2005012622 A JP 2005012622A JP 2003176256 A JP2003176256 A JP 2003176256A JP 2003176256 A JP2003176256 A JP 2003176256A JP 2005012622 A JP2005012622 A JP 2005012622A
Authority
JP
Japan
Prior art keywords
data
secondary station
station
transmission
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.)
Pending
Application number
JP2003176256A
Other languages
Japanese (ja)
Inventor
Hidetsugu Koga
英嗣 古賀
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2003176256A priority Critical patent/JP2005012622A/en
Publication of JP2005012622A publication Critical patent/JP2005012622A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a communication system apparatus for relieving burden on the throughput of a CPU and corresponding to the broad purpose of an FA system. <P>SOLUTION: The communication system apparatus of a one-to-N multi-drop system includes a first station side memory; a timer for deciding a transmission period; a DMA control circuit for reading/writing command data and response data at each secondary station from a memory in the case of an underflow/overflow in the timer; a transmission port for outputting transmission data to a communication path at every secondary station; a reception port for receiving response from the secondary station after transmission; and an interruption control circuit for generating an interruption signal, based on the contents of response data to be received by a first station from the secondary station. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は1次局と複数の2次局との間で、所定のフレームフォーマットで一定周期の通信を行う通信システム装置に関する。
【0002】
【従来の技術】
図5は従来の通信システム装置で使用される1次局ある。4は通信を制御するCPU、5はデータバス、6は伝送周期を制御するタイマ、7は送信データと受信データとを格納するメモリ、8は送信データと受信データとを前記メモリから読み出しあるいは書き込みするDMA制御回路、10は送信ポート、11は受信ポート、12はドライバ、13はレシーバから構成される。
次に動作について図5に基づいて説明する。CPU4は2次局へ送るデータを演算し、DMA制御回路8で割り付けられる2次局毎の送信データアドレスでメモリ7へ格納する。タイマ6はフリーランしておりオーバフローまたはアンダフローする毎に伝送開始信号61をDMA制御回路8へ出力する。伝送開始信号61が入力されたDMA制御回路8はまず共通フレームが格納されるメモリ7のアドレスを発生し、送信ポート10に共通フレームデータを出力する。送信ポート10はデータが書きこまれるとドライバ12へシリアル変換された共通フレームデータを出力すると共にドライバ12のイネーブル信号72を出力する。
【0003】
次にタイマ6は前記伝送周期内に一定間隔でコマンド出力信号62をDMA制御回路8に出力する。コマンド出力信号62が入力されたDMA制御回路8は2次局アドレスに対応したコマンドデータ格納アドレスを発生させて前記メモリ7からコマンドデータを読み出し送信ポート10に出力する。送信ポート10はコマンドデータが書きこまれるとドライバ12へシリアル変換されたコマンドデータを出力すると共にドライバ12のイネーブル信号72を出力する。送信されたコマンドデータの2次局アドレスに該当する2次局はコマンドデータを受信後、レスポンスデータを送信する。1次局は前記レスポンスデータをレシーバ13で受信し受信ポート11へ転送される。1次局の受信ポート11は1フレーム分のレスポンスデータが受信されると受信データ111と受信データラッチ信号112をDMA制御回路8に転送する。DMA制御回路8は受信データ111が入力されると2次局アドレスに該当するレスポンスデータ格納のためのメモリ7のアドレスを発生し、このレスポンスデータをメモリ7へ格納する。以降すべての2次局に対しコマンドを送信後レスポンスを受信する。CPU4は伝送開始信号61が入力されるとそれまでに受信したレスポンスデータを監視し、次のコマンドデータ発生のための演算を行っている。このようにして1次局CPUは一定の周期毎に2次局とコマンド・レスポンスの交換を行っている。
【0004】
従来技術の一例として、例えば特開平05−211512号公報に記載された通信システムがある。このシステムにおいては、1次局である上位コントローラが、HDLCに従う伝送によって2次局であるそれぞれの下位コントローラに移動データを転送する。この移動データの転送の際、下位コントローラのDMA制御回路8は、転送されるフレームを、アドレス部の内容が自局のアドレスと一致するフレームの移動データのみを自局内に設けられたメモリ7に取込み、他局のアドレスをもつフレームは、これを無視する。次に、共通フレームが転送されると、各2次局は、共通フレームのコマンドを一旦CPU4に取りこみ、図示されない各2次局毎の速度指令器に書込み、速度指令器を一斉に起動してそれぞれの移動データを実行する。
【0005】
このように、各2次局が速度指令器を起動するタイミングが同期するので、複数の2次局で行われる並行動作が同期される。一方移動データにしたがって、移動しているときも常にレスポンスデータを1次局のCPUは監視し、所望の移動が完了したことを、各2次局から送られるレスポンスデータから検出していた。図5は2次局22で位置決め完了し割り込み要因が発生した場合の通信路のデータとCPU1が割り込みを検出するタイミングを示す。2次局22が位置決め完了した場合、2次局22のレスポンスデータの中に位置決め完了のステータスが書き込まれる。1次局はすべての2次局レスポンスデータを図4に示される伝送開始信号31が発生する度に読み出し、ようやく2次局22のレスポンスデータに位置決め完了ステータスがあることを検出する。つまり、位置決め完了が確認できるのは伝送開始信号31が発生する次の伝送周期開始後である。
【0006】
【特許文献1】特開平05−211512号公報
【0007】
【発明が解決しようとする課題】
しかしながら上記従来の通信システム装置では、常に1次局CPUは2次局からのレスポンスデータを常に監視する必要がある。一方1次局として上位コントローラ、2次局として下位コントローラから成るFA通信システム装置を用いた生産ラインでは生産効率向上のために通信システムの高性能化をめざして伝送周期の高速化および2次局の複数化を進めている。この結果1次局は伝送周期毎に行うレスポンスデータ監視時間が2次局制御データ演算のための時間に影響し1次局CPUへの負荷がますます大きくなるという問題がある。すなわち、伝送速度を上げたり2次局を増やすと2次局へ転送するコマンドデータ計算のための時間が少なくなり伝送周期の高速化も2次局の増加もできなくなる。結果的には2次局の数を減らすか、伝送速度を下げるしかなく高機能化の対応ができなくるという問題があった。
【0008】
本発明の目的は、上記従来の問題を解決し、CPUの処理能力に対する負担を低減し、1次局のCPUがレスポンスデータ(受信データ)を常時監視することを省くことができ、伝送周期が短くなった場合でも2次局へのコマンドデータのための演算時間を確保し、幅広いFAシステム用途に対応できる通信システム装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
上記問題を解決するため、本発明は、次のように構成したのである。
請求項1に記載の発明は、1対Nマルチドロツプ方式の通信システム装置の1次局において、2次局から受けるレスポンスデータの内容によって割り込み信号発生する割り込み制御回路を設けたことを特徴とするものである。
このようになっているため、レスポンスデータに位置決め完了等の割り込み要因が発生すると、割り込み制御回路は割り込み信号を1次局CPUへ入力することができ、受信データ監視を省くことができる。
また、請求項2に記載の発明は、割り込み信号をCPUに出力すると共に割り込みが発生した2次局アドレスとそのフレームデータとを2次局毎に書きこまれるメモリアドレスとは別の任意のアドレスに格納するDMA制御回路を設けたことを特徴とするものである。
このようになっているため、割り込み信号が入力されるとCPU1は前記1次局側メモリの固定エリアに格納される2次局のアドレスとデータを検出することができ、即座に所望の制御が完了した2次局を認識することができる。
【0010】
【発明の実施の形態】
以下、本発明の具体的実施例を図に基づいて説明する。図1は本発明の一実施形態の通信システム装置である。1は1次局である上位コントローラと、2は複数の2次局である下位コントローラと、3はこれらの局を接続する伝送とから構成されている。1次局である上位コントローラが、HDLCに従う伝送によって2次局であるそれぞれの下位コントローラにコマンドデータを送信し、該当する2次局はレスポンスデータを転送する。
【0011】
図2は本発明の一実施形態の通信システム装置で使用される1次局ある。4は通信を制御するCPU、5はデータバス、6は伝送周期を制御するタイマ、7は送信データと受信データとを格納するメモリ、8は送信データと受信データとを前記メモリから読み出しあるいは書き込みするDMA制御回路、9は受信データによって割り込み信号を発生する割り込み制御回路、10は送信ポート、11は受信ポート、12はドライバ、13はレシーバから構成される。このように構成された通信システム装置の1次局の動作について説明する。まず、2次局へのコマンドデータをCPU4は演算し該当する2次局に予め割り付けられたメモリ7のアドレスに該コマンドデータを格納しておく。次にタイマ6のイネーブル信号をイネーブルにしてタイマ6をフリーランさせる。タイマ6はイネーブルの直後に送信開始信号61を出力し以降は伝送周期毎に送信開始信号61を出力する。送信開始信号61でCPU4はメモリ7に格納されたレスポンスデータ(受信データ)を2次局毎に読み出し、DMA回路8はメモリから共通フレームを読み出し、送信ポート10からドライバ12を介して通信路へ送信される。共通フレームを受信した2次局は共通フレームを受信する前に受信したコマンドデータを図示されない制御装置の指令器に入力する。
【0012】
次にタイマ6は前記伝送周期内に一定間隔でコマンド出力信号62をDMA制御回路8に出力する。コマンド出力信号62が入力されたDMA制御回路8は2次局アドレスに対応した送信データ格納アドレスを発生させて前記メモリ7からコマンドデータ(送信データ)を読み出し送信ポート10に出力する。送信ポート10はデータが書きこまれるとドライバ12へシリアル変換したコマンドデータを出力すると共にドライバ12のイネーブル信号を出力する。送信されたコマンドデータの2次局アドレスに該当する2次局はコマンドデータを受信後、レスポンスデータを送信する。レスポンスデータを1次局が受信すると受信ポート11から転送された受信データは割り込み制御回路9に入力される。
更に割り込み制御回路9について詳細な説明をするため図3に前記割り込み制御回路のブロック図を示す。以降、図3を元に割り込み制御回路について説明する。まず図3において94はレスポンスデータ(受信データ)のフレーム数を数える数値をCPU4から入力するフレーム数レジスタ、95は前記フレーム数レジスタの値をロードして動作するカウンタ、96は前記受信ポート11から受信データ111をラッチする受信データラッチ、97は前記フレーム数レジスタ94に設定したフレームの受信データと一致をとるデータをCPU4から設定する割り込みパタンレジスタ、98は前記受信データラッチ出力と前記割り込みパタンレジスタとをビット毎に一致をとる一致回路、99は前記一致回路出力981をカウンタ出力951でゲートする論理ゲート、91は前記論理ゲート99の出力で割り込み信号である。
【0013】
次に動作について説明する。1次局のCPU4は2次局レスポンスデータの監視したい場所を予めフレーム数とそのデータパターンをフレーム数レジスタ94と割り込みパタンレジスタ97に設定しておく。伝送開始信号61が発生するとカウンタ95は前記フレーム数レジスタ値をロードする。受信ポートは2次局のレスポンスデータを受信すると受信データ111と共にフレーム毎にパルス状の受信データラッチ信号112を出力する。前記受信データラッチ信号112が入力されると前記カウンタ95はクロック952に同期して1カウント減算される。一方受信データ111は前記受信データラッチ96で前記受信データラッチ信号112の例えば立ち上がりエッジでラッチされる。割り込みが発生しない場合ラッチデータ92は前記DMA制御回路8に入力されており前記受信データラッチ信号112の例えば立ち下がりエッジで取り込まれると、前記DMA制御回路8は2次局アドレスに該当する受信データ格納のためのメモリ7のアドレスを発生し、この受信データをメモリ7へ格納する。さらに次のフレームを受信するたびにカウンタ95はダウンタウントしカウンタ値がアンダフローするとカウンタ出力951を出力する。この出力が発生したときに割り込みパタンレジスタと受信データが一致した場合、割り込み信号91が発生する。割り込み信号91は前記受信データラッチ信号112の立ち上がりエッジの直後に発生するため、DMA制御回路8は割り込み信号によって2次局アドレスと割り込み発生フレームデータとをメモリ7の固定されるアドレスに格納できる。その後前記受信データラッチ信号112の立ち下がりエッジ2次局アドレスに該当するメモリ7のアドレスへ受信データを格納することができる。
【0014】
【発明の効果】
以上述べたように、本発明の通信システム装置によれば、受信データの内容によって割り込み信号をCPUに出力することによって1次局のCPUがレスポンスデータ(受信データ)を常時監視することを省くことができ、伝送周期が短くなった場合でも2次局へのコマンドデータのための演算時間を確保することができるという効果がある。
また、請求項2に記載の通信システム装置によれば、受信フレームを数え該当するフレームのデータを監視させることにより、任意の受信データの監視ができる。さらに、割り込みが発生した場合、固定されたメモリアドレスに2次局アドレスと監視フレームを格納しているので1次局のCPUは即座に割り込みの発生した2次局とその内容を確認することができるという効果がある。
したがって、レスポンスデータに位置決め完了等の割り込み要因が発生すると、割り込み制御回路は割り込み信号を1次局CPUへ出力する。割り込み信号が入力されるとCPUは前記1次局側メモリの固定エリアに格納される2次局のアドレスとデータを検出し、所望の制御が完了した2次局を認識する。所望の制御が完了した2次局の次の制御データを計算し伝送できるので、伝送周期毎の各2次局毎のレスポンスデータ監視時間を無くすことができ、1次局の処理能力に対する負担を低減し、幅広いFA用通信システム用途に対応できる通信システム装置を提供することができる。
【図面の簡単な説明】
【図1】本発明の一実施形態の通信システム装置のブロック図。
【図2】本発明の一実施形態の通信システム装置1次局のブロック図。
【図3】本発明である図2の割り込み制御回路を示すブロック図。
【図4】本発明である図2の通信システム装置のCPU1が割り込みを検出するタイミング説明図。
【図5】通信システム装置の従来例のブロック図。
【図6】従来例である図5の通信システム装置のCPU1が割り込みを検出するタイミング説明図。
【符号の説明】
1 1次局
2 2次局
3 伝送路
4 CPU
5 データバス
6 タイマ
7 メモリ
8 DMA制御回路
9 割り込み制御回路
10 送信ポート
11 受信ポート
12 ドライバ
13 レシーバ
41 タイマイネーブル信号
61 伝送開始信号
62 コマンド出力信号
81 送信データ
91 割り込み信号
92 ラッチデータ
93 ラッチ信号
94 フレーム数レジスタ
95 カウンタ
951 カウンタ出力
952 クロック
96 受信データラッチ
97 割り込みパタンレジスタ
98 一致回路
981 一致回路出力
99 論理ゲート
101 送信シリアル信号
102 送信イネーブル信号
111 受信データ
112 受信データラッチ信号
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a communication system apparatus that performs communication at a constant cycle in a predetermined frame format between a primary station and a plurality of secondary stations.
[0002]
[Prior art]
FIG. 5 shows a primary station used in a conventional communication system apparatus. 4 is a CPU for controlling communication, 5 is a data bus, 6 is a timer for controlling a transmission cycle, 7 is a memory for storing transmission data and reception data, and 8 is for reading or writing transmission data and reception data from the memory. DMA control circuit 10 includes a transmission port, 11 a reception port, 12 a driver, and 13 a receiver.
Next, the operation will be described with reference to FIG. The CPU 4 calculates data to be sent to the secondary station and stores it in the memory 7 at the transmission data address for each secondary station assigned by the DMA control circuit 8. The timer 6 is free-running and outputs a transmission start signal 61 to the DMA control circuit 8 every time it overflows or underflows. The DMA control circuit 8 to which the transmission start signal 61 is input first generates an address of the memory 7 in which the common frame is stored, and outputs the common frame data to the transmission port 10. When data is written, the transmission port 10 outputs the common frame data serially converted to the driver 12 and outputs the enable signal 72 of the driver 12.
[0003]
Next, the timer 6 outputs a command output signal 62 to the DMA control circuit 8 at regular intervals within the transmission cycle. The DMA control circuit 8 to which the command output signal 62 is input generates a command data storage address corresponding to the secondary station address, reads the command data from the memory 7 and outputs it to the transmission port 10. When the command data is written, the transmission port 10 outputs the serially converted command data to the driver 12 and outputs the enable signal 72 of the driver 12. The secondary station corresponding to the secondary station address of the transmitted command data transmits the response data after receiving the command data. The primary station receives the response data at the receiver 13 and transfers it to the reception port 11. The reception port 11 of the primary station transfers the reception data 111 and the reception data latch signal 112 to the DMA control circuit 8 when the response data for one frame is received. When the received data 111 is input, the DMA control circuit 8 generates an address of the memory 7 for storing response data corresponding to the secondary station address, and stores the response data in the memory 7. After that, the command is sent to all secondary stations and the response is received. When the transmission start signal 61 is input, the CPU 4 monitors the response data received so far and performs calculations for generating the next command data. In this way, the primary station CPU exchanges commands and responses with the secondary station at regular intervals.
[0004]
As an example of the prior art, for example, there is a communication system described in Japanese Patent Application Laid-Open No. 05-211512. In this system, an upper controller that is a primary station transfers movement data to each lower controller that is a secondary station by transmission according to HDLC. When transferring the moving data, the DMA control circuit 8 of the lower controller transfers only the moving data of the frame in which the content of the address portion matches the address of the own station to the memory 7 provided in the own station. The frame with the address of the other station is ignored. Next, when the common frame is transferred, each secondary station once fetches the command of the common frame into the CPU 4, writes it in the speed command unit for each secondary station (not shown), and starts the speed commander all at once. Execute each move data.
[0005]
As described above, since the timings at which the secondary stations start the speed commanders are synchronized, the parallel operations performed at the plurality of secondary stations are synchronized. On the other hand, according to the movement data, the CPU of the primary station always monitors the response data even when moving, and detects that the desired movement has been completed from the response data sent from each secondary station. FIG. 5 shows the data of the communication path and the timing at which the CPU 1 detects an interrupt when the positioning is completed at the secondary station 22 and an interrupt factor is generated. When positioning of the secondary station 22 is completed, a positioning completion status is written in the response data of the secondary station 22. The primary station reads all secondary station response data every time the transmission start signal 31 shown in FIG. 4 is generated, and finally detects that the response data of the secondary station 22 has a positioning completion status. That is, the completion of positioning can be confirmed after the start of the next transmission cycle when the transmission start signal 31 is generated.
[0006]
[Patent Document 1] Japanese Patent Application Laid-Open No. 05-211512
[Problems to be solved by the invention]
However, in the conventional communication system, the primary station CPU must always monitor the response data from the secondary station. On the other hand, in the production line using the FA communication system device composed of the upper controller as the primary station and the lower controller as the secondary station, the transmission cycle is increased and the secondary station is aimed at improving the performance of the communication system to improve the production efficiency. We are proceeding with the multipleization of. As a result, the primary station has a problem that the response data monitoring time performed for each transmission cycle affects the time for calculating the secondary station control data, and the load on the primary station CPU becomes larger. That is, if the transmission speed is increased or the number of secondary stations is increased, the time for calculating command data to be transferred to the secondary station is reduced, and the transmission cycle cannot be increased and the number of secondary stations cannot be increased. As a result, there is a problem that the number of secondary stations can be reduced or the transmission speed must be reduced, making it impossible to cope with higher functions.
[0008]
The object of the present invention is to solve the above-mentioned conventional problems, reduce the burden on the processing capacity of the CPU, omit the continuous monitoring of the response data (received data) by the CPU of the primary station, and reduce the transmission cycle. An object of the present invention is to provide a communication system apparatus that can secure a calculation time for command data to a secondary station even when the time is shortened and can cope with a wide range of FA system applications.
[0009]
[Means for Solving the Problems]
In order to solve the above problem, the present invention is configured as follows.
The invention according to claim 1 is characterized in that an interrupt control circuit for generating an interrupt signal according to the contents of response data received from the secondary station is provided in the primary station of the communication system apparatus of 1 to N multi-drop system. It is.
Thus, when an interrupt factor such as positioning completion occurs in the response data, the interrupt control circuit can input an interrupt signal to the primary station CPU, and the received data monitoring can be omitted.
Further, the invention described in claim 2 outputs an interrupt signal to the CPU, and at the same time, an arbitrary address different from the memory address in which the secondary station address where the interrupt has occurred and its frame data are written for each secondary station. A DMA control circuit for storing data is provided.
Because of this, when an interrupt signal is input, the CPU 1 can detect the address and data of the secondary station stored in the fixed area of the primary station side memory, and can immediately perform the desired control. The completed secondary station can be recognized.
[0010]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, specific embodiments of the present invention will be described with reference to the drawings. FIG. 1 shows a communication system apparatus according to an embodiment of the present invention. Reference numeral 1 is an upper controller that is a primary station, 2 is a lower controller that is a plurality of secondary stations, and 3 is a transmission that connects these stations. The host controller that is the primary station transmits command data to each lower controller that is the secondary station by transmission according to HDLC, and the corresponding secondary station transfers the response data.
[0011]
FIG. 2 shows a primary station used in the communication system apparatus according to the embodiment of the present invention. 4 is a CPU for controlling communication, 5 is a data bus, 6 is a timer for controlling a transmission cycle, 7 is a memory for storing transmission data and reception data, and 8 is for reading or writing transmission data and reception data from the memory. The DMA control circuit 9 is configured to include an interrupt control circuit for generating an interrupt signal according to received data, 10 is a transmission port, 11 is a reception port, 12 is a driver, and 13 is a receiver. An operation of the primary station of the communication system configured as described above will be described. First, the CPU 4 calculates the command data for the secondary station, and stores the command data at the address of the memory 7 assigned in advance to the corresponding secondary station. Next, the timer 6 enable signal is enabled to cause the timer 6 to free run. The timer 6 outputs a transmission start signal 61 immediately after enabling, and thereafter outputs a transmission start signal 61 every transmission cycle. In response to the transmission start signal 61, the CPU 4 reads out response data (received data) stored in the memory 7 for each secondary station, and the DMA circuit 8 reads out a common frame from the memory, and sends it from the transmission port 10 to the communication path via the driver 12. Sent. The secondary station that has received the common frame inputs the received command data to a command unit of a control device (not shown) before receiving the common frame.
[0012]
Next, the timer 6 outputs a command output signal 62 to the DMA control circuit 8 at regular intervals within the transmission cycle. The DMA control circuit 8 to which the command output signal 62 is input generates a transmission data storage address corresponding to the secondary station address, reads the command data (transmission data) from the memory 7 and outputs it to the transmission port 10. When data is written, the transmission port 10 outputs serially converted command data to the driver 12 and outputs an enable signal for the driver 12. The secondary station corresponding to the secondary station address of the transmitted command data transmits the response data after receiving the command data. When the primary station receives the response data, the received data transferred from the reception port 11 is input to the interrupt control circuit 9.
Further, in order to explain the interrupt control circuit 9 in detail, FIG. 3 shows a block diagram of the interrupt control circuit. Hereinafter, the interrupt control circuit will be described with reference to FIG. First, in FIG. 3, 94 is a frame number register for inputting a numerical value for counting the number of frames of response data (received data) from the CPU 4, 95 is a counter which operates by loading the value of the frame number register, A received data latch for latching the received data 111, 97 is an interrupt pattern register for setting data matching the received data of the frame set in the frame number register 94 from the CPU 4, and 98 is the received data latch output and the interrupt pattern register Are coincidence circuits for each bit, 99 is a logic gate for gating the coincidence circuit output 981 by a counter output 951, and 91 is an interrupt signal at the output of the logic gate 99.
[0013]
Next, the operation will be described. The CPU 4 of the primary station sets the number of frames and the data pattern thereof in the frame number register 94 and the interrupt pattern register 97 in advance for monitoring the secondary station response data. When the transmission start signal 61 is generated, the counter 95 loads the frame number register value. When receiving the response data of the secondary station, the receiving port outputs a pulsed received data latch signal 112 for each frame together with the received data 111. When the received data latch signal 112 is input, the counter 95 is decremented by 1 count in synchronization with the clock 952. On the other hand, the reception data 111 is latched by the reception data latch 96 at the rising edge of the reception data latch signal 112, for example. When no interrupt occurs, the latch data 92 is input to the DMA control circuit 8, and when the received data latch signal 112 is captured at, for example, a falling edge, the DMA control circuit 8 receives the received data corresponding to the secondary station address. An address of the memory 7 for storage is generated, and this received data is stored in the memory 7. Further, every time the next frame is received, the counter 95 is downtown, and when the counter value underflows, a counter output 951 is output. If the interrupt pattern register matches the received data when this output occurs, an interrupt signal 91 is generated. Since the interrupt signal 91 is generated immediately after the rising edge of the received data latch signal 112, the DMA control circuit 8 can store the secondary station address and the interrupt generation frame data at a fixed address of the memory 7 by the interrupt signal. Thereafter, the received data can be stored in the address of the memory 7 corresponding to the falling edge secondary station address of the received data latch signal 112.
[0014]
【The invention's effect】
As described above, according to the communication system apparatus of the present invention, it is possible to save the primary station CPU from constantly monitoring the response data (received data) by outputting an interrupt signal to the CPU according to the contents of the received data. Thus, even when the transmission cycle is shortened, the calculation time for command data to the secondary station can be secured.
Further, according to the communication system apparatus of the second aspect, arbitrary received data can be monitored by counting the received frames and monitoring the data of the corresponding frames. Further, when an interrupt occurs, the secondary station address and the monitoring frame are stored in a fixed memory address, so the primary station CPU can immediately confirm the secondary station where the interrupt occurred and its contents. There is an effect that can be done.
Therefore, when an interrupt factor such as positioning completion occurs in the response data, the interrupt control circuit outputs an interrupt signal to the primary station CPU. When an interrupt signal is input, the CPU detects the address and data of the secondary station stored in the fixed area of the primary station side memory, and recognizes the secondary station that has completed the desired control. Since the next control data of the secondary station for which the desired control has been completed can be calculated and transmitted, the response data monitoring time for each secondary station for each transmission cycle can be eliminated, and the burden on the processing capacity of the primary station can be eliminated. It is possible to provide a communication system apparatus that can reduce and cope with a wide range of FA communication system applications.
[Brief description of the drawings]
FIG. 1 is a block diagram of a communication system apparatus according to an embodiment of the present invention.
FIG. 2 is a block diagram of a primary station of a communication system apparatus according to an embodiment of the present invention.
3 is a block diagram showing the interrupt control circuit of FIG. 2 according to the present invention.
FIG. 4 is an explanatory diagram of timing at which the CPU 1 of the communication system apparatus of FIG. 2 according to the present invention detects an interrupt.
FIG. 5 is a block diagram of a conventional example of a communication system apparatus.
6 is an explanatory diagram of timing at which the CPU 1 of the communication system apparatus of FIG. 5 as a conventional example detects an interrupt.
[Explanation of symbols]
1 Primary station 2 Secondary station 3 Transmission path 4 CPU
5 Data bus 6 Timer 7 Memory 8 DMA control circuit 9 Interrupt control circuit 10 Transmission port 11 Reception port 12 Driver 13 Receiver 41 Timer enable signal 61 Transmission start signal 62 Command output signal 81 Transmission data 91 Interrupt signal 92 Latch data 93 Latch signal 94 Frame number register 95 Counter 951 Counter output 952 Clock 96 Reception data latch 97 Interrupt pattern register 98 Matching circuit 981 Matching circuit output 99 Logic gate 101 Transmission serial signal 102 Transmission enable signal 111 Reception data 112 Reception data latch signal

Claims (2)

1次局から2次局へのコマンドの送信と当該2次局から1次局へのレスポンスの返送とが、HDLCプロトコルにしたがって、2次局毎に順次に行われ、1次局から通信路上に出力された各2次局宛コマンドのデータと、各2次局から通信路上に出力されたレスポンスのデータとが各2次局毎に、コマンド、レスポンスの別毎に書込まれる1次局側メモリと、伝送周期を決定するタイマと、前記タイマがアンダフローまたはオーバフローすると前記メモリのアドレスを先頭の2次局アドレスから順次にコマンドデータアドレスおよびレスポンスデータアドレスを生成し前記メモリから各2次局毎のコマンドデータとレスポンスデータを読み出し書きこむDMA制御回路と、各2次局毎に送信データを通信路上に出力する送信ポートと、送信後に該2次局からレスポンスを受ける受信ポートからなる1対Nマルチドロツプ方式の通信システム装置において、
1次局に2次局から受けるレスポンスデータの内容によって割り込み信号が発生する割り込み制御回路を設けたことを特徴とする通信システム装置。
Transmission of a command from the primary station to the secondary station and return of a response from the secondary station to the primary station are sequentially performed for each secondary station according to the HDLC protocol. The primary station data written to each secondary station and the response data output from each secondary station on the communication path are written for each command and response for each secondary station. Side memory, a timer for determining a transmission cycle, and when the timer underflows or overflows, a command data address and a response data address are sequentially generated from the first secondary station address, and each secondary address is generated from the memory. DMA control circuit for reading and writing command data and response data for each station, transmission port for outputting transmission data for each secondary station on the communication path, and after transmission In the communication system apparatus of one-to-N Maruchidorotsupu system consisting of receiving port for receiving a response from the secondary station,
A communication system apparatus characterized in that an interrupt control circuit for generating an interrupt signal according to the content of response data received from a secondary station is provided in the primary station.
前記割り込み制御回路は前記レスポンスデータの任意の場所を示すフレーム数レジスタと、前記フレーム数をカウントするカウンタと、前記カウンタを起動するクロックと、受信データと一致を取るための設定レジスタと、指定された受信フレームのデータと前記レジスタ値とのビット毎の一致を検出する比較器と、前記ビット毎の一致を検出する比較器の出力の論理和を割り込み信号とする論理ゲートと、割り込み信号をCPUに出力すると共に割り込みが発生した2次局アドレスとそのフレームデータとを2次局毎に書きこまれるメモリエリアとは別の任意のエリアに格納するDMA制御回路を設けたことを特徴とする請求項1に記載の通信システム装置。The interrupt control circuit is designated by a frame number register indicating an arbitrary location of the response data, a counter for counting the number of frames, a clock for starting the counter, and a setting register for matching with received data. A comparator that detects a bit-by-bit match between the received frame data and the register value, a logic gate that uses a logical sum of the outputs of the comparator that detects a bit-by-bit match as an interrupt signal, and an interrupt signal to the CPU And a DMA control circuit for storing the address of the secondary station where the interrupt has occurred and the frame data thereof in an arbitrary area different from the memory area in which each secondary station is written. Item 12. The communication system device according to Item 1.
JP2003176256A 2003-06-20 2003-06-20 Communication system apparatus Pending JP2005012622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003176256A JP2005012622A (en) 2003-06-20 2003-06-20 Communication system apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003176256A JP2005012622A (en) 2003-06-20 2003-06-20 Communication system apparatus

Publications (1)

Publication Number Publication Date
JP2005012622A true JP2005012622A (en) 2005-01-13

Family

ID=34099190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003176256A Pending JP2005012622A (en) 2003-06-20 2003-06-20 Communication system apparatus

Country Status (1)

Country Link
JP (1) JP2005012622A (en)

Similar Documents

Publication Publication Date Title
US9836038B2 (en) Control device, and control method for link activating and deactivating
JP2006333438A (en) Gateway apparatus and routing method
US20060150000A1 (en) Fault-tolerant computer and method of controlling data transmission
US20200218215A1 (en) Circuit for coupling a field bus and a local bus
JPH06324977A (en) Data transfer method
CN102236623A (en) Signal control device and signal control method
JP2006344159A (en) Communication controller for common bus connecting device
US20070220296A1 (en) Data processing apparatus
JP2005012622A (en) Communication system apparatus
KR100606163B1 (en) Direct memory access device, system and method for transmitting and receiving data through direct memory access device
JP2007128385A (en) Transmission device, transmission system and exclusive control method for update data
JP2005229322A (en) Master slave synchronous communication system
JP2004242031A (en) Communication system
JP2740031B2 (en) Data receiving device
JP2005228222A (en) Serial data transfer method and device
JP4190969B2 (en) Bus arbitration system in bus system and AMBA
JP2018132844A (en) Communication device
JP3548943B2 (en) Interrupt control method
JP2006195607A (en) Method and circuit for determining bulk-out transfer end
JP2003335470A (en) Elevator control transmitting system
JP2003152745A (en) Data transmission system, transmitter, and receiver
JP2007226737A (en) Serial communication device and paper transport device and image formation device
JP2022091361A (en) Communication device, communication method, and program
JP4633378B2 (en) Elevator control information transmission control circuit
JP5921264B2 (en) Serial communication system and communication initialization method thereof, and serial communication apparatus and communication initialization method thereof