JP2021068983A - Gateway device, management server, setting terminal, control method of gateway device, control method of management server, control method of setting terminal, control program, and recording medium - Google Patents

Gateway device, management server, setting terminal, control method of gateway device, control method of management server, control method of setting terminal, control program, and recording medium Download PDF

Info

Publication number
JP2021068983A
JP2021068983A JP2019192150A JP2019192150A JP2021068983A JP 2021068983 A JP2021068983 A JP 2021068983A JP 2019192150 A JP2019192150 A JP 2019192150A JP 2019192150 A JP2019192150 A JP 2019192150A JP 2021068983 A JP2021068983 A JP 2021068983A
Authority
JP
Japan
Prior art keywords
data
plc
gateway device
management server
unit
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
JP2019192150A
Other languages
Japanese (ja)
Other versions
JP7362415B2 (en
Inventor
和田 進
Susumu Wada
進 和田
守 和田
Mamoru Wada
守 和田
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.)
United Seven Corporation KK USCO
Asco KK
Original Assignee
United Seven Corporation KK USCO
Asco KK
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 United Seven Corporation KK USCO, Asco KK filed Critical United Seven Corporation KK USCO
Priority to JP2019192150A priority Critical patent/JP7362415B2/en
Publication of JP2021068983A publication Critical patent/JP2021068983A/en
Application granted granted Critical
Publication of JP7362415B2 publication Critical patent/JP7362415B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a gateway device capable of easily transmitting data collected from FA apparatuses to a device based on IT technology.SOLUTION: A gateway device (1) includes: a definition acquisition unit (31) that acquires PLC specific information specifying PLC, data specific information specifying data to be acquired, and logging information specifying a logging cycle; an initial setting unit (32) that enables a communication program for communicating with the PLC; a measurement value acquisition unit (33) that acquires data from the PLC; and a log transmission unit (34) that transmits according to the logging cycle.SELECTED DRAWING: Figure 1

Description

本発明は、所望機器から取得したデータを無線通信により他機器へ送信するゲートウェイ装置、およびこれを含むデータ収集システム等に関する。 The present invention relates to a gateway device that transmits data acquired from a desired device to another device by wireless communication, a data collection system including the gateway device, and the like.

近年、製造現場等では効率よく、安定的に製品の製造を行えるよう、FA(Factory Automation)化が進んでいる。FAの制御システムでは、メンテナンス、トラブル時の対応等のために、製造に伴う様々なデータを取得できることが望ましい。 In recent years, FA (Factory Automation) has been promoted so that products can be manufactured efficiently and stably at manufacturing sites and the like. It is desirable that the FA control system can acquire various data associated with manufacturing for maintenance, troubleshooting, and the like.

そこで、特許文献1には、FA機器を制御する制御装置に対し、制御対象機器のデータの送信を要求し、受信した制御対象機器のデータを変換し、変換されたデータをサーバ装置に送信するゲートウェイ装置が記載されている。 Therefore, in Patent Document 1, the control device that controls the FA device is requested to transmit the data of the controlled device, the received data of the controlled device is converted, and the converted data is transmitted to the server device. The gateway device is described.

また、特許文献2には、PLC(Programmable Logic Controller)に接続されたデータ収集装置であって、周期性を有する時系列デバイスデータを形成するデータ収集部と、指定された抽出期間にしたがって時系列デバイスデータから個別データを抽出し、抽出された各個別データに対して各個別データを識別するための識別情報を付与するデータ収集装置が記載されている。 Further, Patent Document 2 describes a data collection device connected to a PLC (Programmable Logic Controller), a data collection unit that forms periodic time-series device data, and a time-series according to a designated extraction period. A data collection device that extracts individual data from device data and assigns identification information for identifying each individual data to each extracted individual data is described.

特許第6440810号公報(2018年12月19日発行)Japanese Patent No. 6440810 (issued on December 19, 2018) 特開2019−16327号公報(2019年1月31日公開)Japanese Unexamined Patent Publication No. 2019-16327 (published on January 31, 2019)

FA機器から収集したデータをPLC等の制御装置からIT技術に基づくストレージやインタフェースに送信するためには、PLC等から送信されるデータモデルと受信するIT側のデータモデルとを同一にする必要がある。 In order to transmit the data collected from the FA device from the control device such as PLC to the storage or interface based on IT technology, it is necessary to make the data model transmitted from PLC etc. and the data model on the receiving IT side the same. is there.

しかし、FAでは、歴史的な経緯から様々なインタフェースが混在しており、一口にFA機器と言ってもそのデータモデルは一様ではない。 However, in FA, various interfaces are mixed for historical reasons, and the data model of FA equipment is not uniform even if it is called FA equipment.

また、PLCのプログラムは、OT(Operational Technology:運用・制御技術)と呼ばれるスキルを持ったエンジニア(OT技術者)によって作成されるのに対し、受信側はITのスキルを持ったエンジニア(IT技術者)によって作成される。IT側のデータモデルは、OT技術者によって設計される機器構成情報等の設計情報等も用いて作成する必要があるが、OTとITとの用語の違いや技術者同士の知識の違い等により齟齬が発生してしまう可能性もある。 In addition, PLC programs are created by engineers (OT engineers) who have skills called OT (Operational Technology), while the receiving side is engineers who have IT skills (IT technology). Created by The data model on the IT side needs to be created using design information such as device configuration information designed by OT engineers, but due to differences in terms between OT and IT and differences in knowledge between engineers, etc. There is also the possibility of discrepancies.

よって、FA機器から収集したデータをPLC等の制御装置からIT技術に基づくストレージやインタフェースに送信することは、容易ではない。 Therefore, it is not easy to transmit the data collected from the FA device from a control device such as a PLC to a storage or an interface based on IT technology.

上述した、特許文献1、2では、FA機器からデータを収集し、クラウドに送信する構成が記載されているが、上述したOTとITとの違いによる実現の困難性を解決する手段については言及していない。 The above-mentioned Patent Documents 1 and 2 describe a configuration in which data is collected from an FA device and transmitted to the cloud, but the above-mentioned means for solving the difficulty of realization due to the difference between OT and IT is mentioned. Not done.

本発明の一態様は上記問題に鑑みてなされたものであり、その目的は、ITの知識を必要とすることなくFA機器から収集したデータをIT技術に基づく装置に容易に送信できるゲートウェイ装置等を実現することにある。 One aspect of the present invention has been made in view of the above problems, and an object of the present invention is a gateway device or the like that can easily transmit data collected from an FA device to a device based on IT technology without requiring knowledge of IT. Is to realize.

前記課題を解決するために、本発明の一態様に係るゲートウェイ装置は、PLC(Programmable Logic Controller)からデータを取得し、取得したデータを管理サーバに送信するゲートウェイ装置であって、前記PLCを特定するPLC特定情報、該PLCから取得するデータを特定するデータ特定情報、および前記管理サーバに送信する周期であるロギング周期を特定するロギング情報を前記管理サーバから取得する定義取得部と、前記PLC特定情報に基づいて前記PLCとの通信を行うための通信プロトコルに従った通信プログラムを有効化する初期設定部と、前記データ特定情報によって特定されるデータを、前記通信プログラムを用いて前記PLCから取得するデータ取得部と、前記データ取得部が取得した前記データを、前記ロギング情報によって特定される前記ロギング周期に従って前記管理サーバに送信するデータ送信部と、を備えていることを特徴としている。 In order to solve the above problems, the gateway device according to one aspect of the present invention is a gateway device that acquires data from a PLC (Programmable Logic Controller) and transmits the acquired data to a management server, and specifies the PLC. A definition acquisition unit that acquires from the management server the PLC specific information to be specified, the data identification information that specifies the data to be acquired from the PLC, and the logging information that specifies the logging cycle that is the cycle to be transmitted to the management server, and the PLC identification. An initial setting unit that activates a communication program according to a communication protocol for communicating with the PLC based on the information, and data specified by the data identification information are acquired from the PLC using the communication program. The data acquisition unit is provided, and the data transmission unit that transmits the data acquired by the data acquisition unit to the management server according to the logging cycle specified by the logging information is provided.

前記の構成によれば、PLC特定情報によって特定されるPLCとの通信を行うためのプログラムを有効化し、当該プログラムを用いて対応するPLCとの通信を行う。また、データ特定情報およびロギング情報に基づいて、PLCから取得したデータのうち、所望のデータを所望の周期で管理サーバに送信する。よって、ユーザは、予めPLC特定情報、データ特定情報、およびロギング情報を設定しておけば、ゲートウェイ装置をPLC、および管理サーバと通信可能に接続するのみで、所望のデータを所望の周期で取得することができる。よって、ITの知識があまりないユーザであっても、FA機器から収集したデータをIT技術に基づく装置に容易に送信するようにすることができる。 According to the above configuration, a program for communicating with the PLC specified by the PLC specific information is enabled, and the program is used to communicate with the corresponding PLC. Further, based on the data specific information and the logging information, the desired data among the data acquired from the PLC is transmitted to the management server at a desired cycle. Therefore, if the user sets the PLC specific information, the data specific information, and the logging information in advance, the user simply connects the gateway device to the PLC and the management server in a communicable manner, and acquires the desired data at a desired cycle. can do. Therefore, even a user who does not have much knowledge of IT can easily transmit the data collected from the FA device to the device based on the IT technology.

本発明の一態様に係るゲートウェイ装置では、前記データの取得先として想定されるPLCそれぞれに対応する通信プログラムそれぞれを予め格納する記憶部を備え、前記初期設定部は、前記記憶部に格納されている前記通信プログラムのうち、前記PLC特定情報によって特定されるPLCとの通信を行うための通信プログラムを有効化するものであってもよい。 The gateway device according to one aspect of the present invention includes a storage unit that stores each communication program corresponding to each PLC assumed as a data acquisition destination in advance, and the initial setting unit is stored in the storage unit. Among the communication programs, the communication program for communicating with the PLC specified by the PLC specific information may be enabled.

前記の構成によれば、想定されるPLCそれぞれに対応する通信プログラムを自装置に予め格納しているので、対応するPLCを特定すれば、容易に当該PLCとの通信を行うための通信プログラムを用いるようにすることができる。 According to the above configuration, the communication program corresponding to each assumed PLC is stored in the own device in advance. Therefore, if the corresponding PLC is specified, the communication program for easily communicating with the PLC can be obtained. Can be used.

前記課題を解決するために、本発明の一態様に係る管理サーバは、PLCからデータを取得するゲートウェイ装置から当該データを受信する管理サーバであって、前記ゲートウェイ装置と、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報とを対応付けて格納する記憶部と、前記ゲートウェイ装置の要求に基づいて、前記PLC特定情報、前記データ特定情報、および前記ロギング情報を当該ゲートウェイ装置に供給する供給部と、を備えていることを特徴としている。 In order to solve the above problems, the management server according to one aspect of the present invention is a management server that receives the data from the gateway device that acquires the data from the PLC, and is connected to the gateway device and the gateway device. The PLC specific information that identifies the PLC, the data identification information that identifies the data acquired from the PLC by the gateway device, and the logging that specifies the logging cycle that is the cycle in which the gateway device transmits the data to the management server. It includes a storage unit that stores information in association with each other, and a supply unit that supplies the PLC specific information, the data specific information, and the logging information to the gateway device based on the request of the gateway device. It is characterized by that.

前記の構成によれば、PLCからデータを取得するゲートウェイ装置に対し、当該ゲートウェイ装置が用いる、PLC特定情報、データ特定情報、およびロギング情報を送信するので、ゲートウェイ装置において、PLCから取得したデータのうち、所望のデータを所望の周期で送信するようにすることができる。これにより、ITの知識があまりないユーザであっても、FA機器から収集したデータをIT技術に基づく装置に容易に送信するようにすることができる。 According to the above configuration, the PLC specific information, the data specific information, and the logging information used by the gateway device are transmitted to the gateway device that acquires the data from the PLC. Therefore, the gateway device transmits the data acquired from the PLC. Of these, desired data can be transmitted at a desired cycle. As a result, even a user who does not have much knowledge of IT can easily transmit the data collected from the FA device to the device based on the IT technology.

前記課題を解決するために、本発明の一態様に係る設定端末は、PLCからデータを取得し、当該データを管理サーバへ送信するゲートウェイ装置が用いる設定ファイルを設定する設定端末であって、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報の設定を受け付ける受付部と、前記受付部が受け付けた内容を前記管理サーバに送信する設定送信部と、を備えていることを特徴としている。 In order to solve the above problems, the setting terminal according to one aspect of the present invention is a setting terminal that acquires data from the PLC and sets a setting file used by the gateway device that transmits the data to the management server. PLC identification information that identifies the PLC connected to the gateway device, data identification information that identifies the data that the gateway device acquires from the PLC, and logging that is a cycle in which the gateway device transmits the data to the management server. It is characterized by including a reception unit that receives settings for logging information that specifies a cycle, and a setting transmission unit that transmits the contents received by the reception unit to the management server.

前記の構成によれば、ゲートウェイ装置が対応するPLCからデータを取得し、取得したデータのうち、所望のデータを所望の周期で送信するために必要なPLC特定情報、データ特定情報、およびロギング情報を設定端末において設定することができる。 According to the above configuration, the gateway device acquires data from the corresponding PLC, and among the acquired data, PLC specific information, data specific information, and logging information necessary for transmitting desired data at a desired cycle. Can be set on the setting terminal.

前記課題を解決するために、本発明の一態様に係るゲートウェイ装置の制御方法は、PLCからデータを取得し、取得したデータを管理サーバに送信するゲートウェイ装置の制御方法であって、前記PLCを特定するPLC特定情報、該PLCから取得するデータを特定するデータ特定情報、および前記管理サーバに送信する周期であるロギング周期を特定するロギング情報を前記管理サーバから取得する定義取得ステップと、前記PLC特定情報に基づいて前記PLCとの通信を行うための通信プロトコルに従った通信プログラムを有効化する初期設定ステップと、前記データ特定情報によって特定されるデータを、前記通信プログラムを用いて前記PLCから取得するデータ取得ステップと、前記データ取得ステップで取得した前記データを、前記ロギング情報によって特定される前記ロギング周期に従って前記管理サーバに送信するデータ送信ステップと、を含むことを特徴としている。 In order to solve the above problems, the control method of the gateway device according to one aspect of the present invention is a control method of the gateway device that acquires data from the PLC and transmits the acquired data to the management server. The definition acquisition step of acquiring the PLC specific information to be specified, the data identification information to specify the data to be acquired from the PLC, and the logging information to specify the logging cycle which is the cycle to be transmitted to the management server from the management server, and the PLC. The initial setting step for activating the communication program according to the communication protocol for communicating with the PLC based on the specific information, and the data specified by the data specific information can be obtained from the PLC using the communication program. It is characterized by including a data acquisition step to be acquired and a data transmission step of transmitting the data acquired in the data acquisition step to the management server according to the logging cycle specified by the logging information.

前記課題を解決するために、本発明の一態様に係る管理サーバの制御方法は、PLCからデータを取得するゲートウェイ装置から当該データを受信する管理サーバの制御方法であって、前記ゲートウェイ装置と、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報とを対応付けて格納する記憶部を備え、前記ゲートウェイ装置の要求を受け付ける受付ステップと、前記要求に基づいて、前記PLC特定情報、前記データ特定情報、および前記ロギング情報を当該ゲートウェイ装置に送信する情報送信ステップと、を含むことを特徴としている。 In order to solve the above problems, the management server control method according to one aspect of the present invention is a control method of the management server that receives the data from the gateway device that acquires the data from the PLC. The PLC specific information that identifies the PLC connected to the gateway device, the data identification information that identifies the data acquired from the PLC by the gateway device, and the cycle in which the gateway device transmits the data to the management server. A storage unit that stores logging information that specifies a logging cycle in association with each other, a reception step that receives a request from the gateway device, and based on the request, the PLC specific information, the data specific information, and the logging information. Is included in the information transmission step of transmitting the data to the gateway device.

前記課題を解決するために、本発明の一態様に係る設定端末の制御方法は、PLCからデータを取得し、当該データを管理サーバへ送信するゲートウェイ装置が用いる設定ファイルを設定する設定端末の制御方法であって、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報の設定を受け付ける受付ステップと、前記受付ステップで受け付けた内容を前記管理サーバに送信する設定送信ステップと、を含むことを特徴としている。 In order to solve the above problems, the setting terminal control method according to one aspect of the present invention is to control a setting terminal that sets a setting file used by a gateway device that acquires data from a PLC and transmits the data to a management server. The method is the PLC specific information that identifies the PLC connected to the gateway device, the data identification information that identifies the data that the gateway device acquires from the PLC, and the gateway device that sends the data to the management server. It is characterized by including a reception step for receiving a setting of logging information for specifying a logging cycle, which is a transmission cycle, and a setting transmission step for transmitting the contents received in the reception step to the management server.

本発明の各態様に係るゲートウェイ装置、管理サーバ、設定端末は、コンピュータによって実現してもよく、この場合には、コンピュータを前記のゲートウェイ装置、管理サーバ、および設定端末が備える各部(ソフトウェア要素)として動作させることにより前記のゲートウェイ装置、管理サーバ、および設定端末をコンピュータにて実現させる制御プログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。 The gateway device, management server, and setting terminal according to each aspect of the present invention may be realized by a computer. In this case, each part (software element) of the gateway device, management server, and setting terminal that includes the computer. A control program that realizes the gateway device, management server, and setting terminal on a computer by operating the gateway device, and a computer-readable recording medium that records the control program are also included in the scope of the present invention.

本発明の一態様によれば、ユーザは、予めPLC特定情報、データ特定情報、およびロギング情報を設定しておけば、ゲートウェイ装置をPLC、および管理サーバと通信可能に接続するのみで、所望のデータを所望の周期で取得することができるという効果を奏する。よって、ITの知識があまりないユーザであっても、FA機器から収集したデータをIT技術に基づく装置に容易に送信するようにすることができるという効果を奏する。 According to one aspect of the present invention, if the user sets the PLC specific information, the data specific information, and the logging information in advance, he / she only needs to connect the gateway device to the PLC and the management server in a communicable manner. It has the effect that data can be acquired at a desired cycle. Therefore, even a user who does not have much knowledge of IT can easily transmit the data collected from the FA device to the device based on the IT technology.

ゲートウェイ装置の要部構成を示すブロック図である。It is a block diagram which shows the main part structure of a gateway device. データ収集システムの概要を示す図である。It is a figure which shows the outline of the data collection system. ゲートウェイ装置の取り付け例を示す図である。It is a figure which shows the installation example of the gateway device. ゲートウェイ装置の取り付け例を示す図である。It is a figure which shows the installation example of the gateway device. 顧客の製造設備におけるゲートウェイ装置の適用例を示す図である。It is a figure which shows the application example of the gateway device in the manufacturing equipment of a customer. 管理サーバの要部構成を示すブロック図である。It is a block diagram which shows the main part structure of management server. 準備フェーズにおいて、データ収集システムが実行する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of processing which a data collection system executes in a preparation phase. 準備フェーズにおいて、設定端末に表示される管理タイプ定義画面の一例を示す図である。It is a figure which shows an example of the management type definition screen displayed on the setting terminal in a preparation phase. 準備フェーズにおいて、設定端末に表示される定常ロギング設定画面の一例を示す図である。It is a figure which shows an example of the steady-state logging setting screen displayed on the setting terminal in a preparation phase. 管理タイプ定義テーブルおよび管理タイプデータベース(DB)のデータ構造を示す図である。It is a figure which shows the data structure of the management type definition table and management type database (DB). 登録フェーズにおいて、設定端末に表示される装置登録画面の一例を示す図である。It is a figure which shows an example of the device registration screen displayed on the setting terminal in a registration phase. 装置登録データベース(DB)のデータ構造を示す図である。It is a figure which shows the data structure of the apparatus registration database (DB). 初期設定フェーズにおいて、データ収集システムが実行する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process which a data collection system executes in the initial setting phase. 定常ロギングフェーズにおいて、データ収集システムが実行する処理の流れを示すフローチャートである。It is a flowchart which shows the flow of processing which a data collection system executes in a steady logging phase. ログ情報のデータ構造を示す図である。It is a figure which shows the data structure of the log information. ログデータベース(DB)のデータ構造を示す図である。It is a figure which shows the data structure of a log database (DB).

〔システム概要〕
図2は、本実施形態に係るデータ収集システム100の概要を示す図である。データ収集システム100は、一例として、ゲートウェイ装置1と、PLC(Programmable Logic Controller)2と、設定端末3と、監視対象である産業用機器としてのFA機器4およびセンサ5と、管理サーバ6と、専用通信回線網7とを含む。
[System overview]
FIG. 2 is a diagram showing an outline of the data collection system 100 according to the present embodiment. As an example, the data collection system 100 includes a gateway device 1, a PLC (Programmable Logic Controller) 2, a setting terminal 3, an FA device 4 and a sensor 5 as industrial devices to be monitored, a management server 6, and the like. Includes a dedicated communication network 7.

PLC2と、FA機器4およびセンサ5とは、所定のインタフェース規格(例えば、RS232、RS485)に従い、ケーブルで直接接続されている。なお、不図示のLAN(Local Area Network)を介して通信可能に接続されていてもよい。PLC2とゲートウェイ装置1とは、後述するように通信可能に有線にて接続される。ゲートウェイ装置1は、無線通信にて専用通信回線網7に接続する機能を有しており、専用通信回線網7を介して管理サーバ6と通信可能に接続される。設定端末3は、インターネットまたは移動体通信網などの広域通信網8を介して管理サーバ6と通信可能に接続されている。 The PLC 2, the FA device 4 and the sensor 5 are directly connected by a cable according to a predetermined interface standard (for example, RS232, RS485). In addition, it may be connected so as to be communicable via a LAN (Local Area Network) (not shown). The PLC 2 and the gateway device 1 are connected by wire so as to be able to communicate with each other as described later. The gateway device 1 has a function of connecting to the dedicated communication line network 7 by wireless communication, and is communicably connected to the management server 6 via the dedicated communication line network 7. The setting terminal 3 is communicably connected to the management server 6 via a wide area communication network 8 such as the Internet or a mobile communication network.

PLC2は、産業用機器の制御および監視を行うものである。図示の例では、PLC2は、1以上のFA機器4、および、1以上のセンサ5などの産業用機器から、FA管理のためのデータを、上述したインタフェース規格による通信、またはLAN等、PLC2の通信規格に対応する通信により取得する。 PLC2 controls and monitors industrial equipment. In the illustrated example, the PLC2 transmits data for FA management from one or more FA devices 4 and one or more sensors 5 and other industrial devices according to the interface standard described above, or a LAN or the like of the PLC2. Obtained by communication corresponding to the communication standard.

FA管理のためのデータとは、例えば、FA機器4が内蔵するセンサ、または、FA機器4とは別体のセンサ5によって計測される計測値である。計測値は、FA機器4の動作またはFA機器4の周囲環境に係る物理量を示すものであってもよいし、FA機器4または周囲環境の状態を2値化して示すバイナリデータであってもよい。各センサによって計測される計測項目は、特に限定されないが、例えば、電流、電圧、油圧、水圧、気圧、トルク、温度、湿度、消費電力、重量、接触/非接触など多岐に亘る。 The data for FA management is, for example, a measured value measured by a sensor built in the FA device 4 or a sensor 5 separate from the FA device 4. The measured value may indicate a physical quantity related to the operation of the FA device 4 or the surrounding environment of the FA device 4, or may be binary data indicating the state of the FA device 4 or the surrounding environment in a binarized manner. .. The measurement items measured by each sensor are not particularly limited, but are diverse, for example, current, voltage, oil pressure, water pressure, atmospheric pressure, torque, temperature, humidity, power consumption, weight, contact / non-contact, and the like.

PLC2は、1以上のレジスタを備え、一例として、1つのレジスタに1つのセンサから取得した1つの計測項目に係る計測値を格納する。PLC2は、ゲートウェイ装置1から要求に応じて、自装置が備える各レジスタに格納された計測値を供給する。 The PLC 2 includes one or more registers, and as an example, one register stores a measured value related to one measurement item acquired from one sensor. The PLC 2 supplies the measured value stored in each register included in the own device from the gateway device 1 in response to a request.

本実施形態では、PLC2は、1以上の機器を収容する制御盤などの収容ボックス2Aに収容されている。 In the present embodiment, the PLC 2 is housed in a storage box 2A such as a control panel that houses one or more devices.

ゲートウェイ装置1は、RS232、RS485またはLANによるPLC2との通信と、専用通信回線網7による管理サーバ6との通信とを接続する中継装置である。具体的には、ゲートウェイ装置1は、PLC2がLANを介して産業用機器から取得した各種の計測値を、専用通信回線網7を介して、管理サーバ6にアップロードする。本実施形態では、ゲートウェイ装置1とPLC2とは1対1で対応している。具体的には、1台のPLC2に、1台のゲートウェイ装置1が結線され、該ゲートウェイ装置1は、取り付けられた相手方のPLC2が収集する計測値について、管理サーバ6へのアップロードを受け持つ。なお、ここでは、1台のゲートウェイ装置1に対し1台のPLC2が接続される例を説明しているが、これに限られるものではなく、1台のゲートウェイ装置1に対し複数のPLC2が接続されてもよい。 The gateway device 1 is a relay device that connects communication with PLC2 by RS232, RS485 or LAN and communication with management server 6 by a dedicated communication network 7. Specifically, the gateway device 1 uploads various measured values acquired by the PLC 2 from the industrial equipment via the LAN to the management server 6 via the dedicated communication network 7. In this embodiment, the gateway device 1 and the PLC 2 have a one-to-one correspondence. Specifically, one gateway device 1 is connected to one PLC2, and the gateway device 1 is in charge of uploading the measured values collected by the attached other party's PLC2 to the management server 6. Although an example in which one PLC2 is connected to one gateway device 1 is described here, the present invention is not limited to this, and a plurality of PLC2s are connected to one gateway device 1. May be done.

ゲートウェイ装置1は、後述するように、ボタンまたはスイッチなど、OT技術者が操作する操作部を備えていてもよい。OT技術者は、操作部を操作して、計測値の取得またはアップロードのタイミングをゲートウェイ装置1に対して指示してもよい。 As will be described later, the gateway device 1 may include an operation unit operated by an OT engineer, such as a button or a switch. The OT engineer may operate the operation unit to instruct the gateway device 1 at the timing of acquiring or uploading the measured value.

設定端末3は、OT技術者が、データ収集システム100を使って製造設備全体を管理するために必要なHMI(Human Machine Interface)を提供する。具体的には、設定端末3は、製造設備に取り付けられる1以上のゲートウェイ装置1に関する、各種の設定作業を支援するためのUI(User Interface)を提供する。また、設定端末3は、管理サーバ6に集積された膨大な数の計測値について、概要をまとめて一覧表示するなど、いわゆる、ダッシュボードとしての機能を提供してもよい。 The setting terminal 3 provides an HMI (Human Machine Interface) necessary for an OT engineer to manage the entire manufacturing equipment using the data collection system 100. Specifically, the setting terminal 3 provides a UI (User Interface) for supporting various setting operations related to one or more gateway devices 1 attached to the manufacturing equipment. Further, the setting terminal 3 may provide a function as a so-called dashboard, such as displaying an outline of a huge number of measured values accumulated in the management server 6 in a list.

設定端末3は、例えば、PC(Personal Computer)、タブレット、スマートフォンなどで構成される。設定端末3は、データ収集システム100が出力する情報をOT技術者に提示するための一般的な表示装置と、データ収集システム100に情報を入力するための一般的な入力装置(受付部、設定送信部)とを備えている。 The setting terminal 3 is composed of, for example, a PC (Personal Computer), a tablet, a smartphone, or the like. The setting terminal 3 is a general display device for presenting information output by the data collection system 100 to an OT engineer, and a general input device (reception unit, setting) for inputting information to the data collection system 100. It has a transmitter).

なお、設定端末3は、後述するサービスプロバイダ300によって提供されてもよいし、サービスプロバイダ300とは異なるパーティによって提供されてもよい。 The setting terminal 3 may be provided by the service provider 300 described later, or may be provided by a party different from the service provider 300.

管理サーバ6は、複数のゲートウェイ装置1から計測値を定期的に収集し、収集した膨大な数の計測値を体系的に保管するものである。管理サーバ6は、さらに、保管した計測値を、設定端末3から指定されたクエリに応答して、体系的に供給する機能を有していてもよい。 The management server 6 periodically collects measured values from a plurality of gateway devices 1 and systematically stores a huge number of collected measured values. The management server 6 may further have a function of systematically supplying the stored measured values in response to a query specified by the setting terminal 3.

とりわけ、本実施形態では、管理サーバ6は、設定端末3と通信し、設定端末3がゲートウェイ装置1の設定に関するUIを実現できるように、必要な情報を設定端末3に供給する。 In particular, in the present embodiment, the management server 6 communicates with the setting terminal 3 and supplies necessary information to the setting terminal 3 so that the setting terminal 3 can realize a UI related to the setting of the gateway device 1.

専用通信回線網7は、無線通信機能を有する1以上のゲートウェイ装置1が、管理サーバ6と通信するための通信回線を提供する。ゲートウェイ装置1は、専用通信回線網7と無線接続することにより、管理サーバ6に対して集めた計測値をアップロードすることができる。 The dedicated communication line network 7 provides a communication line for one or more gateway devices 1 having a wireless communication function to communicate with the management server 6. The gateway device 1 can upload the collected measured values to the management server 6 by wirelessly connecting to the dedicated communication network 7.

データ収集システム100を構成する上述の各資源のうち、管理サーバ6および専用通信回線網7は、支払われた料金の対価として後述するサービスを支払元に提供するパーティに帰属する。このパーティを、以下では、サービスプロバイダ300と称する。 Of the above-mentioned resources constituting the data collection system 100, the management server 6 and the dedicated communication network 7 belong to the party that provides the service described later to the payer in consideration of the paid fee. This party will be referred to below as the service provider 300.

なお、サービスプロバイダ300は、専用通信回線網7を所有している必要はない。例えば、通信キャリアなどの別のパーティが所有する専用通信回線網7が、有料または無料でサービスプロバイダ300に貸与されることにより、専用通信回線網7がサービスプロバイダ300に帰属してもよい。 The service provider 300 does not need to own the dedicated communication network 7. For example, the dedicated communication line network 7 may belong to the service provider 300 by lending the dedicated communication line network 7 owned by another party such as a communication carrier to the service provider 300 for a fee or free of charge.

また、サービスプロバイダ300は、ゲートウェイ装置1を製造、販売する事業者であってもよい。 Further, the service provider 300 may be a business operator that manufactures and sells the gateway device 1.

データ収集システム100を構成する上述の各資源のうち、ゲートウェイ装置1、PLC2、設定端末3、FA機器4、および、センサ5は、必要な料金をサービスプロバイダ300に支払って、後述するサービスを享受するパーティに帰属する。該パーティを、以下では、顧客200と称する。 Of the above-mentioned resources constituting the data collection system 100, the gateway device 1, the PLC 2, the setting terminal 3, the FA device 4, and the sensor 5 pay the necessary fee to the service provider 300 to enjoy the services described later. Belongs to the party to do. The party will be referred to below as Customer 200.

一例として、サービスプロバイダ300が顧客200に対して提供するサービスには、少なくとも以下が含まれる。具体的には、(1)ゲートウェイ装置1のハードウェアを提供すること、および、(2)ゲートウェイ装置1が取得した計測値をアップロードするための専用通信回線網7を使用する権利を与えることである。すなわち、顧客200がサービスプロバイダ300に支払う料金は、ゲートウェイ装置1の装置そのものの費用、専用通信回線網7の通信に関する費用が少なくとも含まれている。そして、顧客200はサービスプロバイダ300とのみ契約し、サービスプロバイダ200のみに費用を支払うことにより、上記サービスの提供を受けることができる。 As an example, the services provided by the service provider 300 to the customer 200 include at least: Specifically, by (1) providing the hardware of the gateway device 1 and (2) granting the right to use the dedicated communication network 7 for uploading the measured values acquired by the gateway device 1. is there. That is, the fee paid by the customer 200 to the service provider 300 includes at least the cost of the device itself of the gateway device 1 and the cost related to the communication of the dedicated communication network 7. Then, the customer 200 can receive the above-mentioned service by contracting only with the service provider 300 and paying the cost only to the service provider 200.

サービスプロバイダ300は、顧客200との契約の内容にしたがって、さらに、以下のサービスを顧客200に提供してもよい。具体的には、(3)ゲートウェイ装置1を製造現場で実際に稼動させるために必要な作業ツール(上述のUIなど)を提供すること、および、(4)設定端末3からのクエリに応答して、保管した計測値のデータベースから、必要な情報を抽出し提供することである。 The service provider 300 may further provide the following services to the customer 200 according to the contents of the contract with the customer 200. Specifically, (3) providing work tools (such as the UI described above) necessary for actually operating the gateway device 1 at the manufacturing site, and (4) responding to a query from the setting terminal 3. Therefore, necessary information is extracted and provided from the stored database of measured values.

〔ゲートウェイ装置の取り付け例〕
次に、図3および図4を参照して、ゲートウェイ装置1を、PLC2が収容された収容ボックス2Aに取り付ける例について説明する。図3および図4は、ゲートウェイ装置1
の取り付け例を示す図である。後述するようにゲートウェイ装置1は筐体がアンテナ部10および本体部20に分かれており、アンテナ部10が収容ボックス2Aの外側に、本体部20が収容ボックス2Aの内部に入るように、収容ボックス2Aの壁面に取付けられる。アンテナ部10と本体部20とは複数の固定ビスにより収容ボックス2Aの壁面に取り付けられるとともに、相互に固定される。また、アンテナ部10の本体部20側の面、本体部20のアンテナ部10側の面の中央近傍に対応する収容ボックス2Aの壁面には、アンテナ部10と本体部20とを接続するフラットケーブル18等が通るように、所定の大きさの丸穴が開けられている。
[Installation example of gateway device]
Next, an example in which the gateway device 1 is attached to the storage box 2A in which the PLC 2 is housed will be described with reference to FIGS. 3 and 4. 3 and 4 show the gateway device 1.
It is a figure which shows the installation example of. As will be described later, the gateway device 1 has a housing divided into an antenna portion 10 and a main body portion 20, and the accommodation box is provided so that the antenna portion 10 is outside the accommodation box 2A and the main body portion 20 is inside the accommodation box 2A. It is mounted on the wall surface of 2A. The antenna portion 10 and the main body portion 20 are attached to the wall surface of the housing box 2A by a plurality of fixing screws and are fixed to each other. Further, a flat cable for connecting the antenna portion 10 and the main body 20 is provided on the wall surface of the accommodation box 2A corresponding to the surface of the antenna portion 10 on the main body 20 side and the surface of the main body 20 on the antenna portion 10 side near the center. A round hole of a predetermined size is formed so that 18 mag can pass through.

なお、収容ボックス2Aに収容されるPLC2は1つに限られるものではなく、複数であってもよい。この場合、PLC2ごとに1つのゲートウェイ装置1が取付けられてもよいし、1つのゲートウェイ装置1に複数のPLC2が取付けられてもよい。 The number of PLCs 2 accommodated in the accommodation box 2A is not limited to one, and may be plural. In this case, one gateway device 1 may be attached to each PLC2, or a plurality of PLCs 2 may be attached to one gateway device 1.

〔適用例〕
図5は、顧客200の製造設備におけるゲートウェイ装置1の適用例を示す図である。顧客200は、一例として、製造設備として、大阪工場および京都工場の2つの工場を所有しているものとする。一例として、大阪工場には、ある製品を製造するための、3つの工程からなる製造ラインが3つ敷設されており、京都工場には、同一の製品を製造するための、同一の製造ラインが2つ敷設されているものとする。
[Application example]
FIG. 5 is a diagram showing an application example of the gateway device 1 in the manufacturing equipment of the customer 200. As an example, it is assumed that the customer 200 owns two factories, an Osaka factory and a Kyoto factory, as manufacturing equipment. As an example, the Osaka factory has three production lines consisting of three processes for manufacturing a certain product, and the Kyoto factory has the same production line for manufacturing the same product. It is assumed that two are laid.

本実施形態では、1つの製造ラインの1つの工程につき、1台のPLC2が設置されるものとする。上述したとおり、1台のPLC2に対して、1つのゲートウェイ装置1が結線される。別の例では、1つの工程につき複数台のPLC2が設置されていてもよく、これらの複数台のPLC2が1つの収容ボックス2Aに収容される場合には、1つの収容ボックス2Aの外壁に対して、PLC2ごとのゲートウェイ装置1が複数個取り付けられてもよい。 In the present embodiment, one PLC2 is installed for each process of one production line. As described above, one gateway device 1 is connected to one PLC2. In another example, a plurality of PLCs 2 may be installed in one process, and when these a plurality of PLC2s are housed in one storage box 2A, the outer wall of one storage box 2A may be installed. Therefore, a plurality of gateway devices 1 for each PLC 2 may be attached.

本実施形態では、ゲートウェイ装置1を用いた産業用機器の管理方法として、製造ラインの異同を問わず、同一製品を製造する同一工程には、同一の管理タイプが適用される。管理タイプとは、監視対象としてまとまりのある製造設備一式を、どのように管理するのかを指す管理様式を意味する。具体的には、1つの工程に属する製造設備一式から取得される計測項目ごとの計測値を、ゲートウェイ装置1が取得およびアップロードする様式が、管理タイプとして工程ごとに定義される。 In the present embodiment, as a management method for industrial equipment using the gateway device 1, the same management type is applied to the same process for manufacturing the same product regardless of the difference in the production line. The management type means a management style that indicates how to manage a set of manufacturing equipment that is cohesive as a monitoring target. Specifically, a mode in which the gateway device 1 acquires and uploads the measured values for each measurement item acquired from a set of manufacturing equipment belonging to one process is defined as a control type for each process.

図示の例では、顧客200は、複数の工場で複数の製造ラインを所有しているが、各製造ラインは、同一製品を製造するための同一の製造ラインであり、該製造ラインは、3つの工程で構成されている。したがって、工程ごとに、3つの管理タイプが定義されることになる。各ゲートウェイ装置1には、管轄させる工程に対応する定義済の管理タイプが適用される。各工程を管轄するように取り付けられたゲートウェイ装置1は、自装置の通信相手であるPLC2によって産業用機器から取得された計測値を、適用された管理タイプにしたがって、管理サーバ6にアップロードする。なお、管理タイプの定義(設定ファイル)は、OT技術者が設定端末3を操作して行う。管理タイプの定義方法については、後に詳述する。 In the illustrated example, the customer 200 owns a plurality of production lines in a plurality of factories, but each production line is the same production line for producing the same product, and the production lines are three. It consists of processes. Therefore, three control types are defined for each process. A defined management type corresponding to the process to be controlled is applied to each gateway device 1. The gateway device 1 installed so as to control each process uploads the measured value acquired from the industrial device by the communication partner PLC2 of the own device to the management server 6 according to the applied management type. The management type definition (setting file) is defined by the OT engineer operating the setting terminal 3. The method of defining the management type will be described in detail later.

〔ゲートウェイ装置の構成〕
図1は、本実施形態に係るゲートウェイ装置1の要部構成を示すブロック図である。
[Gateway device configuration]
FIG. 1 is a block diagram showing a main configuration of the gateway device 1 according to the present embodiment.

(ハードウェア構成)
図1に示すように、ゲートウェイ装置1は、アンテナ部10と本体部20との2つの筐体に分かれ、フラットケーブル18を介して通信可能に接続されている。これらは、ゲートウェイ装置1をPLC2が収納されている収容ボックス2Aに取り付ける際、アンテナ部10が収容ボックス2Aの外側に、本体部20が収容ボックス2Aの内側になるように取り付けられるものである。アンテナ部10が収容ボックス2Aの外部に取り付けられることにより、ゲートウェイ装置1と外部装置との間で無線通信する場合の通信状態をよりよいものとすることができる。
(Hardware configuration)
As shown in FIG. 1, the gateway device 1 is divided into two housings, an antenna portion 10 and a main body portion 20, and is communicably connected via a flat cable 18. These are such that when the gateway device 1 is attached to the accommodation box 2A in which the PLC 2 is housed, the antenna portion 10 is attached to the outside of the accommodation box 2A and the main body portion 20 is attached to the inside of the accommodation box 2A. By attaching the antenna portion 10 to the outside of the accommodation box 2A, it is possible to improve the communication state in the case of wireless communication between the gateway device 1 and the external device.

アンテナ部10は、通信モジュール11、LTEアンテナ12、メモリ13、GPS14、タクトスイッチ15、LED(Light Emitting Diode)16、および、コネクタ部17を含む。 The antenna unit 10 includes a communication module 11, an LTE antenna 12, a memory 13, a GPS 14, a tact switch 15, an LED (Light Emitting Diode) 16, and a connector unit 17.

通信モジュール11は、LTEアンテナ12を用いてLTE(Long Term Evolution)基地局との通信を行うものである。 The communication module 11 uses the LTE antenna 12 to communicate with an LTE (Long Term Evolution) base station.

LTEアンテナ12は、LTEに基づく通信を行うためのアンテナである。 The LTE antenna 12 is an antenna for performing LTE-based communication.

メモリ13は、ゲートウェイ装置1を識別する装置IDを格納している記憶部である。装置IDとは例えば、SIM(Subscriber Identity Module)に基づいて特定されるIDである。 The memory 13 is a storage unit that stores a device ID that identifies the gateway device 1. The device ID is, for example, an ID specified based on a SIM (Subscriber Identity Module).

GPS14は、GPS(Global Positioning System)信号に基づきゲートウェイ装置1の位置を特定するものである。例えば、GPS14は、特定した位置を示す位置情報を制御部21に送信し、制御部21は、取得した位置情報をPLC2から取得した計測値とともに管理サーバ6に送信してもよい。 The GPS 14 identifies the position of the gateway device 1 based on a GPS (Global Positioning System) signal. For example, the GPS 14 may transmit the position information indicating the specified position to the control unit 21, and the control unit 21 may transmit the acquired position information to the management server 6 together with the measured value acquired from the PLC 2.

タクトスイッチ15は、OT技術者からの操作を受け付けるスイッチである。タクトスイッチ15は例えば、異常スイッチであってもよく、この場合、タクトスイッチ15が押下されると、その旨がフラットケーブル18を介して本体部20の制御部21に通知される。そして、制御部21は、該通知を受信すると異常があったと判断し、異常発生時の処理を行う。 The tact switch 15 is a switch that receives an operation from an OT engineer. The tact switch 15 may be, for example, an abnormal switch. In this case, when the tact switch 15 is pressed, the control unit 21 of the main body 20 is notified to that effect via the flat cable 18. Then, when the control unit 21 receives the notification, it determines that there is an abnormality, and performs processing when the abnormality occurs.

LED16は、ゲートウェイ装置1の状態等を示す表示部である。LED16は単色であってもよいし、複数の色を含んでいてもよい。 The LED 16 is a display unit that shows the status of the gateway device 1 and the like. The LED 16 may be a single color or may contain a plurality of colors.

コネクタ部17は、本体部20と通信接続するフラットケーブル18の接続部である。 The connector portion 17 is a connection portion of a flat cable 18 that communicates with the main body portion 20.

また、本体部20は、制御部21および記憶部22に他に、コネクタ部23および通信I/F24を含む。 Further, the main body unit 20 includes a connector unit 23 and a communication I / F 24 in addition to the control unit 21 and the storage unit 22.

コネクタ部23は、アンテナ部10と通信接続するフラットケーブル18の接続部である。 The connector portion 23 is a connection portion of a flat cable 18 for communication connection with the antenna portion 10.

通信インタフェース(I/F)24は、PLC2と通信接続するインタフェースである。より詳細には、通信I/F24は、シリアルデータバス25を介してPLC2とシリアル通信を行うためのインタフェースであり、例えばRS232C、またはRS485に対応している。 The communication interface (I / F) 24 is an interface for communication connection with the PLC 2. More specifically, the communication I / F 24 is an interface for performing serial communication with the PLC2 via the serial data bus 25, and corresponds to, for example, RS232C or RS485.

(ソフトウェア構成)
収容ボックス2Aの内側に取り付けられる本体部20の制御部21は、ゲートウェイ装置1を統括的に制御するものであり、一例として、定義取得部31、初期設定部32、計測値取得部(データ取得部)33、および、ログ送信部(データ送信部)34を含んでいる。
(Software configuration)
The control unit 21 of the main body 20 mounted inside the storage box 2A comprehensively controls the gateway device 1, and as an example, the definition acquisition unit 31, the initial setting unit 32, and the measurement value acquisition unit (data acquisition). A unit) 33 and a log transmission unit (data transmission unit) 34 are included.

記憶部22は、制御部21が実行する制御プログラム、OSプログラム、および、制御部21が制御部21の各ブロックに係る処理を実行するときに読み出す各種データを記録するものである。記憶部22は、例えば、EEPROM(登録商標)(Electrically Erasable Programmable ROM)などの不揮発性の記憶装置によって構成される。 The storage unit 22 records the control program and the OS program executed by the control unit 21, and various data to be read when the control unit 21 executes the processing related to each block of the control unit 21. The storage unit 22 is composed of, for example, a non-volatile storage device such as an EEPROM (registered trademark) (Electrically Erasable Programmable ROM).

記憶部22は、一例として、管理タイプ定義テーブル41と、複数のドライバ情報42と、および、リングバッファ43とを記憶している。なお、リングバッファ43は、RAM(random access memory)などの不図示の一時記憶装置に、電源が入る度に都度展開されてもよい。 As an example, the storage unit 22 stores the management type definition table 41, the plurality of driver information 42, and the ring buffer 43. The ring buffer 43 may be expanded into a temporary storage device (not shown) such as a RAM (random access memory) each time the power is turned on.

定義取得部31は、管理サーバ6から、自装置に対応する管理タイプ定義テーブルを取得するものである。管理タイプ定義テーブルとは、上述の管理タイプを示す情報であり、具体的には、計測値の取得様式およびアップロード様式を定義する情報である。管理タイプ定義テーブルのデータ構造については、後に詳述する。 The definition acquisition unit 31 acquires the management type definition table corresponding to the own device from the management server 6. The management type definition table is information indicating the above-mentioned management type, and specifically, is information for defining a measurement value acquisition format and an upload format. The data structure of the management type definition table will be described in detail later.

具体的には、定義取得部31は、ゲートウェイ装置1に一意な装置IDを送信して、管理タイプ定義テーブル41を管理サーバ6に対して要求する。装置IDは、製造シリアル番号などのように、顧客をまたいで一意な識別情報であることが好ましい。本実施形態では、後述するように、管理サーバ6は、装置IDに基づいて、要求元のゲートウェイ装置1が、どの顧客のどの資源(図5に示す適用例においては、どの工場のどの製造ラインのどの工程)に取り付けられているのかを把握することができる。したがって、管理サーバ6は、定義取得部31から送られた装置IDに基づいて、ゲートウェイ装置1に対応する管理タイプを示す管理タイプ定義テーブル41を定義取得部31に返信することができる。定義取得部31は、管理サーバ6から取得した管理タイプ定義テーブル41を記憶部22に保存する。 Specifically, the definition acquisition unit 31 transmits a unique device ID to the gateway device 1 and requests the management type definition table 41 from the management server 6. The device ID is preferably unique identification information across customers, such as a manufacturing serial number. In the present embodiment, as will be described later, in the management server 6, based on the device ID, the requesting gateway device 1 determines which resource of which customer (in the application example shown in FIG. 5, which manufacturing line of which factory). It is possible to grasp which process) it is attached to. Therefore, the management server 6 can return the management type definition table 41 indicating the management type corresponding to the gateway device 1 to the definition acquisition unit 31 based on the device ID sent from the definition acquisition unit 31. The definition acquisition unit 31 stores the management type definition table 41 acquired from the management server 6 in the storage unit 22.

初期設定部32は、複数のドライバ情報42から、自装置が接続されている通信相手のPLC2の型式に適合したドライバ情報42を選択し、選択したドライバ情報42を有効化するものである。具体的には、初期設定部32は、記憶部22に記憶された管理タイプ定義テーブル41から、PLC2の型式を読み出し、自装置が接続されている通信相手のPLC2の型式を特定する。初期設定部32は、複数のドライバ情報42から、特定したPLC2の型式に適合したドライバ情報42を有効化する。結線されたPLC2に適合するドライバ情報42が有効化されることにより、制御部21は、ドライバ情報42で定められた通信プロトコルにしたがって、通信I/F24を介して、PLC2と正常に通信を行うことが可能になる。そして、制御部21は、PLC2から計測値を取得できるようになる。 The initial setting unit 32 selects the driver information 42 that matches the model of the PLC2 of the communication partner to which the own device is connected from the plurality of driver information 42, and activates the selected driver information 42. Specifically, the initial setting unit 32 reads the model of the PLC2 from the management type definition table 41 stored in the storage unit 22, and specifies the model of the communication partner PLC2 to which the own device is connected. The initial setting unit 32 activates the driver information 42 corresponding to the specified PLC2 model from the plurality of driver information 42. When the driver information 42 conforming to the connected PLC2 is enabled, the control unit 21 normally communicates with the PLC2 via the communication I / F24 according to the communication protocol defined in the driver information 42. Will be possible. Then, the control unit 21 can acquire the measured value from the PLC2.

また、初期設定部32は、ドライバ情報42のアップデートデータを管理サーバ6から取得し、ドライバ情報42をアップデートしてもよい。さらに、ドライバ情報42がゲートウェイ装置1に格納されていない場合、ゲートウェイ装置1は、管理サーバ6またはドライバ情報42を有する他のサーバからドライバ情報42を取得するものであってもよい。 Further, the initial setting unit 32 may acquire the update data of the driver information 42 from the management server 6 and update the driver information 42. Further, when the driver information 42 is not stored in the gateway device 1, the gateway device 1 may acquire the driver information 42 from the management server 6 or another server having the driver information 42.

計測値取得部33は、PLC2と通信し、PLC2の各レジスタに保存されている計測項目ごとの計測値を取得するものである。計測値取得部33は、取得した各計測値を、リングバッファ43に保存する。 The measurement value acquisition unit 33 communicates with the PLC 2 and acquires the measurement value for each measurement item stored in each register of the PLC 2. The measurement value acquisition unit 33 stores each acquired measurement value in the ring buffer 43.

本実施形態では、一例として、計測値取得部33は、常時、PLC2の各レジスタの各計測値を取得し、リングバッファ43に順次保存していく。ここで、「常時取得する」とは、PLC2が各センサから計測値を取得する間隔(例えば、1ミリ秒間隔)と同じ間隔で、つまり、PLC2と同じ分解能で、各レジスタの計測値を連続的に取得することを含んでいてもよい。あるいは、「常時取得する」とは、PLC2が計測値を取得する間隔よりも大きく、ゲートウェイ装置1が計測値をアップロードする周期(例えば、5分間隔)よりも短い間隔(例えば、1秒間隔)で、各レジスタの計測値を離散的に取得することを含んでいてもよい。 In the present embodiment, as an example, the measurement value acquisition unit 33 constantly acquires each measurement value of each register of the PLC 2 and sequentially stores the measurement value in the ring buffer 43. Here, "always acquire" means that the measured values of each register are continuously acquired at the same interval as the interval at which the PLC2 acquires the measured values from each sensor (for example, at 1 millisecond intervals), that is, with the same resolution as the PLC2. It may include the acquisition of the target. Alternatively, "always acquiring" means an interval (for example, 1 second interval) that is larger than the interval at which PLC2 acquires the measured value and shorter than the cycle (for example, 5 minute interval) in which the gateway device 1 uploads the measured value. It may include acquiring the measured values of each register discretely.

リングバッファ43は、所定時間(例えば、10分間)分の計測値を保存できる領域で構成されている。計測値取得部33は、リングバッファ43のすべての領域が計測値で埋まった場合、つまり、稼動開始から10分が経過した場合に、リングバッファ43に保存されている最も古い計測値を消去またはこれに上書きして、最新の計測値を保存する。 The ring buffer 43 is composed of an area capable of storing measured values for a predetermined time (for example, 10 minutes). The measurement value acquisition unit 33 erases or erases the oldest measurement value stored in the ring buffer 43 when the entire area of the ring buffer 43 is filled with the measurement values, that is, when 10 minutes have passed from the start of operation. Overwrite this and save the latest measurement value.

以上のようにして、計測値取得部33は、ゲートウェイ装置1およびPLC2に電源が投入されて通信が確立している間、計測値を常時取得することを継続する。 As described above, the measurement value acquisition unit 33 continues to constantly acquire the measurement value while the power is turned on to the gateway device 1 and the PLC 2 and communication is established.

ログ送信部34は、予め定められたロギング周期にしたがって、リングバッファ43に保存されている計測値を管理サーバ6にアップロードする。ロギング周期とは、計測値をゲートウェイ装置1から管理サーバ6にアップロードする周期を指定する情報である。ロギング周期は、定義取得部31によって取得された管理タイプ定義テーブル41において定義されている。 The log transmission unit 34 uploads the measured values stored in the ring buffer 43 to the management server 6 according to a predetermined logging cycle. The logging cycle is information that specifies a cycle for uploading the measured value from the gateway device 1 to the management server 6. The logging cycle is defined in the management type definition table 41 acquired by the definition acquisition unit 31.

本実施形態では、ログ送信部34は、PLC2のレジスタごと、つまり、計測項目ごとの計測値に対して、アップロードの時刻を示す時刻情報と、装置IDとを付加したログ情報を生成し、該ログ情報を管理サーバ6に送信する。ログ情報のデータ構造については、後に詳述する。 In the present embodiment, the log transmission unit 34 generates log information in which the time information indicating the upload time and the device ID are added to the measured values for each register of PLC2, that is, for each measurement item. The log information is transmitted to the management server 6. The data structure of log information will be described in detail later.

本実施形態では、ログ送信部34は、PLC2が収集するすべての計測値のうち、OT技術者が選択した計測項目の計測値だけをログ情報に含めて送信することができる。OT技術者が選択した計測項目またはレジスタ名は、管理タイプ定義テーブル41に定義されている。ログ送信部34は、定義取得部31によって取得された管理タイプ定義テーブル41を参照し、アップロードする対象(以下、ロギング対象)の計測項目(データ特定情報)を特定する。ログ送信部34は、ロギング周期によって定められたアップロードのタイミングが到来すると、該タイミングでリングバッファ43に格納された最新の各計測値のうち、特定した計測項目に該当する計測値だけを読み出して、上述のログ情報を生成する。 In the present embodiment, the log transmission unit 34 can transmit only the measurement values of the measurement items selected by the OT engineer among all the measurement values collected by the PLC2 in the log information. The measurement item or register name selected by the OT engineer is defined in the management type definition table 41. The log transmission unit 34 refers to the management type definition table 41 acquired by the definition acquisition unit 31, and specifies the measurement item (data identification information) of the upload target (hereinafter, logging target). When the upload timing determined by the logging cycle arrives, the log transmission unit 34 reads only the measurement values corresponding to the specified measurement items from the latest measurement values stored in the ring buffer 43 at that timing. , Generate the above log information.

〔管理サーバの構成〕
図6は、本実施形態に係る管理サーバ6の要部構成を示すブロック図である。
[Management server configuration]
FIG. 6 is a block diagram showing a main configuration of the management server 6 according to the present embodiment.

管理サーバ6は、一例として、制御部60、記憶部61および通信部62を備えている。通信部62は、広域通信網8を介して、設定端末3と通信を行うものであり、専用通信回線網7を介して、ゲートウェイ装置1と通信を行うものである。 As an example, the management server 6 includes a control unit 60, a storage unit 61, and a communication unit 62. The communication unit 62 communicates with the setting terminal 3 via the wide area communication network 8 and communicates with the gateway device 1 via the dedicated communication line network 7.

制御部60は、管理サーバ6の各部の動作を統括的に制御するものである。一例として、制御部60は、ユーザインタフェース(UI)提供部70、生成部71、算出部72、判定部73、登録部74、供給部75、ログ管理部76、および、模擬部77を含んでいる。制御部60の各ブロックは、例えば、CPU(central processing unit)がROM(read only memory)等の記憶装置に記憶されているプログラムをRAM(random access memory)等に読み出して実行することで実現できる。なお、ROM上で実行できる構成であってもよい。 The control unit 60 comprehensively controls the operation of each unit of the management server 6. As an example, the control unit 60 includes a user interface (UI) providing unit 70, a generation unit 71, a calculation unit 72, a determination unit 73, a registration unit 74, a supply unit 75, a log management unit 76, and a simulation unit 77. There is. Each block of the control unit 60 can be realized, for example, by the CPU (central processing unit) reading a program stored in a storage device such as a ROM (read only memory) into a RAM (random access memory) or the like and executing the program. .. The configuration may be such that it can be executed on the ROM.

記憶部61は、制御部60が実行する制御プログラム、OSプログラム、および、制御部60が制御部60の各ブロックに係る処理を実行するときに読み出す各種データを記録するものである。記憶部61は、例えば、ハードディスクなどの不揮発性の記憶装置によって構成される。 The storage unit 61 records the control program and the OS program executed by the control unit 60, and various data to be read when the control unit 60 executes the processing related to each block of the control unit 60. The storage unit 61 is composed of, for example, a non-volatile storage device such as a hard disk.

記憶部61は、一例として、管理タイプデータベース(DB)81、装置登録データベース(DB)82、および、ログデータベース(DB)83を記憶している。 As an example, the storage unit 61 stores the management type database (DB) 81, the device registration database (DB) 82, and the log database (DB) 83.

UI提供部70は、設定端末3に搭載されている一般的なWebブラウザアプリケーションによって閲覧および操作が可能なUI画面を提供する。UI提供部70は、設定端末3からUI画面を介して入力された各種の入力情報を、制御部60内で該入力情報を必要とするブロックに伝達する。また、UI提供部70は、制御部60内の各ブロックから出力された出力情報を、UI画面に反映させて、設定端末3にて確認できるようにする。 The UI providing unit 70 provides a UI screen that can be viewed and operated by a general Web browser application mounted on the setting terminal 3. The UI providing unit 70 transmits various input information input from the setting terminal 3 via the UI screen to a block that requires the input information in the control unit 60. Further, the UI providing unit 70 reflects the output information output from each block in the control unit 60 on the UI screen so that it can be confirmed on the setting terminal 3.

なお、UI提供部70は、設定端末3に備えられていてもよい。この場合、設定端末3は、例えば、管理サーバ6と情報をやりとりするための専用のアプリケーションをインストールして、UI提供部70を獲得することができる。 The UI providing unit 70 may be provided in the setting terminal 3. In this case, the setting terminal 3 can acquire the UI providing unit 70 by installing, for example, a dedicated application for exchanging information with the management server 6.

UI提供部70が提供するUI画面としては、例えば、管理タイプ定義画面、定常ロギング設定画面、および、装置登録画面などが想定される。管理タイプ定義画面とは、OT技術者が行う、管理タイプを定義する作業を支援するためのUI画面である。定常ロギング設定画面とは、OT技術者が行う、ロギング対象の計測項目を選択する作業、および、計測値のロギング周期を設定する作業を支援するためのUI画面である。装置登録画面とは、OT技術者が行う、製造設備に導入された複数のゲートウェイ装置1に、管理タイプおよび設置場所を紐付けて登録する作業を支援するためのUI画面である。これらのUI画面については、具体例を用いて後に詳述する。 As the UI screen provided by the UI providing unit 70, for example, a management type definition screen, a steady logging setting screen, a device registration screen, and the like are assumed. The management type definition screen is a UI screen for supporting the work of defining the management type performed by the OT engineer. The steady-state logging setting screen is a UI screen for supporting the work of selecting the measurement item to be logged and the work of setting the logging cycle of the measured value performed by the OT engineer. The device registration screen is a UI screen for supporting the work performed by an OT engineer to register a management type and an installation location in association with a plurality of gateway devices 1 installed in a manufacturing facility. These UI screens will be described in detail later with reference to specific examples.

生成部71は、管理タイプ定義画面および定常ロギング設定画面を介して設定端末3から入力された入力情報に基づいて、管理タイプ定義テーブルを生成するものである。管理タイプ定義テーブルとは、ゲートウェイ装置1の管理タイプを定義する情報である。 The generation unit 71 generates a management type definition table based on the input information input from the setting terminal 3 via the management type definition screen and the steady logging setting screen. The management type definition table is information that defines the management type of the gateway device 1.

生成部71は、生成した管理タイプ定義テーブルを管理タイプDB81に登録する。1つの顧客200は、複数の管理タイプを定義することができる。したがって、管理タイプDB81において、管理タイプ定義テーブルは、顧客200に一意な顧客IDと、管理タイプに一意な管理タイプ名とに紐付けて登録される。 The generation unit 71 registers the generated management type definition table in the management type DB 81. One customer 200 can define multiple management types. Therefore, in the management type DB 81, the management type definition table is registered in association with the customer ID unique to the customer 200 and the management type name unique to the management type.

こうして、OT技術者が、管理タイプ定義画面および定常ロギング設定画面を操作して、管理タイプを定義すると、管理タイプ定義テーブルが生成される。生成された管理タイプ定義テーブルが、ゲートウェイ装置1に適用されると、該ゲートウェイ装置1は、管理タイプ定義テーブルにしたがって、OT技術者の意図通りに動作することができるようになる。 In this way, when the OT engineer operates the management type definition screen and the steady logging setting screen to define the management type, the management type definition table is generated. When the generated management type definition table is applied to the gateway device 1, the gateway device 1 can operate as intended by the OT engineer according to the management type definition table.

算出部72は、上述の入力情報に基づいて、専用通信回線網7における通信量を算出するものである。具体的には、算出部72は、顧客200がサービスプロバイダ300との契約締結に基づいて使用できる専用通信回線網7における1ヶ月の通信量の上限を算出する。本実施形態では、上述の1ヶ月の通信量の上限を通信量上限と称する。 The calculation unit 72 calculates the amount of communication in the dedicated communication network 7 based on the above-mentioned input information. Specifically, the calculation unit 72 calculates the upper limit of the monthly communication amount in the dedicated communication network 7 that the customer 200 can use based on the conclusion of the contract with the service provider 300. In the present embodiment, the above-mentioned upper limit of the monthly communication amount is referred to as a communication amount upper limit.

一例として、サービスプロバイダ300は、顧客200に対して、提供するサービスの料金プランを複数種類用意している。料金プランには、専用通信回線網7の使用期間と料金とが設定されている。例えば、料金プランは、「2年間10万円コース」、「2年間20万円コース」・・・などと設定される。OT技術者は、サービスプロバイダ300との契約に基づいて定められた料金プランを、UI画面を介して入力する。 As an example, the service provider 300 prepares a plurality of types of rate plans for services to be provided to the customer 200. In the charge plan, the usage period and the charge of the dedicated communication network 7 are set. For example, the price plan is set as "2 years 100,000 yen course", "2 years 200,000 yen course", and so on. The OT engineer inputs the rate plan determined based on the contract with the service provider 300 via the UI screen.

算出部72は、料金プランにおいて設定されている使用期間を月数に換算し、料金プランにおいて設定されている料金を、該月数で割って通信量上限を算出してもよい。 The calculation unit 72 may convert the usage period set in the charge plan into the number of months, and divide the charge set in the charge plan by the number of months to calculate the upper limit of the communication amount.

さらに、算出部72は、OT技術者が定義した管理タイプ定義テーブルに基づいて、専用通信回線網7における想定される1か月分の通信量を算出する。本実施形態では、上述の想定される1か月分の通信量を想定通信量と称する。例えば、管理タイプ定義テーブルには、想定通信量を算出するために必要な想定材料情報が含まれている。想定材料情報には、具体的には、アップロードする計測項目と、アップロードする計測項目ごとの計測値のデータ長と、ロギング周期と、1ヶ月あたりの稼動日数と、1日あたりの稼働時間とが含まれている。 Further, the calculation unit 72 calculates the estimated communication amount for one month in the dedicated communication network 7 based on the management type definition table defined by the OT engineer. In the present embodiment, the above-mentioned estimated communication amount for one month is referred to as an estimated communication amount. For example, the management type definition table contains the assumed material information necessary for calculating the estimated communication volume. Specifically, the assumed material information includes the measurement items to be uploaded, the data length of the measurement values for each measurement item to be uploaded, the logging cycle, the number of working days per month, and the working hours per day. include.

算出部72は、例えば、アップロードする計測項目ごとの計測値のデータ長の合計を求めて、1回のアップロードで発生する1回分の通信量を求める。算出部72は、ロギング周期と1日あたりの稼働時間とに基づいて、1日あたりのアップロード回数を求める。そして、算出部72は、(1回分通信量)×(1日あたりのアップロード回数)×(1ヶ月あたりの稼動日数)により、想定通信量を算出してもよい。 For example, the calculation unit 72 obtains the total data length of the measured values for each measurement item to be uploaded, and obtains the amount of communication for one time generated by one upload. The calculation unit 72 obtains the number of uploads per day based on the logging cycle and the operating time per day. Then, the calculation unit 72 may calculate the estimated communication amount by (communication amount for one time) × (upload number of times per day) × (operating days per month).

さらに、算出部72は、後述の模擬部77がOT技術者の入力を模擬して設定した模擬周期と上述の想定材料情報とに基づいて、ロギング周期が、模擬周期であったと仮定した場合に想定される1か月分の通信量を、仮想通信量として算出してもよい。 Further, when the calculation unit 72 assumes that the logging cycle is the simulated cycle based on the simulated cycle set by the simulated unit 77 described later by simulating the input of the OT engineer and the above-mentioned assumed material information. The estimated monthly communication volume may be calculated as the virtual communication volume.

判定部73は、想定通信量が通信量上限を超えるかどうかを判定するものである。判定部73は、判定結果を出力する。例えば、判定部73は、想定通信量が通信量上限を超える場合に、「上限超過」を示す判定結果を出力する。あるいは、判定部73は、想定通信量が通信量上限以下である場合に、「上限内」を示す判定結果を出力する。 The determination unit 73 determines whether or not the assumed communication amount exceeds the upper limit of the communication amount. The determination unit 73 outputs the determination result. For example, the determination unit 73 outputs a determination result indicating "exceeding the upper limit" when the assumed communication amount exceeds the upper limit of the communication amount. Alternatively, the determination unit 73 outputs a determination result indicating "within the upper limit" when the assumed communication amount is equal to or less than the upper limit of the communication amount.

なお、想定通信量が通信量上限を超えるかどうかを判定しない構成、すなわち、判定部73を含まない構成であってもよい。この場合、後述する模擬周期のリストのみをUI提供部70によって選択可能にUI画面に表示することにより、通信量上限を超えないロギング周期のみを設定可能にすることができる。 In addition, a configuration that does not determine whether or not the assumed communication amount exceeds the communication amount upper limit, that is, a configuration that does not include the determination unit 73 may be used. In this case, by displaying only the list of simulated cycles described later on the UI screen so as to be selectable by the UI providing unit 70, it is possible to set only the logging cycle that does not exceed the upper limit of the communication amount.

模擬部77は、ロギング周期を模した模擬周期を算出部72に入力して、仮想通信量を得ることにより、想定通信量が通信量上限を超えないようなロギング周期をシミュレーションによって導出するものである。模擬部77は、仮想通信量が通信量上限以下となった模擬周期を、すべて推奨周期として出力してもよい。あるいは、模擬部77は、仮想通信量が通信量上限以下となった模擬周期のうち、最も周期が短い模擬周期だけを推奨周期として出力してもよい。あるいは、模擬部77は、仮想通信量が通信量上限以下となった模擬周期のうち、周期が短いものから所定個の模擬周期を推奨周期として出力してもよい。 The simulation unit 77 inputs a simulation cycle that imitates the logging cycle into the calculation unit 72, obtains a virtual communication amount, and derives a logging cycle by simulation so that the estimated communication amount does not exceed the communication amount upper limit. is there. The simulation unit 77 may output all the simulation cycles in which the virtual communication volume is equal to or less than the communication volume upper limit as recommended cycles. Alternatively, the simulation unit 77 may output only the shortest simulation cycle as the recommended cycle among the simulation cycles in which the virtual communication amount is equal to or less than the communication amount upper limit. Alternatively, the simulation unit 77 may output a predetermined number of simulation cycles as recommended cycles from the shortest cycle among the simulation cycles in which the virtual communication amount is equal to or less than the communication amount upper limit.

模擬部77によって出力された模擬周期のリストは、UI提供部70によって、選択可能にUI画面において反映される。これにより、OT技術者は、通信量上限を超えないようなロギング周期を容易に設定することが可能となる。 The list of simulated cycles output by the simulated unit 77 is selectively reflected on the UI screen by the UI providing unit 70. This allows the OT engineer to easily set a logging cycle that does not exceed the upper limit of the amount of communication.

登録部74は、装置登録画面を介して設定端末3から入力された入力情報に基づいて、装置情報を生成し、装置登録DB82に登録するものである。装置情報および装置登録DB82のデータ構造については、後に詳述する。 The registration unit 74 generates device information based on the input information input from the setting terminal 3 via the device registration screen, and registers the device information in the device registration DB 82. The device information and the data structure of the device registration DB 82 will be described in detail later.

入力情報には、ゲートウェイ装置1を一意に識別する装置IDと、顧客200において定義された管理タイプを識別する管理タイプ名と、該ゲートウェイ装置1の取り付け場所を示す設置場所とが含まれる。登録部74は、装置IDに基づいて、顧客200を特定し、上述の入力情報と、顧客IDとを紐付けた装置情報を生成し、装置登録DB82に登録する。 The input information includes a device ID that uniquely identifies the gateway device 1, a management type name that identifies the management type defined in the customer 200, and an installation location that indicates the installation location of the gateway device 1. The registration unit 74 identifies the customer 200 based on the device ID, generates device information associated with the above-mentioned input information and the customer ID, and registers the customer 200 in the device registration DB 82.

なお、管理サーバ6は、記憶部61において不図示の販売リストを保持する。販売リストには、少なくとも、販売したゲートウェイ装置1の装置IDと、これを購入した顧客の顧客IDとが紐付けて格納されている。そのため、登録部74は、装置IDに基づいて、該当するゲートウェイ装置1を所有している顧客を特定することができる。 The management server 6 holds a sales list (not shown) in the storage unit 61. At least, the device ID of the gateway device 1 sold and the customer ID of the customer who purchased the device ID are stored in the sales list in association with each other. Therefore, the registration unit 74 can identify the customer who owns the corresponding gateway device 1 based on the device ID.

制御部60の各ブロックは、装置登録DB82を参照することにより、装置IDに基づいて、どの顧客の、どの設置場所に設置されている、どの管理タイプが適用されたゲートウェイ装置1かを特定できるようになる。 By referring to the device registration DB 82, each block of the control unit 60 can identify which customer, which installation location, and which management type is applied to the gateway device 1 based on the device ID. Will be.

供給部75は、通信が確立したゲートウェイ装置1に対して、該ゲートウェイ装置1に適用するべき管理タイプ定義テーブルを供給するものである。本実施形態では、専用通信回線網7および通信部62を介して、ゲートウェイ装置1から、装置IDを含む、管理タイプ定義テーブルを要求するリクエストが送信される。供給部75は、このリクエストに応答して、要求元のゲートウェイ装置1に適用する管理タイプ定義テーブルを管理タイプDB81から読み出し、該ゲートウェイ装置1に供給する。供給部75は、装置登録DB82を参照することにより、装置IDに基づいて、ゲートウェイ装置1を所有する顧客の顧客IDと、該ゲートウェイ装置1に適用するべき管理タイプの管理タイプ名とを特定することができる。供給部75は、特定した顧客IDおよび管理タイプ名が紐付けられた管理タイプ定義テーブルを管理タイプDB81から抽出することができる。 The supply unit 75 supplies the gateway device 1 for which communication has been established with a management type definition table to be applied to the gateway device 1. In the present embodiment, the gateway device 1 transmits a request for a management type definition table including the device ID via the dedicated communication network 7 and the communication unit 62. In response to this request, the supply unit 75 reads the management type definition table applied to the request source gateway device 1 from the management type DB 81 and supplies the management type definition table to the gateway device 1. The supply unit 75 identifies the customer ID of the customer who owns the gateway device 1 and the management type name of the management type to be applied to the gateway device 1 based on the device ID by referring to the device registration DB 82. be able to. The supply unit 75 can extract the management type definition table associated with the specified customer ID and management type name from the management type DB 81.

供給部75から管理タイプ定義テーブルを受信したゲートウェイ装置1は初期設定を完了し、通常稼動に移ることができる。 The gateway device 1 that has received the management type definition table from the supply unit 75 can complete the initial setting and move to normal operation.

ログ管理部76は、初期設定が完了して通常稼動しているゲートウェイ装置1から、手記的に送信されるログ情報を受信して、ログDB83に集積するものである。ログDB83のデータ構造については、後に詳述する。 The log management unit 76 receives log information manually transmitted from the gateway device 1 which has completed the initial settings and is normally operating, and accumulates the log information in the log DB 83. The data structure of the log DB 83 will be described in detail later.

管理サーバ6は、ログDB83に集積された製造設備に係る集積データを、例えば、顧客200の設定端末3からの要求に応じて、広域通信網8などを介して設定端末3に提供することができる。管理サーバ6は、集積データに対して必要な分析を行い、その分析結果を設定端末3に送信してもよい。OT技術者は、設定端末3に表示された集積データまたは分析結果から得た知見を、製造設備のメンテナンスおよびトラブル時の対応等のために役立てることができる。 The management server 6 may provide the accumulated data related to the manufacturing equipment accumulated in the log DB 83 to the setting terminal 3 via the wide area communication network 8 or the like in response to a request from the setting terminal 3 of the customer 200, for example. it can. The management server 6 may perform necessary analysis on the accumulated data and transmit the analysis result to the setting terminal 3. The OT engineer can utilize the knowledge obtained from the integrated data displayed on the setting terminal 3 or the analysis result for maintenance of the manufacturing equipment, response in case of trouble, and the like.

〔契約締結後の準備フェーズ〕
顧客200とサービスプロバイダ300との間で契約が締結され、ゲートウェイ装置1が顧客200に納品されることが決まると、データ収集システム100において、ゲートウェイ装置1を顧客200の製造設備に取り付ける前の準備フェーズが開始される。
[Preparation phase after contract conclusion]
When a contract is concluded between the customer 200 and the service provider 300 and it is decided that the gateway device 1 is delivered to the customer 200, the data collection system 100 prepares before installing the gateway device 1 in the manufacturing equipment of the customer 200. The phase begins.

準備フェーズでは、OT技術者は、設定端末3を操作して、ゲートウェイ装置1に適用する管理タイプを定義する作業、および、定常ロギングを設定する作業を行う。データ収集システム100は、例えば以下のようにして、OT技術者の上述の各作業を支援する。 In the preparation phase, the OT engineer operates the setting terminal 3 to define the management type to be applied to the gateway device 1 and to set the steady logging. The data collection system 100 supports each of the above-mentioned operations of the OT engineer, for example, as follows.

図7は、準備フェーズにおいて、データ収集システム100の各装置が実行する処理の流れを示すフローチャートである。図8は、準備フェーズにおいて、上述の表示装置に表示される管理タイプ定義画面の一例を示す図である。図9は、準備フェーズにおいて設定端末3の表示装置に表示される定常ロギング設定画面の一例を示す図である。図10は、管理タイプ定義テーブル41および管理タイプDB81のデータ構造を示す図である。 FIG. 7 is a flowchart showing a flow of processing executed by each device of the data collection system 100 in the preparation phase. FIG. 8 is a diagram showing an example of a management type definition screen displayed on the above-mentioned display device in the preparation phase. FIG. 9 is a diagram showing an example of a steady logging setting screen displayed on the display device of the setting terminal 3 in the preparation phase. FIG. 10 is a diagram showing the data structures of the management type definition table 41 and the management type DB 81.

図7に示す一連の処理は、顧客200の設定端末3が、広域通信網8を介して管理サーバ6にアクセスすることにより開始される。例えば、顧客200は、サービスプロバイダ300からURL(Uniform Resource Locator)、顧客IDおよびパスワードなどの通知を事前に受けることが想定される。OT技術者は、URLにアクセスして、顧客IDとパスワードとを入力することにより、顧客200専用のUI画面を設定端末3に表示させることが想定される。 The series of processes shown in FIG. 7 is started when the setting terminal 3 of the customer 200 accesses the management server 6 via the wide area communication network 8. For example, the customer 200 is expected to be notified in advance of a URL (Uniform Resource Locator), a customer ID, a password, and the like from the service provider 300. It is assumed that the OT engineer accesses the URL and inputs the customer ID and password to display the UI screen dedicated to the customer 200 on the setting terminal 3.

ステップS101では、設定端末3は、管理サーバ6のUI提供部70から提供された管理タイプ定義画面を表示装置に表示させる。例えば、図8に示すとおり、管理タイプ定義画面400は、プラン入力領域401、上限表示領域402、タイプ入力領域403、型式入力領域404、日数入力領域405、時間入力領域406、定義リスト407、装置表示領域408、および、進行ボタン409の各UI部品で構成される。 In step S101, the setting terminal 3 causes the display device to display the management type definition screen provided by the UI providing unit 70 of the management server 6. For example, as shown in FIG. 8, the management type definition screen 400 has a plan input area 401, an upper limit display area 402, a type input area 403, a model input area 404, a number of days input area 405, a time input area 406, a definition list 407, and an apparatus. It is composed of each UI component of the display area 408 and the progress button 409.

ステップS102では、設定端末3は、管理タイプ定義画面400を介して受け付けた第1入力情報を、管理サーバ6へ送信する。第1入力情報は、例えば、以下のようにしてOT技術者によって入力される。OT技術者は、プラン入力領域401のドロップダウンリストから契約で定められた料金プランを選択する。OT技術者は、タイプ入力領域403に、定義したい管理タイプを識別するための管理タイプ名をテキストで入力する。OT技術者は、型式入力領域404のドロップダウンリストから、製造設備に導入しているPLC2の型式(PLC特定情報)を選択する。OT技術者は、日数入力領域405に、監視対象の製造設備について1ヶ月あたりの稼動日数を数字で入力する。OT技術者は、時間入力領域406に、上述の製造設備について1日あたり稼動時間を数字で入力する。 In step S102, the setting terminal 3 transmits the first input information received via the management type definition screen 400 to the management server 6. The first input information is input by an OT engineer, for example, as follows. The OT technician selects the rate plan specified in the contract from the drop-down list of the plan input area 401. The OT engineer inputs a management type name for identifying the management type to be defined in the type input area 403 in text. The OT engineer selects the model (PLC specific information) of the PLC2 introduced in the manufacturing equipment from the drop-down list of the model input area 404. The OT engineer inputs the number of operating days per month for the manufacturing equipment to be monitored in the number of days input area 405. The OT engineer numerically inputs the operating hours per day for the above-mentioned manufacturing equipment in the time input area 406.

UI提供部70は、型式入力領域404においてPLCの型式が選択された後、定義リスト407のレジスタ名のカラムに、選択されたPLC2の仕様に合ったレジスタ名を反映させる。OT技術者は、定義リスト407の計測項目のカラムに、レジスタごとの計測項目をテキストで入力する。該カラムに入力されるテキストによって、OT技術者が、何の値を示す計測値であるのかを識別可能になればよいので、該カラムには、計測項目に代えて、FA機器4またはセンサ5の名称またはIDを入力してもよい。OT技術者は、データ長のカラムに、レジスタに格納される計測値それぞれのデータ長を数字で入力する。 After the PLC model is selected in the model input area 404, the UI providing unit 70 reflects the register name matching the specifications of the selected PLC 2 in the register name column of the definition list 407. The OT engineer inputs the measurement items for each register in the column of the measurement items in the definition list 407 in text. Since it is only necessary for the OT engineer to be able to identify what value the measured value indicates by the text input to the column, the FA device 4 or the sensor 5 may be used in the column instead of the measurement item. You may enter the name or ID of. The OT engineer inputs the data length of each measured value stored in the register into a numerical value in the data length column.

なお、UI提供部70は、タイプ入力領域403にドロップダウンリストを設けて、すでに登録されている管理タイプの管理タイプ名が選択肢として表示されるようにタイプ入力領域403を構成してもよい。 The UI providing unit 70 may provide a drop-down list in the type input area 403 and configure the type input area 403 so that the management type name of the management type already registered is displayed as an option.

タイプ入力領域403が入力された後、その入力された定義済みの該管理タイプが適用されたゲートウェイ装置1が登録済みである場合には、UI提供部70は、その登録済みのゲートウェイ装置1の装置IDを、装置表示領域408に反映させてもよい。 After the type input area 403 is input, if the gateway device 1 to which the input defined management type is applied is registered, the UI providing unit 70 of the registered gateway device 1 The device ID may be reflected in the device display area 408.

設定端末3は、管理タイプ定義画面400を介して受け付けた、料金プラン、管理タイプ名、PLC型式、稼動日数、稼動時間、および、レジスタごとの計測項目ならびにデータ長を、第1入力情報として、管理サーバ6に送信する。 The setting terminal 3 uses the rate plan, management type name, PLC model, working days, working hours, measurement items for each register, and data length received via the management type definition screen 400 as the first input information. Send to the management server 6.

ステップS103では、管理サーバ6の生成部71は、第1入力情報に基づいて、管理タイプ定義テーブルを生成する。例えば、図10に示すデータ構造を有する管理タイプ定義テーブル41を生成する。管理タイプ定義テーブル41は、管理タイプ名、PLC型式、レジスタ名、計測項目、データ長、ロギング周期、稼動日数/月、および、稼動時間/日の各項目を有する。生成部71は、管理タイプ名の項目に、タイプ入力領域403に入力された管理タイプ名を格納する。生成部71は、PLC型式の項目に、型式入力領域404で選択されたPLC2の型式を格納する。生成部71は、レジスタ名の項目に、定義リスト407のレジスタ名のカラムに反映されている各レジスタ名を格納する。生成部71は、計測項目の項目に、定義リスト407の計測項目のカラムに入力された各計測項目を格納する。生成部71は、データ長の項目に、定義リスト407のデータ長のカラムに入力された各データ長を格納する。ロギング周期の項目には、後述する定常ロギング設定画面を介して入力された第2入力情報に基づく値が格納される。そのため、現時点では、該項目には値は格納されない。生成部71は、稼動日数/月の項目に、日数入力領域405に入力された稼動日数を格納する。生成部71は、稼動時間/日の項目に、時間入力領域406に入力された稼動時間を格納する。生成部71は、以上のようにして生成した管理タイプ定義テーブル41を出力する。出力された管理タイプ定義テーブル41は、例えば、不図示の一時記憶部などに保存されてもよい。 In step S103, the generation unit 71 of the management server 6 generates the management type definition table based on the first input information. For example, the management type definition table 41 having the data structure shown in FIG. 10 is generated. The management type definition table 41 has each item of management type name, PLC model, register name, measurement item, data length, logging cycle, working days / month, and working hours / days. The generation unit 71 stores the management type name input in the type input area 403 in the management type name item. The generation unit 71 stores the model of the PLC2 selected in the model input area 404 in the PLC model item. The generation unit 71 stores each register name reflected in the register name column of the definition list 407 in the register name item. The generation unit 71 stores each measurement item input in the measurement item column of the definition list 407 in the measurement item item. The generation unit 71 stores each data length input in the data length column of the definition list 407 in the data length item. In the item of the logging cycle, a value based on the second input information input via the steady logging setting screen described later is stored. Therefore, at this time, no value is stored in the item. The generation unit 71 stores the number of working days input in the number of days input area 405 in the item of working days / month. The generation unit 71 stores the operating time input in the time input area 406 in the operating time / day item. The generation unit 71 outputs the management type definition table 41 generated as described above. The output management type definition table 41 may be stored in, for example, a temporary storage unit (not shown).

ステップS104では、算出部72は、プラン入力領域401において選択された料金プランに基づいて、1ヶ月の通信量上限を算出する。UI提供部70は、設定端末3に対して算出部72が算出した通信量上限をフィードバックする。具体的には、管理タイプ定義画面400の上限表示領域402に、上述の通信量上限(例えば、10GB)を反映させる。 In step S104, the calculation unit 72 calculates the upper limit of the communication amount for one month based on the charge plan selected in the plan input area 401. The UI providing unit 70 feeds back the upper limit of the communication amount calculated by the calculation unit 72 to the setting terminal 3. Specifically, the above-mentioned communication amount upper limit (for example, 10 GB) is reflected in the upper limit display area 402 of the management type definition screen 400.

ステップS105では、設定端末3は、上限表示領域402に通信量上限を反映させた管理タイプ定義画面400を表示する。 In step S105, the setting terminal 3 displays the management type definition screen 400 in which the upper limit display area 402 reflects the upper limit of the communication amount.

ステップS106では、設定端末3は、第1入力情報に係る上述のUI部品のいずれかがOT技術者によって新たに操作されたか否かを判定する。操作されたと判定した場合、設定端末3は、S106のYESからS102に戻り、新たな操作に基づく新たな第1入力情報を管理サーバ6に送信する。上述のような新たな操作が検知されなければ、設定端末3は、S106のNOからS107に進む。 In step S106, the setting terminal 3 determines whether or not any of the above-mentioned UI components related to the first input information has been newly operated by the OT engineer. When it is determined that the operation has been performed, the setting terminal 3 returns from YES in S106 to S102, and transmits new first input information based on the new operation to the management server 6. If the new operation as described above is not detected, the setting terminal 3 proceeds from NO in S106 to S107.

ステップS107では、設定端末3は、定常ロギング設定画面に進むことを指示するための進行ボタン409が、上述のような新たな操作がなされることなく押下されたのかどうかを判定する。進行ボタン409が押下されないうちは、設定端末3は、S107のNOからS106に戻り、新たな操作の待機状態を維持する。進行ボタン409が押下されると、設定端末3は、S107のYESからS108に進む。 In step S107, the setting terminal 3 determines whether or not the progress button 409 for instructing to proceed to the steady logging setting screen is pressed without performing the above-mentioned new operation. Until the progress button 409 is not pressed, the setting terminal 3 returns from NO in S107 to S106 and maintains a standby state for a new operation. When the progress button 409 is pressed, the setting terminal 3 advances from YES in S107 to S108.

ステップS108では、設定端末3は、管理サーバ6のUI提供部70から提供された定常ロギング設定画面を表示装置に表示させる。具体的には、設定端末3は、進行ボタン409が押下されたことに応じて、定常ロギング設定画面のリクエストを管理サーバ6に送信する。管理サーバ6のUI提供部70は、リクエストに応答して、定常ロギング設定画面を設定端末3に提供する。これにより、設定端末3は、定常ロギング設定画面を表示装置に表示させることができる。 In step S108, the setting terminal 3 causes the display device to display the steady logging setting screen provided by the UI providing unit 70 of the management server 6. Specifically, the setting terminal 3 transmits a request for the steady logging setting screen to the management server 6 in response to the pressing of the progress button 409. The UI providing unit 70 of the management server 6 provides a steady logging setting screen to the setting terminal 3 in response to the request. As a result, the setting terminal 3 can display the steady logging setting screen on the display device.

例えば、図9に示すとおり、定常ロギング設定画面420は、タイプ表示領域421、型式表示領域422、上限表示領域423、想定表示領域424、装置表示領域408、選択リスト425、合計表示領域426、周期入力領域427、判定表示領域428、確定ボタン429、および、戻るボタン430の各UI部品で構成される。 For example, as shown in FIG. 9, the steady-state logging setting screen 420 has a type display area 421, a model display area 422, an upper limit display area 423, an assumed display area 424, a device display area 408, a selection list 425, a total display area 426, and a period. It is composed of UI components of an input area 427, a judgment display area 428, a confirmation button 429, and a back button 430.

UI提供部70は、S108までに既出の各種の情報を、定常ロギング設定画面420に反映させてもよい。例えば、UI提供部70は、タイプ表示領域421、型式表示領域422、上限表示領域423、および、装置表示領域408に、既出の情報を反映させることができる。また、UI提供部70は、選択リスト425のレジスタ名、計測項目、および、データ長の各カラムにも、既出の情報を反映させることができる。 The UI providing unit 70 may reflect various information already described up to S108 on the steady logging setting screen 420. For example, the UI providing unit 70 can reflect the existing information in the type display area 421, the model display area 422, the upper limit display area 423, and the device display area 408. Further, the UI providing unit 70 can reflect the already-existing information in each column of the register name, the measurement item, and the data length of the selection list 425.

ステップS109では、設定端末3は、定常ロギング設定画面420を介して受け付けた第2入力情報を、管理サーバ6へ送信する。第2入力情報は、例えば、以下のようにしてOT技術者によって入力される。 In step S109, the setting terminal 3 transmits the second input information received via the steady logging setting screen 420 to the management server 6. The second input information is input by the OT engineer as follows, for example.

選択リスト425のロギング対象のカラムにおいて、レジスタごとに、ロギング対象としての採否を選択可能なトグルボタンが設けられる。OT技術者は、トグルボタンを操作して、ロギング対象とする計測項目を選択する。図示の例では、ロギング対象として選択されている計測項目は、トグルボタンにチェックが入っている状態で示されている。OT技術者は、トグルボタンのオンオフ操作をして、ロギングが必要な計測項目を選択する。 In the column to be logged in the selection list 425, a toggle button for selecting acceptance or rejection as a logging target is provided for each register. The OT engineer operates the toggle button to select the measurement item to be logged. In the illustrated example, the measurement item selected as the logging target is shown with the toggle button checked. The OT technician turns the toggle button on and off to select the measurement item that requires logging.

UI提供部70は、選択リスト425のロギング対象のカラムが操作された後、選択リスト425のデータ量/回のカラムに、アップデート1回あたりに必要な通信量を計測項目ごとに反映させる。UI提供部70は、ロギング対象として選択されている、すなわち、トグルボタンがオン状態の計測項目については、予め入力されたデータ長をそのまま反映させる。UI提供部70は、ロギング対象として選択されていない、すなわち、トグルボタンがオフ状態の計測項目については、アップデートしないので、ゼロの値を反映させる。 After the column to be logged in the selection list 425 is operated, the UI providing unit 70 reflects the communication amount required for each update in the data amount / time column of the selection list 425 for each measurement item. The UI providing unit 70 reflects the data length input in advance as it is for the measurement item selected as the logging target, that is, the toggle button is on. The UI providing unit 70 does not update the measurement item that is not selected as the logging target, that is, the toggle button is off, so that the value of zero is reflected.

続いて、UI提供部70は、ロギング対象のカラムのオンオフが反映されたアップデート1回あたりの総データ量を合計表示領域426に反映させる。総データ量は、データ量/回のカラムに反映されたデータ量の合計値である。 Subsequently, the UI providing unit 70 reflects the total amount of data per update reflecting the on / off of the column to be logged in the total display area 426. The total data amount is the total value of the data amount reflected in the data amount / time column.

続いて、OT技術者は、周期入力領域427に、上述の計測値を管理サーバ6にアップロードする周期(ロギング情報)を数字で入力する。UI提供部70は、周期入力領域427に、模擬部77から取得した推奨周期で構成されたドロップダウンリストを設けてもよい。これにより、OT技術者は、選択リスト425で選択した各計測値をアップロードするためのロギング周期について、1ヶ月の通信量が通信量上限を超えないようなロギング周期を容易に設定することが可能となる。 Subsequently, the OT engineer numerically inputs the cycle (logging information) for uploading the above-mentioned measured value to the management server 6 in the cycle input area 427. The UI providing unit 70 may provide a drop-down list composed of recommended cycles acquired from the simulated unit 77 in the cycle input area 427. This allows the OT engineer to easily set a logging cycle for uploading each measurement value selected in the selection list 425 so that the monthly traffic does not exceed the traffic upper limit. It becomes.

以上のように、設定端末3は、定常ロギング設定画面420を介して受け付けた、ロギング対象として選択された計測項目と、選択された計測項目の計測値をアップロードするロギング周期とを、第2入力情報として、管理サーバ6に送信する。 As described above, the setting terminal 3 secondly inputs the measurement item selected as the logging target and the logging cycle for uploading the measurement value of the selected measurement item, which is received via the steady-state logging setting screen 420. It is transmitted to the management server 6 as information.

ステップS110では、生成部71は、S103で生成した管理タイプ定義テーブル41のロギング周期の項目に、第2入力情報に基づく値を追加する。図9に示す例では、ロギング対象として選択された計測項目は、電流、電圧、および、温度であり、ロギング周期は、5分と設定されている。したがって、図10に示す例では、生成部71は、管理タイプ定義テーブル41の電流、電圧、および、温度の行について、ロギング周期の項目に、「5分」を示す値を格納する。生成部71は、選択されなかった油圧およびトルクの行について、適用されるロギング周期がないことを示す値を格納する。 In step S110, the generation unit 71 adds a value based on the second input information to the item of the logging cycle of the management type definition table 41 generated in S103. In the example shown in FIG. 9, the measurement items selected as the logging target are current, voltage, and temperature, and the logging cycle is set to 5 minutes. Therefore, in the example shown in FIG. 10, the generation unit 71 stores a value indicating “5 minutes” in the item of the logging cycle for the current, voltage, and temperature rows of the management type definition table 41. The generator 71 stores a value indicating that there is no logging period applied for the unselected oil and torque rows.

ステップS111では、算出部72は、1ヶ月の想定通信量を算出する。算出部72は、既に述べたとおり、S110にて完成した管理タイプ定義テーブル41に含まれている、想定材料情報を用いて想定通信量を算出する。 In step S111, the calculation unit 72 calculates the estimated communication volume for one month. As already described, the calculation unit 72 calculates the estimated communication amount using the assumed material information included in the management type definition table 41 completed in S110.

ここで、UI提供部70は、算出部72によって算出された想定通信量を、設定端末3にフィードバックしてもよい。これにより、定常ロギング設定画面420の想定表示領域424に、S111で算出された想定通信量が表示される。 Here, the UI providing unit 70 may feed back the estimated communication amount calculated by the calculating unit 72 to the setting terminal 3. As a result, the estimated communication volume calculated in S111 is displayed in the assumed display area 424 of the steady logging setting screen 420.

ステップS112では、判定部73は、S104で算出された通信量上限とS111で算出された想定通信量とを比較し、想定通信量が通信量上限を超えるか否かを判定する。想定通信量が通信量上限を超える場合、判定部73は、S112のYESからS113に進む。想定通信量が通信量上限以下である場合、判定部73は、S112のNOからS114に進む。 In step S112, the determination unit 73 compares the upper limit of the communication amount calculated in S104 with the estimated communication amount calculated in S111, and determines whether or not the estimated communication amount exceeds the upper limit of the communication amount. When the assumed communication amount exceeds the communication amount upper limit, the determination unit 73 proceeds from YES in S112 to S113. When the assumed communication amount is equal to or less than the communication amount upper limit, the determination unit 73 proceeds from NO in S112 to S114.

ステップS113では、判定部73は、「上限超過」を示す判定結果を出力する。UI提供部70は、該判定結果を、判定表示領域428に反映させる。 In step S113, the determination unit 73 outputs a determination result indicating "exceeding the upper limit". The UI providing unit 70 reflects the determination result in the determination display area 428.

ステップS114では、判定部73は、「上限内」を示す判定結果を出力する。UI提供部70は、該判定結果を、判定表示領域428に反映させる。 In step S114, the determination unit 73 outputs a determination result indicating “within the upper limit”. The UI providing unit 70 reflects the determination result in the determination display area 428.

UI提供部70は、判定表示領域428の表示態様を、「上限超過」か「上限内」かで異ならせてもよい。例えば、UI提供部70は、「上限超過」の判定結果が、「上限内」の判定結果よりも目立つように判定表示領域428を構成してもよい。 The UI providing unit 70 may make the display mode of the determination display area 428 different depending on whether it is “exceeding the upper limit” or “within the upper limit”. For example, the UI providing unit 70 may configure the determination display area 428 so that the determination result of "exceeding the upper limit" is more conspicuous than the determination result of "within the upper limit".

ステップS115では、設定端末3は、UI提供部70にしたがって、上述の判定結果が反映された定常ロギング設定画面420を表示装置に表示させる。これにより、OT技術者は、自身が設定した内容で、1ヶ月の通信量が、通信量上限を超える見込みであるのかどうかを事前に判断することができる。このように、上述の方法によれば、OT技術者に、設定した内容が妥当であるのかどうかを再検討するための判断材料と機会とを与えることができる。 In step S115, the setting terminal 3 causes the display device to display the steady-state logging setting screen 420 reflecting the above-mentioned determination result according to the UI providing unit 70. As a result, the OT engineer can determine in advance whether or not the monthly communication volume is expected to exceed the communication volume upper limit according to the contents set by the OT engineer. In this way, according to the above-mentioned method, it is possible to give the OT engineer a judgment material and an opportunity to reexamine whether or not the set contents are appropriate.

ステップS116では、設定端末3は、第2入力情報に係る上述のUI部品のいずれかがOT技術者によって新たに操作されたか否かを判定する。例えば、OT技術者は、周期入力領域427のドロップダウンリストから、通信量上限を超えないようにする推奨周期を改めて選択することができる。 In step S116, the setting terminal 3 determines whether or not any of the above-mentioned UI components related to the second input information has been newly operated by the OT engineer. For example, the OT engineer can reselect the recommended cycle so as not to exceed the upper limit of the communication volume from the drop-down list of the cycle input area 427.

選択リスト425または周期入力領域427が操作されたと判定した場合、設定端末3は、S116のYESからS109に戻り、新たな操作に基づく新たな第2入力情報を管理サーバ6に送信する。この場合、新たな第2入力情報に基づく新たな判定結果が判定表示領域428に反映される。上述のような新たな操作が検知されなければ、設定端末3は、S116のNOからS117に進む。以上のように、上述の方法によれば、通信量上限を超えないような定常ロギング設定を行うよう、OT技術者を誘導することができる。 When it is determined that the selection list 425 or the periodic input area 427 has been operated, the setting terminal 3 returns from YES in S116 to S109, and transmits new second input information based on the new operation to the management server 6. In this case, a new determination result based on the new second input information is reflected in the determination display area 428. If the new operation as described above is not detected, the setting terminal 3 proceeds from NO in S116 to S117. As described above, according to the above method, it is possible to guide the OT engineer to set the steady logging setting so as not to exceed the upper limit of the communication amount.

ステップS117では、設定端末3は、第1入力情報および第2入力情報を確定させることを指示するための確定ボタン429が、上述のような操作がなされることなく押下されたのかどうかを判定する。確定ボタン429が押下されないうちは、設定端末3は、S117のNOからS116に戻り、新たな操作の待機状態を維持する。確定ボタン429が押下されると、設定端末3は、S117のYESからS118に進む。 In step S117, the setting terminal 3 determines whether or not the confirmation button 429 for instructing the confirmation of the first input information and the second input information has been pressed without performing the above-mentioned operation. .. Until the confirmation button 429 is not pressed, the setting terminal 3 returns from NO in S117 to S116 and maintains a standby state for a new operation. When the confirmation button 429 is pressed, the setting terminal 3 proceeds from YES in S117 to S118.

なお、図示していないが、ここで、管理タイプ定義画面400に戻ることを指示する戻るボタン430が押下されてもよい。この場合には、設定端末3は、S106に戻って、表示装置の表示を管理タイプ定義画面400に戻し、第1入力情報に係る新たな操作の待機状態を維持する。ここでは、UI提供部70は、定義リスト407のロギング周期のカラムにおいて、管理タイプ定義テーブル41に示されている計測項目ごとのロギング周期を反映させることができる。 Although not shown, the back button 430 instructing the user to return to the management type definition screen 400 may be pressed here. In this case, the setting terminal 3 returns to S106, returns the display of the display device to the management type definition screen 400, and maintains a standby state for a new operation related to the first input information. Here, the UI providing unit 70 can reflect the logging cycle for each measurement item shown in the management type definition table 41 in the logging cycle column of the definition list 407.

ステップS118では、設定端末3は、第1入力情報および第2入力情報を確定させるように、リクエストを管理サーバ6に送信する。 In step S118, the setting terminal 3 transmits a request to the management server 6 so as to confirm the first input information and the second input information.

ステップS119では、生成部71は、リクエストに応答して、ロギング周期が追加されて完成した管理タイプ定義テーブル41を管理タイプDB81に登録する。このとき、生成部71は、管理タイプ定義テーブル41を顧客IDと紐付けて管理タイプDB81に登録する。 In step S119, the generation unit 71 registers the management type definition table 41 completed by adding the logging cycle in the management type DB 81 in response to the request. At this time, the generation unit 71 associates the management type definition table 41 with the customer ID and registers it in the management type DB 81.

〔納品後の登録フェーズ〕
ゲートウェイ装置1が顧客200に納品されると、上述の準備フェーズが完了した後、データ収集システム100において、ゲートウェイ装置1と管理タイプとを対応付けるための、ゲートウェイ装置1の登録フェーズが開始される。
[Registration phase after delivery]
When the gateway device 1 is delivered to the customer 200, after the above-mentioned preparation phase is completed, the registration phase of the gateway device 1 for associating the gateway device 1 with the management type is started in the data collection system 100.

登録フェーズでは、OT技術者は、個々のゲートウェイ装置1をどの製造ラインのどの工程に設置されているPLC2に取り付けるのかを設計する。そして、OT技術者は、設計内容にしたがって、設定端末3を操作して、個々のゲートウェイ装置1に管理タイプを紐付けるという装置の登録作業を行う。データ収集システム100は、例えば以下のようにして、OT技術者の登録作業を支援する。 In the registration phase, the OT engineer designs which individual gateway device 1 is attached to the PLC 2 installed in which process of which production line. Then, the OT engineer operates the setting terminal 3 according to the design contents to perform the device registration work of associating the management type with each gateway device 1. The data collection system 100 supports the registration work of the OT engineer, for example, as follows.

図11は、登録フェーズにおいて、設定端末3の表示装置に表示される装置登録画面の一例を示す図である。図12は、装置登録DB82のデータ構造を示す図である。 FIG. 11 is a diagram showing an example of a device registration screen displayed on the display device of the setting terminal 3 in the registration phase. FIG. 12 is a diagram showing a data structure of the device registration DB 82.

OT技術者は、設定端末3を使って管理サーバ6にアクセスし、ゲートウェイ装置1の登録作業を行うための装置登録画面を設定端末3に表示させる。管理サーバ6のUI提供部70は、設定端末3からリクエストに応答して、例えば、図11に示す装置登録画面440を設定端末3に提供する。 The OT engineer accesses the management server 6 using the setting terminal 3 and causes the setting terminal 3 to display a device registration screen for performing the registration work of the gateway device 1. The UI providing unit 70 of the management server 6 responds to the request from the setting terminal 3 and provides, for example, the device registration screen 440 shown in FIG. 11 to the setting terminal 3.

装置登録画面440は、一例として、ID入力領域441、タイプ入力領域442、場所入力領域443、登録ボタン444、装置リスト445、および、完了ボタン446の各UI部品を含んで構成される。 The device registration screen 440 is configured to include, for example, each UI component of the ID input area 441, the type input area 442, the location input area 443, the registration button 444, the device list 445, and the completion button 446.

OT技術者は、装置登録画面440を用いて、納品されたゲートウェイ装置1の登録作業を行う。まず、OT技術者は、1台のゲートウェイ装置1の装置IDを、ID入力領域441に入力する。OT技術者は、手動で装置IDを入力してもよいし、設定端末3の適宜の情報読取手段を用いて設定端末3に装置IDを読み取らせてもよい。例えば、情報読取手段としては、Bluetooth(登録商標)、赤外線またはRFIDタグなどの近距離無線通信手段、もしくは、バーコードリーダ、2次元コードリーダまたは文字認識手段、などの光学的読取手段などが想定される。 The OT engineer performs the registration work of the delivered gateway device 1 by using the device registration screen 440. First, the OT engineer inputs the device ID of one gateway device 1 into the ID input area 441. The OT engineer may manually input the device ID, or may have the setting terminal 3 read the device ID using an appropriate information reading means of the setting terminal 3. For example, as the information reading means, a short-range wireless communication means such as Bluetooth (registered trademark), infrared rays or RFID tags, or an optical reading means such as a bar code reader, a two-dimensional code reader or a character recognition means is assumed. Will be done.

OT技術者は、タイプ入力領域442のドロップダウンリストに示される、先の準備フェーズにて定義済みの管理タイプの中から、上述のゲートウェイ装置1に適用する管理タイプを選択する。 The OT engineer selects the management type to be applied to the gateway device 1 described above from the management types defined in the previous preparation phase shown in the drop-down list of the type input area 442.

OT技術者は、場所入力領域443のドロップダウンリストから、上述のゲートウェイ装置1を取り付ける製造ラインを選択する。なお、顧客200の製造ラインの一覧は、事前に管理サーバ6に登録されているものとする。UI提供部70は、事前に登録された情報に基づいて、場所入力領域443のドロップダウンリストを構成することができる。 The OT technician selects the manufacturing line to which the gateway device 1 described above is installed from the drop-down list of the location input area 443. It is assumed that the list of the production lines of the customer 200 is registered in the management server 6 in advance. The UI providing unit 70 can configure a drop-down list of the location input area 443 based on the information registered in advance.

OT技術者は、ID入力領域441、タイプ入力領域442および場所入力領域443の入力が完了すると、登録ボタン444を押下する。この操作を受け付けた設定端末3は、装置ID、管理タイプ名、および、設置場所(ここでは、工場名と製造ライン名との組み合わせ)を含む第3入力情報を、管理サーバ6に送信する。 The OT engineer presses the registration button 444 when the input of the ID input area 441, the type input area 442, and the location input area 443 is completed. The setting terminal 3 that has received this operation transmits the third input information including the device ID, the management type name, and the installation location (here, the combination of the factory name and the production line name) to the management server 6.

管理サーバ6の登録部74は、第3入力情報に基づいて、装置情報を生成し、生成した装置情報を装置登録DB82に登録する。具体的には、登録部74は、不図示の販売リストから、第3入力情報に含まれている装置IDに対応する顧客IDを読み出す。登録部74は、上述の装置IDに、読み出した顧客IDと、第3入力情報に含まれている管理タイプ名および設置場所とを紐付けた装置情報を生成し、装置登録DB82に登録する。図12に示すとおり、装置登録DB82は、複数の装置情報を集積して構成される。 The registration unit 74 of the management server 6 generates device information based on the third input information, and registers the generated device information in the device registration DB 82. Specifically, the registration unit 74 reads the customer ID corresponding to the device ID included in the third input information from the sales list (not shown). The registration unit 74 generates device information in which the read customer ID is associated with the management type name and installation location included in the third input information, and registers the device ID in the device registration DB 82. As shown in FIG. 12, the device registration DB 82 is configured by accumulating a plurality of device information.

登録部74が1台のゲートウェイ装置1の登録を完了すると、UI提供部70は、装置登録DB82の更新内容を、装置登録画面440に反映させてもよい。例えば、UI提供部70は、装置登録画面440に設けられている装置リスト445に、新たに登録されたゲートウェイ装置1のレコードを追加してもよい。図11に示す例は、装置ID「GW0001」から「GW003」までの3台のゲートウェイ装置1の管理サーバ6への登録が完了しており、これから4台目のゲートウェイ装置1が登録されてようとしている状態を示している。 When the registration unit 74 completes the registration of one gateway device 1, the UI providing unit 70 may reflect the updated content of the device registration DB 82 on the device registration screen 440. For example, the UI providing unit 70 may add a record of the newly registered gateway device 1 to the device list 445 provided on the device registration screen 440. In the example shown in FIG. 11, the registration of the three gateway devices 1 from the device IDs "GW0001" to "GW003" to the management server 6 has been completed, and the fourth gateway device 1 will be registered from now on. It shows the state of.

OT技術者は、すべてのゲートウェイ装置1について登録作業を済ませると完了ボタン446を押下する。設定端末3は、完了ボタン446が押下されたことに伴って登録作業の完了を管理サーバ6に対して通知してもよい。登録部74は、完了の通知を受信すると、装置登録DB82に登録した内容を最終的に確定させる。 The OT engineer presses the completion button 446 when the registration work for all the gateway devices 1 is completed. The setting terminal 3 may notify the management server 6 of the completion of the registration work when the completion button 446 is pressed. Upon receiving the completion notification, the registration unit 74 finally finalizes the contents registered in the device registration DB 82.

これにより、供給部75は、図12に示す装置登録DB82を参照して、装置IDに基づき、ゲートウェイ装置1を所有する顧客と、該ゲートウェイ装置1に適用されている管理タイプと、該ゲートウェイ装置1が取り付けられている設置場所とを特定できる。 As a result, the supply unit 75 refers to the device registration DB 82 shown in FIG. 12, based on the device ID, the customer who owns the gateway device 1, the management type applied to the gateway device 1, and the gateway device. The installation location where 1 is installed can be specified.

〔取り付け直後の初期設定フェーズ〕
OT技術者によって、納品された各ゲートウェイ装置1の登録作業が完了し、各ゲートウェイ装置1が各PLC2と結線されると、ゲートウェイ装置1の初期設定フェーズが開始される。
[Initial setting phase immediately after installation]
When the registration work of each of the delivered gateway devices 1 is completed by the OT engineer and each gateway device 1 is connected to each PLC 2, the initial setting phase of the gateway device 1 is started.

初期設定フェーズでは、OT技術者は、ゲートウェイ装置1をPLC2と1対1になるように取り付ける作業を行って電源を入れるだけでよい。ゲートウェイ装置1は、OT技術者の手を煩わせることなく自動で初期設定を済ませて、通常の稼動、つまり、定常ロギングの動作を開始することができる。 In the initial setup phase, the OT technician only needs to install the gateway device 1 on a one-to-one basis with the PLC 2 and turn on the power. The gateway device 1 can automatically complete the initial settings without bothering the OT engineer and start normal operation, that is, steady logging operation.

図13は、初期設定フェーズにおいて、データ収集システム100の各装置が実行する処理の流れを示すフローチャートである。図13に示す一連の処理は、ステップHS1にて、OT技術者が、ゲートウェイ装置1を収容ボックス2Aに取り付け、PLC2に有線接続し、ゲートウェイ装置1およびPLC2の電源を投入したことにより開始される。 FIG. 13 is a flowchart showing a flow of processing executed by each device of the data collection system 100 in the initial setting phase. The series of processes shown in FIG. 13 is started by the OT engineer attaching the gateway device 1 to the accommodation box 2A, making a wired connection to the PLC 2, and turning on the power of the gateway device 1 and the PLC 2 in step HS1. ..

ステップS201では、ゲートウェイ装置1の制御部21は、初めて電源が入れられたか否かを判定する。初めて電源が入れられた場合、制御部21は、S201のYESからS202に進む。電源が入れられたのが初めてでない場合、制御部21は、S201のNOからS209に進み、PLC2との通信を確立して定常ロギングを実行する。 In step S201, the control unit 21 of the gateway device 1 determines whether or not the power is turned on for the first time. When the power is turned on for the first time, the control unit 21 proceeds from YES in S201 to S202. If this is not the first time the power has been turned on, the control unit 21 proceeds from NO in S201 to S209 to establish communication with PLC2 and perform steady logging.

ステップS202では、制御部21の定義取得部31は、自装置に適用される管理タイプ定義テーブルを要求するリクエストを、管理サーバ6に送信する。具体的には、定義取得部31は、アンテナ部10および専用通信回線網7を介して管理サーバ6との通信を確立し、自装置の装置IDを含むリクエストを管理サーバ6に送信する。 In step S202, the definition acquisition unit 31 of the control unit 21 transmits a request for the management type definition table applied to the own device to the management server 6. Specifically, the definition acquisition unit 31 establishes communication with the management server 6 via the antenna unit 10 and the dedicated communication network 7, and transmits a request including the device ID of the own device to the management server 6.

ステップS203では、管理サーバ6の供給部75は、ゲートウェイ装置1から装置IDを含むリクエストを受信する。 In step S203, the supply unit 75 of the management server 6 receives the request including the device ID from the gateway device 1.

ステップS204では、供給部75は、図12に示す装置登録DB82を参照し、受信した装置IDに基づいて、要求元のゲートウェイ装置1の所有者である顧客と、該ゲートウェイ装置1に適用すべき管理タイプとを特定する。すなわち、装置登録DB82において、上述の装置IDに紐付けられた顧客IDと管理タイプ名とを抽出する。 In step S204, the supply unit 75 should refer to the device registration DB 82 shown in FIG. 12 and apply it to the customer who is the owner of the requesting gateway device 1 and the gateway device 1 based on the received device ID. Identify the management type. That is, in the device registration DB 82, the customer ID and the management type name associated with the above device ID are extracted.

ステップS205では、供給部75は、図10に示す管理タイプDB81から、S204で抽出した顧客IDおよび管理タイプ名に紐付けられた管理タイプ定義テーブル41を読み出し、要求元のゲートウェイ装置1に供給する。 In step S205, the supply unit 75 reads the management type definition table 41 associated with the customer ID and the management type name extracted in S204 from the management type DB 81 shown in FIG. 10 and supplies the management type definition table 41 to the request source gateway device 1. ..

ステップS206では、ゲートウェイ装置1の定義取得部31は、供給部75から送信された管理タイプ定義テーブル41を受信し、記憶部22に保存する。 In step S206, the definition acquisition unit 31 of the gateway device 1 receives the management type definition table 41 transmitted from the supply unit 75 and stores it in the storage unit 22.

ステップS207では、初期設定部32は、保存された管理タイプ定義テーブル41を参照し、管理タイプ定義テーブル41に含まれているPLC型式の項目に基づいて、自装置の接続相手であるPLC2の型式を特定する。 In step S207, the initial setting unit 32 refers to the saved management type definition table 41, and based on the PLC model items included in the management type definition table 41, the model of the PLC2 to which the own device is connected is modeled. To identify.

ステップS208では、初期設定部32は、特定したPLCの型式に対応するドライバ情報42(通信プログラム)を選択し、これを有効化する。記憶部22には、ゲートウェイ装置1が複数の型式のPLCに対応できるように複数のドライバ情報42があらかじめ格納されている。初期設定部32は、自装置の接続相手であるPLC2に適合するドライバ情報42を1つ選択してこれを有効化するだけでよい。これにより、制御部21は、通信I/F24を介して、接続相手であるPLC2が採用している通信プロトコルに準拠した通信が行えるようになる。なお、初期設定部32は、ここで、管理サーバ6と通信し、PLC2に適合するドライバ情報を管理サーバ6からダウンロードしてもよい。 In step S208, the initial setting unit 32 selects the driver information 42 (communication program) corresponding to the specified PLC model and activates the driver information 42 (communication program). A plurality of driver information 42s are stored in advance in the storage unit 22 so that the gateway device 1 can correspond to a plurality of types of PLCs. The initial setting unit 32 need only select one driver information 42 that matches the PLC 2 to which the device is connected and activate it. As a result, the control unit 21 can perform communication compliant with the communication protocol adopted by the connection partner PLC2 via the communication I / F 24. Here, the initial setting unit 32 may communicate with the management server 6 and download the driver information conforming to the PLC 2 from the management server 6.

ステップS209では、計測値取得部33は、有効化されたドライバ情報42に基づいて、PLC2との通信を確立する。これ以降、計測値取得部33は、管理タイプ定義テーブル41において定義された、PLC2の各レジスタに格納されている値を、所定間隔で取得してリングバッファ43に記憶する動作を実行することができる。 In step S209, the measured value acquisition unit 33 establishes communication with the PLC 2 based on the activated driver information 42. After that, the measurement value acquisition unit 33 may execute an operation of acquiring the values stored in each register of PLC2 defined in the management type definition table 41 at predetermined intervals and storing them in the ring buffer 43. it can.

〔定常ロギングフェーズ〕
PLC2に接続されたゲートウェイ装置1が初期設定を完了させると、ゲートウェイ装置1の定常ロギングフェーズが開始される。定常ロギングフェーズでは、ゲートウェイ装置1は、管理タイプ定義テーブル41にしたがって、PLC2から1以上の計測値を取得する一方、取得した計測値を、管理サーバ6にアップロードする。
[Steady logging phase]
When the gateway device 1 connected to the PLC 2 completes the initial setting, the steady logging phase of the gateway device 1 is started. In the steady logging phase, the gateway device 1 acquires one or more measured values from PLC2 according to the management type definition table 41, and uploads the acquired measured values to the management server 6.

図14は、定常ロギングフェーズにおいて、データ収集システム100の各装置が実行する処理の流れを示すフローチャートである。図15は、ログ情報のデータ構造を示す図である。図16は、ログDB83のデータ構造を示す図である。 FIG. 14 is a flowchart showing a flow of processing executed by each device of the data collection system 100 in the steady logging phase. FIG. 15 is a diagram showing a data structure of log information. FIG. 16 is a diagram showing a data structure of the log DB 83.

図14に示す一連の処理は、上述の初期設定フェーズ以降、ゲートウェイ装置1およびPLC2の電源が入っている間、繰り返し実行される。 The series of processes shown in FIG. 14 is repeatedly executed after the above-mentioned initial setting phase while the gateway device 1 and the PLC 2 are powered on.

ステップS301では、ゲートウェイ装置1およびPLC2の電源が入ると、制御部21が通信I/F24を介してPLC2との通信を確立する。ここで、ログ送信部34は、管理タイプ定義テーブル41において定義されているロギング周期にしたがって、ログ情報のアップロードタイミングの監視を開始する。 In step S301, when the power of the gateway device 1 and the PLC 2 is turned on, the control unit 21 establishes the communication with the PLC 2 via the communication I / F 24. Here, the log transmission unit 34 starts monitoring the upload timing of the log information according to the logging cycle defined in the management type definition table 41.

ステップS302では、計測値取得部33は、管理タイプ定義テーブル41において定義されている各レジスタから計測値をそれぞれ取得する。 In step S302, the measurement value acquisition unit 33 acquires the measurement value from each register defined in the management type definition table 41.

ステップS303では、計測値取得部33は、取得した各計測値をリングバッファ43に保存する。 In step S303, the measurement value acquisition unit 33 stores each acquired measurement value in the ring buffer 43.

ステップS304では、ログ送信部34は、ログ情報のアップロードタイミングが到来したか否かを判定する。アップロードタイミングが到来しない間は、計測値取得部33は、S304のNOからS302に戻り、S302およびS303の処理を繰り返す。この繰り返しの間隔は、例えば、上述のロギング周期よりも短い。アップロードタイミングが到来した場合、ログ送信部34は、S304のYESからS305に進む。 In step S304, the log transmission unit 34 determines whether or not the upload timing of the log information has arrived. While the upload timing does not arrive, the measured value acquisition unit 33 returns from NO in S304 to S302, and repeats the processes of S302 and S303. The interval of this repetition is, for example, shorter than the logging cycle described above. When the upload timing has arrived, the log transmission unit 34 proceeds from YES in S304 to S305.

ステップS305では、ログ送信部34は、アップロードタイミングにおいて、リングバッファ43から最新の各計測値を読み出し、これらの計測値を含むログ情報を生成し、管理サーバ6にアップロードする。 In step S305, the log transmission unit 34 reads the latest measured values from the ring buffer 43 at the upload timing, generates log information including these measured values, and uploads the log information to the management server 6.

具体的には、ログ送信部34は、管理タイプ定義テーブル41において、ロギング対象として指定されている計測項目の計測値をリングバッファ43から読み出す。図10に示す例では、管理タイプ定義テーブル41において、レジスタ1の電流、レジスタ2の電圧、および、レジスタ5の温度、の3つの計測項目が、ロギング対象として指定されている。ロギング対象は、一例として、ロギング周期の項目が「なし」ではなく所定周期(例えば、「5分」)と指定されていることで判別される。 Specifically, the log transmission unit 34 reads the measurement value of the measurement item designated as the logging target in the management type definition table 41 from the ring buffer 43. In the example shown in FIG. 10, in the management type definition table 41, three measurement items of the current of the register 1, the voltage of the register 2, and the temperature of the register 5 are designated as logging targets. As an example, the logging target is determined by the fact that the item of the logging cycle is specified as a predetermined cycle (for example, "5 minutes") instead of "none".

ログ送信部34は、リングバッファ43に保存されている計測値のうち、アップロードタイミングにおいて最新の計測値をリングバッファ43から読み出す。一例として、ログ送信部34は、レジスタ1の電流の計測値「A1」と、レジスタ2の電圧の計測値「V1」と、レジスタ5の温度の計測値「T1」とをリングバッファ43から読み出す。 The log transmission unit 34 reads the latest measured value from the ring buffer 43 at the upload timing among the measured values stored in the ring buffer 43. As an example, the log transmission unit 34 reads the measured value "A1" of the current of the register 1, the measured value "V1" of the voltage of the register 2, and the measured value "T1" of the temperature of the register 5 from the ring buffer 43. ..

ログ送信部34は、図15に示すログ情報を生成する。図15に示すとおり、ログ情報は、読み出したレジスタごとの計測値を含む。ログ送信部34は、各計測値に、レジスタ名および計測項目の少なくとも1つを紐付けておくことが好ましい。さらに、ログ送信部34は、リングバッファ43から読み出した時刻またはアップロードする時刻を示す時刻情報と、自装置の装置IDとをログ情報に含めることが好ましい。ログ送信部34は、こうして生成した図15に示すログ情報を、専用通信回線網7を介して、管理サーバ6にアップロードする。 The log transmission unit 34 generates the log information shown in FIG. As shown in FIG. 15, the log information includes the measured value for each read register. The log transmission unit 34 preferably associates each measured value with at least one of a register name and a measured item. Further, it is preferable that the log transmission unit 34 includes the time information indicating the time of reading from the ring buffer 43 or the time of uploading and the device ID of its own device in the log information. The log transmission unit 34 uploads the log information shown in FIG. 15 thus generated to the management server 6 via the dedicated communication network 7.

ステップS306では、管理サーバ6のログ管理部76は、ゲートウェイ装置1からログ情報を受信する。 In step S306, the log management unit 76 of the management server 6 receives the log information from the gateway device 1.

ステップS307では、ログ管理部76は、図12に示す装置登録DB82を参照し、ログ情報に含まれている装置IDに基づいて、このログ情報を取得された顧客と設置場所(工場および製造ライン)とを特定する。ログ管理部76は、さらに、管理タイプを特定することができる。管理タイプを特定することで、さらに、製造ラインのどの工程のログ情報であるのかまで特定することができる。 In step S307, the log management unit 76 refers to the device registration DB 82 shown in FIG. 12, and based on the device ID included in the log information, the log management unit 76 obtains this log information from the customer and the installation location (factory and manufacturing line). ) And identify. The log management unit 76 can further specify the management type. By specifying the control type, it is possible to further specify which process of the production line is the log information.

ステップS308では、ログ管理部76は、ログ情報を図16に示すログDB83に登録する。例えば、ログ管理部76は、図16に示すように、図15に示すログ情報に、S307で特定した顧客ID、設置場所、管理タイプ名を紐付けて、ログDB83に登録する。ログ管理部76は、ログ情報内の時刻情報に基づいて、各ログ情報を時系列で登録しておく。また、ログ管理部76は、登録時に、レジスタ名に1対1で対応する計測項目のカラムを追加してもよい。 In step S308, the log management unit 76 registers the log information in the log DB 83 shown in FIG. For example, as shown in FIG. 16, the log management unit 76 associates the log information shown in FIG. 15 with the customer ID, installation location, and management type name specified in S307, and registers the log information in the log DB 83. The log management unit 76 registers each log information in chronological order based on the time information in the log information. Further, the log management unit 76 may add a column of measurement items corresponding to the register name on a one-to-one basis at the time of registration.

このようにして、ログ情報が、ログDB83に登録され、集積されることにより、制御部60は、顧客200の設定端末3から要求に応じて、時系列に整頓されたログ情報群を分かり易く提供することができる。 By registering and accumulating the log information in the log DB 83 in this way, the control unit 60 can easily understand the log information group organized in time series in response to a request from the setting terminal 3 of the customer 200. Can be provided.

〔変形例〕
上述した実施形態では、管理サーバ6において、ゲートウェイ装置1の管理タイプ定義テーブルを生成して、ゲートウェイ装置1へ供給するとともに、ゲートウェイ装置1がPLC2からのデータを受信していた。本発明は、これに限られるものではなく、ゲートウェイ装置1の管理タイプ定義テーブルの生成およびゲートウェイ装置1への供給と、ゲートウェイ装置1がPLC2から取得したデータの受信および記憶とを、異なるサーバで行ってもよい。すなわち、サーバAが、ゲートウェイ装置1の管理タイプ定義テーブルを生成して、ゲートウェイ装置1へ供給する等の、ゲートウェイ装置1の設定に関する処理を行い、サーバAとは異なるサーバBが、ゲートウェイ装置1がPLC2から取得したデータを、ゲートウェイ装置1から受信してもよい。
[Modification example]
In the above-described embodiment, the management server 6 generates the management type definition table of the gateway device 1 and supplies the management type definition table to the gateway device 1, and the gateway device 1 receives the data from the PLC 2. The present invention is not limited to this, and the generation of the management type definition table of the gateway device 1 and the supply to the gateway device 1 and the reception and storage of the data acquired by the gateway device 1 from the PLC 2 are performed by different servers. You may go. That is, the server A generates the management type definition table of the gateway device 1 and supplies it to the gateway device 1, and performs processing related to the setting of the gateway device 1, and the server B different from the server A is the gateway device 1. May receive the data acquired from the PLC 2 from the gateway device 1.

以上のように、本実施形態に係るデータ収集システム100では、サービスプロバイダ300が、ゲートウェイ装置1本体、固有の識別番号が付与され、通信を行うためのSIMであって取得データの送信元の特定に利用できるSIM、通信回線を利用するためのブロバイダ契約、管理サーバ6、ダッシュボードを提供する設定端末3、設定端末3を利用した設定ツール等のユーザがIoT化することに必要なサービスを全て提供することが可能である。これにより、サービスプロバイダ300は、データ収集システム100全体を網羅することができ、これにより、ゲートウェイ装置1と管理サーバ6との通信量を最小限に抑制しつつ、必要なデータを取得、管理できるシステムを提供することができる。 As described above, in the data collection system 100 according to the present embodiment, the service provider 300 is a SIM for communicating with the gateway device 1 main body and a unique identification number, and identifies the source of the acquired data. SIM that can be used for, provider contract for using communication line, management server 6, setting terminal 3 that provides a dashboard, setting tool that uses setting terminal 3, etc. All services necessary for users to make IoT It is possible to provide. As a result, the service provider 300 can cover the entire data collection system 100, thereby acquiring and managing necessary data while minimizing the amount of communication between the gateway device 1 and the management server 6. The system can be provided.

〔ソフトウェアによる実現例〕
ゲートウェイ装置1の制御ブロック(特に、定義取得部31、初期設定部32、計測値取得部33、および、ログ送信部34)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of realization by software]
The control block of the gateway device 1 (particularly, the definition acquisition unit 31, the initial setting unit 32, the measurement value acquisition unit 33, and the log transmission unit 34) is a logic circuit (hardware) formed in an integrated circuit (IC chip) or the like. ) Or software.

管理サーバ6の制御ブロック(特に、UI提供部70、生成部71、算出部72、判定部73、登録部74、供給部75、ログ管理部76、および、模擬部77)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。 The control block of the management server 6 (in particular, the UI providing unit 70, the generation unit 71, the calculation unit 72, the determination unit 73, the registration unit 74, the supply unit 75, the log management unit 76, and the simulation unit 77) is an integrated circuit (in particular). It may be realized by a logic circuit (hardware) formed in an IC chip or the like, or may be realized by software.

後者の場合、ゲートウェイ装置1および管理サーバ6のそれぞれは、各機能を実現するソフトウェアであるプログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば少なくとも1つのプロセッサ(制御装置)を備えていると共に、上記プログラムを記憶したコンピュータ読み取り可能な少なくとも1つの記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路などを用いることができる。また、上記プログラムを展開するRAM(Random Access Memory)などをさらに備えていてもよい。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 In the latter case, each of the gateway device 1 and the management server 6 includes a computer that executes a program instruction, which is software that realizes each function. This computer includes, for example, at least one processor (control device) and at least one computer-readable recording medium that stores the program. Then, in the computer, the processor reads the program from the recording medium and executes it, thereby achieving the object of the present invention. As the processor, for example, a CPU (Central Processing Unit) can be used. As the recording medium, a "non-temporary tangible medium", for example, a ROM (Read Only Memory) or the like, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. Further, a RAM (Random Access Memory) for expanding the above program may be further provided. Further, the program may be supplied to the computer via an arbitrary transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program. It should be noted that one aspect of the present invention can also be realized in the form of a data signal embedded in a carrier wave, in which the above program is embodied by electronic transmission.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and the embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical means disclosed in each embodiment.

1 ゲートウェイ装置
2 PLC
2A 収容ボックス
3 設定端末
4 FA機器
5 センサ
6 管理サーバ
10 アンテナ部
11 通信モジュール
12 LTEアンテナ
13 メモリ
14 GPS
15 タクトスイッチ
16 LED
17 コネクタ部
18 フラットケーブル
20 本体部
21 制御部
22 記憶部
23 コネクタ部
24 通信インタフェース(I/F)
25 シリアルデータバス
31 定義取得部
32 初期設定部
33 計測値取得部(データ取得部)
34 ログ送信部(データ送信部)
41 管理タイプ定義テーブル
42 ドライバ情報
43 リングバッファ
60 制御部
61 記憶部
62 通信部
70 ユーザインタフェース(UI)提供部
71 生成部
72 算出部
73 判定部
74 登録部
75 供給部
76 ログ管理部
77 模擬部
100 データ収集システム
1 Gateway device 2 PLC
2A Storage box 3 Setting terminal 4 FA device 5 Sensor 6 Management server 10 Antenna part 11 Communication module 12 LTE antenna 13 Memory 14 GPS
15 tact switch 16 LED
17 Connector part 18 Flat cable 20 Main body part 21 Control part 22 Storage part 23 Connector part 24 Communication interface (I / F)
25 Serial data bus 31 Definition acquisition unit 32 Initial setting unit 33 Measured value acquisition unit (data acquisition unit)
34 Log transmission unit (data transmission unit)
41 Management type definition table 42 Driver information 43 Ring buffer 60 Control unit 61 Storage unit 62 Communication unit 70 User interface (UI) provider 71 Generation unit 72 Calculation unit 73 Judgment unit 74 Registration unit 75 Supply unit 76 Log management unit 77 Simulation unit 100 data collection system

Claims (11)

PLC(Programmable Logic Controller)からデータを取得し、取得したデータを管理サーバに送信するゲートウェイ装置であって、
前記PLCを特定するPLC特定情報、該PLCから取得するデータを特定するデータ特定情報、および前記管理サーバに送信する周期であるロギング周期を特定するロギング情報を前記管理サーバから取得する定義取得部と、
前記PLC特定情報に基づいて前記PLCとの通信を行うための通信プロトコルに従った通信プログラムを有効化する初期設定部と、
前記データ特定情報によって特定されるデータを、前記通信プログラムを用いて前記PLCから取得するデータ取得部と、
前記データ取得部が取得した前記データを、前記ロギング情報によって特定される前記ロギング周期に従って前記管理サーバに送信するデータ送信部と、を備えていることを特徴とするゲートウェイ装置。
A gateway device that acquires data from a PLC (Programmable Logic Controller) and sends the acquired data to a management server.
A definition acquisition unit that acquires PLC specific information that identifies the PLC, data identification information that identifies data acquired from the PLC, and logging information that specifies a logging cycle that is a cycle of transmission to the management server. ,
An initial setting unit that activates a communication program according to a communication protocol for communicating with the PLC based on the PLC specific information, and an initial setting unit.
A data acquisition unit that acquires data specified by the data identification information from the PLC using the communication program, and a data acquisition unit.
A gateway device including a data transmission unit that transmits the data acquired by the data acquisition unit to the management server according to the logging cycle specified by the logging information.
前記データの取得先として想定されるPLCそれぞれに対応する通信プログラムそれぞれを予め格納する記憶部を備え、
前記初期設定部は、前記記憶部に格納されている前記通信プログラムのうち、前記PLC特定情報によって特定されるPLCとの通信を行うための通信プログラムを有効化することを特徴とする請求項1に記載のゲートウェイ装置。
It is provided with a storage unit that stores each communication program corresponding to each PLC assumed as a data acquisition destination in advance.
The initial setting unit is characterized in that, among the communication programs stored in the storage unit, the communication program for performing communication with the PLC specified by the PLC specific information is activated. The gateway device described in.
PLCからデータを取得するゲートウェイ装置から当該データを受信する管理サーバであって、
前記ゲートウェイ装置と、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報とを対応付けて格納する記憶部と、
前記ゲートウェイ装置の要求に基づいて、前記PLC特定情報、前記データ特定情報、および前記ロギング情報を当該ゲートウェイ装置に供給する供給部と、を備えていることを特徴とする管理サーバ。
A management server that receives the data from the gateway device that acquires the data from the PLC.
The gateway device, PLC specific information that identifies the PLC connected to the gateway device, data identification information that identifies the data that the gateway device acquires from the PLC, and the gateway device that sends the data to the management server. A storage unit that stores logging information that specifies the logging cycle, which is the transmission cycle, in association with each other.
A management server including a PLC specific information, a data specific information, and a supply unit for supplying the logging information to the gateway device based on a request of the gateway device.
PLCからデータを取得し、当該データを管理サーバへ送信するゲートウェイ装置が用いる設定ファイルを設定する設定端末であって、
前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報の設定を受け付ける受付部と、
前記受付部が受け付けた内容を前記管理サーバに送信する設定送信部と、を備えていることを特徴とする設定端末。
It is a setting terminal that sets the setting file used by the gateway device that acquires data from the PLC and sends the data to the management server.
The PLC specific information that identifies the PLC connected to the gateway device, the data identification information that identifies the data acquired from the PLC by the gateway device, and the cycle in which the gateway device transmits the data to the management server. A reception unit that accepts settings for logging information that specifies the logging cycle,
A setting terminal including a setting transmission unit that transmits the contents received by the reception unit to the management server.
PLCからデータを取得し、取得したデータを管理サーバに送信するゲートウェイ装置の制御方法であって、
前記PLCを特定するPLC特定情報、該PLCから取得するデータを特定するデータ特定情報、および前記管理サーバに送信する周期であるロギング周期を特定するロギング情報を前記管理サーバから取得する定義取得ステップと、
前記PLC特定情報に基づいて前記PLCとの通信を行うための通信プロトコルに従った通信プログラムを有効化する初期設定ステップと、
前記データ特定情報によって特定されるデータを、前記通信プログラムを用いて前記PLCから取得するデータ取得ステップと、
前記データ取得ステップで取得した前記データを、前記ロギング情報によって特定される前記ロギング周期に従って前記管理サーバに送信するデータ送信ステップと、を含むことを特徴とするゲートウェイ装置の制御方法。
It is a control method of the gateway device that acquires data from PLC and sends the acquired data to the management server.
With the definition acquisition step of acquiring the PLC specific information for specifying the PLC, the data identification information for specifying the data acquired from the PLC, and the logging information for specifying the logging cycle which is the cycle to be transmitted to the management server. ,
An initial setting step for activating a communication program according to a communication protocol for communicating with the PLC based on the PLC specific information, and an initial setting step.
A data acquisition step of acquiring data specified by the data identification information from the PLC using the communication program, and
A control method for a gateway device, comprising: a data transmission step of transmitting the data acquired in the data acquisition step to the management server according to the logging cycle specified by the logging information.
PLCからデータを取得するゲートウェイ装置から当該データを受信する管理サーバの制御方法であって、
前記ゲートウェイ装置と、前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報とを対応付けて格納する記憶部を備え、
前記ゲートウェイ装置の要求を受け付ける受付ステップと、
前記要求に基づいて、前記PLC特定情報、前記データ特定情報、および前記ロギング情報を当該ゲートウェイ装置に送信する情報送信ステップと、を含むことを特徴とする管理サーバの制御方法。
It is a control method of the management server that receives the data from the gateway device that acquires the data from the PLC.
The gateway device, PLC specific information that identifies the PLC connected to the gateway device, data identification information that identifies the data that the gateway device acquires from the PLC, and the gateway device that sends the data to the management server. It is equipped with a storage unit that stores logging information that specifies the logging cycle, which is the cycle of transmission, in association with the logging information.
The reception step for accepting the request of the gateway device and
A control method of a management server, comprising: an information transmission step of transmitting the PLC specific information, the data specific information, and the logging information to the gateway device based on the request.
PLCからデータを取得し、当該データを管理サーバへ送信するゲートウェイ装置が用いる設定ファイルを設定する設定端末の制御方法であって、
前記ゲートウェイ装置に接続された前記PLCを特定するPLC特定情報、前記ゲートウェイ装置が該PLCから取得するデータを特定するデータ特定情報、および前記ゲートウェイ装置が前記管理サーバに前記データを送信する周期であるロギング周期を特定するロギング情報の設定を受け付ける受付ステップと、
前記受付ステップが受け付けた内容を前記管理サーバに送信する設定送信ステップと、を含むことを特徴とする設定端末の制御方法。
It is a control method of a setting terminal that sets a setting file used by a gateway device that acquires data from a PLC and sends the data to a management server.
The PLC specific information that identifies the PLC connected to the gateway device, the data identification information that identifies the data acquired from the PLC by the gateway device, and the cycle in which the gateway device transmits the data to the management server. A reception step that accepts settings for logging information that specifies the logging cycle, and
A method for controlling a setting terminal, which includes a setting transmission step of transmitting the contents received by the reception step to the management server.
請求項1に記載のゲートウェイ装置としてコンピュータを機能させるための制御プログラムであって、前記定義取得部、前記初期設定部、前記データ取得部および前記データ送信部としてコンピュータを機能させるための制御プログラム。 The control program for operating a computer as the gateway device according to claim 1, wherein the computer functions as the definition acquisition unit, the initial setting unit, the data acquisition unit, and the data transmission unit. 請求項3に記載の管理サーバとしてコンピュータを機能させるための制御プログラムであって、上記供給部としてコンピュータを機能させるための制御プログラム。 The control program for operating a computer as the management server according to claim 3, and the control program for operating the computer as the supply unit. 請求項4に記載の設定端末としてコンピュータを機能させるための制御プログラムであって、上記設定送信部としてコンピュータを機能させるための制御プログラム。 The control program for operating a computer as a setting terminal according to claim 4, and the control program for operating a computer as the setting transmission unit. 請求項8〜10のいずれか1項に記載の制御プログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the control program according to any one of claims 8 to 10 is recorded.
JP2019192150A 2019-10-21 2019-10-21 Gateway device, management server, setting terminal, method for controlling the gateway device, method for controlling the management server, method for controlling the setting terminal, control program, and recording medium Active JP7362415B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019192150A JP7362415B2 (en) 2019-10-21 2019-10-21 Gateway device, management server, setting terminal, method for controlling the gateway device, method for controlling the management server, method for controlling the setting terminal, control program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019192150A JP7362415B2 (en) 2019-10-21 2019-10-21 Gateway device, management server, setting terminal, method for controlling the gateway device, method for controlling the management server, method for controlling the setting terminal, control program, and recording medium

Publications (2)

Publication Number Publication Date
JP2021068983A true JP2021068983A (en) 2021-04-30
JP7362415B2 JP7362415B2 (en) 2023-10-17

Family

ID=75637588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019192150A Active JP7362415B2 (en) 2019-10-21 2019-10-21 Gateway device, management server, setting terminal, method for controlling the gateway device, method for controlling the management server, method for controlling the setting terminal, control program, and recording medium

Country Status (1)

Country Link
JP (1) JP7362415B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008250473A (en) 2007-03-29 2008-10-16 Fujifilm Corp Communication controller and control method
KR101862965B1 (en) 2014-03-17 2018-05-31 미쓰비시덴키 가부시키가이샤 Management system, gateway apparatus, server apparatus, management method, gateway method and management process execution method
JP6339951B2 (en) 2015-03-04 2018-06-06 株式会社日立製作所 Data collection system, data collection method, server, and gateway
JP2017108291A (en) 2015-12-09 2017-06-15 株式会社東芝 Gateway, request generation method, and computer program
CN108255124B (en) 2016-12-28 2021-05-14 欧姆龙株式会社 Method, device and system for transferring program and parameter of PLC

Also Published As

Publication number Publication date
JP7362415B2 (en) 2023-10-17

Similar Documents

Publication Publication Date Title
US20230131104A1 (en) Modification of a Sensor Data Management System to Enable Sensors as a Service
US20230421464A1 (en) System, Method and Apparatus for Bridge Interface Communication
US9800646B1 (en) Modification of a sensor data management system to enable sensors as a service
JP2021068117A (en) Gateway unit, gateway unit control method, setting method, control program, and recording medium
CN105378810A (en) Remote sharing of measurement data
US20150350303A1 (en) Manufacturing optimization platform and method
KR102393944B1 (en) Flexible assembly system for multi-product production and method of reconstructing a production line
CN110663007B (en) Method and device for the automated management of cladding installations
WO2012012882A1 (en) System and method for on-location resource consumption monitoring and management
CN104797992A (en) System for monitoring multiple building automation systems
JP2021535511A (en) Methods and systems to digitally track and monitor the automotive refinish repair process
US11651415B2 (en) On-demand service providing system and on-demand service providing method
JP5993598B2 (en) Simultaneous meter reading method for handy wireless meter reading system
CN104704517A (en) Systems and methods for monitoring manufacturing processes through the exchange of information in real time
JP7362415B2 (en) Gateway device, management server, setting terminal, method for controlling the gateway device, method for controlling the management server, method for controlling the setting terminal, control program, and recording medium
JP7345981B2 (en) Setting support device, control method for the setting support device, setting method, control program, and recording medium
TW201535259A (en) Application delivery system, communication terminal, storage device, program, and application delivery method
JP2018010566A (en) Platform for mobile manufacturing management and optimization
US20170132729A1 (en) Real estate business method and apparatus
TW201804272A (en) Mobile manufacturing management and optimization platform
CN107783506B (en) Mobile manufacturing management and optimization platform
KR20100128784A (en) Internet-based business management system
CN111817820A (en) Equipment coding method and device and coding system based on two buses
EP4071564A1 (en) Method and system for commissioning an hvac system
JP7309084B2 (en) air conditioning system

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20220712

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230516

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230523

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230711

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231004

R150 Certificate of patent or registration of utility model

Ref document number: 7362415

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150