JP7101511B2 - Communications system - Google Patents

Communications system Download PDF

Info

Publication number
JP7101511B2
JP7101511B2 JP2018062491A JP2018062491A JP7101511B2 JP 7101511 B2 JP7101511 B2 JP 7101511B2 JP 2018062491 A JP2018062491 A JP 2018062491A JP 2018062491 A JP2018062491 A JP 2018062491A JP 7101511 B2 JP7101511 B2 JP 7101511B2
Authority
JP
Japan
Prior art keywords
address
unit
level
message
telegram
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.)
Active
Application number
JP2018062491A
Other languages
Japanese (ja)
Other versions
JP2019176320A (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.)
Mitsubishi Electric Engineering Co Ltd
Original Assignee
Mitsubishi Electric Engineering Co 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 Mitsubishi Electric Engineering Co Ltd filed Critical Mitsubishi Electric Engineering Co Ltd
Priority to JP2018062491A priority Critical patent/JP7101511B2/en
Publication of JP2019176320A publication Critical patent/JP2019176320A/en
Application granted granted Critical
Publication of JP7101511B2 publication Critical patent/JP7101511B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

この発明は、通信線を介して接続される上位装置及び複数の下位装置を備えた通信システムに関する。 The present invention relates to a communication system including a higher-level device and a plurality of lower-level devices connected via a communication line.

従来から、通信システムでは、上位装置と複数の下位装置との間で通信を行うため、下位装置に対するアドレスを設定している(例えば特許文献1参照)。この特許文献1に開示された通信システムでは、下位装置は予めランダム数から成るシリアル番号をアドレスとして設定する。そして、下位装置のうちの1台が親局となり、この親局が、シリアル番号が重複する下位装置を検出した場合にシリアル番号の変更を行う。これにより、下位装置はアドレス重複を回避できる。 Conventionally, in a communication system, an address for a lower device is set in order to communicate between a higher device and a plurality of lower devices (see, for example, Patent Document 1). In the communication system disclosed in Patent Document 1, the lower device sets in advance a serial number composed of a random number as an address. Then, one of the lower devices becomes a master station, and when this master station detects a lower device having a duplicate serial number, the serial number is changed. As a result, the lower-level device can avoid address duplication.

特開平10-306973号公報Japanese Unexamined Patent Publication No. 10-306973

しかしながら、従来の通信システムでは、下位装置のアドレス重複を検知するために複雑な工程を経る必要がある。 However, in the conventional communication system, it is necessary to go through a complicated process in order to detect the address duplication of the lower device.

この発明は、上記のような課題を解決するためになされたもので、従来構成に対してより簡易に、下位装置に対するアドレスの重複を回避可能な通信システムを提供することを目的としている。 The present invention has been made to solve the above-mentioned problems, and an object of the present invention is to provide a communication system capable of avoiding duplication of addresses for lower-level devices more easily than a conventional configuration.

この発明に係る通信システムは、通信線を介して接続される上位装置及び複数の下位装置を備え、上位装置は、アドレスが記録される上位テーブルを保持する上位保持部と、電文の受信を行う上位受信部と、上位テーブルに記録されている使用中のアドレスをそれぞれ送信先アドレスとした電文である状態要求電文をポーリングセレクション方式で送信する上位送信部とを備え、上位保持部は、規定回数以上、上位受信部により状態要求電文に対する応答を示す電文である応答電文が受信されない下位装置が存在する場合に、当該下位装置に対する通信異常フラグをオンに切替え、上位受信部により当該下位装置からの応答電文が受信された場合に、当該通信異常フラグをオフに戻し、上位送信部は、上位保持部により通信異常フラグがオフに戻された場合に、当該通信異常フラグに対応する前記下位装置に対して、上位テーブルに関する情報を送信し、下位装置は、アドレスが記録される下位テーブルを保持する下位保持部と、アドレスを仮設定する設定部と、設定部により仮設定されたアドレスが、下位テーブルにおいて、下位装置のアドレスとして登録されている使用中のアドレスであるかを確認する確認部と、確認部によりアドレスが下位テーブルにおいて使用中のアドレスではないことが確認された場合に、当該下位テーブルに、当該アドレスを自機のアドレスとして登録する下位登録部と、電文の受信を行う下位受信部と、下位受信部により自機宛ての状態要求電文が受信された場合に、応答電文を上位装置に送信する下位送信部とを備え、下位保持部は、下位受信部により前記上位テーブルに関する情報が受信された場合に、下位テーブルの内容を更新することを特徴とする。 The communication system according to the present invention includes a higher-level device and a plurality of lower-level devices connected via a communication line, and the higher- level device receives a telegram with a higher-level holding unit that holds a higher-level table in which addresses are recorded. It is equipped with a high-level receiving unit and a high-level transmitting unit that transmits a state request message, which is a telegram with the address in use recorded in the high-level table as the destination address, by the poll selection method, and the high-level holding unit has a specified number of times. As described above, when there is a lower device in which the response message, which is a message indicating the response to the status request message, is not received by the upper receiver, the communication error flag for the lower device is switched on, and the upper receiver switches the communication error flag from the lower device. When the response message is received, the communication error flag is turned off, and the upper transmitter sends the lower device corresponding to the communication error flag when the communication error flag is turned off by the upper holding unit. On the other hand, information about the upper table is transmitted, and in the lower device, the lower holding unit that holds the lower table in which the address is recorded, the setting unit that temporarily sets the address, and the address temporarily set by the setting unit are lower. In the table, the confirmation unit that confirms whether the address is in use registered as the address of the lower device, and when the confirmation unit confirms that the address is not the address in use in the lower table, the lower level is concerned. When the status request message addressed to the own machine is received by the lower registration unit that registers the address as the address of the own machine, the lower reception unit that receives the telegram, and the lower reception unit in the table, the response message is higher. The lower-level holding unit includes a lower-level transmission unit that transmits to the device, and is characterized in that the lower-level holding unit updates the contents of the lower-level table when information about the upper-level table is received by the lower-level receiving unit .

この発明によれば、上記のように構成したので、従来構成に対してより簡易に、下位装置に対するアドレスの重複を回避可能である。 According to the present invention, since the configuration is as described above, it is possible to avoid duplication of addresses for lower-level devices more easily than in the conventional configuration.

この発明の実施の形態1に係る通信システムの構成例を示す図である。It is a figure which shows the structural example of the communication system which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る上位装置の構成例を示す図である。It is a figure which shows the structural example of the higher-level apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る下位装置の構成例を示す図である。It is a figure which shows the structural example of the lower apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る下位装置によるアドレス設定動作の一例を示すフローチャート図である。It is a flowchart which shows an example of the address setting operation by the lower apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る上位装置によるアドレス収集動作の一例を示すフローチャートである。It is a flowchart which shows an example of the address collection operation by the higher-order apparatus which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係る上位装置による復旧した下位装置に対するテーブル情報提示動作の一例を示すフローチャートである。It is a flowchart which shows an example of the table information presenting operation with respect to the restored lower apparatus by the upper apparatus which concerns on Embodiment 1 of this invention. 図7A、図7Bは、この発明の実施の形態1に係る上位装置及び下位装置のハードウェア構成例を示す図である。7A and 7B are diagrams showing a hardware configuration example of the upper device and the lower device according to the first embodiment of the present invention.

以下、この発明の実施の形態について図面を参照しながら詳細に説明する。
実施の形態1.
図1はこの発明の実施の形態1に係る通信システムの構成例を示す図である。
通信システムは、図1に示すように、通信線を介して接続される上位装置1及び複数の下位装置2を備えている。この通信システムは、RS-485通信を採用し、上位装置1から複数の下位装置2に対してポーリングセレクション方式のシリアル通信を行う。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
Embodiment 1.
FIG. 1 is a diagram showing a configuration example of a communication system according to the first embodiment of the present invention.
As shown in FIG. 1, the communication system includes a higher-level device 1 and a plurality of lower-level devices 2 connected via a communication line. This communication system adopts RS-485 communication, and performs polling selection type serial communication from the upper device 1 to a plurality of lower devices 2.

上位装置1は、図2に示すように、保持部(上位保持部)101、モード設定部102、電文作成部103、電文受信部(上位受信部)104、電文送信部(上位送信部)105、送信制御部106及び登録部(上位登録部)107を有している。 As shown in FIG. 2, the higher-level device 1 includes a holding unit (upper-level holding unit) 101, a mode setting unit 102, a telegram creating unit 103, a telegram receiving unit (upper-level receiving unit) 104, and a telegram transmitting unit (upper-level transmitting unit) 105. , It has a transmission control unit 106 and a registration unit (upper registration unit) 107.

保持部101は、アドレス(論理的アドレス)が記録されるテーブル(上位テーブル)を保持する。初期状態では、テーブルには、アドレス設定において下位装置2に対して設定可能な番号のアドレスが全て未使用の状態(下位装置2のアドレスとして登録されていない状態)で記録されている。
また、保持部101は、アドレスが登録済みである下位装置2の状態を管理している。保持部101は、通信異常が発生した下位装置2が存在する場合、すなわち、規定回数以上、電文受信部104により後述する状態要求電文に対する応答電文が受信されない下位装置2が存在する場合、当該下位装置2に対する通信異常フラグをオフからオンに切替える。その後、保持部101は、電文受信部104により上記下位装置2からの応答電文が受信された場合には、上記通信異常フラグをオンからオフに戻す。
The holding unit 101 holds a table (upper table) in which addresses (logical addresses) are recorded. In the initial state, all the addresses of the numbers that can be set for the lower device 2 in the address setting are recorded in an unused state (a state in which they are not registered as the addresses of the lower device 2).
Further, the holding unit 101 manages the state of the lower device 2 whose address is registered. When the lower device 2 in which the communication error has occurred exists, that is, when the lower device 2 in which the response message to the state request message described later by the message receiving unit 104 is not received by the message receiving unit 104 more than the specified number of times, the holding unit 101 is the lower device. The communication error flag for the device 2 is switched from off to on. After that, when the response message from the lower device 2 is received by the message receiving unit 104, the holding unit 101 returns the communication abnormality flag from on to off.

図1では、アドレス設定において下位装置2に対して設定可能なアドレスの番号が1~240である場合を想定している。また図1では、下位装置(No.3)ではアドレス(3)が登録され、下位装置(No.4)ではアドレス(4)が登録され、その他の下位装置2ではアドレスが未登録である場合を示している。また、アドレスが未登録の下位装置2には、初期のアドレスとして、事前に決められた第1の仮アドレスが登録されている。第1の仮アドレスは、アドレス設定において下位装置2に対して設定可能な番号とは異なる番号のアドレスである。図1では、第1の仮アドレスの番号は254となっている。 In FIG. 1, it is assumed that the address numbers that can be set for the lower device 2 in the address setting are 1 to 240. Further, in FIG. 1, the address (3) is registered in the lower device (No. 3), the address (4) is registered in the lower device (No. 4), and the address is not registered in the other lower device 2. Is shown. Further, a predetermined temporary address is registered as an initial address in the lower device 2 whose address is not registered. The first temporary address is an address having a number different from the number that can be set for the lower device 2 in the address setting. In FIG. 1, the number of the first temporary address is 254.

なお、保持部101としては、例えば、RAM(Random Access Memory)、ROM(Read Only Memory)、フラッシュメモリ、EPROM(Erasable Programmable ROM)、EEPROM(Electrically EPROM)等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD(Digital Versatile Disc)等が該当する。 The holding unit 101 includes, for example, a non-volatile or volatile semiconductor memory such as a RAM (Random Access Memory), a ROM (Read Only Memory), a flash memory, an EPROM (Erasable Program ROM), or an EPROM (Electrically EPROM). A magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD (Digital Versaille Disc), or the like is applicable.

なお図2では、上位装置1の内部に保持部101が設けられた場合を示した。しかしながら、これに限らず、上位装置1の外部に保持部101が設けられてもよい。 Note that FIG. 2 shows a case where the holding portion 101 is provided inside the host device 1. However, the present invention is not limited to this, and the holding portion 101 may be provided outside the host device 1.

モード設定部102は、上位装置1の動作モードを設定する。上位装置1の動作モードとしては、通常モード及び試運転モードがある。通常モードは、通常動作を行うモードであり、下位装置2の運転情報をモニタするためのモードである。試運転モードは、下位装置2のアドレスを確認するためのモードである。 The mode setting unit 102 sets the operation mode of the host device 1. The operation mode of the host device 1 includes a normal mode and a test run mode. The normal mode is a mode for performing normal operation, and is a mode for monitoring the operation information of the lower device 2. The test run mode is a mode for confirming the address of the lower device 2.

電文作成部103は、電文を作成する。
この電文作成部103は、上位装置1が通常モードである場合に、アドレスが登録済みである下位装置2を対象とし、運転情報の送信を要求する電文(状態要求電文)を作成する。この状態要求電文は、識別コード、電文の種別、電文の送信元である自機(上位装置1)のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部103は、送信先アドレスとして、自身のテーブルに記録されている使用中のアドレス(下位装置2のアドレスとして登録されているアドレス)を用いる。
The telegram creation unit 103 creates a telegram.
The telegram creating unit 103 creates a telegram (state request telegram) requesting transmission of operation information for the lower device 2 whose address is registered when the upper device 1 is in the normal mode. This status request message indicates an identification code, a type of message, an address (source address) of the own machine (upper device 1) that is the source of the message, an address (destination address) of the destination of the message, and the like. Have information. The telegram creation unit 103 uses the address in use (the address registered as the address of the lower device 2) recorded in its own table as the destination address.

また、電文作成部103は、上位装置1が試運転モードである場合に、自身のテーブルに記録されている全てのアドレス先を対象とし、通信を確認する電文(通信確認電文)を作成する。この通信確認電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部103は、送信先アドレスとして、自身のテーブルに記録されている全てのアドレス(使用中のアドレス及び未使用のアドレス)をそれぞれ用いる。 Further, the telegram creation unit 103 creates a telegram (communication confirmation telegram) for confirming communication for all the address destinations recorded in its own table when the host device 1 is in the test run mode. This communication confirmation telegram has information indicating an identification code, a type of the telegram, an address of the own machine that is the source of the telegram (source address), an address of the destination of the telegram (destination address), and the like. The telegram creation unit 103 uses all the addresses (used addresses and unused addresses) recorded in its own table as the destination addresses.

電文受信部104は、電文の受信を行う。また、電文受信部104は、電文を受信した場合に、電文に含まれる送信先アドレスから当該電文が自機宛ての電文であるかを判断する。そして、電文受信部104は、電文が自機宛ての電文であると判断した場合には当該電文を取得し、電文が自機宛ての電文ではないと判断した場合には当該電文を読み捨てる。 The telegram receiving unit 104 receives the telegram. Further, when the telegram is received, the telegram receiving unit 104 determines whether the telegram is a telegram addressed to its own machine from the destination address included in the telegram. Then, the telegram receiving unit 104 acquires the telegram when it is determined that the telegram is addressed to the own machine, and discards the telegram when it is determined that the telegram is not addressed to the own machine.

電文送信部105は、電文の送信を行う。この電文送信部105は、電文作成部103により状態要求電文が作成された場合に、当該状態要求電文をポーリングセレクション方式で送信する。また、電文送信部105は、電文作成部103により通信確認電文が作成された場合に、当該通信確認電文をポーリングセレクション方式で送信する。また、電文送信部105は、保持部101により通信異常フラグがオンからオフに戻された場合に、当該通信異常フラグに対応する下位装置2に対して、保持部101で保持されているテーブルに関する情報を送信する。
送信制御部106は、電文送信部105による電文の送信を制御する。
The telegram transmission unit 105 transmits a telegram. When the state request message is created by the message creation unit 103, the message transmission unit 105 transmits the state request message by the polling selection method. Further, when the communication confirmation message is created by the message creation unit 103, the message transmission unit 105 transmits the communication confirmation message by the polling selection method. Further, the message transmission unit 105 relates to a table held by the holding unit 101 with respect to the lower device 2 corresponding to the communication abnormality flag when the communication abnormality flag is returned from on to off by the holding unit 101. Send information.
The transmission control unit 106 controls the transmission of a telegram by the telegram transmission unit 105.

登録部107は、電文受信部104により後述するアドレス決定電文が受信された場合に、自身のテーブルに、当該アドレス決定電文により通知されたアドレスを、当該アドレス決定電文の送信元である下位装置2のアドレスとして登録する。
また、登録部107は、電文受信部104により通信確認電文に対する応答電文が受信された場合に、自身のテーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である下位装置2のアドレスとして登録する。
When the address determination message described later is received by the message reception unit 104, the registration unit 107 adds the address notified by the address determination message to its own table in the lower device 2 which is the transmission source of the address determination message. Register as the address of.
Further, when the response message to the communication confirmation message is received by the message reception unit 104, the registration unit 107 sets the destination address of the communication confirmation message in its own table as a lower-level device that is the transmission source of the response message. Register as the address of 2.

下位装置2は、図3に示すように、保持部(下位保持部)201、電文作成部202、電文受信部(下位受信部)203、電文送信部(下位送信部)204、送信制御部205、設定部206、確認部207及び登録部(下位登録部)208を有している。 As shown in FIG. 3, the lower device 2 includes a holding unit (lower holding unit) 201, a telegram creating unit 202, a telegram receiving unit (lower receiving unit) 203, a telegram transmitting unit (lower transmitting unit) 204, and a transmission control unit 205. , The setting unit 206, the confirmation unit 207, and the registration unit (sub-registration unit) 208.

保持部201は、アドレスが記録されるテーブル(下位テーブル)を保持する。初期状態では、テーブルには、アドレス設定において下位装置2に対して設定可能な番号のアドレスが全て未使用の状態で記録されている。また、初期状態では、保持部201は、自機のアドレスとして第1の仮アドレスを記録している。また、保持部201は、電文受信部203によりテーブルに関する情報が受信された場合には、当該情報に基づいて、自身のテーブルの内容を更新する。
なお、保持部201としては、例えば、RAM、ROM、フラッシュメモリ、EPROM、EEPROM等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD等が該当する。
The holding unit 201 holds a table (lower table) in which addresses are recorded. In the initial state, all the addresses of the numbers that can be set for the lower device 2 in the address setting are recorded in the table in an unused state. Further, in the initial state, the holding unit 201 records the first temporary address as the address of the own machine. Further, when the information about the table is received by the telegram receiving unit 203, the holding unit 201 updates the contents of its own table based on the information.
The holding unit 201 corresponds to, for example, a non-volatile or volatile semiconductor memory such as RAM, ROM, flash memory, EPROM, EEPROM, a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD, or the like. do.

なお図3では、下位装置2の内部に保持部201が設けられた場合を示した。しかしながら、これに限らず、下位装置2の外部に保持部201が設けられてもよい。 Note that FIG. 3 shows a case where the holding portion 201 is provided inside the lower device 2. However, the present invention is not limited to this, and the holding unit 201 may be provided outside the lower device 2.

電文作成部202は、電文を作成する。
この電文作成部202は、登録部208によりアドレスが登録された場合に、当該登録されたアドレスを通知する電文(アドレス決定電文)を作成する。このアドレス決定電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先のアドレス(送信先アドレス)等を示す情報を有する。なお、電文作成部202は、送信元アドレスとして、登録部208により登録されたアドレスを用いる。また、電文作成部202は、送信先アドレスとして、通信システムで事前に決められている全ての装置(上位装置1及び下位装置2)で共通なアドレスである共通アドレスを用いる。
The telegram creation unit 202 creates a telegram.
When the address is registered by the registration unit 208, the telegram creation unit 202 creates a telegram (address determination telegram) notifying the registered address. This address determination telegram has information indicating an identification code, a type of telegram, an address of its own machine that is a source of the telegram (source address), an address of a destination of the telegram (destination address), and the like. The telegram creation unit 202 uses the address registered by the registration unit 208 as the source address. Further, the message creating unit 202 uses a common address, which is a common address for all the devices (upper device 1 and lower device 2) predetermined in the communication system, as the destination address.

また、電文作成部202は、電文受信部203により自機宛ての状態要求電文が受信された場合に、当該状態要求電文に対する応答を示す電文(応答電文)を作成する。応答電文は、自機の運転情報を通知する電文である。この応答電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先である上位装置1のアドレス(送信先アドレス)等を示す情報に加え、自機の運転情報(運転状態、温度情報及び冷媒状態等を示す情報)を有する。 Further, the telegram creating unit 202 creates a telegram (response telegram) indicating a response to the state requesting telegram when the telegram receiving unit 203 receives the state requesting telegram addressed to the own machine. The response telegram is a telegram that notifies the operation information of the own machine. This response message is information indicating an identification code, a type of message, the address of the own machine that is the source of the message (source address), the address of the host device 1 that is the destination of the message (destination address), and the like. In addition, it has the operation information (information indicating the operation state, temperature information, refrigerant state, etc.) of the own machine.

また、電文作成部202は、電文受信部203により自機宛ての通信確認電文が受信された場合に、当該通信確認電文に対する応答を示す電文(応答電文)を作成する。この応答電文は、識別コード、電文の種別、電文の送信元である自機のアドレス(送信元アドレス)、及び、電文の送信先である上位装置1のアドレス(送信先アドレス)等を示す情報を有する。 Further, the telegram creating unit 202 creates a telegram (response telegram) indicating a response to the communication confirmation telegram when the communication confirmation telegram addressed to the own machine is received by the telegram receiving unit 203. This response message is information indicating an identification code, a type of message, the address of the own machine that is the source of the message (source address), the address of the host device 1 that is the destination of the message (destination address), and the like. Has.

電文受信部203は、電文の受信を行う。また、電文受信部203は、電文を受信した場合に、電文に含まれる送信先アドレスから当該電文が自機宛ての電文であるかを判断する。そして、電文受信部203は、電文が自機宛ての電文であると判断した場合には当該電文を取得し、電文が自機宛ての電文ではないと判断した場合には当該電文を読み捨てる。 The telegram receiving unit 203 receives the telegram. Further, when the telegram is received, the telegram receiving unit 203 determines whether the telegram is a telegram addressed to its own machine from the destination address included in the telegram. Then, the telegram receiving unit 203 acquires the telegram when it is determined that the telegram is addressed to the own machine, and discards the telegram when it is determined that the telegram is not addressed to the own machine.

電文送信部204は、電文の送信を行う。この電文送信部204は、電文作成部202によりアドレス決定電文が作成された場合に、当該アドレス決定電文を送信する。また、電文送信部204は、電文作成部202により応答電文が作成された場合に、当該応答電文を送信する。
送信制御部205は、電文送信部204による電文の送信を制御する。
The telegram transmission unit 204 transmits a telegram. When the address determination message is created by the message creation unit 202, the message transmission unit 204 transmits the address determination message. Further, the telegram transmission unit 204 transmits the response telegram when the response telegram is created by the telegram creation unit 202.
The transmission control unit 205 controls the transmission of a telegram by the telegram transmission unit 204.

設定部206は、アドレスを仮設定する。また、設定部206は、確認部207によりこのアドレスが自身のテーブルにおいて使用中のアドレスであることが確認された場合には、異なるアドレスへの仮設定を行う。 The setting unit 206 temporarily sets the address. Further, when the confirmation unit 207 confirms that this address is an address in use in its own table, the setting unit 206 performs temporary setting to a different address.

確認部207は、設定部206によりアドレスが仮設定された場合に、当該アドレスが自身のテーブルにおいて使用中のアドレスであるかを確認する。 When the address is temporarily set by the setting unit 206, the confirmation unit 207 confirms whether the address is an address in use in its own table.

登録部208は、確認部207によりアドレスが自身のテーブルにおいて使用中のアドレスではないことが確認された場合に、自身のテーブルに、当該アドレスを自機のアドレスとして登録する。
また、登録部208は、電文受信部203によりアドレス決定電文が受信された場合に、自身のテーブルに、当該アドレス決定電文により通知されたアドレスを、当該アドレス決定電文の送信元である下位装置2のアドレスとして登録する。
When the confirmation unit 208 confirms that the address is not the address in use in its own table, the registration unit 208 registers the address in its own table as its own address.
Further, when the address determination message is received by the message reception unit 203, the registration unit 208 puts the address notified by the address determination message in its own table in the lower device 2 which is the transmission source of the address determination message. Register as the address of.

次に、実施の形態1に係る通信システムの動作例について説明する。
まず、下位装置2によるアドレス設定動作の一例について、図4を参照しながら説明する。以下では、上位装置1及び複数の下位装置2が通信線を介して接続されているものとする。
下位装置2によるアドレス設定動作では、図4に示すように、まず、設定部206は、アドレスを仮設定する(ステップST401)。なお、設定部206は、任意のアドレスを仮設定可能である。例えば、設定部206は、下位装置2を操作するユーザにより指定されたアドレスを自機のアドレスとして仮設定してもよい。また、上位装置1が、テーブルに記録されている未使用のアドレスのうちの1つを、アドレスが未登録である下位装置2に通知する機能を有する場合には、設定部206は、この通知された未使用のアドレスがユーザにより選択された場合に当該未使用のアドレスを自機のアドレスとして仮設定してもよい。
Next, an operation example of the communication system according to the first embodiment will be described.
First, an example of the address setting operation by the lower device 2 will be described with reference to FIG. In the following, it is assumed that the higher-level device 1 and the plurality of lower-level devices 2 are connected via a communication line.
In the address setting operation by the lower device 2, as shown in FIG. 4, the setting unit 206 first temporarily sets the address (step ST401). The setting unit 206 can temporarily set an arbitrary address. For example, the setting unit 206 may temporarily set the address specified by the user who operates the lower device 2 as the address of the own machine. Further, when the higher-level device 1 has a function of notifying one of the unused addresses recorded in the table to the lower-level device 2 whose address is not registered, the setting unit 206 notifies this notification. When the unused address is selected by the user, the unused address may be temporarily set as the address of the own machine.

次いで、確認部207は、設定部206により仮設定されたアドレスが自身のテーブルにおいて使用中のアドレスであるかを確認する(ステップST402)。 Next, the confirmation unit 207 confirms whether the address temporarily set by the setting unit 206 is the address in use in its own table (step ST402).

このステップST402において、確認部207がアドレスが自身のテーブルにおいて使用中のアドレスであることを確認した場合には、シーケンスはステップST401に戻り、設定部206は、異なるアドレスへの仮設定を行う。
なおここでは、確認部207によりアドレスが自身のテーブルにおいて使用中のアドレスであることが確認された場合に、設定部206が異なるアドレスへの仮設定を行うものとした。しかしながら、これに限らず、例えば、確認部207によりアドレスが自身のテーブルにおいて使用中のアドレスであることが確認された場合に、下位装置2が有する表示器(不図示)にアドレスが重複している旨を表示(LEDランプの点灯等)してアドレス設定動作を終了してもよい。
When the confirmation unit 207 confirms that the address is the address in use in its own table in this step ST402, the sequence returns to step ST401, and the setting unit 206 performs temporary setting to a different address.
Here, when the confirmation unit 207 confirms that the address is the address being used in its own table, the setting unit 206 temporarily sets the address to a different address. However, the present invention is not limited to this, and for example, when the confirmation unit 207 confirms that the address is the address in use in its own table, the address is duplicated on the display (not shown) of the lower device 2. The address setting operation may be terminated by displaying the fact that the address is set (lighting of the LED lamp, etc.).

一方、ステップST402において、確認部207がアドレスが自身のテーブルにおいて使用中のアドレスではないことを確認した場合には、電文作成部202はアドレス決定電文を作成する(ステップST403)。なお、電文作成部202は、送信先アドレスとして共通アドレスを用いる。
次いで、電文送信部204は、送信制御部205による制御に従い、電文作成部202により作成されたアドレス決定電文を送信する(ステップST404)。なお、ポーリングセレクション方式では、通常、上位装置1から状態要求電文等の要求電文を送信して下位装置2は要求電文に対する応答電文を送信する形式をとるが、ここでは、例外的に、下位装置2から自発的に電文を送信可能としている。また、電文送信部204は、アドレス決定電文を、要求電文及び応答電文が送信される送信期間の空き時間を利用して送信する。
On the other hand, in step ST402, when the confirmation unit 207 confirms that the address is not the address in use in its own table, the message creation unit 202 creates an address determination message (step ST403). The telegram creation unit 202 uses a common address as the destination address.
Next, the telegram transmission unit 204 transmits the address determination telegram created by the telegram creation unit 202 according to the control by the transmission control unit 205 (step ST404). In the polling selection method, a request message such as a status request message is usually transmitted from the higher-level device 1, and a lower-level device 2 sends a response message to the request message. Here, as an exception, the lower-level device is used. It is possible to send a telegram spontaneously from 2. Further, the telegram transmission unit 204 transmits the address determination telegram by utilizing the free time of the transmission period in which the request message and the response telegram are transmitted.

ここで、共通アドレスは、通信システムが有する上位装置1及び複数の下位装置2の全てにおいて共通なアドレスである。よって、下位装置2から送信されたアドレス決定電文は、上位装置1及び当該下位装置2以外の下位装置2において自機宛ての電文として取得される。そして、これらの装置は、自身のテーブルに、当該アドレス決定電文により通知されたアドレスを、当該アドレス決定電文の送信元である下位装置2のアドレスとして登録する。 Here, the common address is an address common to all of the higher-level device 1 and the plurality of lower-level devices 2 of the communication system. Therefore, the address determination message transmitted from the lower device 2 is acquired as a message addressed to the own device in the upper device 1 and the lower device 2 other than the lower device 2. Then, these devices register the address notified by the address determination message in their own table as the address of the lower device 2 that is the transmission source of the address determination message.

また、登録部208は、自身のテーブルに、設定部206により仮設定されたアドレスを自機のアドレスとして登録する(ステップST405)。 Further, the registration unit 208 registers the address temporarily set by the setting unit 206 as the address of the own machine in its own table (step ST405).

このように、実施の形態1に係る通信システムでは、下位装置2に対するアドレス設定の際に、下位装置2自身がアドレスを監視することでアドレス重複を検知している。これにより、従来構成に対してより簡易に、下位装置2に対するアドレスの重複を回避可能である。 As described above, in the communication system according to the first embodiment, when the address is set for the lower device 2, the lower device 2 itself monitors the address to detect the address duplication. As a result, it is possible to avoid duplication of addresses for the lower-level device 2 more easily than in the conventional configuration.

なお上記では、上位装置1及び複数の下位装置2が通信線を介して接続された場合での、アドレス設定を示した。一方、上位装置1が接続されておらず、複数の下位装置2のみが通信線を介して接続されている場合には、ポーリングセレクションは存在しないが、基本的な動作は上記と同様である。また、この場合には、下位装置2によるアドレス決定電文は上位装置1には送信されない。そして、上位装置1が下位装置2に対して接続された後、上位装置1は、例えば図5に示す手順で、下位装置2のアドレスを収集する。 In the above, the address setting when the upper device 1 and the plurality of lower devices 2 are connected via a communication line is shown. On the other hand, when the higher-level device 1 is not connected and only a plurality of lower-level devices 2 are connected via a communication line, the polling selection does not exist, but the basic operation is the same as described above. Further, in this case, the address determination telegram by the lower device 2 is not transmitted to the higher device 1. Then, after the higher-level device 1 is connected to the lower-level device 2, the higher-level device 1 collects the address of the lower-level device 2 by, for example, the procedure shown in FIG.

上位装置1によるアドレス収集動作では、図5に示すように、まず、モード設定部102は、動作モードを試運転モードに設定する(ステップST501)。例えば、上位装置1が有する表示器(不図示)に試運転ボタンが表示されており、上位装置1を操作するユーザが試運転ボタンを選択することで、モード設定部102は動作モードを試運転モードに設定する。 In the address collection operation by the host device 1, as shown in FIG. 5, the mode setting unit 102 first sets the operation mode to the test run mode (step ST501). For example, a test run button is displayed on a display (not shown) of the host device 1, and the user who operates the host device 1 selects the test run button, so that the mode setting unit 102 sets the operation mode to the test run mode. do.

次いで、電文作成部103は、通信確認電文を作成する(ステップST502)。なお、電文作成部103は、送信先アドレスとして、自身のテーブルに記録されている全てのアドレスをそれぞれ用いる。 Next, the telegram creation unit 103 creates a communication confirmation telegram (step ST502). The telegram creation unit 103 uses all the addresses recorded in its own table as the destination addresses.

次いで、電文送信部105は、送信制御部106による制御に従い、電文作成部103により作成された通信確認電文をポーリングセレクション方式で送信する(ステップST503)。
ここで、通信確認電文の送信先アドレスと同一のアドレスを自機のアドレスとして登録している下位装置2は、この通信確認電文を受信して応答電文を作成し、この応答電文を上位装置1に返信する。
Next, the telegram transmission unit 105 transmits the communication confirmation telegram created by the telegram creation unit 103 by the polling selection method according to the control by the transmission control unit 106 (step ST503).
Here, the lower-level device 2 that has registered the same address as the destination address of the communication confirmation message as its own address receives this communication confirmation message, creates a response message, and uses this response message as the higher-level device 1. Reply to.

次いで、電文受信部104は、一定期間内に通信確認電文に対する応答電文を受信したかを判断する(ステップST504)。
このステップST504において、電文受信部104が一定期間内に通信確認電文に対する応答電文を受信した場合には、登録部107は、自身のテーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である下位装置2のアドレスとして登録する(ステップST505)。その後、シーケンスはステップST502に戻り、上位装置1は、次の送信先アドレスに対する通信確認電文の作成へ移行する。
Next, the message receiving unit 104 determines whether or not the response message to the communication confirmation message has been received within a certain period (step ST504).
In this step ST504, when the message receiving unit 104 receives the response message to the communication confirmation message within a certain period of time, the registration unit 107 puts the transmission destination address of the communication confirmation message in its own table and the response message. It is registered as the address of the lower device 2 which is the source of the above (step ST505). After that, the sequence returns to step ST502, and the host device 1 shifts to the creation of the communication confirmation message for the next destination address.

一方、ステップST504において、電文受信部104が一定期間内に通信確認電文に対する応答電文を受信しない場合には、シーケンスはステップST502に戻り、上位装置1は、次の送信先アドレスに対する通信確認電文の作成へ移行する。すなわち、この場合には、上位装置1は、通信確認電文の送信先に下位装置2は存在しないと判断する。 On the other hand, in step ST504, if the message receiving unit 104 does not receive the response message to the communication confirmation message within a certain period, the sequence returns to step ST502, and the host device 1 receives the communication confirmation message for the next destination address. Move to creation. That is, in this case, the higher-level device 1 determines that the lower-level device 2 does not exist at the transmission destination of the communication confirmation message.

ここで、例えば特許文献2に示されるように、上位装置が複数の下位装置に対するアドレス設定を行う通信システムも知られている。この通信システムでは、下位装置のアドレス重複を回避可能である。しかしながら、この通信システムでは、上位装置と下位装置との間での通信が必須となる。そのため、上位装置及び下位装置の配置及び配線が完了した後でないとアドレス設定を実施できない。
これに対し、実施の形態1に係る通信システムでは、上位装置1が下位装置2に接続されているかいないかに関わらず、下位装置2に対するアドレス設定をアドレス重複なく実施可能である。そのため、上位装置1が未設置又は未通電の場合、上位装置1の入れ替え時又はデータ破損の際にも、上位装置1との通信を行うことなく、下位装置2に対するアドレス設定が可能であり、作業利便性が増す。
特開2006-29769号公報
Here, for example, as shown in Patent Document 2, a communication system in which a higher-level device sets an address for a plurality of lower-level devices is also known. In this communication system, it is possible to avoid address duplication of lower-level devices. However, in this communication system, communication between the upper device and the lower device is indispensable. Therefore, the address can be set only after the arrangement and wiring of the upper device and the lower device are completed.
On the other hand, in the communication system according to the first embodiment, the address setting for the lower device 2 can be performed without duplication of addresses regardless of whether the upper device 1 is connected to the lower device 2. Therefore, when the higher-level device 1 is not installed or is not energized, the address can be set for the lower-level device 2 without communicating with the higher-level device 1 even when the higher-level device 1 is replaced or data is damaged. Work convenience increases.
Japanese Unexamined Patent Publication No. 2006-29769

また、通信システムが運用中において、ある下位装置2に通信異常が発生してその後に復旧した場合、その間に別の下位装置2がアドレス設定を行っていると、復旧した下位装置2ではその情報を得ることができない。そこで、上位装置1は、例えば図6に示す手順で、最新のテーブルに関する情報を上記復旧した下位装置2に対して通知する。なお以下では、上位装置1の保持部101は、通信異常が発生した下位装置2の通信異常フラグをオンとしているものとする。 Further, when a communication error occurs in a certain lower device 2 while the communication system is in operation and the lower device 2 is restored after that, if another lower device 2 sets an address during that time, the information in the restored lower device 2 is obtained. Cannot be obtained. Therefore, the higher-level device 1 notifies the restored lower-level device 2 of the information regarding the latest table, for example, by the procedure shown in FIG. In the following, it is assumed that the holding unit 101 of the upper device 1 has turned on the communication error flag of the lower device 2 in which the communication error has occurred.

上位装置1による復旧した下位装置2に対するテーブル情報提示動作では、図6に示すように、まず、電文送信部105は、通信異常が発生した下位装置2に対して状態要求電文をポーリングセレクション方式で送信する(ステップST601)。
次いで、電文受信部104は、一定期間内に状態要求電文に対する応答電文を受信したかを判断する(ステップST602)。このステップST602において、電文受信部104が一定期間内に応答電文を受信しない場合には、シーケンスはステップST601に戻る。
In the table information presentation operation for the lower device 2 restored by the higher device 1, first, as shown in FIG. 6, the message transmission unit 105 polls the lower device 2 in which the communication error has occurred by the polling selection method. Transmit (step ST601).
Next, the message receiving unit 104 determines whether or not the response message to the state request message has been received within a certain period (step ST602). If the telegram receiving unit 104 does not receive the response telegram within a certain period of time in step ST602, the sequence returns to step ST601.

一方、ステップST602において、電文受信部104が一定期間内に状態要求電文に対する応答電文を受信した場合には、保持部101は、上記下位装置2に対する通信異常フラグをオフとする(ステップST603)。
次いで、電文送信部105は、保持部101が保持しているテーブルに関する情報を上記下位装置2に送信する(ステップST604)。これにより、復旧した下位装置2は、自身に通信異常が発生してから復旧するまでの間に更新されたテーブルに関する情報を得ることができ、自身のテーブルを最新の状態に更新できる。
On the other hand, in step ST602, when the message receiving unit 104 receives the response message to the state request message within a certain period, the holding unit 101 turns off the communication abnormality flag for the lower device 2 (step ST603).
Next, the telegram transmission unit 105 transmits information about the table held by the holding unit 101 to the lower device 2 (step ST604). As a result, the recovered lower-level device 2 can obtain information on the updated table between the time when the communication error occurs and the time when the recovery occurs, and can update its own table to the latest state.

次に、実施の形態1に係る通信システムの適用例について説明する。
実施の形態1に係る通信システムは、例えば、下位装置2をショーケースの制御コントローラとして用い、上位装置1を複数のショーケースを統括管理する上位コントローラとして用いた冷却システムに適用可能である。
また、実施の形態1に係る通信システムは、例えば、下位装置2を空調機の制御コントローラとして用い、上位装置1を複数の空調機を統括管理する上位コントローラとして用いた空調システムに適用可能である。
Next, an application example of the communication system according to the first embodiment will be described.
The communication system according to the first embodiment can be applied to, for example, a cooling system in which the lower device 2 is used as a control controller for showcases and the upper device 1 is used as a higher controller for centrally managing a plurality of showcases.
Further, the communication system according to the first embodiment can be applied to, for example, an air conditioning system in which the lower device 2 is used as a control controller for an air conditioner and the upper device 1 is used as a higher controller for centrally managing a plurality of air conditioners. ..

上記では、実施の形態1に係る通信システムの適用先として、上記のような冷却システム又は空調システムを挙げたが、通信システムの適用先はこれに限らない。 In the above, as the application destination of the communication system according to the first embodiment, the cooling system or the air conditioning system as described above is mentioned, but the application destination of the communication system is not limited to this.

以上のように、この実施の形態1によれば、下位装置2は、アドレスが記録されるテーブルを保持する保持部201と、アドレスを仮設定する設定部206と、設定部206により仮設定されたアドレスが、上記テーブルにおいて使用中のアドレスであるかを確認する確認部207と、確認部207によりアドレスが上記テーブルにおいて使用中のアドレスではないことが確認された場合に、当該テーブルに、当該アドレスを自機のアドレスとして登録する登録部208とを備えた。これにより、実施の形態1に係る通信システムは、従来構成に対してより簡易に、下位装置2に対するアドレスの重複を回避可能である。 As described above, according to the first embodiment, the lower device 2 is temporarily set by the holding unit 201 that holds the table in which the address is recorded, the setting unit 206 that temporarily sets the address, and the setting unit 206. When the confirmation unit 207 for confirming whether the address is the address in use in the above table and the confirmation unit 207 confirm that the address is not the address in use in the above table, the relevant address is added to the table. It is equipped with a registration unit 208 that registers the address as the address of the own machine. As a result, the communication system according to the first embodiment can avoid duplication of addresses with respect to the lower device 2 more easily than the conventional configuration.

最後に、図7を参照して、実施の形態1に係る上位装置1及び下位装置2のハードウェア構成例を説明する。以下では、上位装置1のハードウェア構成例について説明するが、下位装置2についても同様である。
上位装置1における電文受信部104は受信装置により実現され、電文送信部105は送信装置により実現される。また、上位装置1におけるモード設定部102、電文作成部103、送信制御部106及び登録部107の各機能は、処理回路51により実現される。処理回路51は、図7Aに示すように、専用のハードウェアであってもよいし、図7Bに示すように、メモリ53に格納されるプログラムを実行するCPU(Central Processing Unit、中央処理装置、処理装置、演算装置、マイクロプロセッサ、マイクロコンピュータ、プロセッサ、又はDSP(Digital Signal Processor)ともいう)52であってもよい。
Finally, with reference to FIG. 7, a hardware configuration example of the upper device 1 and the lower device 2 according to the first embodiment will be described. Hereinafter, a hardware configuration example of the upper device 1 will be described, but the same applies to the lower device 2.
The telegram receiving unit 104 in the host device 1 is realized by the receiving device, and the telegram transmitting unit 105 is realized by the transmitting device. Further, each function of the mode setting unit 102, the telegram creation unit 103, the transmission control unit 106, and the registration unit 107 in the host device 1 is realized by the processing circuit 51. As shown in FIG. 7A, the processing circuit 51 may be dedicated hardware, or as shown in FIG. 7B, a CPU (Central Processing Unit, central processing unit, central processing unit) that executes a program stored in the memory 53. It may be a processing unit, an arithmetic unit, a microprocessor, a microprocessor, a processor, or a DSP (also referred to as a Digital Signal Processor) 52.

処理回路51が専用のハードウェアである場合、処理回路51は、例えば、単一回路、複合回路、プログラム化したプロセッサ、並列プログラム化したプロセッサ、ASIC(Application Specific Integrated Circuit)、FPGA(Field Programmable Gate Array)、又はこれらを組み合わせたものが該当する。モード設定部102、電文作成部103、送信制御部106及び登録部107の各部の機能それぞれを処理回路51で実現してもよいし、各部の機能をまとめて処理回路51で実現してもよい。 When the processing circuit 51 is dedicated hardware, the processing circuit 51 may be, for example, a single circuit, a composite circuit, a programmed processor, a parallel programmed processor, an ASIC (Application Specific Integrated Circuit), or an FPGA (Field Programmable Gate). Array) or a combination of these is applicable. The functions of the mode setting unit 102, the telegram creation unit 103, the transmission control unit 106, and the registration unit 107 may be realized by the processing circuit 51, or the functions of each part may be collectively realized by the processing circuit 51. ..

処理回路51がCPU52の場合、モード設定部102、電文作成部103、送信制御部106及び登録部107の機能は、ソフトウェア、ファームウェア、又はソフトウェアとファームウェアとの組み合わせにより実現される。ソフトウェア及びファームウェアはプログラムとして記述され、メモリ53に格納される。処理回路51は、メモリ53に記憶されたプログラムを読み出して実行することにより、各部の機能を実現する。すなわち、上位装置1は、処理回路51により実行されるときに、例えば図5,6に示した各ステップが結果的に実行されることになるプログラムを格納するためのメモリ53を備える。また、これらのプログラムは、モード設定部102、電文作成部103、送信制御部106及び登録部107の手順及び方法をコンピュータに実行させるものであるともいえる。ここで、メモリ53としては、例えば、RAM、ROM、フラッシュメモリ、EPROM、EEPROM等の不揮発性又は揮発性の半導体メモリ、磁気ディスク、フレキシブルディスク、光ディスク、コンパクトディスク、ミニディスク、又はDVD等が該当する。 When the processing circuit 51 is the CPU 52, the functions of the mode setting unit 102, the telegram creation unit 103, the transmission control unit 106, and the registration unit 107 are realized by software, firmware, or a combination of software and firmware. The software and firmware are described as a program and stored in the memory 53. The processing circuit 51 realizes the functions of each part by reading and executing the program stored in the memory 53. That is, the host device 1 includes a memory 53 for storing a program in which, for example, each step shown in FIGS. 5 and 6 is executed as a result when executed by the processing circuit 51. Further, it can be said that these programs cause the computer to execute the procedures and methods of the mode setting unit 102, the telegram creation unit 103, the transmission control unit 106, and the registration unit 107. Here, the memory 53 corresponds to, for example, a non-volatile or volatile semiconductor memory such as RAM, ROM, flash memory, EPROM, EEPROM, a magnetic disk, a flexible disk, an optical disk, a compact disk, a mini disk, a DVD, or the like. do.

なお、モード設定部102、電文作成部103、送信制御部106及び登録部107の各機能について、一部を専用のハードウェアで実現し、一部をソフトウェア又はファームウェアで実現するようにしてもよい。例えば、モード設定部102については専用のハードウェアとしての処理回路51でその機能を実現し、電文作成部103、送信制御部106及び登録部107については処理回路51がメモリ53に格納されたプログラムを読み出して実行することによってその機能を実現することが可能である。 It should be noted that some of the functions of the mode setting unit 102, the telegram creation unit 103, the transmission control unit 106, and the registration unit 107 may be realized by dedicated hardware, and some may be realized by software or firmware. .. For example, the mode setting unit 102 is realized by a processing circuit 51 as dedicated hardware, and the message creation unit 103, the transmission control unit 106, and the registration unit 107 are programs in which the processing circuit 51 is stored in the memory 53. It is possible to realize the function by reading and executing.

このように、処理回路51は、ハードウェア、ソフトウェア、ファームウェア、又はこれらの組み合わせによって、上述の各機能を実現することができる。 As described above, the processing circuit 51 can realize each of the above-mentioned functions by hardware, software, firmware, or a combination thereof.

なお、本願発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。 In the present invention, within the scope of the invention, it is possible to modify any component of the embodiment or omit any component of the embodiment.

1 上位装置、2 下位装置、51 処理回路、52 CPU、53 メモリ、101 保持部(上位保持部)、102 モード設定部、103 電文作成部、104 電文受信部(上位受信部)、105 電文送信部(上位送信部)、106 送信制御部、107 登録部(上位登録部)、201 保持部(下位保持部)、202 電文作成部、203 電文受信部(下位受信部)、204 電文送信部(下位送信部)、205 送信制御部、206 設定部、207 確認部、208 登録部(下位登録部)。 1 Upper device, 2 Lower device, 51 Processing circuit, 52 CPU, 53 Memory, 101 Holding section (Upper holding section), 102 Mode setting section, 103 Telegram creation section, 104 Telegram receiving section (Upper receiving section), 105 Telegram transmission Unit (upper transmission unit), 106 transmission control unit, 107 registration unit (upper registration unit), 201 holding unit (lower holding unit), 202 telegram creation unit, 203 telegram receiving unit (lower receiving unit), 204 telegram transmitting unit (lower level receiving unit) Subordinate transmission unit), 205 transmission control unit, 206 setting unit, 207 confirmation unit, 208 registration unit (subordinate registration unit).

Claims (5)

通信線を介して接続される上位装置及び複数の下位装置を備え、
前記上位装置は、
アドレスが記録される上位テーブルを保持する上位保持部と、
電文の受信を行う上位受信部と、
前記上位テーブルに記録されている使用中のアドレスをそれぞれ送信先アドレスとした電文である状態要求電文をポーリングセレクション方式で送信する上位送信部とを備え、
前記上位保持部は、規定回数以上、前記上位受信部により状態要求電文に対する応答を示す電文である応答電文が受信されない前記下位装置が存在する場合に、当該下位装置に対する通信異常フラグをオンに切替え、前記上位受信部により当該下位装置からの応答電文が受信された場合に、当該通信異常フラグをオフに戻し、
前記上位送信部は、前記上位保持部により通信異常フラグがオフに戻された場合に、当該通信異常フラグに対応する前記下位装置に対して、前記上位テーブルに関する情報を送信し、
前記下位装置は、
アドレスが記録される下位テーブルを保持する下位保持部と、
アドレスを仮設定する設定部と、
前記設定部により仮設定されたアドレスが、前記下位テーブルにおいて、前記下位装置のアドレスとして登録されている使用中のアドレスであるかを確認する確認部と、
前記確認部によりアドレスが前記下位テーブルにおいて使用中のアドレスではないことが確認された場合に、当該下位テーブルに、当該アドレスを自機のアドレスとして登録する下位登録部と、
電文の受信を行う下位受信部と、
前記下位受信部により自機宛ての状態要求電文が受信された場合に、応答電文を前記上位装置に送信する下位送信部とを備え、
前記下位保持部は、前記下位受信部により前記上位テーブルに関する情報が受信された場合に、前記下位テーブルの内容を更新する
ことを特徴とする通信システム。
Equipped with a higher-level device and multiple lower-level devices connected via a communication line,
The higher-level device is
A high-level holding unit that holds a high-level table in which addresses are recorded,
A high-level receiver that receives telegrams and
It is equipped with a high-level transmitter that transmits a state request message, which is a telegram with each of the addresses in use recorded in the high-level table as the destination address, by the polling selection method.
The upper holding unit switches on the communication error flag for the lower device when the lower device does not receive the response message, which is a message indicating the response to the state request message by the upper receiving unit more than the specified number of times. When the response message from the lower device is received by the upper receiver, the communication error flag is turned off.
When the communication error flag is turned off by the upper holding unit, the upper transmitting unit transmits information about the upper table to the lower device corresponding to the communication abnormality flag.
The lower device is
A low-level holding unit that holds a low-level table in which addresses are recorded,
The setting part that temporarily sets the address and
A confirmation unit for confirming whether the address temporarily set by the setting unit is an address in use registered as the address of the lower device in the lower table.
When the confirmation unit confirms that the address is not the address being used in the lower table, the lower registration unit that registers the address as the address of the own machine in the lower table, and the lower registration unit.
A lower receiver that receives telegrams and
When the status request message addressed to the own machine is received by the lower receiving unit, the lower receiving unit includes a lower transmitting unit that transmits a response message to the higher device.
The lower holding unit is a communication system characterized in that when information about the upper table is received by the lower receiving unit, the contents of the lower table are updated.
前記下位装置は、
前記下位登録部により登録されたアドレスを通知する電文であるアドレス決定電文を、自機に接続される全ての装置で共通なアドレスである共通アドレスに送信する下位送信部と、
電文の受信を行う下位受信部とを備え、
前記下位登録部は、前記下位受信部によりアドレス決定電文が受信された場合に、前記下位テーブルに、当該アドレス決定電文により通知されたアドレスを、当該アドレス決定電文の送信元である前記下位装置のアドレスとして登録する
ことを特徴とする請求項1記載の通信システム。
The lower device is
An address determination message, which is a message notifying the address registered by the lower registration unit, is transmitted to a common address, which is a common address for all devices connected to the own machine, and a lower transmission unit.
Equipped with a lower-level receiver that receives telegrams
When the address determination message is received by the lower reception unit, the lower registration unit displays the address notified by the address determination message in the lower table of the lower device that is the transmission source of the address determination message. The communication system according to claim 1, wherein the communication system is registered as an address.
前記設定部は、前記確認部によりアドレスが前記下位テーブルにおいて使用中のアドレスであることが確認された場合に、異なるアドレスへの仮設定を行う
ことを特徴とする請求項1又は請求項2記載の通信システム。
The first or second aspect of the present invention, wherein the setting unit performs provisional setting to a different address when the confirmation unit confirms that the address is an address in use in the lower table. Communication system.
前記下位装置は、
前記下位登録部により登録されたアドレスを通知する電文であるアドレス決定電文を、自機に接続される全ての装置で共通なアドレスである共通アドレスに送信する下位送信部を備え、
前記上位装置は、
アドレスが記録される上位テーブルを保持する上位保持部と、
電文の受信を行う上位受信部と、
前記上位受信部によりアドレス決定電文が受信された場合に、前記上位テーブルに、当該アドレス決定電文により通知されたアドレスを、当該アドレス決定電文の送信元である前記下位装置のアドレスとして登録する上位登録部とを備えた
ことを特徴とする請求項1記載の通信システム。
The lower device is
It is provided with a lower transmission unit that transmits an address determination message, which is a message notifying the address registered by the lower registration unit, to a common address, which is a common address for all devices connected to the own machine.
The higher-level device is
A high-level holding unit that holds a high-level table in which addresses are recorded,
A high-level receiver that receives telegrams and
When the address determination message is received by the upper reception unit, the address notified by the address determination message is registered in the upper table as the address of the lower device that is the source of the address determination message. The communication system according to claim 1, wherein the communication system is provided with a unit.
前記上位装置は、
アドレスが記録される上位テーブルを保持する上位保持部と、
電文の受信を行う上位受信部と、
前記上位テーブルに記録されている全てのアドレスをそれぞれ送信先アドレスとした電文である通信確認電文をポーリングセレクション方式で送信する上位送信部と、
前記上位受信部により通信確認電文に対する応答を示す電文である応答電文が受信された場合に、前記上位テーブルに、当該通信確認電文の送信先アドレスを、当該応答電文の送信元である前記下位装置のアドレスとして登録する上位登録部とを備え、
前記下位装置は、
電文の受信を行う下位受信部と、
前記下位受信部により自機宛ての通信確認電文が受信された場合に、応答電文を前記上位装置に送信する下位送信部とを備えた
ことを特徴とする請求項1記載の通信システム
The higher-level device is
A high-level holding unit that holds a high-level table in which addresses are recorded,
A high-level receiver that receives telegrams and
A high-level transmitter that transmits a communication confirmation message, which is a telegram with all the addresses recorded in the high-level table as destination addresses, by a polling selection method, and a high-level transmitter.
When a response message, which is a message indicating a response to a communication confirmation message, is received by the higher-level receiving unit, the destination address of the communication confirmation message is added to the upper-level table, and the lower-level device that is the source of the response message. Equipped with a higher-level registration unit to register as the address of
The lower device is
A lower receiver that receives telegrams and
The communication system according to claim 1, further comprising a lower transmission unit that transmits a response message to the upper device when a communication confirmation message addressed to the own machine is received by the lower reception unit .
JP2018062491A 2018-03-28 2018-03-28 Communications system Active JP7101511B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018062491A JP7101511B2 (en) 2018-03-28 2018-03-28 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018062491A JP7101511B2 (en) 2018-03-28 2018-03-28 Communications system

Publications (2)

Publication Number Publication Date
JP2019176320A JP2019176320A (en) 2019-10-10
JP7101511B2 true JP7101511B2 (en) 2022-07-15

Family

ID=68167433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018062491A Active JP7101511B2 (en) 2018-03-28 2018-03-28 Communications system

Country Status (1)

Country Link
JP (1) JP7101511B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325079A (en) 2001-02-14 2002-11-08 Matsushita Electric Ind Co Ltd Communication setting method and system thereof for lamp line network system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03127531A (en) * 1989-10-13 1991-05-30 Matsushita Electric Ind Co Ltd Address setting method
JPH03267835A (en) * 1990-03-16 1991-11-28 Hitachi Ltd Local area network control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002325079A (en) 2001-02-14 2002-11-08 Matsushita Electric Ind Co Ltd Communication setting method and system thereof for lamp line network system

Also Published As

Publication number Publication date
JP2019176320A (en) 2019-10-10

Similar Documents

Publication Publication Date Title
US9081818B2 (en) SAS fabric discovery
JP6870568B2 (en) Communication system, control device, setting device, setting method and program
JP5905072B2 (en) Information processing apparatus, information processing method, and program
US10169183B2 (en) Mobile device and chassis with contactless tags to diagnose hardware and software faults
JP2011097633A (en) Home network system
CN104518910B (en) Apparatus for configuring Ethernet device and method for configuring Ethernet device
JP2014119912A (en) Control apparatus and control program
JP7101511B2 (en) Communications system
JP6686237B1 (en) Setting support system, portable information terminal, setting support method and program
JP2006526305A (en) Home network system
CN105100136A (en) Method for accessing logic storage in storage cluster and device thereof
JP7109225B2 (en) Communications system
US10256988B2 (en) Communication system, communication device, communication adapter, communication method, and program
JP7370450B2 (en) Air conditioning system, management device, air conditioner, sensor data acquisition method and program
JP7109224B2 (en) Communication system and upper equipment
JPWO2020053928A1 (en) How to update the air conditioning system and the program of the air conditioning system
JP6961091B2 (en) Program transfer system and program transfer method
JP2007263404A (en) Electrical equipment and communicating function normality determining method in the same
JP2014174734A (en) Data communication system and master unit thereof, and data communication method
CN113748415B (en) Management device, management method, and computer-readable recording medium
JP6856048B2 (en) Control system and control method
JP6571423B2 (en) Information processing system, device information acquisition method, and program therefor
JP6818773B2 (en) Air conditioner
JP2007280240A (en) Production management method, electronic device production system, production managing apparatus and electronic device
JP2014075656A (en) Position discrimination system, and position discrimination method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210216

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20210216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211130

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220121

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220607

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220705

R150 Certificate of patent or registration of utility model

Ref document number: 7101511

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150