JP2002305522A - Communication system, and communication address acquisition method for communication system - Google Patents

Communication system, and communication address acquisition method for communication system

Info

Publication number
JP2002305522A
JP2002305522A JP2001106239A JP2001106239A JP2002305522A JP 2002305522 A JP2002305522 A JP 2002305522A JP 2001106239 A JP2001106239 A JP 2001106239A JP 2001106239 A JP2001106239 A JP 2001106239A JP 2002305522 A JP2002305522 A JP 2002305522A
Authority
JP
Japan
Prior art keywords
address
master station
station
slave stations
communication
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
JP2001106239A
Other languages
Japanese (ja)
Inventor
Kazuo Sato
一男 佐藤
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 JP2001106239A priority Critical patent/JP2002305522A/en
Publication of JP2002305522A publication Critical patent/JP2002305522A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a communication system where a master station needs not always to store address information of a plurality of slave stations and to back up the information and to provide an address acquisition method for the communication system. SOLUTION: An address scan control section 113 of the master station 101 sets an optional address to transmit a command, each control section 122 of N sets of slave stations 102-1 to 102-N transmits reply data to the master station 101 upon receipt of a command addressed to its own station from the master station 101, then the address scan control section 113 of the master station 101 confirms the presence of a reply from N-sets of the slave stations 102-1 to 102-N. The operation above is repeated by sequentially setting optional addresses to scan communication addresses of N-sets of the slave stations 102-1 to 102-N.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、マスタ局と複数の
スレーブ局との間で通信を行う通信システムおよび該通
信システムにおける通信アドレス取得方法に係り、特
に、マスタ局が複数のスレーブ局のアドレスを知らなく
ても該スレーブ局との通信を行うことができ、複数スレ
ーブ局のアドレス情報をマスタ局内に常時保有したり、
バックアップすることを不要とした通信システムおよび
通信システムにおける通信アドレス取得方法に関する。
The present invention relates to a communication system for performing communication between a master station and a plurality of slave stations, and a communication address obtaining method in the communication system. Can communicate with the slave station without knowing the address of the slave station.
The present invention relates to a communication system that does not require backup and a communication address obtaining method in the communication system.

【0002】[0002]

【従来の技術】従来の通信システムとして、マスタ局と
N個のスレーブ局とを備え、これらを通信ケーブルでバ
ス接続して、マスタ局とN個のスレーブ局との間の通信
を、例えばHDLC手順に従って行う1対Nマルチドロ
ップ方式の通信システムを想定する。このような従来の
通信システムにおける各スレーブ局の通信アドレスは、
例えば、スレーブ局毎に固定アドレスとして設定されて
おり、予め、マスタ局とN個のスレーブ局との双方が該
スレーブ局のアドレスを知っていることが通信を行う際
の前提であった。
2. Description of the Related Art As a conventional communication system, a master station and N slave stations are provided, which are connected by a bus via a communication cable, and communication between the master station and the N slave stations is performed by, for example, HDLC. Assume a communication system of the 1: N multi-drop system performed according to the procedure. The communication address of each slave station in such a conventional communication system is as follows:
For example, a fixed address is set for each slave station, and it is a prerequisite for communication that both the master station and the N slave stations know the addresses of the slave stations in advance.

【0003】[0003]

【発明が解決しようとする課題】したがって、上記従来
の通信システムおよび通信システムにおける通信アドレ
ス取得方法にあっては、予め、マスタ局と複数のスレー
ブ局との双方がスレーブ局のアドレスを知っていること
が前提であり、その固定した通信アドレスにより通信を
行っていた。しかしながら、スレーブ局のアドレスを知
っていることが前提とされるためには、マスタ局は、各
スレーブ局のアドレス情報をマスタ局内に常に保有して
おかなければならず、そのバックアップを取る必要もあ
る。さらに、マスタ局内に保有の各スレーブ局のアドレ
ス情報に誤りがある場合、或いは追加等した場合には、
該スレーブ局との通信が行えないといった事情もあっ
た。本発明は、上記従来の事情に鑑みてなされたもので
あって、マスタ局が複数のスレーブ局のアドレスを知ら
なくても該スレーブ局との通信を行うことができ、複数
スレーブ局のアドレス情報をマスタ局内に常時保有した
り、バックアップすることを不要とした通信システムお
よび通信システムにおける通信アドレス取得方法を提供
することを目的としている。
Therefore, in the above-mentioned conventional communication system and the communication address obtaining method in the communication system, both the master station and the plurality of slave stations know the address of the slave station in advance. It is premised that communication is performed using the fixed communication address. However, in order to assume that the address of the slave station is known, the master station must keep the address information of each slave station in the master station at all times, and it is necessary to back up the address information. is there. Further, when the address information of each slave station held in the master station is incorrect or added, etc.,
In some cases, communication with the slave station could not be performed. The present invention has been made in view of the above-mentioned conventional circumstances, and enables a master station to communicate with a plurality of slave stations without knowing the addresses of the plurality of slave stations. It is an object of the present invention to provide a communication system and a communication address acquisition method in the communication system, which do not need to always hold or back up the data in the master station.

【0004】[0004]

【課題を解決するための手段】上記課題を解決するため
に、本発明の請求項1に係る通信システムは、マスタ局
と複数のスレーブ局とをバス接続した通信システムにお
いて、前記マスタ局は、任意のアドレスを順次設定して
所定指令を送出し、前記複数のスレーブ局からの応答の
有無を確認することにより、前記複数のスレーブ局のア
ドレスをスキャンするアドレススキャン制御手段を具備
し、前記複数のスレーブ局は、前記マスタ局からの自局
宛の所定指令を受信したときに前記マスタ局に対して応
答を通信する応答手段を具備するものである。また、請
求項2に係る通信システムは、請求項1に記載の通信シ
ステムにおいて、前記マスタ局は、前記スレーブ局のア
ドレスを設定変更するアドレス設定変更指令を送出する
アドレス設定制御手段を具備し、前記複数のスレーブ局
の応答手段は、前記マスタ局からのアドレス設定変更指
令に応じて自局のアドレスを設定変更するものである。
さらに、請求項3に係る通信システムにおける通信アド
レス取得方法は、マスタ局と複数のスレーブ局とをバス
接続した通信システムにおける通信アドレス取得方法で
あって、前記マスタ局が、任意のアドレスを設定して所
定指令を送出する送出ステップと、前記複数のスレーブ
局が、前記マスタ局からの自局宛の所定指令を受信した
ときに前記マスタ局に対して応答を通信する応答ステッ
プと、前記マスタ局が、前記複数のスレーブ局からの応
答の有無を確認する確認ステップとを具備し、前記送出
ステップにおける任意アドレスを順次設定して、該送出
ステップ、前記応答ステップおよび前記確認ステップを
繰り返し行うことにより、前記複数のスレーブ局のアド
レスをスキャンするものである。
According to a first aspect of the present invention, there is provided a communication system in which a master station and a plurality of slave stations are connected by a bus. Address scanning control means for scanning the addresses of the plurality of slave stations by sequentially setting an arbitrary address, transmitting a predetermined command, and confirming the presence or absence of a response from the plurality of slave stations; The slave station has a response means for communicating a response to the master station when receiving a predetermined command addressed to the own station from the master station. The communication system according to claim 2 is the communication system according to claim 1, wherein the master station includes an address setting control unit that sends an address setting change command for changing the address of the slave station. The response means of the plurality of slave stations changes the address of the own station in response to an address setting change command from the master station.
Further, a communication address obtaining method in a communication system according to claim 3 is a communication address obtaining method in a communication system in which a master station and a plurality of slave stations are connected by a bus, wherein the master station sets an arbitrary address. A transmitting step of transmitting a predetermined command to the master station when the plurality of slave stations receive a predetermined command addressed to the own station from the master station; Comprises a confirmation step of confirming the presence or absence of a response from the plurality of slave stations, sequentially setting an arbitrary address in the transmission step, and repeatedly performing the transmission step, the response step, and the confirmation step. , Scanning the addresses of the plurality of slave stations.

【0005】本発明の請求項1に係る通信システムおよ
び請求項3に係る通信システムにおける通信アドレス取
得方法では、マスタ局が、アドレススキャン制御手段
(の送出ステップ)により、任意のアドレスを設定して
所定指令を送出し、複数のスレーブ局側では、応答手段
(応答ステップ)により、マスタ局からの自局宛の所定
指令を受信したときにマスタ局に対して応答し、次にマ
スタ局側で、アドレススキャン制御手段(の確認ステッ
プ)により、複数のスレーブ局からの応答の有無を確認
するという動作を、(送出ステップにおける)任意アド
レスを順次設定して(送出ステップ、応答ステップおよ
び確認ステップを)繰り返し行うことにより、複数のス
レーブ局のアドレスをスキャンするようにしている。こ
のように、マスタ局が任意のタイミングで複数のスレー
ブ局のアドレスをスキャンして、何時でも複数のスレー
ブ局のアドレスを確認することができるので、従来のよ
うに、マスタ局が複数のスレーブ局のアドレスを予め知
っていなくても、アドレススキャンによって通信対象の
スレーブ局の通信アドレスを確認することにより該スレ
ーブ局との通信を行うことができ、また、複数スレーブ
局のアドレス情報をマスタ局内に常時保有しておく必要
もなく、さらに、複数スレーブ局のアドレス情報のバッ
クアップを取る必要もない。また、請求項2に係る通信
システムでは、マスタ局が、アドレス設定制御手段によ
り、スレーブ局のアドレスを設定変更するアドレス設定
変更指令を送出すると、スレーブ局側では、応答手段に
より、マスタ局からのアドレス設定変更指令に応じて自
局のアドレスを設定変更するようにしている。このよう
に、マスタ局が、任意のタイミングでアドレス設定変更
指令によりスレーブ局のアドレスを設定変更することが
できるので、例えば、複数のスレーブ局間で通信アドレ
スが重複していたり、マスタ局が複数のスレーブ局のア
ドレスを再度割り振りたい場合などにも、柔軟に対処す
ることが可能である。なお、スレーブ局の通信アドレス
の設定は、例えばFAシステムにおいては、コントロー
ラやI/O等のスレーブ局の属性等を考慮して判断する
のが一般的である。
[0005] In the communication address acquisition method in the communication system according to the first and third aspects of the present invention, the master station sets an arbitrary address by the address scan control means (transmission step). A predetermined command is transmitted, and the plurality of slave stations respond to the master station by a response means (response step) when receiving the predetermined command addressed to the own station from the master station. The operation of confirming the presence / absence of a response from a plurality of slave stations by the address scan control means (confirmation step) is performed by sequentially setting arbitrary addresses (in the transmission step) (in the transmission step, the response step, and the confirmation step). ) The addresses of a plurality of slave stations are scanned by repeating this operation. In this way, the master station can scan the addresses of a plurality of slave stations at an arbitrary timing and check the addresses of the plurality of slave stations at any time. Even if the address of the slave station is not known in advance, the communication with the slave station can be performed by confirming the communication address of the slave station to be communicated by the address scan. There is no need to keep it at all times, and it is not necessary to back up the address information of a plurality of slave stations. Further, in the communication system according to the second aspect, when the master station sends an address setting change command for changing the address of the slave station by the address setting control means, on the slave station side, the response means sends a command from the master station. The address of the own station is changed according to the address setting change command. In this way, the master station can change the address of the slave station at an arbitrary timing according to the address setting change command, so that, for example, the communication address is duplicated among a plurality of slave stations, It is possible to flexibly cope with a case where it is desired to reassign the address of the slave station. Note that the setting of the communication address of the slave station is generally determined in consideration of, for example, the attributes of the slave station such as a controller and I / O in an FA system.

【0006】[0006]

【発明の実施の形態】以下、本発明の通信システムおよ
び通信システムにおける通信アドレス取得方法の実施の
形態について、図面を参照して詳細に説明する。図1は
本発明の一実施形態に係る通信システムの構成図であ
る。図1において、本実施形態の通信システムは、マス
タ局101とN個(Nは正整数)のスレーブ局(第1ス
レーブ局102−1,第2スレーブ局102−2,…,
第Nスレーブ局102−N)とを通信ケーブル150で
バス接続して、マスタ局101とN個のスレーブ局10
2−1〜102−Nとの間の通信を、例えばHDLC手
順に従って通信を行う1対Nマルチドロップ方式の通信
システムである。マスタ局101は、CPU等で実現さ
れる制御部112と、送受信部111とを備えた構成で
あり、制御部112には、アドレススキャン部113お
よびアドレス設定制御部114を備えている。また、各
スレーブ局102−1〜102−Nは、CPU等で実現
される制御部122と、記憶部123と、送受信部12
1とを備えた構成である。ここで、マスタ局101のア
ドレススキャン部113は、任意のアドレスを順次設定
してコマンド(例えばエコーバック等)を送受信部11
1を介して送出し、各スレーブ局102−1〜102−
Nからの応答の有無を確認することにより、N個のスレ
ーブ局102−1〜102−Nの通信アドレスをスキャ
ンするものである。また、アドレス設定制御部114
は、第iスレーブ局102−i(i=1〜N)の通信ア
ドレスを設定変更するアドレス設定変更コマンドを送受
信部111を介して送出して、第iスレーブ局102−
iの通信アドレスを設定変更するものである。また、N
個のスレーブ局102−1〜102−N側では、自局の
通信アドレスが予め記憶部123等に設定されており、
マスタ局101から自局宛のコマンドを受信した時に
は、制御部(特許請求の範囲にいう応答手段)122に
より、マスタ局101に対する応答データを送受信部1
21を介して送出する。また、マスタ局101から自局
宛のアドレス設定変更コマンドを受信した時には、制御
部122により、記憶部123内の通信アドレスを該ア
ドレス設定変更コマンドに付属した通信アドレスに書き
換え、自局のアドレスを設定変更する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of a communication system and a communication address obtaining method in the communication system according to the present invention will be described in detail with reference to the drawings. FIG. 1 is a configuration diagram of a communication system according to an embodiment of the present invention. In FIG. 1, a communication system according to the present embodiment includes a master station 101 and N (N is a positive integer) slave stations (first slave station 102-1, second slave station 102-2,...).
The Nth slave station 102-N) is connected to the master station 101 and the N slave stations 10 through a bus by a communication cable 150.
This is a 1-to-N multi-drop communication system that performs communication with 2-1 to 102-N according to, for example, the HDLC procedure. The master station 101 has a configuration including a control unit 112 realized by a CPU and the like, and a transmission / reception unit 111. The control unit 112 includes an address scan unit 113 and an address setting control unit 114. Each of the slave stations 102-1 to 102-N includes a control unit 122 implemented by a CPU or the like, a storage unit 123,
1 is provided. Here, the address scanning unit 113 of the master station 101 sequentially sets an arbitrary address and transmits a command (eg, echo back) to the transmission / reception unit 11.
1 and each slave station 102-1 to 102-
The communication addresses of the N slave stations 102-1 to 102-N are scanned by confirming the presence or absence of a response from N. Also, the address setting control unit 114
Sends an address setting change command for changing the communication address of the i-th slave station 102-i (i = 1 to N) via the transmitting / receiving section 111, and outputs the i-th slave station 102-i.
The communication address of i is changed. Also, N
In the slave stations 102-1 to 102-N, the communication addresses of the own stations are set in the storage unit 123 and the like in advance,
When a command addressed to the own station is received from the master station 101, the control unit (response means in the claims) 122 transmits response data to the master station 101 to the transmission / reception unit 1.
21. When receiving the address setting change command addressed to the own station from the master station 101, the control unit 122 rewrites the communication address in the storage unit 123 to the communication address attached to the address setting change command, and changes the address of the own station. Change settings.

【0007】次に、本実施形態の通信システムにおいて
マスタ局101が行うスレーブ局102−1〜102−
Nの通信アドレスの取得方法について図2および図3を
参照して説明する。ここで、図2はマスタ局101がス
レーブ局102−1〜102−Nの通信アドレスを取得
する際の通信内容を説明するタイムチャートであり、図
3は本実施形態の通信システムにおける通信アドレス取
得方法を説明するフローチャートである。マスタ局10
1がN個のスレーブ局102−1〜102−Nのアドレ
スをスキャンして、N個のスレーブ局102−1〜10
2−Nのアドレスを確認する際には、先ず図3のステッ
プS301(特許請求の範囲にいう送出ステップに該当
する)において、任意のアドレスを設定してコマンドを
送出する。これは、図2において、マスタ局101側か
ら送出されるアドレスデータMA1および指令データM
C1に相当する。この時、N個のスレーブ局102−1
〜102−Nの内、該通信アドレス(アドレスデータM
A1)に該当する第iスレーブ局102−i側では、こ
れを自局宛のコマンドとして受信し、制御部122によ
り、マスタ局101に対して応答データを送出する(応
答ステップ)。これは、図2において、第iスレーブ局
102−i側から送出されるアドレスデータSA1およ
び応答データSC1に相当する。マスタ局101側で
は、ステップS302(確認ステップ)において、スレ
ーブ局からの応答が有る場合には、ステップS303に
進んで該当スレーブ局の通信アドレスとして(図示しな
い)記憶部に記録する。また、ステップS302におい
て、スレーブ局からの応答が無い場合にはステップS3
01に戻る。図2では、第iスレーブ局102−iから
応答データが送信されて来ているので、第iスレーブ局
102−iの通信アドレスとして記録される。以上のス
テップS301〜S303の処理を、ステップS304
において、N個のスレーブ局102−1〜102−N全
てについて確認されるまで、ステップS301(送出ス
テップ)における任意アドレスを順次設定しながら繰り
返し行うことにより、N個のスレーブ局102−1〜1
02−Nの通信アドレスがスキャンされる。次に、以上
のようなアドレススキャンによってN個のスレーブ局1
02−1〜102−Nの通信アドレスが取得されると、
マスタ局101では、複数のスレーブ局間で通信アドレ
スが重複していたり、N個のスレーブ局の通信アドレス
を再度割り振りたい場合など、マスタ局101が望むと
きに、特定のスレーブ局の通信アドレスを変更すること
ができる。すなわち、ステップS305においてアドレ
ス変更する場合には、ステップS306に進んで、アド
レス設定制御部114により、第iスレーブ局102−
iの通信アドレスを設定変更するアドレス設定変更コマ
ンドを送受信部111を介して送出する。この時、第i
スレーブ局102−i側では、制御部122により、マ
スタ局101からのアドレス設定変更コマンドに応じて
自局の通信アドレスを設定変更する。
[0007] Next, in the communication system of the present embodiment, the slave stations 102-1 to 102- performed by the master station 101.
A method for acquiring the communication address of N will be described with reference to FIGS. Here, FIG. 2 is a time chart for explaining the communication contents when the master station 101 acquires the communication addresses of the slave stations 102-1 to 102-N, and FIG. 3 is a communication address acquisition in the communication system of the present embodiment. It is a flowchart explaining a method. Master station 10
1 scans the addresses of the N slave stations 102-1 through 102-N, and scans the N slave stations 102-1 through 102-1.
When confirming the address of 2-N, first, in step S301 of FIG. 3 (corresponding to a transmission step in the claims), an arbitrary address is set and a command is transmitted. This is because the address data MA1 and the command data M1 sent from the master station 101 side in FIG.
It corresponds to C1. At this time, the N slave stations 102-1
Of the communication addresses (address data M
The i-th slave station 102-i corresponding to A1) receives this as a command addressed to the own station, and the control unit 122 sends response data to the master station 101 (response step). This corresponds to the address data SA1 and the response data SC1 sent from the i-th slave station 102-i in FIG. If there is a response from the slave station in step S302 (confirmation step), the master station 101 proceeds to step S303 and records the communication address of the slave station in a storage unit (not shown). If there is no response from the slave station in step S302, step S3
Return to 01. In FIG. 2, since the response data is transmitted from the i-th slave station 102-i, it is recorded as the communication address of the i-th slave station 102-i. The processing in steps S301 to S303 is performed in step S304.
In the step S301 (sending step), the process is repeatedly performed while sequentially setting the arbitrary addresses until all of the N slave stations 102-1 to 102-N are confirmed.
The communication address 02-N is scanned. Next, by the address scan as described above, the N slave stations 1
When the communication addresses of 02-1 to 102-N are obtained,
The master station 101 changes the communication address of a specific slave station when the master station 101 desires, for example, when the communication address is duplicated among a plurality of slave stations or when the communication addresses of N slave stations are to be re-allocated. Can be changed. That is, when the address is changed in step S305, the process proceeds to step S306, and the address setting control unit 114 causes the i-th slave station 102-
An address setting change command for changing the communication address of i is transmitted via the transmission / reception unit 111. At this time, the i-th
On the slave station 102-i side, the control unit 122 changes the communication address of its own station in response to an address setting change command from the master station 101.

【0008】以上説明したように、本実施形態の通信シ
ステムおよび通信システムにおける通信アドレス取得方
法では、マスタ局101が、アドレススキャン制御部1
13(の送出ステップS301)により、任意のアドレ
スを設定してコマンドを送出し、N個のスレーブ局10
2−1〜102−N側では、制御部122(応答ステッ
プ)により、マスタ局101からの自局宛のコマンドを
受信したときにマスタ局101に対して応答データを送
出し、次にマスタ局101側で、アドレススキャン制御
部113(の確認ステップS302)により、N個のス
レーブ局102−1〜102−Nからの応答の有無を確
認するという動作を、任意アドレスを順次設定して(送
出ステップ、応答ステップおよび確認ステップを)繰り
返し行うこと(ステップS304)により、N個のスレ
ーブ局102−1〜102−Nの通信アドレスをスキャ
ンする。このように、マスタ局101が任意のタイミン
グでN個のスレーブ局102−1〜102−Nのアドレ
スをスキャンして、何時でもN個のスレーブ局102−
1〜102−Nのアドレスを確認することができるの
で、従来のように、マスタ局101がN個のスレーブ局
102−1〜102−Nの通信アドレスを予め知ってい
なくても、アドレススキャンによって通信対象の第iス
レーブ局102−i(i=1〜N)の通信アドレスを確
認することにより該第iスレーブ局102−iとの通信
を行うことができ、また、N個のスレーブ局102−1
〜102−Nのアドレス情報をマスタ局101内に常時
保有しておく必要もなく、さらに、N個のスレーブ局1
02−1〜102−Nのアドレス情報のバックアップを
取る必要もない。また、マスタ局101が、任意のタイ
ミングでアドレス設定変更コマンドにより第iスレーブ
局102−iの通信アドレスを設定変更することができ
るので、例えば、複数のスレーブ局間で通信アドレスが
重複していたり、マスタ局101がスレーブ局102−
1〜102−Nのアドレスを再度割り振りたい場合など
にも、柔軟に対処することが可能である。
As described above, in the communication system and the communication address obtaining method in the communication system according to the present embodiment, the master station 101 operates the address scan control unit 1.
13 (sending step S301), an arbitrary address is set and a command is sent, and the N slave stations 10
On the side of 2-1 to 102-N, the control unit 122 (response step) sends response data to the master station 101 when receiving a command addressed to the own station from the master station 101, and then sends the response data to the master station. On the 101 side, the address scan control unit 113 (confirmation step S302) confirms the presence or absence of a response from the N slave stations 102-1 to 102-N by sequentially setting arbitrary addresses (transmission). The communication address of the N slave stations 102-1 to 102 -N is scanned by repeatedly performing the step, the response step, and the confirmation step) (step S 304). As described above, the master station 101 scans the addresses of the N slave stations 102-1 to 102-N at an arbitrary timing, and always scans the N slave stations 102-102.
Since the addresses of 1 to 102-N can be confirmed, even if the master station 101 does not previously know the communication addresses of the N slave stations 102-1 to 102-N, the address scan can be performed by the address scan. The communication with the i-th slave station 102-i can be performed by confirming the communication address of the i-th slave station 102-i (i = 1 to N) to be communicated. -1
It is not necessary to keep the master station 101 with the address information of 102 to 102-N at all times.
It is not necessary to back up the address information of 02-1 to 102-N. Further, since the master station 101 can change the communication address of the i-th slave station 102-i at an arbitrary timing by using the address setting change command, for example, the communication addresses may be duplicated among a plurality of slave stations. , The master station 101 is connected to the slave station 102-
It is possible to flexibly cope with a case where it is desired to reassign addresses 1 to 102-N.

【0009】[0009]

【発明の効果】以上説明したように、本発明の通信シス
テムおよび通信システムにおける通信アドレス取得方法
によれば、マスタ局が、アドレススキャン制御手段(の
送出ステップ)により、任意のアドレスを設定して所定
指令を送出し、複数のスレーブ局側では、応答手段(応
答ステップ)により、マスタ局からの自局宛の所定指令
を受信したときにマスタ局に対して応答し、次にマスタ
局側で、アドレススキャン制御手段(の確認ステップ)
により、複数のスレーブ局からの応答の有無を確認する
という動作を、(送出ステップにおける)任意アドレス
を順次設定して(送出ステップ、応答ステップおよび確
認ステップを)繰り返し行うことにより、複数のスレー
ブ局のアドレスをスキャンすることとしたので、マスタ
局が任意のタイミングで複数のスレーブ局のアドレスを
スキャンしてスレーブ局の通信アドレスを確認すること
により、通信対象のスレーブ局との通信を何時でも行う
ことができ、また、複数スレーブ局のアドレス情報をマ
スタ局内に常時保有したり、バックアップすることを不
要とした通信システムおよび通信システムにおけるアド
レス取得方法を実現することができる。また、本発明に
よれば、マスタ局が、アドレス設定制御手段により、ス
レーブ局のアドレスを設定変更するアドレス設定変更指
令を送出すると、スレーブ局側で、応答手段により、マ
スタ局からのアドレス設定変更指令に応じて自局のアド
レスを設定変更することとし、任意のタイミングでアド
レス設定変更指令によりスレーブ局のアドレスを設定変
更することができるので、スレーブ局のアドレス再割り
振り等を柔軟に行うことができる。
As described above, according to the communication system and the communication address acquiring method in the communication system of the present invention, the master station sets an arbitrary address by the address scan control means (transmission step). A predetermined command is transmitted, and the plurality of slave stations respond to the master station by a response means (response step) when receiving the predetermined command addressed to the own station from the master station. , Address scan control means (confirmation step)
By repeatedly setting the arbitrary address (in the transmission step) sequentially (in the transmission step, the response step, and the confirmation step), the operation of confirming the presence or absence of a response from the plurality of slave stations is repeated. The master station scans the addresses of a plurality of slave stations at an arbitrary timing and checks the communication addresses of the slave stations at any time, so that communication with the slave station to be communicated is performed at any time. In addition, it is possible to realize a communication system and an address acquisition method in the communication system that do not need to always hold the address information of the plurality of slave stations in the master station or to back up the address information. Further, according to the present invention, when the master station sends an address setting change command for changing the address of the slave station by the address setting control means, the slave station responds on the slave station side to change the address setting from the master station. The address of the own station is changed according to the command, and the address of the slave station can be changed at an arbitrary timing by the address setting change command, so the address reassignment of the slave station can be flexibly performed. it can.

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

【図1】本発明の一実施形態に係る通信システムの構成
図である。
FIG. 1 is a configuration diagram of a communication system according to an embodiment of the present invention.

【図2】マスタ局がスレーブ局の通信アドレスを取得す
る際の通信内容を説明するタイムチャートである。
FIG. 2 is a time chart illustrating communication contents when a master station acquires a communication address of a slave station.

【図3】実施形態の通信システムにおける通信アドレス
取得方法を説明するフローチャートである。
FIG. 3 is a flowchart illustrating a communication address acquisition method in the communication system according to the embodiment.

【符号の説明】[Explanation of symbols]

101 マスタ局 102−1〜102−N スレーブ局 111 送受信部 112 制御部 113 アドレススキャン制御部 114 アドレス設定制御部 121 送受信部 122 制御部(応答手段) 123 記憶部 150 通信ケーブル Reference Signs List 101 master station 102-1 to 102-N slave station 111 transmission / reception unit 112 control unit 113 address scan control unit 114 address setting control unit 121 transmission / reception unit 122 control unit (response means) 123 storage unit 150 communication cable

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 マスタ局と複数のスレーブ局とをバス接
続した通信システムにおいて、 前記マスタ局は、任意のアドレスを順次設定して所定指
令を送出し、前記複数のスレーブ局からの応答の有無を
確認することにより、前記複数のスレーブ局のアドレス
をスキャンするアドレススキャン制御手段を有し、 前記複数のスレーブ局は、前記マスタ局からの自局宛の
所定指令を受信したときに前記マスタ局に対して応答を
通信する応答手段を有することを特徴とする通信システ
ム。
1. A communication system in which a master station and a plurality of slave stations are connected by a bus, wherein the master station sequentially sets an arbitrary address, transmits a predetermined command, and determines whether there is a response from the plurality of slave stations. Address scan control means for scanning the addresses of the plurality of slave stations, and the plurality of slave stations, when receiving a predetermined command addressed to the own station from the master station, the master station A communication system comprising a response unit for communicating a response to the communication system.
【請求項2】 前記マスタ局は、前記スレーブ局のアド
レスを設定変更するアドレス設定変更指令を送出するア
ドレス設定制御手段を有し、 前記複数のスレーブ局の応答手段は、前記マスタ局から
のアドレス設定変更指令に応じて自局のアドレスを設定
変更することを特徴とする請求項1に記載の通信システ
ム。
2. The master station has address setting control means for sending an address setting change command for changing the address of the slave station. The response means of the plurality of slave stations includes an address from the master station. 2. The communication system according to claim 1, wherein the address of the own station is changed according to a setting change command.
【請求項3】 マスタ局と複数のスレーブ局とをバス接
続した通信システムにおける通信アドレス取得方法であ
って、 前記マスタ局が、任意のアドレスを設定して所定指令を
送出する送出ステップと、 前記複数のスレーブ局が、前記マスタ局からの自局宛の
所定指令を受信したときに前記マスタ局に対して応答を
通信する応答ステップと、 前記マスタ局が、前記複数のスレーブ局からの応答の有
無を確認する確認ステップと、を有し、 前記送出ステップにおける任意アドレスを順次設定し
て、該送出ステップ、前記応答ステップおよび前記確認
ステップを繰り返し行うことにより、前記複数のスレー
ブ局のアドレスをスキャンすることを特徴とする通信シ
ステムにおける通信アドレス取得方法。
3. A communication address acquiring method in a communication system in which a master station and a plurality of slave stations are connected by a bus, wherein the master station sets an arbitrary address and sends a predetermined command; A plurality of slave stations, a response step of communicating a response to the master station when receiving a predetermined command addressed to the own station from the master station; andthe master station transmits a response from the plurality of slave stations. And confirming the presence / absence of the plurality of slave stations by sequentially setting an arbitrary address in the transmission step and repeating the transmission step, the response step and the confirmation step. A communication address obtaining method in a communication system.
JP2001106239A 2001-04-04 2001-04-04 Communication system, and communication address acquisition method for communication system Pending JP2002305522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001106239A JP2002305522A (en) 2001-04-04 2001-04-04 Communication system, and communication address acquisition method for communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001106239A JP2002305522A (en) 2001-04-04 2001-04-04 Communication system, and communication address acquisition method for communication system

Publications (1)

Publication Number Publication Date
JP2002305522A true JP2002305522A (en) 2002-10-18

Family

ID=18958783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001106239A Pending JP2002305522A (en) 2001-04-04 2001-04-04 Communication system, and communication address acquisition method for communication system

Country Status (1)

Country Link
JP (1) JP2002305522A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131533A (en) * 2019-11-29 2020-05-08 中煤科工集团重庆研究院有限公司 Automatic address allocation method for serial communication system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131533A (en) * 2019-11-29 2020-05-08 中煤科工集团重庆研究院有限公司 Automatic address allocation method for serial communication system

Similar Documents

Publication Publication Date Title
US6560643B1 (en) System of self-service terminals and method of distributing software to a plurality of self-service terminals
JP3414244B2 (en) Communication control method and transmission device
JP7071575B2 (en) Information processing equipment, its control method, and programs
US4977499A (en) Method and apparatus for commanding operations on a computer network
JP2002305522A (en) Communication system, and communication address acquisition method for communication system
JP2006304011A (en) Interface circuit
JP3024345B2 (en) Data link method
WO2021214966A1 (en) Communication device, communication system, communication method, and program
JP2000134277A (en) Method and system for automatically identifying communication link
JPH04360259A (en) Transmission control system by polling
JP3234330B2 (en) Communications system
JP2566350B2 (en) Data way device
JP2935242B2 (en) Wireless communication system
JPH0496541A (en) Communication controller
JPH11296211A (en) Input/output device
JP2000307499A (en) Satellite communication system
JPH0630506B2 (en) Serial communication device
JP2565299B2 (en) Inter-task communication method
KR0136952B1 (en) Method of exchanging the data between a client and a server
JPH0454047A (en) Reply packet acquisition transmission system
JPH04241659A (en) Remote job transferring system
JPH04172032A (en) Polling control system
JPH07327009A (en) Data link address acquisition method and optical communication system adopting the method
JPH0252467B2 (en)
JPH0746235A (en) Transmission destination setting and recognizing method in transmission system

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20060324

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071127