JP2020017992A - Gateway, request generation method and computer program - Google Patents

Gateway, request generation method and computer program Download PDF

Info

Publication number
JP2020017992A
JP2020017992A JP2019182125A JP2019182125A JP2020017992A JP 2020017992 A JP2020017992 A JP 2020017992A JP 2019182125 A JP2019182125 A JP 2019182125A JP 2019182125 A JP2019182125 A JP 2019182125A JP 2020017992 A JP2020017992 A JP 2020017992A
Authority
JP
Japan
Prior art keywords
request
control
controller
generation unit
destination
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.)
Granted
Application number
JP2019182125A
Other languages
Japanese (ja)
Other versions
JP6874084B2 (en
Inventor
木村 浩二
Koji Kimura
浩二 木村
謙一 山崎
Kenichi Yamazaki
謙一 山崎
孝雄 野坂
Takao Nosaka
孝雄 野坂
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.)
Toshiba Corp
Toshiba Infrastructure Systems and Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Infrastructure Systems and Solutions 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 Toshiba Corp, Toshiba Infrastructure Systems and Solutions Corp filed Critical Toshiba Corp
Priority to JP2019182125A priority Critical patent/JP6874084B2/en
Publication of JP2020017992A publication Critical patent/JP2020017992A/en
Application granted granted Critical
Publication of JP6874084B2 publication Critical patent/JP6874084B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a gateway capable of restraining unnecessary command transmission, and to provide a request generation method and a computer program.SOLUTION: A gateway has a request generation part, and a transmission section. On the basis of a request including multiple control instructions for multiple controllers connected with the own device, the request generation part generates a control request of each destination of the control instruction by using multiple control instructions included in the request. The transmission section transmits the generated control request to the destination controller. The request generation part generates the control request to be retransmitted, on the basis of the number of retransmission times of the control instruction set for each destination when retransmission is required.SELECTED DRAWING: Figure 3

Description

本発明の実施形態は、ゲートウェイ、要求生成方法及びコンピュータプログラムに関する。   Embodiments of the present invention relate to a gateway, a request generation method, and a computer program.

従来、ビル等を対象とした監視制御システムにおいて、上位システムからコントローラに対するデータ収集や、設定値出力などの制御命令を含む要求を行うために利用されるプロトコルとしてBACnet(Building Automation and Control networking)プロトコルがある。このような監視制御システムには、上位システムとコントローラとの間でBACnetプロトコルの変換を行うゲートウェイが備えられる。しかしながら、従来のゲートウェイは、上位システムから送信された要求に含まれる制御命令を全てコントローラに送信していたため、コントローラに不要な命令が伝達されてしまう場合があった。   Conventionally, in a monitoring and control system for buildings and the like, a BACnet (Building Automation and Control networking) protocol has been used as a protocol used for data collection from a higher-level system to a controller and a request including a control command such as output of a set value. There is. Such a monitoring and control system is provided with a gateway that converts the BACnet protocol between the host system and the controller. However, in the conventional gateway, since all control commands included in the request transmitted from the host system are transmitted to the controller, unnecessary commands may be transmitted to the controller.

特許第4722076号公報Japanese Patent No. 472076

本発明が解決しようとする課題は、不要な命令伝達を抑制することができるゲートウェイ、要求生成方法及びコンピュータプログラムを提供することである。   An object of the present invention is to provide a gateway, a request generation method, and a computer program that can suppress unnecessary command transmission.

実施形態のゲートウェイは、要求生成部と、送信部とを持つ。要求生成部は、自装置に接続している複数のコントローラに対する複数の制御命令を含む要求に基づいて、前記要求に含まれる複数の制御命令を用いて前記制御命令の宛先毎の制御要求を生成する。送信部は、生成された前記制御要求を宛先のコントローラに送信する。前記要求生成部は、再送が必要となった場合に前記宛先毎に設定された前記制御命令の再送回数に基づいて、再送する前記制御要求を宛先毎に生成する。   The gateway according to the embodiment has a request generation unit and a transmission unit. The request generation unit generates a control request for each destination of the control instruction based on a request including a plurality of control instructions for a plurality of controllers connected to the own device, using a plurality of control instructions included in the request. I do. The transmitting unit transmits the generated control request to a destination controller. The request generation unit generates the control request to be retransmitted for each destination based on the number of retransmissions of the control command set for each destination when retransmission is required.

実施形態の監視制御システム100のシステム構成を示す図。FIG. 1 is a diagram illustrating a system configuration of a monitoring control system 100 according to an embodiment. 監視制御システム100におけるデータ伝送の具体例を示す図。FIG. 2 is a diagram showing a specific example of data transmission in the monitoring control system 100. GW20の機能構成を表す概略ブロック図。FIG. 2 is a schematic block diagram illustrating a functional configuration of the GW 20. コントローラ設定ファイルの具体例を示す図。The figure which shows the specific example of a controller setting file. 許可信号リストの具体例を示す図。The figure which shows the specific example of a permission signal list. 上位システム10から送信された要求の具体例を示す図。FIG. 3 is a diagram showing a specific example of a request transmitted from the host system 10. GW20による各コントローラ30に対する制御要求の生成方法を説明するための図。FIG. 7 is a diagram for explaining a method of generating a control request for each controller 30 by the GW 20. GW20の処理の流れを示すフローチャート。9 is a flowchart illustrating a flow of a process of the GW 20. 制御要求生成処理の流れを示すフローチャート。9 is a flowchart illustrating the flow of a control request generation process. 複数の要求が取得された場合の処理を説明するための図。The figure for demonstrating the process when several requests are acquired.

以下、実施形態のゲートウェイ、要求生成方法及びコンピュータプログラムを、図面を参照して説明する。
図1は、実施形態の監視制御システム100のシステム構成を示す図である。
監視制御システム100は、ビル等の建築物を対象として適用される。監視制御システム100は、複数の上位システム10−1〜10−M(Mは1以上の整数)、GW20及び複数のコントローラ30−1〜30−N(Nは1以上の整数)を備える。上位システム10−1〜10−Mのそれぞれと、GW20とはネットワーク40を介して通信可能に接続される。また、GW20には、複数のコントローラ30−1〜30−Nが通信可能に接続される。複数のコントローラ30−1〜30−Nのそれぞれには、下部機器31が接続される。下部機器31は、建築物の室内環境の状態を制御、計測する機器や、建築物の室外環境の状態を計測する機器である。下部機器31は、例えば空調設備50、温度センサ60、湿度センサ70及び電力計80などである。なお、下部機器31は、上記の機器に限定される必要はなく、建築物の室内外環境の状態を制御、計測可能な機器であればどのような機器であってもよい。
Hereinafter, a gateway, a request generation method, and a computer program according to an embodiment will be described with reference to the drawings.
FIG. 1 is a diagram illustrating a system configuration of the monitoring control system 100 according to the embodiment.
The monitoring control system 100 is applied to a building such as a building. The monitoring control system 100 includes a plurality of host systems 10-1 to 10-M (M is an integer of 1 or more), a GW 20, and a plurality of controllers 30-1 to 30-N (N is an integer of 1 or more). Each of the host systems 10-1 to 10-M and the GW 20 are communicably connected via the network 40. Further, a plurality of controllers 30-1 to 30-N are communicably connected to the GW 20. A lower device 31 is connected to each of the controllers 30-1 to 30-N. The lower device 31 is a device that controls and measures the state of the indoor environment of the building, and a device that measures the state of the outdoor environment of the building. The lower device 31 is, for example, an air conditioner 50, a temperature sensor 60, a humidity sensor 70, a power meter 80, and the like. Note that the lower device 31 is not limited to the above device, and may be any device that can control and measure the state of the indoor and outdoor environment of the building.

上位システム10−1〜10−Mと、コントローラ30−1〜30−Nとの間では、通信プロトコルとしてBACnetプロトコルが利用される。以下の説明では、上位システム10−1〜10−Mと、GW20との間で利用されるBACnetプロトコルをBACnet/WSと記載し、GW20と、コントローラ30−1〜30−Nとの間で利用されるBACnetプロトコルをBACnet/IPと記載する。なお、以下の説明では、上位システム10−1〜10−Mについて特に区別しない場合には上位システム10と記載する。また、以下の説明では、コントローラ30−1〜30−Nについて特に区別しない場合にはコントローラ30と記載する。   The BACnet protocol is used as a communication protocol between the host systems 10-1 to 10-M and the controllers 30-1 to 30-N. In the following description, the BACnet protocol used between the host system 10-1 to 10-M and the GW 20 is described as BACnet / WS, and used between the GW 20 and the controllers 30-1 to 30-N. The BACnet protocol used is described as BACnet / IP. In the following description, the host systems 10-1 to 10-M are referred to as host systems 10 unless otherwise specified. In the following description, the controllers 30-1 to 30-N will be referred to as the controllers 30 unless otherwise specified.

上位システム10は、ユーザの操作に応じて、GW20を介してコントローラ30に対する制御命令を含む要求をコントローラ30に送信する。ここで、ユーザとは、監視制御システム100の管理者などである。制御命令は、例えばデータ取得要求及びデータ設定要求である。データ取得要求には、下部機器31によって取得される計測値を取得する要求が含まれる。データ設定要求には、下部機器31に対して設定させる設定値を含むデータの設定要求が含まれる。   The host system 10 transmits a request including a control command to the controller 30 via the GW 20 to the controller 30 in response to a user operation. Here, the user is an administrator of the monitoring control system 100 or the like. The control command is, for example, a data acquisition request and a data setting request. The data acquisition request includes a request to acquire a measurement value acquired by the lower device 31. The data setting request includes a data setting request including a setting value to be set for the lower device 31.

GW20は、上位システム10とコントローラ30との間で中継動作を行う。具体的には、GW20は、上位システム10からBACnet/WSを利用して送信された要求をBACnet/IPに変換してコントローラ30に中継する。また、GW20は、コントローラ30からBACnet/IPを利用して送信された応答をBACnet/WSに変換して上位システム10に中継する。さらに、GW20は、上位システム10から送信された要求を解析し、要求に含まれる制御命令をコントローラ30毎に分類し、コントローラ30毎の制御要求を生成する。   The GW 20 performs a relay operation between the host system 10 and the controller 30. Specifically, the GW 20 converts a request transmitted from the host system 10 using BACnet / WS into BACnet / IP and relays the request to the controller 30. The GW 20 converts a response transmitted from the controller 30 using BACnet / IP into BACnet / WS and relays the response to the host system 10. Further, the GW 20 analyzes the request transmitted from the host system 10, classifies the control commands included in the request for each controller 30, and generates a control request for each controller 30.

コントローラ30は、GW20から送信された制御要求に従って下部機器31を制御する。具体的には、コントローラ30は、制御要求にデータ取得要求が含まれる場合には、データ取得要求が示す下部機器31から計測値を取得する。また、コントローラ30は、制御要求にデータ設定要求が含まれる場合には、データ設定要求が示す下部機器31に対してデータ設定要求に含まれる設定値を設定する。
ネットワーク40は、どのように構成されたネットワークであってもよい。例えば、ネットワーク40は、無線LAN(Local Area Network)であってもよい。
The controller 30 controls the lower device 31 according to the control request transmitted from the GW 20. Specifically, when the control request includes a data acquisition request, the controller 30 acquires a measurement value from the lower device 31 indicated by the data acquisition request. Further, when the control request includes the data setting request, the controller 30 sets the setting value included in the data setting request to the lower device 31 indicated by the data setting request.
The network 40 may be any configuration network. For example, the network 40 may be a wireless LAN (Local Area Network).

図2は、監視制御システム100におけるデータ伝送の具体例を示す図である。なお、図2では、データ伝送についてのみ説明するため、要求の解析などについての説明は省略する。
上位システム10は、ユーザの操作に応じて、BACnet/WSを利用してデータ取得要求をGW20に送信する(ステップS101)。GW20は、上位システム10から送信されたデータ取得要求を受信する。GW20は、データ取得要求のプロトコルをBACnet/WSからBACnet/IPに変換して宛先のコントローラ30に送信する(ステップS102)。コントローラ30は、GW20から送信されたデータ取得要求に応じて、データ取得要求が示す下部機器31から計測値を取得する。そして、コントローラ30は、取得した計測値を含む応答をGW20に送信する(ステップS103)。GW20は、コントローラ30から送信された応答のプロトコルをBACnet/IPからBACnet/WSに変換して上位システム10に送信する(ステップS104)。
FIG. 2 is a diagram illustrating a specific example of data transmission in the monitoring control system 100. In FIG. 2, only data transmission will be described, and description of request analysis and the like will be omitted.
The host system 10 transmits a data acquisition request to the GW 20 using BACnet / WS in response to a user operation (step S101). The GW 20 receives the data acquisition request transmitted from the host system 10. The GW 20 converts the protocol of the data acquisition request from BACnet / WS to BACnet / IP, and transmits it to the destination controller 30 (Step S102). The controller 30 acquires a measurement value from the lower device 31 indicated by the data acquisition request in response to the data acquisition request transmitted from the GW 20. Then, the controller 30 transmits a response including the acquired measurement value to the GW 20 (Step S103). The GW 20 converts the protocol of the response transmitted from the controller 30 from BACnet / IP to BACnet / WS and transmits it to the host system 10 (Step S104).

上位システム10は、ユーザの操作に応じて、BACnet/WSを利用してデータ取得要求をGW20に送信する(ステップS105)。GW20は、上位システム10から送信されたデータ取得要求を受信する。GW20は、データ取得要求のプロトコルをBACnet/WSからBACnet/IPに変換して宛先のコントローラ30に送信する(ステップS106)。また、上位システム10は、ユーザの操作に応じて、BACnet/WSを利用してデータ設定要求をGW20に送信する(ステップS107)。GW20は、上位システム10から送信されたデータ設定要求を受信する。GW20は、データ設定要求のプロトコルをBACnet/WSからBACnet/IPに変換して宛先のコントローラ30に送信する(ステップS108)。   The host system 10 transmits a data acquisition request to the GW 20 using BACnet / WS in response to a user operation (step S105). The GW 20 receives the data acquisition request transmitted from the host system 10. The GW 20 converts the protocol of the data acquisition request from BACnet / WS to BACnet / IP, and transmits it to the destination controller 30 (Step S106). Further, the host system 10 transmits a data setting request to the GW 20 using BACnet / WS in response to a user operation (step S107). The GW 20 receives the data setting request transmitted from the host system 10. The GW 20 converts the protocol of the data setting request from BACnet / WS to BACnet / IP, and transmits it to the destination controller 30 (Step S108).

コントローラ30は、GW20から送信されたデータ取得要求に応じて、データ取得要求が示す下部機器31から計測値を取得する。そして、コントローラ30は、取得した計測値を含む応答をGW20に送信する(ステップS109)。GW20は、コントローラ30から送信された応答のプロトコルをBACnet/IPからBACnet/WSに変換して上位システム10に送信する(ステップS110)。コントローラ30は、GW20から送信されたデータ設定要求に応じて、データ設定要求が示す下部機器31に対して設定値を設定する。そして、上位システム10は、設定完了を示す応答をGW20に送信する(ステップS111)。GW20は、コントローラ30から送信された応答のプロトコルをBACnet/IPからBACnet/WSに変換して上位システム10に送信する(ステップS112)。
監視制御システム100では、データ取得要求とデータ設定要求とは非同期に処理が行なわれる。したがって、上記のようにデータ取得要求中にデータ設定要求が行われる場合がある。
The controller 30 acquires a measurement value from the lower device 31 indicated by the data acquisition request in response to the data acquisition request transmitted from the GW 20. Then, the controller 30 transmits a response including the acquired measurement value to the GW 20 (Step S109). The GW 20 converts the protocol of the response transmitted from the controller 30 from BACnet / IP to BACnet / WS and transmits it to the host system 10 (Step S110). The controller 30 sets a set value for the lower device 31 indicated by the data setting request in response to the data setting request transmitted from the GW 20. Then, the host system 10 transmits a response indicating the completion of the setting to the GW 20 (Step S111). The GW 20 converts the protocol of the response transmitted from the controller 30 from BACnet / IP to BACnet / WS and transmits it to the host system 10 (Step S112).
In the monitoring control system 100, the data acquisition request and the data setting request are processed asynchronously. Therefore, a data setting request may be made during a data acquisition request as described above.

図3は、GW20の機能構成を表す概略ブロック図である。
GW20は、バスで接続されたCPU(Central Processing Unit)やメモリや補助記憶装置などを備え、中継制御プログラムを実行する。中継制御プログラムの実行によって、GW20は、第1通信部201、要求解析部202、要求記憶部203、コントローラ情報記憶部204、許可信号情報記憶部205、要求生成部206、第2通信部207、応答生成部208を備える装置として機能する。なお、GW20の各機能の全て又は一部は、ASIC(Application Specific Integrated Circuit)やPLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されてもよい。また、中継制御プログラムは、コンピュータ読み取り可能な記録媒体に記録されてもよい。コンピュータ読み取り可能な記録媒体とは、例えばフレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置である。また、中継制御プログラムは、電気通信回線を介して送受信されてもよい。
FIG. 3 is a schematic block diagram illustrating a functional configuration of the GW 20.
The GW 20 includes a CPU (Central Processing Unit), a memory, an auxiliary storage device, and the like connected by a bus, and executes a relay control program. By executing the relay control program, the GW 20 causes the first communication unit 201, the request analysis unit 202, the request storage unit 203, the controller information storage unit 204, the permission signal information storage unit 205, the request generation unit 206, the second communication unit 207, It functions as a device including the response generation unit 208. All or a part of each function of the GW 20 may be realized using hardware such as an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), and an FPGA (Field Programmable Gate Array). Further, the relay control program may be recorded on a computer-readable recording medium. The computer-readable recording medium is, for example, a portable medium such as a flexible disk, a magneto-optical disk, a ROM, and a CD-ROM, and a storage device such as a hard disk built in a computer system. Further, the relay control program may be transmitted and received via an electric communication line.

第1通信部201は、BACnet/WSを利用して上位システム10との間で通信を行う。第1通信部201は、上位システム10から要求を受信する。第1通信部201は、上位システム10に対して応答を送信する。
要求解析部202は、第1通信部201によって受信された要求を入力する。要求解析部202は、入力された要求を解析する。具体的には、要求解析部202は、要求を解析することによって、要求に含まれる制御命令を取得する。
要求記憶部203は、揮発性メモリを用いて構成される。要求記憶部203は、要求解析部202によって取得された制御命令を要求及び上位システム10の識別情報に対応付けて一時的に記憶する。
The first communication unit 201 communicates with the host system 10 using BACnet / WS. The first communication unit 201 receives a request from the host system 10. The first communication unit 201 transmits a response to the host system 10.
The request analysis unit 202 inputs the request received by the first communication unit 201. The request analysis unit 202 analyzes the input request. Specifically, the request analysis unit 202 obtains a control command included in the request by analyzing the request.
The request storage unit 203 is configured using a volatile memory. The request storage unit 203 temporarily stores the control command acquired by the request analysis unit 202 in association with the request and the identification information of the host system 10.

コントローラ情報記憶部204は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。コントローラ情報記憶部204は、コントローラ設定ファイルを記憶する。コントローラ設定ファイルは、各コントローラ30の設定に関する情報(以下、「設定情報」という。)が登録されているファイルである。
許可信号情報記憶部205は、磁気ハードディスク装置や半導体記憶装置などの記憶装置を用いて構成される。許可信号情報記憶部205は、許可信号リストを記憶する。許可信号リストは、GW20がコントローラ30に対して送信が許可されている制御命令に関する情報(以下、「許可命令情報」という。)が登録されているリストである。
The controller information storage unit 204 is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device. The controller information storage unit 204 stores a controller setting file. The controller setting file is a file in which information relating to the setting of each controller 30 (hereinafter, referred to as “setting information”) is registered.
The permission signal information storage unit 205 is configured using a storage device such as a magnetic hard disk device or a semiconductor storage device. The permission signal information storage unit 205 stores a permission signal list. The permission signal list is a list in which information on control commands that the GW 20 is permitted to transmit to the controller 30 (hereinafter, referred to as “permission command information”) is registered.

要求生成部206は、要求解析部202によって取得された制御命令と、コントローラ情報記憶部204に記憶されているコントローラ設定ファイルと、許可信号情報記憶部205に記憶されている許可信号リストとを入力する。要求生成部206は、入力された制御命令と、コントローラ設定ファイルと、許可信号リストとに基づいてコントローラ30毎の制御要求を生成する。制御要求の具体的な生成方法については後述する。
第2通信部207は、BACnet/IPを利用してコントローラ30との間で通信を行う。第2通信部207は、要求生成部206によって生成された制御要求をコントローラ30に送信する。第2通信部207は、制御要求に対する応答をコントローラ30から受信する。
応答生成部208は、第2通信部207によって受信された応答と、要求記憶部203に記憶されている制御命令とに基づいて上位システム10に対する応答を生成する。具体的には、応答生成部208は、1つの要求に含まれる制御命令に対する全ての応答を含む応答を生成する。つまり、応答生成部208は、1つの要求に10個の制御命令があった場合には、同じ制御命令がある場合であっても10個全ての応答を含む応答を生成する。
The request generation unit 206 receives the control command acquired by the request analysis unit 202, the controller setting file stored in the controller information storage unit 204, and the permission signal list stored in the permission signal information storage unit 205. I do. The request generation unit 206 generates a control request for each controller 30 based on the input control command, the controller setting file, and the permission signal list. A specific method of generating the control request will be described later.
The second communication unit 207 performs communication with the controller 30 using BACnet / IP. The second communication unit 207 transmits the control request generated by the request generation unit 206 to the controller 30. The second communication unit 207 receives a response to the control request from the controller 30.
The response generation unit 208 generates a response to the host system 10 based on the response received by the second communication unit 207 and the control command stored in the request storage unit 203. Specifically, the response generation unit 208 generates a response including all responses to the control command included in one request. That is, when there are ten control commands in one request, the response generating unit 208 generates a response including all ten responses even if there is the same control command.

図4は、コントローラ設定ファイルの具体例を示す図である。
コントローラ設定ファイルにおける1行が1つのコントローラ30に対する設定情報を示す。コントローラ設定ファイルには、複数の設定情報が登録されている。ここで、設定情報は、コントローラ30の識別情報、コントローラ30が1度の処理で複数の制御命令を処理可能であるか否かを示す情報、処理可能な最大命令数、タイムアウト時間及び再送回数などである。複数の制御命令を処理可能であるか否かを示す情報の具体例としては、シングル設定及びマルチ設定がある。シングル設定は、コントローラ30が1度の処理で1つの制御命令を処理可能であることを示す。マルチ設定は、コントローラ30が1度の処理で複数の制御命令を処理可能であることを示す。処理可能な最大命令数は、コントローラ30が1度の処理で処理可能な制御命令の上限値を表す。なお、処理可能な最大命令数の値は、コントローラ30がマルチ設定の場合にのみ設定される。タイムアウト時間は、制御命令に対する応答待ちのタイムアウト時間を表す。再送回数は、タイムアウトによる制御命令の再送回数を表す。
FIG. 4 is a diagram illustrating a specific example of the controller setting file.
One line in the controller setting file indicates setting information for one controller 30. A plurality of setting information is registered in the controller setting file. Here, the setting information includes identification information of the controller 30, information indicating whether or not the controller 30 can process a plurality of control commands in one process, a maximum number of commands that can be processed, a timeout time, a retransmission count, and the like. It is. Specific examples of the information indicating whether a plurality of control commands can be processed include a single setting and a multi-setting. The single setting indicates that the controller 30 can process one control command in one process. The multi-setting indicates that the controller 30 can process a plurality of control commands in one process. The maximum number of instructions that can be processed indicates the upper limit of control instructions that can be processed by the controller 30 in one process. It should be noted that the value of the maximum number of instructions that can be processed is set only when the controller 30 has the multi-setting. The timeout period indicates a timeout period for waiting for a response to the control command. The number of retransmissions indicates the number of retransmissions of the control command due to timeout.

図4に示される例では、コントローラ設定ファイルの最上段81に登録されている設定情報は、“101,multi,20,3000,1”である。これは、識別情報“101”で特定されるコントローラ30が“マルチ設定”であり、1度で処理可能な制御命令の最大数が“20個”であり、タイムアウト時間が“3000(ms)”であり、再送回数が“1回”であることが示されている。
また、コントローラ設定ファイルの2段目82に登録されている設定情報は、“102,single,500,3”である。これは、識別情報“102”で特定されるコントローラ30が“シングル設定”であり、タイムアウト時間が“500(ms)”であり、再送回数が“3回”であることが示されている。
In the example shown in FIG. 4, the setting information registered in the uppermost section 81 of the controller setting file is “101, multi, 20, 3000, 1”. This is because the controller 30 specified by the identification information “101” is “multi-setting”, the maximum number of control commands that can be processed at one time is “20”, and the timeout time is “3000 (ms)”. This indicates that the number of retransmissions is “once”.
The setting information registered in the second stage 82 of the controller setting file is “102, single, 500, 3”. This indicates that the controller 30 specified by the identification information “102” is “single setting”, the timeout time is “500 (ms)”, and the number of retransmissions is “3”.

図5は、許可信号リストの具体例を示す図である。
許可信号リストにおける1行がコントローラ30への送信が許可されている制御命令を示す。許可信号リストには、複数の許可命令情報が登録されている。ここで、許可命令情報は、コントローラ30の識別情報、制御命令の種別を示す情報及び下部機器31の識別情報などである。
図5に示される例では、許可信号リストの最上段に登録されている許可命令情報は、“101−AO(Analog-Output)−10000”である。これは、識別情報“101”で特定されるコントローラ30に接続する下部機器31のうち、識別情報“10000”で特定される下部機器31に対するアナログ出力に関する制御命令を許可することが示されている。
FIG. 5 is a diagram showing a specific example of the permission signal list.
One line in the permission signal list indicates a control command that is permitted to be transmitted to the controller 30. A plurality of permission command information is registered in the permission signal list. Here, the permission command information includes identification information of the controller 30, information indicating a type of the control command, identification information of the lower device 31, and the like.
In the example shown in FIG. 5, the permission instruction information registered at the top of the permission signal list is "101-AO (Analog-Output) -10000". This indicates that, among the lower devices 31 connected to the controller 30 specified by the identification information “101”, a control command relating to analog output is permitted for the lower device 31 specified by the identification information “10000”. .

また、許可信号リストの2段目に登録されている許可命令情報は、“101−BO(Binary-Output)−10001”である。これは、識別情報“101”で特定されるコントローラ30に接続する下部機器31のうち、識別情報“10001”で特定される下部機器31に対するバイナリ―出力に関する制御命令を許可することが示されている。
また、許可信号リストの3段目に登録されている許可命令情報は、“102−AV(Analog-Value)−10002”である。これは、識別情報“102”で特定されるコントローラ30に接続する下部機器31のうち、識別情報“10002”で特定される下部機器31に対する現在値に関する制御命令を許可することが示されている。
The permission command information registered in the second row of the permission signal list is "101-BO (Binary-Output) -10001". This indicates that among the lower devices 31 connected to the controller 30 specified by the identification information “101”, a control command relating to binary output is permitted for the lower device 31 specified by the identification information “10001”. I have.
The permission instruction information registered in the third row of the permission signal list is "102-AV (Analog-Value) -10002". This indicates that among the lower devices 31 connected to the controller 30 specified by the identification information “102”, a control command relating to the current value is permitted for the lower device 31 specified by the identification information “10002”. .

図6は、上位システム10から送信された要求の具体例を示す図である。
図6に示すように、領域83が1つの要求を表す。そして、領域83に含まれる文字列それぞれが1つの制御命令を表す。具体的には、図6では、1つの要求に10個の制御命令が含まれている場合を示している。ここで、制御命令について、最上段の制御命令を例に説明する。最上段の制御命令において一点鎖線84で示される部分は、GW20の名称、コントローラ30の識別情報、下部機器31の識別情報及び制御命令の種別を表す。要求解析部202は、上位システム10から送信された要求を解析することによって、領域83で示される部分に含まれる制御命令を取得する。
FIG. 6 is a diagram illustrating a specific example of a request transmitted from the host system 10.
As shown in FIG. 6, an area 83 represents one request. Each of the character strings included in the area 83 represents one control command. Specifically, FIG. 6 illustrates a case where one request includes ten control instructions. Here, the control command will be described using the uppermost control command as an example. The portion indicated by the one-dot chain line 84 in the uppermost control instruction represents the name of the GW 20, the identification information of the controller 30, the identification information of the lower device 31, and the type of the control instruction. The request analysis unit 202 analyzes the request transmitted from the host system 10 to obtain a control command included in the portion indicated by the area 83.

図7は、GW20による各コントローラ30に対する制御要求の生成方法を説明するための図である。
図7には、要求解析部202によって取得された1つの要求85に含まれる複数の制御命令(図7では、12個の制御命令)が示されている。これらの制御命令は、識別情報“101”、“102”及び“128”で特定される各コントローラ30に対する制御命令である。要求生成部206は、以下のようにして各コントローラ30に対する制御要求を生成する。
第1の処理として、要求生成部206は、複数の制御命令をコントローラ30の識別情報毎に分類する。この処理によって、複数の制御命令がコントローラ30毎に分類される。具体的には、領域85−1、85−2及び85−3に含まれる8つの制御命令が識別情報“101”で特定されるコントローラ30に対する制御命令に分類される。また、領域86に含まれる3つの制御命令が識別情報“128”で特定されるコントローラ30に対する制御命令に分類される。また、残りの1つの制御命令が識別情報“102”で特定されるコントローラ30に対する制御命令に分類される。
FIG. 7 is a diagram for explaining a method of generating a control request to each controller 30 by the GW 20.
FIG. 7 shows a plurality of control commands (12 control commands in FIG. 7) included in one request 85 acquired by the request analysis unit 202. These control commands are control commands for the respective controllers 30 specified by the identification information “101”, “102”, and “128”. The request generation unit 206 generates a control request for each controller 30 as follows.
As a first process, the request generation unit 206 classifies a plurality of control commands for each identification information of the controller 30. By this processing, a plurality of control commands are classified for each controller 30. Specifically, eight control commands included in the regions 85-1, 85-2, and 85-3 are classified into control commands for the controller 30 specified by the identification information "101". Further, the three control commands included in the area 86 are classified into control commands for the controller 30 specified by the identification information “128”. The remaining one control command is classified as a control command for the controller 30 specified by the identification information “102”.

第2の処理として、要求生成部206は、コントローラ設定ファイルに登録されている設定情報と、許可信号リストに登録されている許可命令情報とに基づいて、制御要求に含める制御命令を決定する。具体的には、要求生成部206は、許可信号リストに登録されていない制御命令を除いた制御命令を制御要求に含める制御命令に決定する。なお、ここでは、全ての制御命令が許可信号リストに登録されているとする。さらに、要求生成部206は、許可信号リストに登録されている制御命令を用いて、コントローラ設定ファイルにおいてシングル設定の登録がなされているコントローラ30に対しては、1つの制御命令を1つの制御要求に含めると決定する。要求生成部206は、許可信号リストに登録されている制御命令を用いて、コントローラ設定ファイルにおいてマルチ設定の登録がなされているコントローラ30に対しては、最大命令数までの制御命令を1つの制御要求に含め、残りの制御命令を新たな制御要求に含めると決定する。なお、1つの要求に同一の制御命令がある場合、要求生成部206は、同一の制御命令をまとめて1つの制御命令としてカウントする。ここで、同一の制御命令とは、制御命令で示される文字列が完全に一致している制御命令である。   As a second process, the request generator 206 determines a control command to be included in the control request based on the setting information registered in the controller setting file and the permission command information registered in the permission signal list. Specifically, the request generation unit 206 determines a control command excluding a control command not registered in the permission signal list as a control command to be included in the control request. Here, it is assumed that all control commands are registered in the permission signal list. Further, the request generation unit 206 uses the control command registered in the permission signal list to send one control command to the controller 30 for which the single setting is registered in the controller setting file. To be included. The request generation unit 206 uses the control command registered in the permission signal list to control the controller 30 in which the multi-setting is registered in the controller setting file by executing one control command up to the maximum command number. Request and decide to include the remaining control instructions in the new control request. When one request includes the same control instruction, the request generation unit 206 collectively counts the same control instruction as one control instruction. Here, the same control command is a control command in which the character strings indicated by the control command completely match.

一例として、図4のコントローラ設定ファイルを用いて説明すると、識別情報“101”で特定されるコントローラ30は、マルチ設定であり、最大命令数が20である。つまり、要求生成部206は、識別情報“101”で特定されるコントローラ30に対する8つの制御命令を1つの制御要求に含めると決定する。
また、一例として、図4のコントローラ設定ファイルを用いて説明すると、識別情報“102”で特定されるコントローラ30は、シングル設定である。つまり、要求生成部206は、識別情報“102”で特定されるコントローラ30に対する1つの制御命令を1つの制御要求に含めると決定する。
また、一例として、図4のコントローラ設定ファイルを用いて説明すると、識別情報“128”で特定されるコントローラ30は、マルチ設定であり、最大命令数が20である。つまり、要求生成部206は、識別情報“128”で特定されるコントローラ30に対する3つの制御命令を1つの制御要求に含めると決定する。
As an example, using the controller setting file in FIG. 4, the controller 30 specified by the identification information “101” has the multi-setting and the maximum number of instructions is 20. That is, the request generation unit 206 determines that eight control commands for the controller 30 specified by the identification information “101” are included in one control request.
Further, as an example, using the controller setting file in FIG. 4, the controller 30 specified by the identification information “102” has a single setting. That is, the request generation unit 206 determines that one control command for the controller 30 specified by the identification information “102” is included in one control request.
Further, as an example, using the controller setting file in FIG. 4, the controller 30 specified by the identification information “128” is multi-setting, and the maximum number of instructions is 20. That is, the request generation unit 206 determines that three control commands for the controller 30 specified by the identification information “128” are included in one control request.

第3の処理として、要求生成部206は、決定結果に基づいてコントローラ30毎の制御要求を生成する。具体的には、要求生成部206は、識別情報“101”で特定されるコントローラ30に対する8つの制御命令を1つにまとめることによって識別情報“101”で特定されるコントローラ30用の制御要求を生成する。要求生成部206は、識別情報“102”で特定されるコントローラ30に対する1つの制御命令を含めることによって識別情報“102”で特定されるコントローラ30用の制御要求を生成する。要求生成部206は、識別情報“128”で特定されるコントローラ30に対する3つの制御命令を1つにまとめることによって識別情報“128”で特定されるコントローラ30用の制御要求を生成する。   As a third process, the request generation unit 206 generates a control request for each controller 30 based on the determination result. Specifically, the request generation unit 206 combines the eight control commands for the controller 30 specified by the identification information “101” into one to generate a control request for the controller 30 specified by the identification information “101”. Generate. The request generation unit 206 generates a control request for the controller 30 specified by the identification information “102” by including one control command for the controller 30 specified by the identification information “102”. The request generation unit 206 generates a control request for the controller 30 specified by the identification information “128” by combining three control commands for the controller 30 specified by the identification information “128” into one.

図8は、GW20の処理の流れを示すフローチャートである。
第1通信部201は、上位システム10から送信された要求を受信する(ステップS201)。第1通信部201は、受信した要求を要求解析部202に出力する。要求解析部202は、第1通信部201から出力された要求を解析することによって、要求に含まれる制御命令を取得する(ステップS202)。その後、要求解析部202は、取得した制御命令を、要求及び上位システム10の識別情報に対応付けて要求記憶部203に記憶させる。また、要求解析部202は、取得した制御命令を要求生成部206に出力する。要求生成部206は、要求解析部202から出力された制御命令と、コントローラ情報記憶部204に記憶されているコントローラ設定ファイルと、許可信号情報記憶部205に記憶されている許可信号リストとに基づいて制御要求生成処理を実行する(ステップS203)。制御要求生成処理については後述する。
FIG. 8 is a flowchart illustrating the flow of the process of the GW 20.
The first communication unit 201 receives the request transmitted from the host system 10 (Step S201). The first communication unit 201 outputs the received request to the request analysis unit 202. The request analysis unit 202 acquires a control command included in the request by analyzing the request output from the first communication unit 201 (Step S202). After that, the request analysis unit 202 causes the request storage unit 203 to store the acquired control command in association with the request and the identification information of the host system 10. Further, the request analysis unit 202 outputs the obtained control command to the request generation unit 206. The request generation unit 206 is based on the control command output from the request analysis unit 202, the controller setting file stored in the controller information storage unit 204, and the permission signal list stored in the permission signal information storage unit 205. Then, a control request generation process is executed (step S203). The control request generation processing will be described later.

要求生成部206は、生成した制御要求を第2通信部207に出力する。第2通信部207は、要求生成部206から出力された制御要求を宛先のコントローラ30に送信する(ステップS204)。その後、第2通信部207は、コントローラ30からの制御要求に対する応答を受信する(ステップS205)。第2通信部207は、受信した応答を応答生成部208に出力する。応答生成部208は、要求記憶部203に記憶されている制御命令と、第2通信部207から出力された応答とに基づいて、要求に対する全ての応答が受信されたか否か判定する(ステップS206)。要求に対する全ての応答が受信されていない場合(ステップS206−NO)、GW20はステップS205以降の処理を繰り返し実行する。   The request generation unit 206 outputs the generated control request to the second communication unit 207. The second communication unit 207 transmits the control request output from the request generation unit 206 to the destination controller 30 (Step S204). Thereafter, the second communication unit 207 receives a response to the control request from the controller 30 (Step S205). The second communication unit 207 outputs the received response to the response generation unit 208. The response generation unit 208 determines whether all the responses to the request have been received based on the control command stored in the request storage unit 203 and the response output from the second communication unit 207 (Step S206). ). If not all responses to the request have been received (step S206-NO), the GW 20 repeatedly executes the processing from step S205.

一方、要求に対する全ての応答が受信された場合(ステップS206−YES)、応答生成部208は要求に対する応答を含む応答を生成する(ステップS207)。応答生成部208は、生成した応答を第1通信部201に出力する。第1通信部201は、応答生成部208から出力された応答を要求の送信元である上位システム10に送信する(ステップS208)。   On the other hand, when all the responses to the request have been received (step S206-YES), the response generator 208 generates a response including the response to the request (step S207). The response generation unit 208 outputs the generated response to the first communication unit 201. The first communication unit 201 transmits the response output from the response generation unit 208 to the host system 10 that is the source of the request (step S208).

図9は、制御要求生成処理の流れを示すフローチャートである。なお、図9の説明では、説明の簡単化のため、1つの上位システム10から1つのコントローラ30(例えば、コントローラ30−1)に対する要求が送信された場合を例に説明する。
要求生成部206は、許可信号情報記憶部205に記憶されている許可信号リストを参照し、要求解析部202から出力された制御命令を判別する(ステップS301)。許可信号リストに登録がない制御命令については(ステップS301−許可信号リスト登録なし)、要求生成部206は第1通信部201を介して、上位システム10に対してエラーを送信する(ステップS302)。
FIG. 9 is a flowchart illustrating the flow of the control request generation process. Note that, in the description of FIG. 9, for simplification of the description, an example in which a request for one controller 30 (for example, the controller 30-1) is transmitted from one host system 10 will be described.
The request generation unit 206 refers to the permission signal list stored in the permission signal information storage unit 205 and determines the control command output from the request analysis unit 202 (Step S301). For a control command not registered in the permission signal list (step S301-no registration of permission signal list), the request generation unit 206 transmits an error to the host system 10 via the first communication unit 201 (step S302). .

一方、許可信号リストに登録がある制御命令については(ステップS301−許可信号リスト登録あり)、要求生成部206は許可信号リストに登録がある制御命令が複数あるか否か判定する(ステップS303)。許可信号リストに登録がある制御命令が複数ない場合(ステップS303−NO)、要求生成部206は許可信号リストに登録がある1つの制御命令を含む制御要求を生成する(ステップS304)。その後、要求生成部206は制御要求生成処理を終了する。   On the other hand, for a control command registered in the permission signal list (step S301—registration signal list registered), the request generation unit 206 determines whether there are a plurality of control commands registered in the permission signal list (step S303). . If there are no control commands registered in the permission signal list (step S303-NO), the request generation unit 206 generates a control request including one control command registered in the permission signal list (step S304). Thereafter, the request generation unit 206 ends the control request generation processing.

一方、許可信号リストに登録がある制御命令が複数ある場合(ステップS303−YES)、要求生成部206はコントローラ情報記憶部204に記憶されているコントローラ設定ファイルを参照し、コントローラ30−1の設定を判定する(ステップS305)。
具体的には、要求生成部206は、コントローラ設定ファイルを参照し、コントローラ30−1の設定がシングル設定であるかマルチ設定であるか判定する。コントローラ30−1の設定がシングル設定である場合(ステップS305−シングル設定)、要求生成部206は1つの制御命令を含む制御要求を許可信号リストに登録がある制御命令毎に生成する(ステップS306)。その後、要求生成部206は制御要求生成処理を終了する。
On the other hand, when there are a plurality of control commands registered in the permission signal list (step S303-YES), the request generation unit 206 refers to the controller setting file stored in the controller information storage unit 204 and sets the controller 30-1. Is determined (step S305).
Specifically, the request generating unit 206 refers to the controller setting file and determines whether the setting of the controller 30-1 is a single setting or a multi setting. When the setting of the controller 30-1 is the single setting (step S305-single setting), the request generation unit 206 generates a control request including one control instruction for each control instruction registered in the permission signal list (step S306). ). Thereafter, the request generation unit 206 ends the control request generation processing.

ステップS305の処理において、コントローラ30−1の設定がマルチ設定である場合(ステップS305−マルチ設定)、要求生成部206はコントローラ設定ファイルを参照し、許可信号リストに登録がある制御命令がコントローラ30−1の最大命令数以内であるか否か判定する(ステップS307)。コントローラ30−1の最大命令数以内である場合(ステップS307−YES)、要求生成部206はコントローラ30−1に対する全ての制御命令(許可信号リストに登録がある制御命令のみ)を含む制御要求を生成する(ステップS308)。その後、要求生成部206は制御要求生成処理を終了する。   In the process of step S305, when the setting of the controller 30-1 is the multi-setting (step S305-multi-setting), the request generation unit 206 refers to the controller setting file, and the control command registered in the permission signal list is It is determined whether it is within the maximum instruction number of −1 (step S307). When the number of instructions is within the maximum number of instructions of the controller 30-1 (step S307-YES), the request generation unit 206 issues a control request including all control instructions (only control instructions registered in the permission signal list) to the controller 30-1. It is generated (step S308). Thereafter, the request generation unit 206 ends the control request generation processing.

ステップS307の処理において、コントローラ30−1の最大命令数以内ではない場合(ステップS307−NO)、要求生成部206はコントローラ30−1に対する制御命令を含む複数の命令を生成する(ステップS309)。具体的には、要求生成部206は、コントローラ30−1に対する許可信号リストに登録がある制御命令を最大数分含む制御要求と、コントローラ30−1に対する許可信号リストに登録がある残りの制御命令を含む制御要求とを生成する。なお、ステップS309の処理において、要求生成部206は、複数の制御要求を生成する場合には、必ずしも1つの制御要求に最大数分の制御命令を含む必要はなく、どのように複数の制御要求を生成してもよい。その後、要求生成部206は制御要求生成処理を終了する。   In the process of step S307, if the number is not within the maximum number of instructions of the controller 30-1 (step S307-NO), the request generator 206 generates a plurality of instructions including a control instruction for the controller 30-1 (step S309). Specifically, the request generation unit 206 includes a control request including a maximum number of control commands registered in the permission signal list for the controller 30-1 and a remaining control command registered in the permission signal list for the controller 30-1. And a control request including In the process of step S309, when generating a plurality of control requests, the request generation unit 206 does not necessarily need to include the maximum number of control commands in one control request. May be generated. Thereafter, the request generation unit 206 ends the control request generation processing.

以上のように構成されたGW20によれば、不要な命令伝達を抑制することが可能になる。以下、この効果について詳細に説明する。
GW20は、上位システム10から送信された要求を解析することによって、要求に含まれる制御命令をコントローラ30毎に分類する。GW20は、分類した制御命令に基づいてコントローラ30毎の制御要求を生成する。これにより、コントローラ30に送信される制御要求には、他のコントローラ30に対する制御命令が含まれない。そのため、不要な命令伝達を抑制することが可能になる。
According to the GW 20 configured as described above, it is possible to suppress unnecessary command transmission. Hereinafter, this effect will be described in detail.
The GW 20 classifies the control commands included in the request for each controller 30 by analyzing the request transmitted from the host system 10. The GW 20 generates a control request for each controller 30 based on the classified control commands. Accordingly, the control request transmitted to the controller 30 does not include a control command for another controller 30. Therefore, it is possible to suppress unnecessary command transmission.

また、GW20は、コントローラ30の特性に応じて制御要求を生成する。具体的には、GW20は、コントローラ30がマルチ設定の場合には1度の処理で処理可能な最大命令数以内の制御命令を含む制御要求を生成し、コントローラ30がシングル設定の場合には1つの制御命令を含む1つの制御要求を制御命令数分生成する。このように、GW20は、各コントローラ30が対応可能な制御要求を生成することができる。そのため、様々なコントローラ30の特性に対応して制御要求を生成することが可能になる。   Further, the GW 20 generates a control request according to the characteristics of the controller 30. Specifically, the GW 20 generates a control request including a control instruction within the maximum number of instructions that can be processed in one process when the controller 30 is in the multi-configuration, and generates a control request when the controller 30 is in the single configuration. One control request including one control instruction is generated for the number of control instructions. Thus, the GW 20 can generate a control request that can be handled by each controller 30. Therefore, it is possible to generate a control request corresponding to various characteristics of the controller 30.

また、GW20は、許可信号リストに登録されていない制御命令については制御要求に含めない。したがって、コントローラ30への送信が許可されていない制御命令がコントローラ30に送信されることがない。そのため、不要な命令伝達を抑制することが可能になる。
また、GW20は、1つの要求に同一の制御命令が複数あった場合には、同一の制御命令を1つの制御命令として制御要求を生成する。これにより、1つの制御要求に同一の制御命令が複数含まれることがない。したがって、コントローラ30によって同じ制御を複数回実行させることがない。そのため、不要な命令伝達を抑制し、コントローラ30の処理負荷を軽減することが可能になる。
Further, the GW 20 does not include a control command not registered in the permission signal list in the control request. Therefore, a control command that is not permitted to be transmitted to the controller 30 is not transmitted to the controller 30. Therefore, it is possible to suppress unnecessary command transmission.
Further, when there are a plurality of the same control commands in one request, the GW 20 generates a control request using the same control command as one control command. Thus, one control request does not include a plurality of the same control commands. Therefore, the same control is not executed multiple times by the controller 30. Therefore, unnecessary command transmission can be suppressed, and the processing load on the controller 30 can be reduced.

以下、監視制御システム100の変形例について説明する。
本実施形態では、監視制御システム100が複数の上位システム10を備える構成を示したが、監視制御システム100は1つの上位システム10を備えるように構成されてもよい。また、本実施形態では、監視制御システム100が複数のコントローラ30を備える構成を示したが、監視制御システム100は1つのコントローラ30を備えるように構成されてもよい。
本実施形態では、コントローラ設定ファイルに1つのコントローラ30に対して1つの設定情報のみが登録されている場合を例に説明したが、コントローラ設定ファイルには1つのコントローラ30に対して複数の設定情報が登録されてもよい。例えば、コントローラ設定ファイルには、1つのコントローラ30に対してシングル設定と、マルチ設定との2つの設定情報が登録されてもよい。このよう構成される場合、要求生成部206は、2つの設定情報が登録されているコントローラ30に対する制御命令が1つの場合にはシングル設定の設定情報に従って制御要求を生成し、コントローラ30に対する制御命令が複数の場合にはマルチ設定の設定情報に従って制御要求を生成する。
Hereinafter, a modified example of the monitoring control system 100 will be described.
In the present embodiment, the configuration in which the monitoring control system 100 includes a plurality of higher-level systems 10 has been described, but the monitoring control system 100 may be configured to include one higher-level system 10. Further, in the present embodiment, the configuration in which the monitoring control system 100 includes a plurality of controllers 30 has been described, but the monitoring control system 100 may be configured to include one controller 30.
In the present embodiment, an example has been described in which only one setting information is registered for one controller 30 in the controller setting file. However, a plurality of setting information is stored for one controller 30 in the controller setting file. May be registered. For example, in the controller setting file, two pieces of setting information of a single setting and a multi-setting for one controller 30 may be registered. In such a configuration, the request generation unit 206 generates a control request according to the setting information of the single setting when there is one control command for the controller 30 in which two pieces of setting information are registered. In the case where there are a plurality, the control request is generated according to the setting information of the multi-setting.

GW20は、所定の時間(例えば、10秒、1分など)の間に上位システム10から複数の要求が取得された場合には、複数の要求それぞれに含まれる複数の制御命令を用いて各コントローラ30の制御要求を生成するように構成されてもよい。このように構成される場合、GW20は上位システム10からの要求を受信してから所定の時間待機する。そして、所定の時間経過後、GW20は所定の時間待機している間に取得された要求を用いて制御要求を生成する。以下、図10を用いて具体的な処理について説明する。   When a plurality of requests are acquired from the host system 10 during a predetermined time (for example, 10 seconds, 1 minute, or the like), the GW 20 uses each of the plurality of control instructions included in each of the plurality of requests to execute each controller. It may be configured to generate 30 control requests. In such a configuration, the GW 20 waits for a predetermined time after receiving a request from the host system 10. Then, after a predetermined time has elapsed, the GW 20 generates a control request using the request obtained while waiting for the predetermined time. Hereinafter, specific processing will be described with reference to FIG.

図10は、複数の要求が取得された場合の処理を説明するための図である。
図10には、所定の時間の間に要求解析部202によって取得された複数の要求87、88及び89が示されている。要求87には5つの制御命令が含まれ、要求88には5つの制御命令が含まれ、要求89には5つの制御命令が含まれる。これらの制御命令は、識別情報“101”、“102”及び“128”で特定される各コントローラ30に対する制御命令である。要求生成部206は、以下のようにして各コントローラ30に対する制御要求の生成方法を説明する。ここでは、識別情報“101”で特定されるコントローラ30に対する制御命令を用いて、識別情報“101”で特定されるコントローラ30用の制御要求を生成する場合を例に説明する。
FIG. 10 is a diagram for explaining a process when a plurality of requests are obtained.
FIG. 10 shows a plurality of requests 87, 88, and 89 obtained by the request analysis unit 202 during a predetermined time. The request 87 includes five control instructions, the request 88 includes five control instructions, and the request 89 includes five control instructions. These control commands are control commands for the respective controllers 30 specified by the identification information “101”, “102”, and “128”. The request generation unit 206 describes a method of generating a control request to each controller 30 as follows. Here, an example will be described in which a control request for the controller 30 specified by the identification information “101” is generated using a control command for the controller 30 specified by the identification information “101”.

要求生成部206は、上記の第1の処理と同様に、各要求87、88及び89それぞれに含まれる複数の制御命令をコントローラ30の識別情報毎に分類する。この処理によって、領域87−1、87−2、88−1、88−2、89−1及び89−2に含まれる11個の制御命令が識別情報“101”で特定されるコントローラ30に対する制御命令に分類される。次に、要求生成部206は、上記の第2の処理と同様に、コントローラ設定ファイルに登録されている設定情報と、許可信号リストに登録されている許可命令情報とに基づいて、制御要求に含める制御命令を決定する。一例として、図4のコントローラ設定ファイルを用いて説明すると、識別情報“101”で特定されるコントローラ30は、マルチ設定であり、最大命令数が20である。つまり、要求生成部206は、識別情報“101”で特定されるコントローラ30に対する11個の制御命令を1つの制御要求に含めると決定する。ただし、図10において、11個の制御命令には同一の制御命令が複数存在する。例えば、制御命令“/BACNET_GATEWAYxx/101/100001/1:VALUE”と、制御命令“/BACNET_GATEWAYxx/101/100002/1:VALUE”と、制御命令“/BACNET_GATEWAYxx/101/100006/1:VALUE”とが11個の制御命令の中に複数存在する。そこで、要求生成部206は、同一の制御命令については1つの制御命令としてカウントする。つまり、要求生成部206は、制御命令“/BACNET_GATEWAYxx/101/100001/1:VALUE”が3つあったとしても1つの制御命令とする。同様に、要求生成部206は、制御命令“/BACNET_GATEWAYxx/101/100002/1:VALUE”が3つあったとしても1つの制御命令とする。同様に、要求生成部206は、制御命令“/BACNET_GATEWAYxx/101/100006/1:VALUE”が2つあったとしても1つの制御命令とする。この処理によって、要求生成部206は、6つの制御命令(6種類の制御命令)を1つの制御要求に含めると決定する。そして、要求生成部206は、上記の第3の処理と同様に、決定結果に基づいてコントローラ30毎の制御要求を生成する。具体的には、要求生成部206は、識
別情報“101”で特定されるコントローラ30に対する6つの制御命令を1つにまとめることによって識別情報“101”で特定されるコントローラ30用の制御要求を生成する。
The request generation unit 206 classifies a plurality of control commands included in each of the requests 87, 88, and 89 for each identification information of the controller 30, as in the first process. By this processing, 11 control commands included in the areas 87-1, 87-2, 88-1, 88-2, 89-1, and 89-2 are controlled by the controller 30 specified by the identification information "101". Classified into instructions. Next, similarly to the above-described second processing, the request generation unit 206 generates a control request based on the setting information registered in the controller setting file and the permission command information registered in the permission signal list. Decide which control instructions to include. As an example, using the controller setting file in FIG. 4, the controller 30 specified by the identification information “101” has the multi-setting and the maximum number of instructions is 20. That is, the request generation unit 206 determines that 11 control commands for the controller 30 specified by the identification information “101” are included in one control request. However, in FIG. 10, there are a plurality of identical control commands in the eleven control commands. For example, a control command “/ BACNET_GATEWAYxx / 101/100001/1: VALUE”, a control command “/ BACNET_GATEWAYxx / 101/100002/1: VALUE”, and a control command “/ BACNET_GATEWAYxx / 101/100006/1: VALUE” are included. There are a plurality of commands in the 11 control commands. Therefore, the request generation unit 206 counts the same control command as one control command. That is, the request generation unit 206 sets one control command even if there are three control commands “/ BACNET_GATEWAYxx / 101/100001/1: VALUE”. Similarly, even if there are three control instructions “/ BACNET_GATEWAYxx / 101/100002/1: VALUE”, the request generation unit 206 regards them as one control instruction. Similarly, even if there are two control commands “/ BACNET_GATEWAYxx / 101/100006/1: VALUE”, the request generation unit 206 sets one control command. By this processing, the request generation unit 206 determines that six control commands (six types of control commands) are included in one control request. Then, the request generation unit 206 generates a control request for each controller 30 based on the determination result, as in the third process. Specifically, the request generation unit 206 combines the six control commands for the controller 30 specified by the identification information “101” into one to generate a control request for the controller 30 specified by the identification information “101”. Generate.

このように構成されることによって、短時間の間に複数の要求が取得される場合であっても対応することができる。さらに、要求生成部206は、短時間の間に取得された複数の要求に同一の制御命令が含まれている場合には、1つの制御命令として制御要求に含める。したがって、短時間の間に同じ制御命令をコントローラ30に送信することが無くなる。そのため、コントローラ30の処理負荷を軽減することが可能になる。   With this configuration, it is possible to cope with a case where a plurality of requests are acquired in a short time. Further, when a plurality of requests acquired in a short time include the same control command, the request generation unit 206 includes the same control command as one control command in the control request. Therefore, the same control command is not transmitted to the controller 30 in a short time. Therefore, the processing load on the controller 30 can be reduced.

以上説明した少なくともひとつの実施形態によれば、自装置に接続している複数のコントローラ30に対する複数の制御命令を含む要求に基づいて、要求に含まれる複数の制御命令を用いて制御命令の宛先毎の制御要求を生成する要求生成部206と、生成された制御要求を宛先のコントローラ30に送信する送信部(実施形態の第2通信部207に相当)とを持つことにより、不要な命令伝達を抑制することができる。   According to at least one embodiment described above, based on a request including a plurality of control commands for a plurality of controllers 30 connected to the own device, the destination of the control command is determined using the plurality of control commands included in the request. Unnecessary command transmission by having a request generation unit 206 that generates each control request and a transmission unit (corresponding to the second communication unit 207 of the embodiment) that transmits the generated control request to the destination controller 30 Can be suppressed.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれると同様に、特許請求の範囲に記載された発明とその均等の範囲に含まれるものである。   Although several embodiments of the present invention have been described, these embodiments are provided by way of example and are not intended to limit the scope of the invention. These embodiments can be implemented in other various forms, and various omissions, replacements, and changes can be made without departing from the gist of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and equivalents thereof.

10(10−1〜10−M)…上位システム,20…GW,30(30−1〜30−N)…コントローラ,40…ネットワーク,50…空調設備,60…温度センサ,70…湿度センサ,80…電力計,201…第1通信部,202…要求解析部,203…要求記憶部,204…コントローラ情報記憶部,205…許可信号情報記憶部,206…要求生成部,207…第2通信部,208…応答生成部 10 (10-1 to 10-M): host system, 20: GW, 30 (30-1 to 30-N): controller, 40: network, 50: air conditioner, 60: temperature sensor, 70: humidity sensor, 80 power meter, 201 first communication unit, 202 request analysis unit, 203 request storage unit, 204 controller information storage unit, 205 permission signal information storage unit, 206 request generation unit, 207 second communication Unit, 208: Response generation unit

Claims (7)

自装置に接続している複数のコントローラに対する複数の制御命令を含む要求に基づいて、前記要求に含まれる複数の制御命令を用いて前記制御命令の宛先毎の制御要求を生成する要求生成部と、
生成された前記制御要求を宛先のコントローラに送信する送信部と、
を備え、
前記要求生成部は、再送が必要となった場合に前記宛先毎に設定された前記制御命令の再送回数に基づいて、再送する前記制御要求を宛先毎に生成するゲートウェイ。
A request generation unit that generates a control request for each destination of the control instruction using a plurality of control instructions included in the request based on a request including a plurality of control instructions for a plurality of controllers connected to the own apparatus; ,
A transmitting unit that transmits the generated control request to a destination controller,
With
A gateway that generates the control request to be retransmitted for each destination based on the number of retransmissions of the control command set for each destination when retransmission is required.
前記要求生成部は、前記複数のコントローラのうち複数の制御命令を処理可能なコントローラに対しては前記コントローラに設定されている最大命令数以内の制御命令を含む前記制御要求を生成し、前記複数のコントローラのうち複数の制御命令を処理可能ではないコントローラに対しては1つの制御命令を含む前記制御要求を前記制御命令数分生成する、請求項1に記載のゲートウェイ。   The request generation unit generates the control request including a control instruction within a maximum number of instructions set in the controller for a controller capable of processing a plurality of control instructions among the plurality of controllers, 2. The gateway according to claim 1, wherein the control requests including one control instruction are generated for the number of control instructions for a controller that cannot process a plurality of control instructions among the controllers. 3. 前記要求生成部は、前記コントローラへの送信を許可する制御命令がコントローラ毎に設定された許可信号リストに基づいて、前記許可信号リストに設定されていない制御命令を除いて前記制御要求を生成する、請求項1又は2に記載のゲートウェイ。   The request generation unit generates the control request based on a permission signal list set for each controller, the control command permitting transmission to the controller, excluding control commands not set in the permission signal list. The gateway according to claim 1 or 2. 前記要求生成部は、所定の時間の間に複数の要求が取得された場合には、前記複数の要求それぞれに含まれる複数の制御命令を用いて前記制御命令の宛先毎の制御要求を生成する、請求項1から3のいずれか一項に記載のゲートウェイ。   The request generation unit generates a control request for each destination of the control instruction using a plurality of control instructions included in each of the plurality of requests when a plurality of requests are acquired during a predetermined time. The gateway according to any one of claims 1 to 3. 前記要求生成部は、1つの要求に同じ制御命令が複数あった場合には、同じ制御命令を1つの制御命令として前記制御要求を生成する、請求項1から4のいずれか一項に記載のゲートウェイ。   5. The request generation unit according to claim 1, wherein, when one request includes a plurality of same control instructions, the request generation unit generates the control request using the same control instruction as one control instruction. gateway. 自装置に接続している複数のコントローラに対する複数の制御命令を含む要求に基づいて、前記要求に含まれる複数の制御命令を用いて前記制御命令の宛先毎の制御要求を生成する要求生成ステップ、
を有し、
前記要求生成ステップにおいて、再送が必要となった場合に前記宛先毎に設定された前記制御命令の再送回数に基づいて、再送する前記制御要求を宛先毎に生成する要求生成方法。
A request generation step of generating a control request for each destination of the control instruction using a plurality of control instructions included in the request, based on a request including a plurality of control instructions for a plurality of controllers connected to the own device,
Has,
In the request generation step, a request generation method for generating, for each destination, the control request to be retransmitted based on the number of retransmissions of the control command set for each destination when retransmission is required.
自装置に接続している複数のコントローラに対する複数の制御命令を含む要求に基づいて、前記要求に含まれる複数の制御命令を用いて前記制御命令の宛先毎の制御要求を生成する要求生成ステップ、
をコンピュータに実行させ、
前記要求生成ステップにおいて、再送が必要となった場合に前記宛先毎に設定された前記制御命令の再送回数に基づいて、再送する前記制御要求を宛先毎に生成するためのコンピュータプログラム。
A request generation step of generating a control request for each destination of the control instruction using a plurality of control instructions included in the request, based on a request including a plurality of control instructions for a plurality of controllers connected to the own device,
To the computer,
A computer program for generating, for each destination, the control request to be retransmitted based on the number of retransmissions of the control command set for each destination when retransmission is required in the request generation step.
JP2019182125A 2019-10-02 2019-10-02 Gateway, request generation method and computer program Active JP6874084B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019182125A JP6874084B2 (en) 2019-10-02 2019-10-02 Gateway, request generation method and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019182125A JP6874084B2 (en) 2019-10-02 2019-10-02 Gateway, request generation method and computer program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015240642A Division JP2017108291A (en) 2015-12-09 2015-12-09 Gateway, request generation method, and computer program

Publications (2)

Publication Number Publication Date
JP2020017992A true JP2020017992A (en) 2020-01-30
JP6874084B2 JP6874084B2 (en) 2021-05-19

Family

ID=69580666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019182125A Active JP6874084B2 (en) 2019-10-02 2019-10-02 Gateway, request generation method and computer program

Country Status (1)

Country Link
JP (1) JP6874084B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008210089A (en) * 2007-02-26 2008-09-11 Mitsubishi Electric Corp Command relay unit and command relay program
JP2009239478A (en) * 2008-03-26 2009-10-15 Toshiba Corp Gateway apparatus, control instruction processing method, and program
JP2012217167A (en) * 2011-03-30 2012-11-08 Panasonic Corp Communication control system and lighting control system
JP2014165883A (en) * 2013-02-27 2014-09-08 Toshiba Lighting & Technology Corp Communication device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008210089A (en) * 2007-02-26 2008-09-11 Mitsubishi Electric Corp Command relay unit and command relay program
JP2009239478A (en) * 2008-03-26 2009-10-15 Toshiba Corp Gateway apparatus, control instruction processing method, and program
JP2012217167A (en) * 2011-03-30 2012-11-08 Panasonic Corp Communication control system and lighting control system
JP2014165883A (en) * 2013-02-27 2014-09-08 Toshiba Lighting & Technology Corp Communication device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ECHONET CONSORTIUM, ECHONET SPECIFICATION, vol. Version 3.21, JPN6017020282, 13 October 2005 (2005-10-13), ISSN: 0004401877 *

Also Published As

Publication number Publication date
JP6874084B2 (en) 2021-05-19

Similar Documents

Publication Publication Date Title
WO2019148960A1 (en) Data analysis device, system, and method
JP5960184B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, SERVER DEVICE, CONTROL METHOD, AND INFORMATION PROCESSING METHOD
JP2007251637A (en) Radio communication apparatus, individual information writer, and individual information setting method
Venkatesan et al. Networked switching and polymorphing control of electrical loads with web and wireless sensor network
JP6874084B2 (en) Gateway, request generation method and computer program
JP2017108291A (en) Gateway, request generation method, and computer program
JP6273878B2 (en) Control system and control method
WO2020255272A1 (en) Electronic apparatus and method
CN110022254A (en) The dynamic routing device and method of CAN message for vehicle
JP2009206863A (en) Layer 2 switch system and layer 2 switch
CN108476172B (en) Control device, computer-readable recording medium, and equipment control system
JP2019022170A (en) Communication module and communication method
JP4873220B2 (en) Field communication system
WO2020059492A1 (en) Communication device, access point management device, selective communication connection method and non-transitory computer-readable medium
US11367339B2 (en) System and method for startup of a detector loop
JP2019191956A (en) Electronic device, ID information setting method, host device, and control program
JP6328324B2 (en) Wireless communication apparatus, wireless communication method, and wireless communication program
KR20190075629A (en) Apparatus for transmitting data of atmosphere environment
JP2020022190A (en) Air conditioning control system, communication method therefor, air conditioner and terminal device
JP6005308B1 (en) Wireless communication apparatus, wireless communication terminal, wireless communication method, and wireless communication program
JP7277206B2 (en) Communication control device and method
JP7026340B2 (en) Setting device, control device, program
JP7196764B2 (en) Information processing system
US20220053055A1 (en) Device monitoring method, device monitoring apparatus, and recording medium
JP7114223B2 (en) Device control system, communication method, wireless terminal and control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191002

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20201208

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210203

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: 20210323

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20210421

R150 Certificate of patent or registration of utility model

Ref document number: 6874084

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150