JP7010185B2 - Master device, master device control method, information processing program, and recording medium - Google Patents

Master device, master device control method, information processing program, and recording medium Download PDF

Info

Publication number
JP7010185B2
JP7010185B2 JP2018177785A JP2018177785A JP7010185B2 JP 7010185 B2 JP7010185 B2 JP 7010185B2 JP 2018177785 A JP2018177785 A JP 2018177785A JP 2018177785 A JP2018177785 A JP 2018177785A JP 7010185 B2 JP7010185 B2 JP 7010185B2
Authority
JP
Japan
Prior art keywords
data
collection
unit
node
sampling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018177785A
Other languages
Japanese (ja)
Other versions
JP2020052441A (en
Inventor
貴佳 松山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP2018177785A priority Critical patent/JP7010185B2/en
Priority to PCT/JP2019/036410 priority patent/WO2020059719A1/en
Publication of JP2020052441A publication Critical patent/JP2020052441A/en
Application granted granted Critical
Publication of JP7010185B2 publication Critical patent/JP7010185B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring

Description

本発明は、マスタスレーブ制御システムにおけるマスタ装置等に関する。 The present invention relates to a master device or the like in a master-slave control system.

従来から、FA(Factory Automation)の分野において、工場などに設置される生産設備等に係るデータを、効率的に収集、管理しようとする試みがなされている。例えば、下掲の特許文献1には、上位装置により設定される収集間隔で制御データを収集し、収集した制御データを、収集間隔に等しいか、または大きい転送間隔で、上位装置に転送するPLC(プログラマブル・ロジック・コントローラ、Programmable Logic Controller)が開示されている。 Conventionally, in the field of FA (Factory Automation), attempts have been made to efficiently collect and manage data related to production equipment and the like installed in factories and the like. For example, in Patent Document 1 below, a PLC that collects control data at a collection interval set by a higher-level device and transfers the collected control data to a higher-level device at a transfer interval equal to or larger than the collection interval. (Programmable Logic Controller) is disclosed.

再公表WO2012/111653Republished WO 2012/111653

しかしながら、上述のような従来技術は、制御周期ごとに取得したデバイスデータ等の制御データをPLCが上位装置へ転送する場合、転送に関係する処理の処理負荷が大きくなると、制御処理等の転送以外の処理の実行に悪影響を及ぼし得るという問題がある。より具体的には、従来技術には、PLC等のマスタスレーブ制御システムにおけるマスタ装置について、外部サーバ等の外部装置に送信すべきデータを制御データから収集する処理の処理負荷が大きくなった場合に、収集処理以外の処理の実行が影響を受け得るとの視点がない。以下に詳細を説明する。 However, in the conventional technology as described above, when the PLC transfers control data such as device data acquired for each control cycle to a higher-level device, when the processing load of the processing related to the transfer becomes large, other than the transfer of the control processing or the like. There is a problem that it can adversely affect the execution of the processing of. More specifically, in the prior art, when the processing load of the master device in the master-slave control system such as PLC becomes large in the process of collecting the data to be transmitted to the external device such as an external server from the control data. , There is no point of view that the execution of processes other than the collection process can be affected. Details will be described below.

一般に、PLCが制御周期ごとに取得するデバイスデータ等の制御データは、種類も量も極めて多いため、これらを全て外部サーバ等の外部装置へ転送するのは効率的ではない。そこで、例えばPLCは、制御周期ごとに取得した制御データから所望のデータを収集し、収集した所望のデータを外部装置に送信する。 In general, control data such as device data acquired by a PLC for each control cycle has an extremely large number of types and quantities, and it is not efficient to transfer all of them to an external device such as an external server. Therefore, for example, the PLC collects desired data from the control data acquired for each control cycle, and transmits the collected desired data to an external device.

ただし、例えばマスタスレーブ制御システムとして構築されるFAシステムについて、その監視、検証等を精緻に行うためには、監視、検証の対象として外部装置に保存する制御データは、できるだけ多くしたいとの要望がある。そのため、PLCには、制御周期ごとに取得した制御データから、できるだけ多くのデータを、外部装置に送信すべき所望のデータとして収集することが期待される。 However, for example, in order to precisely monitor and verify the FA system constructed as a master-slave control system, there is a desire to store as much control data as possible in the external device as the target of monitoring and verification. be. Therefore, the PLC is expected to collect as much data as possible from the control data acquired for each control cycle as desired data to be transmitted to the external device.

そのため、PLC等のマスタスレーブ制御システムにおけるマスタ装置について、外部装置に送信すべきデータを制御データから収集する処理の処理負荷が、収集処理以外の処理の実行に影響を及ぼすほどに大きくなる可能性がある。 Therefore, for the master device in the master-slave control system such as PLC, the processing load of the process of collecting the data to be transmitted to the external device from the control data may become large enough to affect the execution of the process other than the collection process. There is.

本発明の一態様は、前記の問題点に鑑みてなされたものであり、マスタスレーブ制御システムにおけるマスタ装置について、外部装置に送信すべきデータを制御データから収集する処理の処理負荷を、ユーザが管理できるようにすることを目的とする。 One aspect of the present invention has been made in view of the above-mentioned problems, and the user is responsible for the processing load of the process of collecting the data to be transmitted to the external device from the control data of the master device in the master-slave control system. The purpose is to be manageable.

上記の課題を解決するために、本発明の一態様に係るマスタ装置は、マスタスレーブ制御システムにおけるマスタ装置であって、スレーブ装置から周期的に取得した制御データから、外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集する収集部と、前記収集部によって単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値を受け付ける受付部と、前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量が、前記受付部により受け付けられた前記最大値以下となるように、前記所定の収集規則を調整する第1調整部と、を備えている。 In order to solve the above problems, the master device according to one aspect of the present invention is a master device in a master-slave control system, and a plurality of control data periodically acquired from the slave device should be transmitted to an external device. A collection unit that repeatedly collects each of the data according to a predetermined collection rule, a reception unit that accepts the maximum value specified by the user for the amount of data collected by the collection unit per unit time, and the predetermined collection unit. With the first adjustment unit that adjusts the predetermined collection rule so that the amount of data collected per unit time by the collection unit according to the collection rule of the above is less than or equal to the maximum value accepted by the reception unit. , Is equipped.

前記の構成によれば、前記マスタ装置は、単位時間あたりに収集するデータのデータ量が前記最大値以下となるように前記所定の収集規則を調整し、調整した前記所定の収集規則に従って、前記制御データから、前記複数のデータの各々を繰り返し収集する。 According to the above configuration, the master device adjusts the predetermined collection rule so that the amount of data to be collected per unit time is equal to or less than the maximum value, and the master device adjusts the predetermined collection rule according to the adjusted collection rule. Each of the plurality of data is repeatedly collected from the control data.

ここで、単位時間あたりに収集するデータのデータ量が大きくなるほど、前記マスタ装置のデータ収集に係る単位時間当たりの処理負荷が大きくなることは明らかである。つまり、前記最大値は、前記マスタ装置のデータ収集に係る単位時間当たりの処理負荷に対応する。 Here, it is clear that the larger the amount of data to be collected per unit time, the larger the processing load per unit time related to the data collection of the master apparatus. That is, the maximum value corresponds to the processing load per unit time related to the data collection of the master device.

したがって、前記マスタ装置は、データ収集に係る単位時間当たりの処理負荷が、ユーザの指定する前記最大値に対応する処理負荷以下となるように、前記制御データから、前記外部サーバ等の外部装置に送信すべきデータを収集することができるとの効果を奏する。言い換えれば、前記マスタ装置によってユーザは、前記制御データから前記複数のデータの各々を収集する処理に係る処理負荷を管理できるようになるとの効果を奏する。具体的には、ユーザは、前記マスタ装置に、「前記スレーブ対象に対する制御処理などの、データ収集処理以外の処理」の実行に影響のない適切な処理負荷で、前記外部装置に送信すべきデータを、前記制御データから収集させることができる。 Therefore, the master device transfers the control data to an external device such as the external server so that the processing load per unit time related to data collection is equal to or less than the processing load corresponding to the maximum value specified by the user. It has the effect of being able to collect data to be transmitted. In other words, the master device has an effect that the user can manage the processing load related to the process of collecting each of the plurality of data from the control data. Specifically, the user should send data to the master device with an appropriate processing load that does not affect the execution of "processing other than data collection processing such as control processing for the slave target". Can be collected from the control data.

また、「前記マスタ装置が単位時間あたりに収集するデータのデータ量」は、ユーザにとって直感的に把握しやすく、かつ、「前記マスタ装置の、データ収集に係る単位時間当たりの処理負荷」を正確に示すことのできる指標である。 In addition, the "data amount of data collected by the master device per unit time" is easy for the user to intuitively grasp, and the "processing load of the master device per unit time related to data collection" is accurate. It is an index that can be shown in.

したがって、前記マスタ装置は、「データ収集に係る単位時間当たりの処理負荷」の指標として正確で、かつ、ユーザにとって直感的な把握の容易な「単位時間あたりに収集するデータのデータ量」に基づいて、データ収集処理を管理できるとの効果を奏する。 Therefore, the master device is based on the "data amount of data to be collected per unit time" which is accurate as an index of "processing load per unit time related to data collection" and which is easy for the user to intuitively understand. This has the effect of being able to manage the data collection process.

本発明の一態様に係るマスタ装置において、前記所定の収集規則は、前記収集部によって収集される前記複数のデータの各々の収集順序を示す順列を含み、前記収集部は、前記複数のデータの各々を、前記順列に従って繰り返し収集し、前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量は、前記順列を一巡するまでに前記収集部によって収集されるデータのデータ量を、前記順列を一巡するまでに前記収集部が要する時間で除した値であってもよい。 In the master apparatus according to one aspect of the present invention, the predetermined collection rule includes a sequence indicating the collection order of each of the plurality of data collected by the collection unit, and the collection unit includes the collection unit of the plurality of data. Each is repeatedly collected according to the order, and the amount of data collected per unit time by the collection unit according to the predetermined collection rule is the data of the data collected by the collection unit before one cycle of the order. It may be a value obtained by dividing the amount by the time required by the collecting unit to make a round of the order.

前記の構成によれば、前記マスタ装置は、前記制御データから前記順列に従って繰り返し、前記外部装置に送信すべき前記複数のデータの各々を、収集する。 According to the above configuration, the master device repeats from the control data according to the order and collects each of the plurality of data to be transmitted to the external device.

したがって、前記マスタ装置は、例えば前記マスタスレーブ制御システムの監視、検証を行うためのデータを、前記順列に示される収集順序で、前記制御データから繰り返し収集することができるとの効果を奏する。 Therefore, the master device has an effect that, for example, data for monitoring and verifying the master-slave control system can be repeatedly collected from the control data in the collection order shown in the order.

本発明の一態様に係るマスタ装置において、前記第1調整部は、前記所定の収集規則として、(1)前記複数のデータの各々の、前記順列における出現回数、(2)前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、(3)前記複数のデータの各々の、前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数、および、(4)前記順列を一巡するまでに前記収集部が要する時間の少なくとも1つを調整してもよい。 In the master device according to one aspect of the present invention, the first adjusting unit, as the predetermined collection rule, (1) the number of appearances of each of the plurality of data in the sequence, and (2) the plurality of data. The number of data points collected for each appearance in the sequence, and (3) the number of data collected per unit time for each appearance of the plurality of data in the sequence. The frequency and (4) at least one of the times required by the collector to make a round of the sequence may be adjusted.

前記の構成によれば、前記マスタ装置は、前記所定の収集規則として、前記複数のデータの各々の、前記出現回数、前記順列における1回の出現ごとに収集するデータ点数、前記収集周波数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。 According to the above configuration, as the predetermined collection rule, the master device collects the number of appearances of each of the plurality of data, the number of data points collected for each appearance in the sequence, the collection frequency, and the collection frequency. , Adjust at least one of the times required to go around the sequence.

ここで、複数の時点の各々における「前記複数のデータの各々」を、前記外部サーバ等の外部装置に蓄積して、一貫性のある解析を実行しようとする場合、前記外部装置に送信する前記複数のデータの各々の前記収集周波数は、複数の時点の各々で不変とするのが望ましい。例えば、或るデータDaについて、或る時点T1での前記収集周波数が500Hzである場合、その或るデータDaの、別の時点T2での前記収集周波数は、その或るデータDaに対して一貫性のある解析を実行しようとする場合には、500Hzとするのが望ましい。そこで、例えば一貫性のある解析を目的として前記複数のデータの各々を収集する場合、前記マスタ装置は、前記複数のデータの各々の収集に際し、前記複数のデータの各々の前記収集周波数を変更せずに、前記所定の収集規則に含まれる、それ以外の項目を調整する。具体的には、前記マスタ装置は、前記所定の収集規則として、前記複数のデータの各々の、前記出現回数、前記順列における1回の出現ごとに収集するデータ点数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。 Here, when "each of the plurality of data" at each of the plurality of time points is stored in an external device such as the external server and a consistent analysis is to be performed, the data is transmitted to the external device. It is desirable that the collection frequency of each of the plurality of data is invariant at each of the plurality of time points. For example, for a data Da, if the acquisition frequency at one time point T1 is 500 Hz, then the collection frequency of that data Da at another time point T2 is consistent with that data Da. If you are going to perform a sexual analysis, it is desirable to set it to 500Hz. Therefore, for example, when collecting each of the plurality of data for the purpose of consistent analysis, the master device may change the collection frequency of each of the plurality of data when collecting each of the plurality of data. Instead, adjust the other items included in the prescribed collection rules. Specifically, the master device goes around the number of appearances of each of the plurality of data, the number of data points to be collected for each appearance in the sequence, and the sequence as the predetermined collection rule. Adjust at least one of the time required for.

また、前記複数のデータの各々を、所定の順序で、まんべんなく(つまり、特定のデータに偏ることなく)収集したい場合、前記マスタ装置は、前記複数のデータの各々の、前記出現回数および前記順列における1回の出現ごとに収集するデータ点数を変更しない。前記マスタ装置は、前記所定の収集規則のうち、前記複数のデータの各々の前記収集周波数、および、前記順列を一巡するのに要する時間の少なくとも一方を調整して、前記制御データから、前記複数のデータの各々を繰り返し収集する。 Further, when it is desired to collect each of the plurality of data in a predetermined order evenly (that is, without being biased to a specific data), the master device may use the master device to collect the number of appearances and the order of each of the plurality of data. The number of data points collected for each appearance in is not changed. The master device adjusts at least one of the collection frequency of each of the plurality of data and the time required to go around the sequence among the predetermined collection rules, and from the control data, the plurality of data. Collect each of the data of.

さらに、前記複数のデータの各々を収集する時間(=収集期間)を連続させる必要がない場合、前記マスタ装置は、前記所定の収集規則のうち、前記順列を一巡するのに要する時間を調整する。前記マスタ装置は、例えば、3種類のデータDa、Db、Dcをこの順序で繰り返し収集する場合、以下のように空き時間(=待ち時間)を挿入して、「Da、Db、Dcの各々を、この順序で、1回収集する」のに要する時間を調整する。すなわち、前記マスタ装置は、「Daの収集終了後からDbの収集開始までの間」、「Dbの収集終了後からDcの収集開始までの間」、および、「Dcの収集終了後からDaの収集開始までの間」の少なくとも1つに、空き時間を挿入する。 Further, when it is not necessary to continuously collect each of the plurality of data (= collection period), the master device adjusts the time required to go around the sequence among the predetermined collection rules. .. For example, when the master device repeatedly collects three types of data Da, Db, and Dc in this order, the free time (= waiting time) is inserted as follows, and "Da, Db, and Dc are each set. , In this order, adjust the time required to "collect once". That is, the master device is used for "from the end of Da collection to the start of Db collection", "from the end of Db collection to the start of Dc collection", and "from the end of Dc collection to the start of Da collection". Insert free time in at least one of "until the start of collection".

つまり、前記マスタ装置は、前記所定の収集規則のうち、前記複数のデータの各々の、前記出現回数、前記順列における1回の出現ごとに収集するデータ点数、前記収集周波数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。したがって、前記マスタ装置は、前記所定の収集規則のうち、前記複数のデータの利用目的等に好適な項目を適宜調整して、データ収集に係る処理負荷が前記最大値に対応する処理負荷以下となるように、前記複数のデータを収集できるとの効果を奏する。 That is, the master device sets the number of appearances of each of the plurality of data, the number of data points to be collected for each appearance in the sequence, the collection frequency, and the sequence among the predetermined collection rules. Adjust at least one of the time it takes to make a round. Therefore, the master device appropriately adjusts the items suitable for the purpose of using the plurality of data among the predetermined collection rules, and the processing load related to the data collection is equal to or less than the processing load corresponding to the maximum value. As such, it has the effect of being able to collect the plurality of data.

本発明の一態様に係るマスタ装置は、前記収集部によって収集された前記複数のデータの各々に対して付与される評価値が所定の基準を満たすと、当該所定の基準を満たす評価値の付与されたデータについて、(1)前記順列における出現回数、(2)前記順列における1回の出現ごとに収集されるデータ点数、および、(3)前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数の少なくとも1つを調整する第2調整部をさらに備え、前記第1調整部は、前記第2調整部により調整された前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数を含む前記所定の収集規則を、前記最大値を用いてさらに調整してもよい。 In the master device according to one aspect of the present invention, when the evaluation value given to each of the plurality of data collected by the collecting unit meets a predetermined criterion, the evaluation value satisfying the predetermined criterion is given. For the data, (1) the number of appearances in the sequence, (2) the number of data points collected for each appearance in the sequence, and (3) per unit time for each appearance in the sequence. Further, a second adjusting unit for adjusting at least one of the collection frequencies, which is the number of data points to be collected, is further provided, and the first adjusting unit is the number of appearances adjusted by the second adjusting unit, once in the order. The number of data points collected for each appearance and the predetermined collection rule including the collection frequency may be further adjusted using the maximum value.

前記の構成によれば、前記マスタ装置は、前記複数のデータの各々に対して付与される評価値に従って、前記複数のデータの各々の、前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数の少なくとも1つを調整する。 According to the above configuration, the master device collects each of the plurality of data for each appearance count and one appearance in the sequence according to the evaluation value given to each of the plurality of data. The number of data points to be generated and at least one of the collected frequencies are adjusted.

例えば、前記マスタ装置は、高い評価値の付与されたデータについては、前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数の少なくとも1つを増やす。また、前記マスタ装置は、低い評価値の付与されたデータについては、前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数の少なくとも1つを減らす。 For example, the master device increases the number of appearances, the number of data points collected for each appearance in the sequence, and at least one of the collection frequencies for data to which a high evaluation value is given. Further, the master device reduces at least one of the number of appearances, the number of data points collected for each appearance in the sequence, and the collection frequency for data to which a low evaluation value is given.

したがって、前記マスタ装置は、前記複数のデータの各々を、各々の前記評価値に従った、前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数で、収集することができるとの効果を奏する。 Therefore, the master device obtains each of the plurality of data at the number of appearances, the number of data points collected for each appearance in the sequence, and the collection frequency according to the evaluation value of each. It has the effect of being able to collect.

ここで、前記マスタ装置は、前記評価値に従って調整した、前記複数のデータの各々の、前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数を含む前記所定の収集規則を、前記最大値を用いてさらに調整する。 Here, the master device includes the number of appearances of each of the plurality of data adjusted according to the evaluation value, the number of data points collected for each appearance in the sequence, and the collection frequency. The predetermined collection rules are further adjusted using the maximum values.

したがって、前記マスタ装置は、前記複数のデータの各々を、各々の前記評価値に従った、かつ、前記複数のデータの各々の収集に係る単位時間当たりの処理負荷が前記最大値に対応する処理負荷以下となるように、収集することができるとの効果を奏する。 Therefore, the master device performs processing for each of the plurality of data according to the respective evaluation values, and the processing load per unit time for collecting each of the plurality of data corresponds to the maximum value. It has the effect of being able to collect data so that it is below the load.

本発明の一態様に係るマスタ装置において、前記第1調整部は、(1)前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、および、(2)前記複数のデータの各々の、前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数の少なくとも一方を、一律の割合で小さくしてもよい。 In the master apparatus according to one aspect of the present invention, the first adjusting unit is (1) the number of data points collected for each appearance of each of the plurality of data in the order, and (2) the said. At least one of the collection frequencies, which is the number of data points collected per unit time for each appearance in the sequence of each of the plurality of data, may be reduced at a uniform rate.

前記の構成によれば、前記マスタ装置は、前記所定の収集規則の調整として、前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数の少なくとも一方を、一律の割合で小さくする。 According to the above configuration, the master device collects the number of data points of each of the plurality of data for each appearance in the sequence, and the collection frequency, as an adjustment of the predetermined collection rule. Make at least one smaller at a uniform rate.

例えば、前記複数のデータの各々を所定の順序で収集したい場合、前記マスタ装置は、前記所定の収集規則のうち、「前記複数のデータの各々の、前記順列における出現回数」については、変更しない。その代わりに、前記マスタ装置は、前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数の少なくとも一方を、一律の割合で小さくすることで、データ収集に係る処理負荷を減少させる。 For example, when it is desired to collect each of the plurality of data in a predetermined order, the master device does not change "the number of appearances of each of the plurality of data in the order" among the predetermined collection rules. .. Instead, the master device reduces the number of data points collected for each occurrence of each of the plurality of data and at least one of the collected frequencies at a uniform rate. , Reduce the processing load related to data collection.

したがって、前記マスタ装置は、例えば、前記複数のデータの各々を所定の順序で収集したい場合などに、「前記複数のデータの各々の、前記順列における出現回数」を変更せずに、データ収集に係る処理負荷を減少させることができるとの効果を奏する。 Therefore, for example, when the master device wants to collect each of the plurality of data in a predetermined order, the master device can collect the data without changing the "number of appearances of each of the plurality of data in the sequence". It has the effect of reducing the processing load.

本発明の一態様に係るマスタ装置は、(1)前記最大値、(2)前記第1調整部によって調整された前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量、および、(3)両者の差をユーザに対して表示させる表示制御部をさらに備えてもよい。 The master device according to one aspect of the present invention is: (1) the maximum value, (2) data of data collected per unit time by the collecting unit according to the predetermined collecting rule adjusted by the first adjusting unit. The amount and (3) a display control unit for displaying the difference between the two to the user may be further provided.

前記の構成によれば、前記マスタ装置は、前記最大値と、調整済の前記所定の収集規則に従って単位時間あたりに収集しているデータのデータ量との差を、つまり、データ収集に係る処理負荷の許容値を示す値と実際の処理負荷を示す値との差を、表示させる。 According to the above configuration, the master device is the difference between the maximum value and the amount of data collected per unit time according to the adjusted predetermined collection rule, that is, processing related to data collection. The difference between the value indicating the allowable load value and the value indicating the actual processing load is displayed.

したがって、前記マスタ装置は、ユーザが一見して認識できるように、データ収集に要している現在の処理負荷から、データ収集に係る処理負荷の許容値までの余裕度を通知することができるとの効果を奏する。 Therefore, the master device can notify the margin from the current processing load required for data collection to the allowable value of the processing load related to data collection so that the user can recognize at a glance. Play the effect of.

本発明の一態様に係るマスタ装置において、前記収集部によって収集される前記複数のデータの各々は、前記スレーブ装置から周期的に取得した制御データのうち、ユーザによって収集対象として選択されたデータであってもよい。 In the master device according to one aspect of the present invention, each of the plurality of data collected by the collecting unit is the data selected by the user as the collection target among the control data periodically acquired from the slave device. There may be.

前記の構成によれば、前記マスタ装置は、前記スレーブ装置から周期的に取得した前記制御データのうち、ユーザによって収集対象として選択されたデータを、前記所定の収集規則に従って、繰り返し収集する。 According to the above configuration, the master device repeatedly collects the data selected as the collection target by the user from the control data periodically acquired from the slave device according to the predetermined collection rule.

したがって、前記マスタ装置は、前記制御データのうち、ユーザによって収集対象として選択されたデータのみを、単位時間あたりに収集するデータのデータ量が前記最大値以下となるように、繰り返し収集することができるとの効果を奏する。 Therefore, the master device may repeatedly collect only the data selected as the collection target by the user among the control data so that the data amount of the data to be collected per unit time is equal to or less than the maximum value. It has the effect of being able to do it.

上記の課題を解決するために、本発明の一態様に係る制御方法は、マスタスレーブ制御システムにおけるマスタ装置の制御方法であって、スレーブ装置から周期的に取得した制御データから、外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集する収集ステップと、前記収集ステップにて単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値を受け付ける受付ステップと、前記所定の収集規則に従って前記収集ステップにて単位時間あたりに収集されるデータのデータ量が、前記受付ステップにて受け付けられた前記最大値以下となるように、前記所定の収集規則を調整する第1調整ステップと、を含んでいる。 In order to solve the above problems, the control method according to one aspect of the present invention is the control method of the master device in the master-slave control system, and the control data periodically acquired from the slave device is transmitted to the external device. A collection step in which each of a plurality of data to be collected is repeatedly collected according to a predetermined collection rule, and a reception step that accepts a maximum value specified by a user for the amount of data collected per unit time in the collection step. And, the predetermined collection rule is adjusted so that the amount of data collected per unit time in the collection step is equal to or less than the maximum value received in the reception step according to the predetermined collection rule. It includes a first adjustment step to be performed.

前記の方法によれば、前記制御方法は、単位時間あたりに収集するデータのデータ量が前記最大値以下となるように前記所定の収集規則を調整し、調整した前記所定の収集規則に従って、前記制御データから、前記複数のデータの各々を繰り返し収集する。 According to the method, the control method adjusts the predetermined collection rule so that the amount of data to be collected per unit time is equal to or less than the maximum value, and the control method adjusts the predetermined collection rule according to the adjusted collection rule. Each of the plurality of data is repeatedly collected from the control data.

ここで、単位時間あたりに収集するデータのデータ量が大きくなるほど、前記制御方法のデータ収集に係る単位時間当たりの処理負荷が大きくなることは明らかである。つまり、前記最大値は、前記制御方法のデータ収集に係る単位時間当たりの処理負荷に対応する。 Here, it is clear that the larger the amount of data to be collected per unit time, the larger the processing load per unit time related to the data collection of the control method. That is, the maximum value corresponds to the processing load per unit time related to the data collection of the control method.

したがって、前記制御方法は、データ収集に係る単位時間当たりの処理負荷が、ユーザの指定する前記最大値に対応する処理負荷以下となるように、前記制御データから、前記外部サーバ等の外部装置に送信すべきデータを収集することができるとの効果を奏する。言い換えれば、前記制御方法によってユーザは、前記制御データから前記複数のデータの各々を収集する処理に係る処理負荷を管理できるようになるとの効果を奏する。具体的には、ユーザは、前記マスタ装置に、「前記スレーブ対象に対する制御処理などの、データ収集処理以外の処理」の実行に影響のない適切な処理負荷で、前記外部装置に送信すべきデータを、前記制御データから収集させることができる。 Therefore, in the control method, the control data is transmitted to an external device such as an external server so that the processing load per unit time related to data collection is equal to or less than the processing load corresponding to the maximum value specified by the user. It has the effect of being able to collect data to be transmitted. In other words, the control method has the effect that the user can manage the processing load related to the process of collecting each of the plurality of data from the control data. Specifically, the user should send data to the master device with an appropriate processing load that does not affect the execution of "processing other than data collection processing such as control processing for the slave target". Can be collected from the control data.

また、「前記制御方法が単位時間あたりに収集するデータのデータ量」は、ユーザにとって直感的に把握しやすく、かつ、「前記制御方法の、データ収集に係る単位時間当たりの処理負荷」を正確に示すことのできる指標である。 In addition, the "data amount of data collected by the control method per unit time" is easy for the user to intuitively grasp, and the "processing load of the control method per unit time related to data collection" is accurate. It is an index that can be shown in.

したがって、前記制御方法は、「データ収集に係る単位時間当たりの処理負荷」の指標として正確で、かつ、ユーザにとって直感的な把握の容易な「単位時間あたりに収集するデータのデータ量」に基づいて、データ収集処理を管理できるとの効果を奏する。 Therefore, the control method is based on the "data amount of data to be collected per unit time" which is accurate as an index of "processing load per unit time related to data collection" and which is easy for the user to intuitively understand. This has the effect of being able to manage the data collection process.

本発明の一態様によれば、マスタスレーブ制御システムにおけるマスタ装置について、外部装置に送信すべきデータを制御データから収集する処理の処理負荷を、ユーザが管理できるようになるという効果を奏する。 According to one aspect of the present invention, the master device in the master-slave control system has an effect that the user can manage the processing load of the process of collecting the data to be transmitted to the external device from the control data.

本発明の実施形態1に係るPLC等の要部構成を示すブロック図である。It is a block diagram which shows the structure of the main part of PLC etc. which concerns on Embodiment 1 of this invention. 図1のPLCを含む制御システムの全体概要を示す図である。It is a figure which shows the whole outline of the control system including PLC of FIG. 図1のPLCが実行する、制御データから「データベースに送信すべきデータ」を収集する方法のイメージを示す図である。It is a figure which shows the image of the method of collecting "data to be transmitted to a database" from the control data executed by PLC of FIG. 収集規則テーブルのデータ構造の一例を示す図である。It is a figure which shows an example of the data structure of a collection rule table. 図1のPLCが実行する処理の概要を示すフロー図である。It is a flow diagram which shows the outline of the process which PLC of FIG. 1 performs. 重要度に基づいて収集規則を調整する方法の例を示す図である。It is a figure which shows the example of the method of adjusting the collection rule based on the importance. 基準収集規則を変更せずに採用できる場合の収集規則テーブルの一例である。This is an example of a collection rule table when the standard collection rule can be adopted without change. 基準収集規則をそのまま採用できない場合の収集規則テーブルの一例である。This is an example of a collection rule table when the standard collection rule cannot be adopted as it is. 各I/Oノードの収集規則を増減させた場合の、平均サンプリング速度の変化の傾向を説明する図である。It is a figure explaining the tendency of the change of the average sampling rate when the collection rule of each I / O node is increased or decreased. 収集規則の調整方法の一例を示す図である。It is a figure which shows an example of the adjustment method of a collection rule. 収集規則の調整方法について、図10の例とは異なる例を示す図である。It is a figure which shows the example different from the example of FIG. 10 about the adjustment method of a collection rule. 収集規則の調整方法について、図10および図11の例とは異なる例を示す図である。It is a figure which shows the example different from the example of FIG. 10 and FIG. 11 about the adjustment method of a collection rule. 図1のPLCが外部表示装置の表示画面に表示させる情報の一例である。This is an example of information to be displayed on the display screen of the external display device by the PLC of FIG. 1. 図4に例示したのとは異なる収集規則テーブルのデータ構造の例である。It is an example of the data structure of the collection rule table different from that illustrated in FIG.

〔実施形態1〕
以下、本発明の一側面に係る実施の形態(以下、「本実施形態」とも表記する)を、図1から図14に基づいて説明する。なお、図中同一または相当部分には同一符号を付してその説明は繰返さない。本実施の形態においては、例えばPLC(Programmable Logic Controller)10をマスタ装置の典型例として説明を行う。本発明の一態様に係るPLC10についての理解を容易にするため、先ず、PLC10を含む制御システム1の概要を、図2および図3を用いて説明する。
[Embodiment 1]
Hereinafter, embodiments according to one aspect of the present invention (hereinafter, also referred to as “the present embodiment”) will be described with reference to FIGS. 1 to 14. The same or corresponding parts in the drawings are designated by the same reference numerals and the description thereof will not be repeated. In the present embodiment, for example, a PLC (Programmable Logic Controller) 10 will be described as a typical example of the master device. In order to facilitate understanding of the PLC 10 according to one aspect of the present invention, first, an outline of the control system 1 including the PLC 10 will be described with reference to FIGS. 2 and 3.

§1.適用例
(制御システムの概要)
図2は、制御システム1の全体概要を示す図である。図2に示すように、制御システム1は、マスタ装置としてのPLC10と、マスタ装置にネットワークを介して接続される1つ以上のスレーブ装置としてのサーボドライバ30A、30B、30C、30D、・・・とを含むマスタスレーブ制御システムである。サーボドライバ30A、30B、30C、30Dの各々には、サーボモータ40A、40B、40C、40Dが接続している。
§1. Application example (Overview of control system)
FIG. 2 is a diagram showing an overall outline of the control system 1. As shown in FIG. 2, the control system 1 includes PLC10 as a master device and servo drivers 30A, 30B, 30C, 30D, ... As one or more slave devices connected to the master device via a network. It is a master-slave control system including. Servo motors 40A, 40B, 40C, 40D are connected to each of the servo drivers 30A, 30B, 30C, and 30D.

なお、以下の説明において、サーボドライバ30A、30B、30C、30Dの各々を区別する必要がない場合には、単に「サーボドライバ30」と表記する。同様に、サーボモータ40A、40B、40C、40Dの各々を区別する必要がない場合には、単に「サーボモータ40」と表記する。 In the following description, when it is not necessary to distinguish each of the servo drivers 30A, 30B, 30C, and 30D, it is simply referred to as "servo driver 30". Similarly, when it is not necessary to distinguish each of the servo motors 40A, 40B, 40C, and 40D, it is simply referred to as "servo motor 40".

PLC10は、サーボモータ40などの制御機器を制御するためのユーザプログラムを実行するプログラマブルコントローラであり、下位コントローラとしてのサーボドライバ30に対する上位コントローラである。PLC10は、制御システム1において、ネットワークを介したデータ伝送を管理しているという意味で「マスタ装置」と呼ばれ、一方、サーボドライバ30は「スレーブ装置」と呼ばれる。すなわち、制御システム1は、マスタ装置としてのPLC10と、マスタ装置にネットワークを介して接続される1つ以上のスレーブ装置としてのサーボドライバ30とを含むマスタスレーブ制御システムである。PLC10とサーボドライバ30とをつなぐネットワークとしては、例えば、EtherCAT(登録商標)を使用することができる。 The PLC 10 is a programmable controller that executes a user program for controlling a control device such as a servomotor 40, and is an upper controller for the servo driver 30 as a lower controller. The PLC 10 is called a "master device" in the sense that it manages data transmission via a network in the control system 1, while the servo driver 30 is called a "slave device". That is, the control system 1 is a master-slave control system including a PLC 10 as a master device and a servo driver 30 as one or more slave devices connected to the master device via a network. As a network connecting the PLC 10 and the servo driver 30, for example, EtherCAT (registered trademark) can be used.

PLC10は、サーボドライバ30に対して、制御指示を制御周期ごとに出力してサーボドライバ30に対する制御を実行する。また、PLC10は、サーボドライバ30から、サーボモータ40の出力に係るデータ(つまり、トルク、速度、および位置など、サーボモータ40の状態を示す制御データ)を制御周期ごとに取得する。 The PLC 10 outputs a control instruction to the servo driver 30 at each control cycle and executes control to the servo driver 30. Further, the PLC 10 acquires data related to the output of the servomotor 40 (that is, control data indicating the state of the servomotor 40 such as torque, speed, and position) from the servo driver 30 for each control cycle.

サーボドライバ30は、サーボモータ40の制御装置であり、PLC10からの制御指示を制御周期ごとに受信し、受信した制御指示に従ってサーボモータ40を駆動する。また、サーボドライバ30は、サーボモータ40の軸に接続されている位置センサおよびトルクセンサなどから、位置、速度、トルクといったサーボモータ40の出力(状態)に係る実測値を取得し、これら実測値に係るデータを制御周期ごとにPLC10に出力する。なお、サーボドライバ30は、サーボモータアンプと称されることもある。 The servo driver 30 is a control device for the servomotor 40, receives control instructions from the PLC 10 for each control cycle, and drives the servomotor 40 according to the received control instructions. Further, the servo driver 30 acquires actual measurement values related to the output (state) of the servo motor 40 such as position, speed, and torque from a position sensor and a torque sensor connected to the shaft of the servo motor 40, and these actual measurement values. The data related to the above is output to the PLC 10 for each control cycle. The servo driver 30 may also be referred to as a servo motor amplifier.

マスタ装置としてのPLC10に接続されるスレーブ装置としては、サーボドライバ30以外にも、各種のデバイス通信管理ユニットなどが含まれ得る。デバイス通信管理ユニットには、デバイス通信ケーブルを介して、1つ以上のデバイスが接続される。デバイス通信管理ユニットに接続されるデバイスは、例えば、センサなどの入力機器であり、または、アクチュエータ(Actuator)などの出力機器である。PLC10は、ネットワークを介してデバイス通信管理ユニットから、デバイス通信管理ユニットに接続される1つ以上のデバイスの各々からの情報(例えば、センサなどからの検知情報)を取得することができる。これらのデバイスからのデータ(デバイスデータ。例えば、センサなどからの検知情報)も、マスタ装置としてのPLC10が、スレーブ装置から制御周期ごとに周期的に取得する制御データである。 The slave device connected to the PLC 10 as the master device may include various device communication management units and the like in addition to the servo driver 30. One or more devices are connected to the device communication management unit via a device communication cable. The device connected to the device communication management unit is, for example, an input device such as a sensor, or an output device such as an actuator (Actuator). The PLC 10 can acquire information (for example, detection information from a sensor or the like) from each of one or more devices connected to the device communication management unit from the device communication management unit via a network. The data from these devices (device data, for example, detection information from a sensor or the like) is also control data that the PLC 10 as a master device periodically acquires from the slave device for each control cycle.

なお、「マスタ装置」および「スレーブ装置」は、ネットワーク上のデータ伝送の制御機能に着目して定義されるものであり、各装置間でどのような情報が送受信されるかについては、特に限定されない。PLC10は、マスタ装置として、サーボドライバ30等のスレーブ装置が出力するデータ(制御データ)を、制御周期ごとに周期的に取得する。そして、PLC10は、サーボドライバ30等のスレーブ装置から制御周期ごとに取得した制御データの少なくとも一部を、外部のデータベース20に送信する。 The "master device" and "slave device" are defined by focusing on the control function of data transmission on the network, and what kind of information is transmitted and received between each device is particularly limited. Not done. As a master device, the PLC 10 periodically acquires data (control data) output by a slave device such as a servo driver 30 for each control cycle. Then, the PLC 10 transmits at least a part of the control data acquired from the slave device such as the servo driver 30 for each control cycle to the external database 20.

データベース20は、PLC10から送信されたデータを、つまり、PLC10がスレーブ装置から制御周期ごとに取得した制御データの少なくとも一部を受け付け、受け付けたデータを保存領域に格納する。 The database 20 receives the data transmitted from the PLC 10, that is, at least a part of the control data acquired by the PLC 10 from the slave device for each control cycle, and stores the received data in the storage area.

ここで一般に、PLC10がサーボドライバ30等のスレーブ装置から制御周期ごとに周期的に取得する制御データは、データ数が非常に多くなる傾向がある。例えば、各軸について、「トルク」、「速度」、および「位置」の3種類のサーボデータ(制御データ)を20軸分、サーボドライバ30から取得するとしたら、PLC10は制御周期ごとに60点のサーボデータを取得することになる。 Here, in general, the control data periodically acquired by the PLC 10 from a slave device such as the servo driver 30 for each control cycle tends to have a very large number of data. For example, if three types of servo data (control data) of "torque", "speed", and "position" are acquired from the servo driver 30 for 20 axes for each axis, the PLC 10 has 60 points for each control cycle. Servo data will be acquired.

そのため、PLC10がスレーブ装置から制御周期ごとに取得する制御データの全てをデータベース20に格納する場合、データベース20に格納される制御データのデータ量は膨大になり、データベース20の保存領域が直ぐに不足してしまう。また、ユーザ(人)が、データベース20に格納するデータを、PLC10が制御周期ごとに取得する膨大な制御データの中から選択する場合、制御システム1の異常を示す制御データなど、データベース20に格納したい制御データを見逃してしまう可能性がある。 Therefore, when all the control data acquired by the PLC 10 from the slave device for each control cycle is stored in the database 20, the amount of control data stored in the database 20 becomes enormous, and the storage area of the database 20 is immediately insufficient. It ends up. Further, when the user (person) selects the data to be stored in the database 20 from the huge amount of control data acquired by the PLC 10 for each control cycle, the control data indicating an abnormality of the control system 1 is stored in the database 20. You may miss the control data you want.

そこで、PLC10は、スレーブ装置から制御周期ごとに取得する制御データから、データベース20に送信すべきデータを、所定の収集規則に従って収集し、収集したデータをデータベース20に送信する(つまり、格納する)。以下の説明では、「スレーブ装置から制御周期ごとに周期的に取得した制御データから、データベース20に送信すべきデータを収集する」ことを「サンプリング」とも称する。 Therefore, the PLC 10 collects the data to be transmitted to the database 20 from the control data acquired from the slave device for each control cycle according to a predetermined collection rule, and transmits (that is, stores) the collected data to the database 20. .. In the following description, "collecting data to be transmitted to the database 20 from the control data periodically acquired from the slave device for each control cycle" is also referred to as "sampling".

ただし、単純に「一定のタイミング(時間間隔)、一定のサンプリング周波数で、制御データから、データベース20に送信すべきデータを収集する」方法を実行した場合、以下の問題が生じ得る。すなわち、ユーザにとって重要性の低い制御データを過剰に収集してしまったり、ユーザにとって重要性の高い制御データを詳細に収集することができなかったりする可能性がある。 However, if the method of simply "collecting data to be transmitted to the database 20 from the control data at a constant timing (time interval) and a constant sampling frequency" is executed, the following problems may occur. That is, there is a possibility that the control data that is not important to the user is excessively collected, or the control data that is important to the user cannot be collected in detail.

また、PLC10の処理能力(システム性能)全体に比して、サンプリングに要する処理負荷が大きすぎると、メモリ枯渇、およびバッファオーバーフロー等により、データベース20に送信すべきデータが欠落する可能性がある。さらに、サンプリングのためにシステムリソースが消費され、制御プログラムの実行等に支障をきたす可能性もある。 Further, if the processing load required for sampling is too large compared to the entire processing capacity (system performance) of the PLC 10, data to be transmitted to the database 20 may be missing due to memory exhaustion, buffer overflow, or the like. Furthermore, system resources are consumed for sampling, which may hinder the execution of control programs.

そこで、PLC10は、データベース20に送信すべき複数のデータの各々について重要度(評価値)を算出し、算出した重要度を用いて、データベース20に送信すべき複数のデータの各々についての収集規則を調整する。例えば、PLC10は、重要度の高いデータの収集頻度、サンプリング周波数、および、サンプリング点数などを、重要度の低いデータの収集頻度、サンプリング周波数、および、サンプリング点数などに比べて、高くする。PLC10は、複数のデータの各々についての収集規則を、複数のデータの各々の重要度を用いて調整することによって、重要性の高い制御データを詳細に収集し、かつ、重要性の低い制御データについては過剰な収集を回避することができる。 Therefore, the PLC 10 calculates the importance (evaluation value) for each of the plurality of data to be transmitted to the database 20, and uses the calculated importance to collect rules for each of the plurality of data to be transmitted to the database 20. To adjust. For example, the PLC 10 increases the collection frequency, sampling frequency, sampling point, etc. of high-importance data higher than the collection frequency, sampling frequency, sampling point, etc. of low-importance data. The PLC 10 collects high-importance control data in detail by adjusting the collection rules for each of the plurality of data using the importance of each of the plurality of data, and the less important control data. It is possible to avoid excessive collection.

また、PLC10は、サンプリング処理に係る処理負荷が、ユーザの設定する最大値以下となるように、データベース20に送信すべき複数のデータの各々についての収集規則を調整し、調整した収集規則に従って、サンプリング処理を実行する。したがって、PLC10は、ユーザの管理下、スレーブ装置に対する制御処理など、サンプリング処理以外の処理に影響がでないように、サンプリング処理を実行することができる。 Further, the PLC 10 adjusts the collection rule for each of the plurality of data to be transmitted to the database 20 so that the processing load related to the sampling process becomes equal to or less than the maximum value set by the user, and according to the adjusted collection rule. Execute sampling processing. Therefore, the PLC 10 can execute the sampling process under the control of the user so as not to affect the process other than the sampling process such as the control process for the slave device.

PLC10には、例えばUSB(Universal Serial Bus)ケーブルである通信ケーブルを介して、不図示のツール等が接続していてもよい。ツールは、制御システム1に対して各種のパラメータを設定するための情報処理装置である。例えば、PLC10の実行するサンプリング処理の収集規則に係る情報(詳細は後述する)は、ツールによって設定されてもよい。ツールは、典型的には、汎用のコンピュータで構成される。ツールの代わりに、通信ケーブルを介して、PLC10にHMI(Human Machine Interface)が接続されてもよい。PLC10は、例えばツール等から、サンプリング処理に係る収集規則についての情報(例えば、収集規則についての初期値・基準値など)を受け付ける。 A tool (not shown) or the like may be connected to the PLC 10 via, for example, a communication cable which is a USB (Universal Serial Bus) cable. The tool is an information processing device for setting various parameters for the control system 1. For example, the information related to the collection rule of the sampling process executed by the PLC 10 (details will be described later) may be set by the tool. The tool typically consists of a general purpose computer. Instead of the tool, an HMI (Human Machine Interface) may be connected to the PLC 10 via a communication cable. The PLC 10 receives information about the collection rule related to the sampling process (for example, initial value, reference value, etc. for the collection rule) from, for example, a tool or the like.

図3は、PLC10が実行する、制御データから「データベース20に送信すべきデータ」を収集する方法の、つまり、PLC10の実行するサンプリング処理の、イメージを示す図である。PLC10は、図2の制御データテーブル181に格納されたI/O(制御データ)の各点を、ネットワークのノード(I/Oノード)として扱い、各I/Oノードにおいてデータを収集しながら、I/Oノードを巡回する。 FIG. 3 is a diagram showing an image of a method of collecting "data to be transmitted to the database 20" from the control data executed by the PLC 10, that is, a sampling process executed by the PLC 10. The PLC 10 treats each point of the I / O (control data) stored in the control data table 181 of FIG. 2 as a node (I / O node) of the network, and collects data at each I / O node while collecting data. It goes around the I / O node.

すなわち、PLC10は、サーボドライバ30から制御周期ごとに取得する種々の制御データの各々を、マスタ装置としてのPLC10が伝送を制御するネットワークのノード(I/Oノード)として扱う。PLC10は、例えば、サーボドライバ30から周期的に取得した「軸1のトルクを示すデータ(TorqueData1)」、「軸1の速度を示すデータ(VelocityData1)」、および「軸1の位置を示すデータ(PositionData1)」の各々を、ノード(I/Oノード)として扱う。 That is, the PLC 10 treats each of the various control data acquired from the servo driver 30 for each control cycle as a network node (I / O node) in which the PLC 10 as a master device controls transmission. The PLC 10 is, for example, "data indicating the torque of the axis 1 (TorqueData1)", "data indicating the speed of the axis 1 (VelocityData1)", and "data indicating the position of the axis 1" (data indicating the position of the axis 1) periodically acquired from the servo driver 30 (TorqueData1). Each of "PositionData1)" is treated as a node (I / O node).

そして、スレーブ装置から取得した複数の制御データの全体(つまり、制御データ群)に対して、PLC10は、データ収集対象とするI/Oノードを所定の順番で切り替えながら、各I/Oノードのデータを収集する。PLC10は、例えば、先ず「TorqueData1」のデータを収集し、次に「VelocityData1」のデータを、さらに「PositionData1」のデータを、そして、・・・と次々に、各I/Oノードのデータを収集する。 Then, for the entire plurality of control data acquired from the slave device (that is, the control data group), the PLC 10 switches the I / O nodes to be collected in a predetermined order, and the PLC 10 of each I / O node. Collect data. The PLC10 first collects the data of "TorqueData1", then the data of "VelocityData1", the data of "PositionData1", and so on, and so on, and collects the data of each I / O node. do.

図3には、PLC10が、「A、B、C、D、E、F」の6個のI/Oノードを、この順で(つまり、「AからBへ、BからCへ、CからDへ、DからEへ、EからFへ、Fから再びAへ」)巡回しながら、サンプリングを実行するイメージが示されている。すなわち、PLC10は、「A、B、C、D、E、F」の6個のI/Oノードの各々について、「A、B、C、D、E、F、A、B、C、D、E、F、A、・・・」の順で、データを収集する。PLC10は、例えば、「TorqueData1」、「VelocityData1」、「PositionData1」、「TorqueData2」、「VelocityData2」、「PositionData3」の6個のI/Oノードについて、この順で、各I/Oノードのデータを収集する処理を繰り返す。PLC10は、データ収集対象とするI/Oノードを所定の順番で切り替えながら、各I/Oノードのデータを次々に収集していく処理を繰り返すことで、制御システム1の異常等を示すデータを見逃してしまう(つまり、収集対象から漏らす)可能性を低減できる。 In FIG. 3, the PLC 10 displays six I / O nodes “A, B, C, D, E, F” in this order (that is, “A to B, B to C, C to C”). An image of performing sampling while patrolling from D to E, from E to F, from F to A again is shown. That is, the PLC 10 has "A, B, C, D, E, F, A, B, C, D" for each of the six I / O nodes of "A, B, C, D, E, F". , E, F, A, ... ”, and collect the data in this order. The PLC10 has, for example, "TorqueData1", "VelocityData1", "PositionData1", "TorqueData2", "VelocityData2", and "PositionData3" for each of the six I / O nodes in this order. Repeat the process of collecting. The PLC 10 repeats the process of collecting data of each I / O node one after another while switching the I / O nodes to be collected in a predetermined order, thereby displaying data indicating an abnormality of the control system 1. The possibility of overlooking (that is, leaking from the collection target) can be reduced.

(用語の整理)
以下の説明において、「データ収集対象のI/Oノードを一定の順番で切り替えながら、各I/Oノードのデータを収集すること」を、「巡回」と称することがある。例えば、「A、B、C、D、E、F(つまり、Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後にA)」といった一定のパターン(順序)で繰り返し、各I/Oノードのデータを収集することを、「巡回」と称することがある。
(Arrangement of terms)
In the following description, "collecting data of each I / O node while switching the I / O nodes to be collected in a fixed order" may be referred to as "patrol". For example, "A, B, C, D, E, F (that is, A followed by B, B followed by C, C followed by D, D followed by E, E followed by F, F followed by A)". Collecting data of each I / O node by repeating in the pattern (order) of is sometimes referred to as "patrol".

I/Oノードの出現順序の重複を含まない、巡回の最小単位であるI/Oノードの順列を、「巡回単位順列(または、単に「順列」)」と呼ぶことがある。例えば、PLC10が「Aの後にB、Bの後にC、Cの後にA、Aの後にB、Bの後にC、Cの後にA、Aの後にB、・・・」で巡回を実行する場合、順列は「A、B、C」である。同様に、PLC10が「Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後にA、Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後にA、Aの後にB、・・・」で巡回を実行する場合、順列は「A、B、C、D、E、F」である。 The order sequence of I / O nodes, which is the minimum unit of circulation and does not include duplication of the appearance order of I / O nodes, may be referred to as "circulation unit order sequence (or simply" sequence ")". For example, when PLC10 executes a patrol with "A followed by B, B followed by C, C followed by A, A followed by B, B followed by C, C followed by A, A followed by B, ...". , The order is "A, B, C". Similarly, PLC10 is "A followed by B, B followed by C, C followed by D, D followed by E, E followed by F, F followed by A, A followed by B, B followed by C, and C followed by D. , D followed by E, E followed by F, F followed by A, A followed by B, ... ", the order is" A, B, C, D, E, F ".

巡回単位順列に含まれる特定のI/Oノードの出現回数を「巡回頻度」と称する。例えば、「順列:A、B、C、D、E、F」における「I/Oノード:A」の巡回頻度は、「1〔回/巡]」である。「順列:A、B、C、A、D、E、F」における「I/Oノード:A」の巡回頻度は、「2〔回/巡]」である。「順列:A、B、C、A、D、E、A、F」における「I/Oノード:A」の巡回頻度は、「3〔回/巡]」である。 The number of occurrences of a specific I / O node included in the patrol unit sequence is referred to as "patrol frequency". For example, the patrol frequency of "I / O node: A" in "sequential sequence: A, B, C, D, E, F" is "1 [round / round]". The patrol frequency of the "I / O node: A" in the "order: A, B, C, A, D, E, F" is "2 [rounds / rounds]". The patrol frequency of the "I / O node: A" in the "order: A, B, C, A, D, E, A, F" is "3 [rounds / rounds]".

なお、「順列:A、B、C、D、E、F」における「I/Oノード:A」の相対的な巡回頻度(順列における全要素数に対する、各I/Oノードの個数)を、「1/6〔回/巡]」と表現してもよい。同様に、「順列:A、B、C、A、D、E、F」における「I/Oノード:A」の相対的な巡回頻度を、「2/7〔回/巡]」と表現してもよい。「順列:A、B、C、A、D、E、A、F」における「I/Oノード:A」の相対的な巡回頻度は、「3/8〔回/巡]」である。 The relative patrol frequency of "I / O nodes: A" in "sequential sequence: A, B, C, D, E, F" (the number of each I / O node with respect to the total number of elements in the sequential sequence) is determined. It may be expressed as "1/6 [times / round]". Similarly, the relative patrol frequency of "I / O node: A" in "order: A, B, C, A, D, E, F" is expressed as "2/7 [times / patrol]". You may. The relative patrol frequency of the "I / O node: A" in the "order: A, B, C, A, D, E, A, F" is "3/8 [rounds / rounds]".

上の例からも明らかな通り、巡回単位順列に含まれるI/Oノードの個数と、巡回単位順列の全要素の総数とは一致するとは限らず、巡回単位順列の要素の総数は巡回単位順列(巡回パターン)によって変化する。例えば、AからFまでの6個のI/Oノードを含む「巡回単位順列(順列)」であっても、その巡回単位順列の全要素の総数は様々である。すなわち、「順列:A、B、C、D、E、F」の全要素の総数は「6」、「順列:A、B、C、A、D、E、F」の全要素の総数は「7」、「順列:A、B、C、A、D、E、A、F」の全要素の総数は「8」である。 As is clear from the above example, the number of I / O nodes included in the traveling unit sequence does not always match the total number of all elements in the traveling unit sequence, and the total number of elements in the traveling unit sequence is the traveling unit sequence. It changes depending on (patrol pattern). For example, even in the case of a "circular unit sequence (sequential sequence)" including six I / O nodes from A to F, the total number of all elements of the cyclic unit sequence varies. That is, the total number of all elements of "order: A, B, C, D, E, F" is "6", and the total number of all elements of "order: A, B, C, A, D, E, F" is The total number of all elements of "7" and "order: A, B, C, A, D, E, A, F" is "8".

また、巡回単位順列内での巡回順は、実装に即して任意に表現することができる。例えば、AからCまでの3個のI/Oノードを含む「順列:A、B、C」は、「順列:B、C、A」と表現してもよいし、「順列:C、A、B」と表現してもよい。 Further, the patrol order in the patrol unit order sequence can be arbitrarily expressed according to the implementation. For example, a "sequential sequence: A, B, C" including three I / O nodes from A to C may be expressed as "sequential sequence: B, C, A" or "sequential sequence: C, A". , B "may be expressed.

さらに、巡回単位順列内での巡回順(各I/Oノードの出現順序)は、実装に即して任意に設定することができる。例えば、AからCまでの3個のI/Oノードについての、全要素の総数が「3」である順列として、「順列:A、B、C」および「順列:A、C、B」のいずれを設定してもよい。 Further, the patrol order (the appearance order of each I / O node) in the patrol unit order sequence can be arbitrarily set according to the implementation. For example, for the three I / O nodes from A to C, the order in which the total number of all elements is "3" is "Sequential: A, B, C" and "Sequential: A, C, B". Either may be set.

(本実施形態に係るPLCの概要)
制御システム1において、ユーザは、「PLC10がサンプリング処理の実行に要する処理負荷の大きさを示す値であって、ユーザが許容する最大の値」を、「最大許容平均サンプリング速度Vallowed_mean_max(以下、最大値Vamm)」として設定する。PLC10は、最大値Vammに基づいて、サンプリングに係る収集規則を動的に最適化する。
(Outline of PLC according to this embodiment)
In the control system 1, the user sets "a value indicating the magnitude of the processing load required for the execution of the sampling process by the PLC 10 and the maximum value allowed by the user" to "maximum allowable average sampling speed Vallowed_mean_max (hereinafter, hereinafter,". Maximum value Vamm ) ”. The PLC 10 dynamically optimizes the sampling rules for sampling based on the maximum value Vamm .

すなわち、ユーザは、PLC10のデータ収集能力について最大値Vammを設定し、また、各I/Oノードに対して、所望の収集規則(収集規則の基準値)を設定する。具体的には、ユーザは、各I/Oノードについて、「名称(識別子)」に加えて、各I/Oノードに対する所望の収集規則として、「サンプリング周波数の基準(基準周波数)」および「サンプリング点数の基準(基準点数)」等を指定する。 That is, the user sets the maximum value Vamm for the data collection capacity of the PLC 10, and sets a desired collection rule (reference value of the collection rule) for each I / O node. Specifically, for each I / O node, in addition to the "name (identifier)", the user sets "sampling frequency reference (reference frequency)" and "sampling" as desired collection rules for each I / O node. Specify the score standard (reference score), etc.

「サンプリング点数」とは、各I/Oノードについて、巡回単位順列における1回の出現ごとに収集されるデータ点数であり、「基準サンプリング点数」は、ユーザの初期設定する、つまり、例えばユーザの所望する、「サンプリング点数」である。 The "sampling score" is the number of data points collected for each I / O node for each occurrence in the cyclic unit sequence, and the "reference sampling score" is initially set by the user, that is, for example, of the user. The desired "sampling score".

「サンプリング周波数」とは、各I/Oノードについて、巡回単位順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である。「基準サンプリング周波数」は、ユーザの初期設定する、つまり、例えばユーザの所望する、「サンプリング周波数」である。 The "sampling frequency" is the number of data points collected per unit time for each I / O node for each occurrence in the cyclic unit sequence. The "reference sampling frequency" is the "sampling frequency" that is initially set by the user, that is, that is, for example, the user desires.

PLC10は、各I/Oノードの「基準周波数」および「基準点数」等を含む「初期設定時の収集規則」に従ってサンプリング処理の実行した場合に要する処理負荷の大きさを示す値(平均サンプリング速度Vmean)を算出する。そして、PLC10は、最大値Vammと平均サンプリング速度Vmeanとを比較して、具体的には、「最大値Vammと平均サンプリング速度Vmeanとの差(つまり、最大値Vamm-平均サンプリング速度Vmean)」から、「余裕速度Vmargin」を算出する。 PLC10 is a value (mean sampling speed) indicating the magnitude of the processing load required when the sampling process is executed according to the "collection rule at the time of initial setting" including the "reference frequency" and "reference point number" of each I / O node. Vmean ) is calculated. Then, the PLC 10 compares the maximum value Vamm with the average sampling rate V mean , and specifically, "the difference between the maximum value V amm and the average sampling rate V mean (that is, the maximum value V amm -mean sampling". The "margin velocity V margin " is calculated from the "velocity V mean ").

PLC10は、「余裕速度Vmarginが『0』以上となる(つまり、余裕速度Vmargin≧0)」ように、収集規則を調整する。具体的には、PLC10は、「余裕速度Vmarginが『0』以上となる」ように、各I/Oノードについて、巡回単位順列における「巡回頻度(出現回数)」、「サンプリング周波数」、および、「サンプリング点数」の少なくとも1つを変更する。また、PLC10は、「余裕速度Vmarginが『0』以上となる」ように、「巡回単位順列を一巡するまでに要する時間」を調整してもよい。PLC10は、「余裕速度Vmarginが『0』以上となる」ように調整した収集規則に従って、サンプリング(データ収集)を開始する。 The PLC 10 adjusts the collection rule so that the margin speed V margin is "0" or more (that is, the margin speed V margin ≥ 0). Specifically, the PLC 10 has "circulation frequency (number of appearances)", "sampling frequency", and "sampling frequency" in the circulation unit sequence for each I / O node so that "margin speed V margin becomes" 0 "or more". , Change at least one of the "sampling points". Further, the PLC 10 may adjust the "time required to make a round of the patrol unit sequence" so that the "margin speed V margin becomes" 0 "or more". The PLC 10 starts sampling (data collection) according to a collection rule adjusted so that the margin speed V margin becomes "0" or more.

さらに、PLC10は、I/Oノード毎に、収集したデータの重要度の判定を行い、具体的には、各I/Oノードについて(より正確には、各I/Oノードのデータについて)、重要度(評価値)を算出する。 Further, the PLC 10 determines the importance of the collected data for each I / O node, and specifically, for each I / O node (more accurately, for the data of each I / O node). Calculate the importance (evaluation value).

PLC10は、重要度判定の結果に基づき、つまり、各I/Oノードの重要度を用いて、「余裕速度Vmarginが『0』以上となる」との条件を満たす範囲で、各I/Oノードの収集規則を調整する。具体的には、PLC10は、「余裕速度Vmarginが『0』以上となる」との条件下で、各I/Oノードについて、重要度に基づいて、巡回単位順列における「巡回頻度」、「サンプリング周波数」、および、「サンプリング点数」の少なくとも1つを調節する。例えば、PLC10は、重要度の高いI/Oノードについてはデータを詳細に収集し、かつ、重要度の低いI/Oノードについてはデータの過剰な収集を回避して収集するように、各I/Oノードの収集規則を、各I/Oノードの重要度に従って調整する。したがって、PLC10は、システムリソースを最大限に活かしつつ、重要性が高いデータを詳細かつ大量に収集することができる。 The PLC 10 is based on the result of the importance determination, that is, using the importance of each I / O node, within the range satisfying the condition that "the margin speed V margin is" 0 "or more", each I / O. Adjust the collection rules for the nodes. Specifically, the PLC 10 has "patrol frequency" and "patrol frequency" in the patrol unit order based on the importance of each I / O node under the condition that "margin speed V margin is" 0 "or more". Adjust at least one of "sampling frequency" and "sampling point". For example, the PLC 10 collects data in detail for high-importance I / O nodes, and avoids excessive data collection for low-importance I / O nodes. Adjust the collection rules for / O nodes according to the importance of each I / O node. Therefore, the PLC 10 can collect a large amount of highly important data in detail while making the best use of system resources.

(重要度についての注記)
PLC10がサンプリングする種々のデータに対する重要度(評価値)は、そのデータの利用目的によって異なり、利用目的はユーザにより様々である。例えば、オペレータであれば、「現場異常」の発生有無の判定を、データの主たる利用目的とするかもしれないし、ライン管理者であれば、「生産性および生産物の品質」の判定を、データの主たる利用目的とするかもしれない。また、保全担当者であれば、「異常の兆候、および、バスタブ曲線」の判定を、データの主たる利用目的とするかもしれないし、特に、「保全作業前後」の時期に取得したデータへの関心が高いかもしれない。解析担当者であれば、「良/不良まんべんなく」取得する、定時性の(つまり、所定期間ごとに取得した)データへの関心が高いかもしれず、例えば、四季ごとに取得するデータへの関心が高いかもしれない。
(Note on importance)
The importance (evaluation value) for various data sampled by the PLC 10 differs depending on the purpose of use of the data, and the purpose of use varies depending on the user. For example, an operator may use the data to determine whether or not an "on-site abnormality" has occurred, and a line manager may use the data to determine "productivity and product quality". May be the main purpose of use. Also, if you are a maintenance person, the judgment of "signs of abnormality and bathtub curve" may be the main purpose of use of the data, and in particular, you are interested in the data acquired during the "before and after maintenance work" period. May be high. If you are an analyst, you may be very interested in the punctual (that is, acquired at regular intervals) data that you acquire "good / bad evenly", for example, the data that you acquire every four seasons. It may be expensive.

データに対する重要度(評価値)は、利用目的ごとに異なるため、同じデータに対する、或る利用目的からみた重要度と、その或る利用目的とは別の利用目的からみた重要度とは、矛盾したり、衝突したりすることがあり得る。例えば、或る利用目的にとっては重要度が低く、削除しても構わないデータが、その或る利用目的とは別の利用目的にとっては、必須の、極めて重要度の高いデータであるかもしれない。 Since the importance (evaluation value) for data differs depending on the purpose of use, there is a contradiction between the importance of the same data from the viewpoint of one purpose of use and the importance of the same data from the viewpoint of another purpose of use. And can collide. For example, data that is less important to one purpose of use and may be deleted may be extremely important data that is essential for another purpose of use. ..

そこで、PLC10は、サンプリングした種々のデータの各々に対する、これら複数の「利用目的ごとの重要度」を自動調停し、「調停した重要度」を、サンプリングした種々のデータの各々に付与する。具体的には、PLC10は、サンプリングした種々のデータの各々について、複数の利用目的の各々に対応する複数の評価方式の各々を適用して、評価方式ごとの重要度を算出する。そして、PLC10は、サンプリングした種々のデータの各々について、算出した評価方式ごとの重要度を用いて、「複数の評価方式の全体に対応する重要度」である調停済重要度を算出し、算出した調停済重要度をサンプリングした種々のデータの各々に付与する。PLC10は、サンプリングした種々のデータの各々について、例えば、「評価方式ごとの重要度」を示す値に、「評価方式ごとの重み付け係数」を乗じた値の和を用いて、調停済重要度を算出する。また、PLC10は、サンプリングした種々のデータの各々について、例えば、「評価方式ごとの重要度」の中で最も高い重要度を、調停済重要度とする。 Therefore, the PLC 10 automatically arbitrates these plurality of "importances for each purpose of use" for each of the various sampled data, and assigns the "arbitrated importance" to each of the various sampled data. Specifically, the PLC 10 applies each of the plurality of evaluation methods corresponding to each of the plurality of purposes of use to each of the various sampled data, and calculates the importance of each evaluation method. Then, the PLC 10 calculates and calculates the arbitrated importance, which is the "importance corresponding to the entire plurality of evaluation methods", using the calculated importance of each evaluation method for each of the various sampled data. The arbitrated importance is given to each of the various sampled data. For each of the various sampled data, the PLC 10 uses, for example, the sum of the values indicating "importance for each evaluation method" multiplied by "weighting coefficient for each evaluation method" to determine the arbitrated importance. calculate. Further, in the PLC10, for each of the various sampled data, for example, the highest importance in the "importance for each evaluation method" is set as the arbitrated importance.

(表示処理等について)
PLC10は、ユーザが、データの収集状況をリアルタイムに把握して問題発見に役立てることができるよう、表示画面(例えば、ツールなどの外部表示装置の表示画面)に、実行中のサンプリング処理に係る情報を表示する。具体的には、PLC10は、「ユーザが設定した最大値Vamm」、「実行中のサンプリング処理に係る処理負荷の大きさを示す平均サンプリング速度Vmean」、および「最大値Vammと平均サンプリング速度Vmeanとの差である余裕速度Vmargin」を表示させる。また、PLC10は、例えば、「巡回単位順列に含まれる複数のI/Oノードの各々の名称」、「巡回単位順列における、各I/Oノードの出現順序」、および、「現在、データ収集対象となっているI/Oノード」を表示させる。さらに、PLC10は、例えば、各I/Oノードについて、適用中の収集規則における「サンプリング周波数」、「サンプリング点数」、および、「直近のデータに対する重要度」を表示させる。
(About display processing, etc.)
The PLC 10 displays information related to the sampling process being executed on the display screen (for example, the display screen of an external display device such as a tool) so that the user can grasp the data collection status in real time and use it for problem finding. Is displayed. Specifically, the PLC 10 has "maximum value Vamm set by the user", "average sampling rate Vmean indicating the magnitude of the processing load related to the sampling process during execution", and "maximum value Vamm and average sampling". The margin speed V margin , which is the difference from the speed V mean , is displayed. Further, the PLC 10 has, for example, "the name of each of the plurality of I / O nodes included in the traveling unit sequence", "the appearance order of each I / O node in the traveling unit sequence", and "currently, the data collection target". "I / O node" is displayed. Further, the PLC 10 displays, for example, "sampling frequency", "sampling score", and "importance to the latest data" in the collection rule being applied for each I / O node.

これまでに図2および図3を用いて説明してきたように、PLC10は、制御周期毎に繰り返し、スレーブ装置から制御データを取得し(つまり、取り込み)、取得した制御データから、データベース20に送信すべきデータを、収集規則に従って収集する。PLC10は、収集規則として定義された巡回単位順列に従って、データ収集対象とするI/Oノードを順次切り替えながら、各I/Oノードのデータを収集する。PLC10は、収集規則として定義された各I/Oノードの「巡回頻度」、「サンプリング周波数」、および「サンプリング点数」等を、平均サンプリング速度Vmeanが最大値Vamm以下となるように調整し、調整済の収集規則に従って、サンプリングを実行する。また、PLC10は、各I/Oノードについて(より正確には、各I/Oノードのデータについて)重要度を算出し、算出した重要度に基づいて、各I/Oノードの「巡回頻度」、「サンプリング周波数」、および「サンプリング点数」等を調整する。 As described above with reference to FIGS. 2 and 3, the PLC 10 repeats every control cycle, acquires control data from the slave device (that is, captures), and transmits the acquired control data to the database 20. Collect the data to be collected according to the collection rules. The PLC 10 collects data of each I / O node while sequentially switching the I / O nodes to be collected according to the cyclic unit order sequence defined as the collection rule. The PLC 10 adjusts the "circulation frequency", "sampling frequency", "sampling score", etc. of each I / O node defined as a collection rule so that the average sampling rate V mean is the maximum value Vamm or less. , Perform sampling according to the adjusted collection rules. Further, the PLC 10 calculates the importance of each I / O node (more accurately, about the data of each I / O node), and based on the calculated importance, the "patrol frequency" of each I / O node. , "Sampling frequency", "sampling point", etc.

(概要の整理)
すなわち、PLC10(マスタ装置)は、マスタスレーブ制御システムである制御システム1におけるマスタ装置であって、収集部140と、受付部120と、第1調整部130と、を備えている。収集部140は、サーボドライバ30等のスレーブ装置から周期的に取得した制御データから、データベース20等の外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集する。受付部120は、収集部140によって単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値Vammを受け付ける。第1調整部130は、前記所定の収集規則に従う収集部140によって単位時間あたりに収集されるデータのデータ量が、受付部120により受け付けられた最大値Vamm以下となるように、前記所定の収集規則を調整する。
(Organization of outline)
That is, the PLC 10 (master device) is a master device in the control system 1 which is a master-slave control system, and includes a collection unit 140, a reception unit 120, and a first adjustment unit 130. The collection unit 140 repeatedly collects each of a plurality of data to be transmitted to an external device such as the database 20 from the control data periodically acquired from the slave device such as the servo driver 30 according to a predetermined collection rule. The reception unit 120 receives the maximum value Vamm specified by the user for the amount of data collected per unit time by the collection unit 140. The first adjusting unit 130 has the predetermined amount of data collected per unit time by the collecting unit 140 in accordance with the predetermined collecting rule so that the data amount is equal to or less than the maximum value Vamm received by the receiving unit 120. Adjust collection rules.

前記の構成によれば、PLC10は、単位時間あたりに収集するデータのデータ量が最大値Vamm以下となるように前記所定の収集規則を調整し、調整した前記所定の収集規則に従って、前記制御データから、前記複数のデータの各々を繰り返し収集する。 According to the above configuration, the PLC 10 adjusts the predetermined collection rule so that the amount of data to be collected per unit time is not more than the maximum value Vamm , and the control is performed according to the adjusted predetermined collection rule. From the data, each of the plurality of data is repeatedly collected.

ここで、単位時間あたりに収集するデータのデータ量が大きくなるほど、PLC10のデータ収集に係る単位時間当たりの処理負荷が大きくなることは明らかである。つまり、最大値Vammは、PLC10のデータ収集に係る単位時間当たりの処理負荷に対応する。 Here, it is clear that the larger the amount of data to be collected per unit time, the larger the processing load per unit time related to the data collection of the PLC 10. That is, the maximum value Vamm corresponds to the processing load per unit time related to the data collection of the PLC 10.

したがって、PLC10は、データ収集に係る単位時間当たりの処理負荷が、ユーザの指定する最大値Vammに対応する処理負荷以下となるように、前記制御データから、データベース20の外部装置に送信すべきデータを収集することができるとの効果を奏する。言い換えれば、PLC10によってユーザは、前記制御データから前記複数のデータの各々を収集する処理に係る処理負荷を管理できるようになるとの効果を奏する。具体的には、ユーザは、PLC10に、「サーボドライバ30等のスレーブ対象に対する制御処理などの、データ収集処理以外の処理」の実行に影響のない適切な処理負荷で、データベース20に送信すべきデータを、前記制御データから収集させることができる。 Therefore, the PLC 10 should transmit the control data to the external device of the database 20 so that the processing load per unit time related to data collection is equal to or less than the processing load corresponding to the maximum value Vamm specified by the user. It has the effect of being able to collect data. In other words, the PLC 10 has an effect that the user can manage the processing load related to the process of collecting each of the plurality of data from the control data. Specifically, the user should transmit the PLC 10 to the database 20 with an appropriate processing load that does not affect the execution of "processing other than data collection processing such as control processing for the slave target such as the servo driver 30". Data can be collected from the control data.

また、「PLC10が単位時間あたりに収集するデータのデータ量」は、ユーザにとって直感的に把握しやすく、かつ、「PLC10の、データ収集に係る単位時間当たりの処理負荷」を正確に示すことのできる指標である。 Further, the "data amount of data collected by the PLC 10 per unit time" is easy for the user to intuitively grasp, and accurately indicates the "processing load of the PLC 10 per unit time related to data collection". It is an index that can be done.

したがって、PLC10は、「データ収集に係る単位時間当たりの処理負荷」の指標として正確で、かつ、ユーザにとって直感的な把握の容易な「単位時間あたりに収集するデータのデータ量」に基づいて、データ収集処理を管理できるとの効果を奏する。 Therefore, the PLC 10 is based on the "data amount of data to be collected per unit time" which is accurate as an index of "processing load per unit time related to data collection" and which is easy for the user to intuitively understand. It has the effect of being able to manage the data collection process.

PLC10において、前記所定の収集規則は、収集部140によって収集される前記複数のデータの各々の収集順序を示す順列(巡回単位順列)を含む。収集部140は、前記複数のデータの各々を、前記順列に従って繰り返し収集する。前記所定の収集規則に従う収集部140によって単位時間あたりに収集されるデータのデータ量は、例えば、「前記順列を一巡するまでに収集部140によって収集されるデータのデータ量を、前記順列を一巡するまでに収集部140が要する時間で除した値」である。 In the PLC 10, the predetermined collection rule includes a sequence (circular unit sequence) indicating the collection order of each of the plurality of data collected by the collection unit 140. The collection unit 140 repeatedly collects each of the plurality of data according to the order. The amount of data collected per unit time by the collecting unit 140 in accordance with the predetermined collection rule is, for example, "the amount of data collected by the collecting unit 140 by the time the order is cycled, and the order is cycled. It is a value divided by the time required by the collecting unit 140 to do so. "

前記の構成によれば、PLC10は、前記制御データから前記順列に従って繰り返し、データベース20等の外部装置に送信すべき前記複数のデータの各々を、収集する。 According to the above configuration, the PLC 10 repeats from the control data according to the order and collects each of the plurality of data to be transmitted to the external device such as the database 20.

したがって、PLC10は、例えば、制御システム1の監視および検証等を行うためのデータを、前記順列に示される収集順序で、前記制御データから繰り返し収集することができるとの効果を奏する。 Therefore, the PLC 10 has the effect that, for example, data for monitoring and verifying the control system 1 can be repeatedly collected from the control data in the collection order shown in the order.

PLC10において、第1調整部130は、前記所定の収集規則として、以下の4つの内の少なくとも1つを調整する。すなわち、第1調整部130は、(1)前記複数のデータの各々の、前記順列における出現回数である出現頻度、(2)前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数であるサンプリング点数、(3)前記複数のデータの各々の、前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数であるサンプリング周波数(収集周波数)、および、(4)前記順列を一巡するまでに収集部140が要する時間の少なくとも1つを調整する。 In the PLC 10, the first adjusting unit 130 adjusts at least one of the following four as the predetermined collection rule. That is, the first adjusting unit 130 has (1) an appearance frequency which is the number of appearances of each of the plurality of data in the order, and (2) for each appearance of each of the plurality of data in the order. The number of sampling points, which is the number of data points to be collected, (3) the sampling frequency (collecting frequency), which is the number of data points collected per unit time for each appearance of each of the plurality of data in the sequence. (4) At least one of the times required by the collecting unit 140 to make a round of the order is adjusted.

前記の構成によれば、PLC10は、前記所定の収集規則として、前記複数のデータの各々の、前記出現頻度、前記サンプリング点数、前記サンプリング周波数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。 According to the above configuration, as the predetermined collection rule, the PLC 10 has at least the frequency of appearance, the number of sampling points, the sampling frequency, and the time required to go around the sequence of each of the plurality of data. Adjust one.

ここで、複数の時点の各々における「前記複数のデータの各々」を、データベース20等の外部装置に蓄積して、一貫性のある解析を実行しようとする場合、前記外部装置に送信する前記複数のデータの各々のサンプリング周波数は、複数の時点の各々で不変とするのが望ましい。例えば、或るデータDaについて、或る時点T1でのサンプリング周波数が500Hzである場合、その或るデータDaの、別の時点T2でのサンプリング周波数は、その或るデータDaに対して一貫性のある解析を実行しようとする場合には、500Hzとするのが望ましい。そこで、例えば一貫性のある解析を目的として前記複数のデータの各々を収集する場合、PLC10は、前記複数のデータの各々の収集に際し、前記複数のデータの各々のサンプリング周波数は変更せずに、前記所定の収集規則に含まれる、それ以外の項目を調整する。具体的には、PLC10は、前記所定の収集規則として、前記複数のデータの各々の、出現頻度、前記サンプリング点数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。 Here, when "each of the plurality of data" at each of the plurality of time points is stored in an external device such as a database 20 and a consistent analysis is to be performed, the plurality of data is transmitted to the external device. It is desirable that the sampling frequency of each of the data in the above is invariant at each of the plurality of time points. For example, for a given data Da, if the sampling frequency at one time point T1 is 500 Hz, then the sampling frequency of that certain data Da at another time point T2 is consistent with respect to that certain data Da. If you want to perform a certain analysis, it is desirable to set it to 500 Hz. Therefore, for example, when collecting each of the plurality of data for the purpose of consistent analysis, the PLC 10 does not change the sampling frequency of each of the plurality of data when collecting each of the plurality of data. Adjust other items included in the prescribed collection rules. Specifically, the PLC 10 adjusts, as the predetermined collection rule, at least one of the frequency of appearance, the number of sampling points, and the time required to go around the sequence of each of the plurality of data.

また、前記複数のデータの各々を、所定の順序で、まんべんなく(つまり、特定のデータに偏ることなく)収集したい場合、PLC10は、前記複数のデータの各々の、出現頻度および前記サンプリング点数を変更しない。PLC10は、前記所定の収集規則のうち、前記複数のデータの各々のサンプリング周波数、および、前記順列を一巡するのに要する時間の少なくとも一方を調整して、前記制御データから、前記複数のデータの各々を繰り返し収集する。 Further, when it is desired to collect each of the plurality of data in a predetermined order evenly (that is, without being biased to a specific data), the PLC 10 changes the appearance frequency and the sampling point of each of the plurality of data. do not do. The PLC 10 adjusts at least one of the sampling frequency of each of the plurality of data and the time required to go around the sequence among the predetermined collection rules, and obtains the plurality of data from the control data. Collect each repeatedly.

さらに、前記複数のデータの各々を収集する時間(=収集期間)を連続させる必要がない場合、PLC10は、前記所定の収集規則のうち、前記順列を一巡するのに要する時間を調整する。PLC10は、例えば、「I/Oノード:A、B、C」の各々のデータを「順列:A、B、C」に従って繰り返し収集する場合、以下のように空き時間(=待ち時間)を挿入して、各I/Oノードのデータを、この順序で、1回収集する」のに要する時間を調整する。すなわち、PLC10は、「『I/Oノード:A』のデータの収集終了後から、『I/Oノード:B』のデータの収集開始までの間」、「『I/Oノード:B』のデータの収集終了後から、『I/Oノード:C』のデータの収集開始までの間」、および、「『I/Oノード:C』のデータの収集終了後から、『I/Oノード:A』のデータの収集開始までの間」の少なくとも1つに、空き時間を挿入する。 Further, when it is not necessary to continuously collect each of the plurality of data (= collection period), the PLC 10 adjusts the time required to go around the sequence among the predetermined collection rules. For example, when the PLC10 repeatedly collects each data of "I / O node: A, B, C" according to "sequential sequence: A, B, C", the PLC 10 inserts free time (= waiting time) as follows. Then, the time required to "collect the data of each I / O node once in this order" is adjusted. That is, the PLC 10 is described as "from the end of data collection of" I / O node: A "to the start of data collection of" I / O node: B "" and "I / O node: B". From the end of data collection to the start of data collection of "I / O node: C" "and" After the end of data collection of "I / O node: C", "I / O node: Insert free time in at least one of "A" until the start of data collection.

つまり、PLC10は、前記所定の収集規則のうち、前記複数のデータの各々の、出現頻度、サンプリング点数、サンプリング周波数、および、前記順列を一巡するのに要する時間の少なくとも1つを調整する。したがって、PLC10は、前記所定の収集規則のうち、前記複数のデータの利用目的等に好適な項目を適宜調整して、データ収集に係る処理負荷が最大値Vammに対応する処理負荷以下となるように、前記複数のデータを収集できるとの効果を奏する。 That is, the PLC 10 adjusts at least one of the occurrence frequency, the number of sampling points, the sampling frequency, and the time required to go around the sequence of each of the plurality of data among the predetermined collection rules. Therefore, the PLC 10 appropriately adjusts the items suitable for the purpose of using the plurality of data among the predetermined collection rules, and the processing load related to the data collection becomes equal to or less than the processing load corresponding to the maximum value Vamm . As described above, it has the effect of being able to collect the plurality of data.

PLC10は、収集部140によって収集された前記複数のデータ(つまり、各I/Oノードのデータ)の各々に対して付与される重要度(評価値)が所定の基準を満たすと、当該所定の基準を満たす重要度の付与されたデータの収集規則を調整する第2調整部160をさらに備える。各I/Oノードのデータに対して付与される重要度は、例えば、前述の「調停済重要度」である。 When the importance (evaluation value) given to each of the plurality of data (that is, the data of each I / O node) collected by the collecting unit 140 meets a predetermined criterion, the PLC 10 has the predetermined value. It further comprises a second coordinator 160 that adjusts the rules for collecting data with a degree of importance that meets the criteria. The importance given to the data of each I / O node is, for example, the above-mentioned “arbitrated importance”.

第2調整部160は、所定の基準を満たす重要度が付与されたI/Oノードの、(1)出現頻度、(2)サンプリング点数、および、(3)サンプリング周波数の少なくとも1つを調整する。第1調整部130は、第2調整部160により調整された出現頻度、サンプリング点数、および、サンプリング周波数を含む収集規則を、最大値Vammを用いてさらに調整する。 The second adjusting unit 160 adjusts at least one of (1) the frequency of appearance, (2) the number of sampling points, and (3) the sampling frequency of the I / O node given the importance of satisfying a predetermined criterion. .. The first adjusting unit 130 further adjusts the collection rule including the appearance frequency, the number of sampling points, and the sampling frequency adjusted by the second adjusting unit 160 by using the maximum value Vamm .

前記の構成によれば、PLC10は、前記複数のデータの各々に対して付与される重要度に従って、前記複数のデータの各々の、出現頻度、サンプリング点数、および、サンプリング周波数の少なくとも1つを調整する。 According to the above configuration, the PLC 10 adjusts at least one of the frequency of appearance, the number of sampling points, and the sampling frequency of each of the plurality of data according to the importance given to each of the plurality of data. do.

例えば、PLC10は、高い重要度の付与されたデータについては、出現頻度、サンプリング点数、および、サンプリング周波数の少なくとも1つの値を増加させる。また、PLC10は、低い重要度の付与されたデータについては、出現頻度、サンプリング点数、および、サンプリング周波数の少なくとも1つの値を減少させる。 For example, PLC10 increases at least one value of frequency of occurrence, number of sampling points, and sampling frequency for data with high importance. The PLC 10 also reduces at least one value of frequency of occurrence, number of sampling points, and sampling frequency for data with low importance.

したがって、PLC10は、前記複数のデータの各々を、各々の前記重要度に従った、出現頻度、サンプリング点数、および、サンプリング周波数で、収集することができるとの効果を奏する。 Therefore, the PLC 10 has the effect that each of the plurality of data can be collected at the appearance frequency, the number of sampling points, and the sampling frequency according to the respective importance.

ここで、PLC10は、前記重要度に従って調整した、前記複数のデータの各々の、出現頻度、サンプリング点数、および、サンプリング周波数を含む収集規則を、最大値Vammを用いてさらに調整する。 Here, the PLC 10 further adjusts the collection rule including the appearance frequency, the number of sampling points, and the sampling frequency of each of the plurality of data adjusted according to the importance, using the maximum value Vamm .

したがって、PLC10は、前記複数のデータの各々を、各々の前記重要度に従った、かつ、前記複数のデータの各々の収集に係る単位時間当たりの処理負荷が最大値Vammに対応する処理負荷以下となるように、収集することができるとの効果を奏する。 Therefore, the PLC 10 processes each of the plurality of data according to the respective importance, and the processing load per unit time related to the collection of each of the plurality of data corresponds to the maximum value Vamm . It has the effect of being able to collect as follows.

PLC10において、第1調整部130は、前記複数のデータの各々のサンプリング点数およびサンプリング周波数の少なくとも一方を、低減率Rを用いて一律の割合で小さくすることによって、収集規則を調整する。 In the PLC 10, the first adjusting unit 130 adjusts the collection rule by reducing at least one of the sampling points and the sampling frequencies of each of the plurality of data at a uniform rate using the reduction rate R.

前記の構成によれば、PLC10は、例えば、前記複数のデータの各々を所定の順序で収集したい場合、前記所定の収集規則のうち、「前記複数のデータの各々の、前記順列における出現回数」については、変更しない。その代わりに、PLC10は、前記複数のデータの各々のサンプリング点数およびサンプリング周波数の少なくとも一方を、低減率Rを用いて一律の割合で小さくすることで、データ収集に係る処理負荷を減少させる。 According to the above configuration, for example, when the PLC 10 wants to collect each of the plurality of data in a predetermined order, the PLC 10 "the number of appearances of each of the plurality of data in the order" in the predetermined collection rule. Will not change. Instead, the PLC 10 reduces the processing load related to data acquisition by reducing at least one of the sampling points and the sampling frequencies of each of the plurality of data at a uniform rate using the reduction rate R.

したがって、PLC10は、例えば、前記複数のデータの各々を所定の順序で収集したい場合などに、「前記複数のデータの各々の、前記順列における出現回数」を変更せずに、データ収集に係る処理負荷を減少させることができるとの効果を奏する。 Therefore, the PLC 10 performs a process related to data collection without changing "the number of appearances of each of the plurality of data in the order" when, for example, it is desired to collect each of the plurality of data in a predetermined order. It has the effect of reducing the load.

PLC10は、(1)最大値Vamm、(2)第1調整部130によって調整された収集規則に従う収集部140によって単位時間あたりに収集されるデータのデータ量、および、(3)両者の差である余裕速度Vmarginをユーザに対して表示させる表示制御部170をさらに備えている。 The PLC 10 has (1) the maximum value V amm , (2) the amount of data collected per unit time by the collecting unit 140 according to the collecting rule adjusted by the first adjusting unit 130, and (3) the difference between the two. Further, a display control unit 170 for displaying the marginal speed V margin , which is the above, to the user is provided.

前記の構成によれば、PLC10は、ユーザが一見して認識できるように、データ収集に要している現在の処理負荷から、データ収集に係る処理負荷の許容値(つまり、最大値Vamm)までの余裕度を通知することができるとの効果を奏する。 According to the above configuration, the PLC 10 has an allowable value (that is, a maximum value Vamm ) of the processing load related to data collection from the current processing load required for data collection so that the user can recognize at a glance. It has the effect of being able to notify the margin of up to.

PLC10において、収集部140によって収集される前記複数のデータの各々は、サーボドライバ30等のスレーブ装置から周期的に取得した制御データのうち、ユーザによって収集対象として選択されたデータである。 In the PLC 10, each of the plurality of data collected by the collection unit 140 is data selected as a collection target by the user from the control data periodically acquired from the slave device such as the servo driver 30.

前記の構成によれば、PLC10は、サーボドライバ30等のスレーブ装置から周期的に取得した前記制御データのうち、ユーザによって収集対象として選択されたデータを、前記所定の収集規則に従って、繰り返し収集する。 According to the above configuration, the PLC 10 repeatedly collects the data selected as the collection target by the user from the control data periodically acquired from the slave device such as the servo driver 30 according to the predetermined collection rule. ..

したがって、PLC10は、前記制御データのうち、ユーザによって収集対象として選択されたデータのみを、単位時間あたりに収集するデータのデータ量が最大値Vamm以下となるように、繰り返し収集することができるとの効果を奏する。 Therefore, the PLC 10 can repeatedly collect only the data selected as the collection target by the user among the control data so that the data amount of the data to be collected per unit time is not more than the maximum value Vamm . It has the effect of.

これまでに概要を説明してきたPLC10について、次に、先ずその構成の詳細について図1および図4を参照しながら説明し、その後、PLC10が実行する処理について、図5を参照しながら説明していく。 The PLC10 whose outline has been described so far will be described first with reference to FIGS. 1 and 4, and then the processing executed by the PLC 10 will be described with reference to FIG. go.

§2.構成例
(マスタ装置の詳細)
図1は、PLC10等の要部構成を示すブロック図である。図1に示すように、PLC10は、記憶部180以外の機能ブロックとして、取得部110、受付部120、第1調整部130、収集部140、評価部150、第2調整部160、および、表示制御部170を備えている。なお、記載の簡潔性を担保するため、サーボドライバ30に対する制御指示を演算する構成、および、演算した制御指示をサーボドライバ30へ出力する構成などの、本実施の形態に直接関係のない構成は、説明およびブロック図から省略している。ただし、実施の実情に則して、PLC10は、当該省略された構成を備えてもよい。図1に例示した各機能ブロックは、例えば、CPU(central processing unit)等が、ROM(read only memory)、NVRAM(non-Volatile random access memory)等で実現された記憶装置(記憶部180)に記憶されているプログラムを不図示のRAM(random access memory)等に読み出して実行することで実現できる。以下、PLC10における各機能ブロックについて説明する。
§2. Configuration example (details of master device)
FIG. 1 is a block diagram showing a configuration of a main part such as PLC10. As shown in FIG. 1, the PLC 10 has an acquisition unit 110, a reception unit 120, a first adjustment unit 130, a collection unit 140, an evaluation unit 150, a second adjustment unit 160, and a display as functional blocks other than the storage unit 180. A control unit 170 is provided. In order to ensure the simplicity of the description, configurations that are not directly related to the present embodiment, such as a configuration in which a control instruction to the servo driver 30 is calculated and a configuration in which the calculated control instruction is output to the servo driver 30, are included. , Omitted from the description and block diagram. However, according to the actual situation of implementation, the PLC 10 may have the omitted configuration. Each functional block illustrated in FIG. 1 is, for example, in a storage device (storage unit 180) in which a CPU (central processing unit) or the like is realized by a ROM (read only memory), an NVRAM (non-Volatile random access memory), or the like. This can be realized by reading the stored program into a RAM (random access memory) (not shown) or the like and executing it. Hereinafter, each functional block in the PLC 10 will be described.

(記憶部以外の機能ブロックの詳細)
取得部110は、サーボドライバ30などのスレーブ装置から、スレーブ装置の出力する制御データを制御周期ごとに取得し、取得した制御データを、記憶部180の制御データテーブル181に格納する。
(Details of functional blocks other than the storage unit)
The acquisition unit 110 acquires control data output by the slave device from a slave device such as the servo driver 30 for each control cycle, and stores the acquired control data in the control data table 181 of the storage unit 180.

受付部120は、通信ケーブルを介してPLC10に接続されているツールなどから、「PLC10が、制御データから単位時間あたりに収集するデータのデータ量について、ユーザの指定する最大値」である最大値Vammを受け付ける。受付部120は、受け付けた最大値Vammを、記憶部180の最大許容値テーブル182に格納する。 The reception unit 120 is a maximum value that is "the maximum value specified by the user regarding the amount of data collected by the PLC 10 per unit time from the control data" from a tool or the like connected to the PLC 10 via a communication cable. Accepts V amm . The reception unit 120 stores the received maximum value Vamm in the maximum allowable value table 182 of the storage unit 180.

受付部120は、また、「PLC10がサンプリング処理を実行する際に従う収集規則についての、ユーザの初期設定(基準値)」をツールなどから受け付け、受け付けた「収集規則の初期設定」を、記憶部180の収集規則テーブル183に格納する。具体的には、受付部120は、各I/Oノードの、「名称(識別子)」、「データ型」、「サンプリング周波数の初期設定値(基準周波数)」、および「サンプリング点数の初期設定値(基準点数)」等を受け付け、これらを収集規則テーブル183に格納する。収集規則テーブル183に格納される「名称(識別子)」、「データ型」、「基準周波数」、および「基準点数」等について、詳細は図4の説明において後述する。本実施の形態において、「基準周波数」は「基準サンプリング周波数」とも称し、「基準点数」は「基準サンプリング点数」とも称する。 The reception unit 120 also receives the "user's initial setting (reference value) for the collection rule to be followed when the PLC 10 executes the sampling process" from a tool or the like, and stores the received "collection rule initial setting". It is stored in the collection rule table 183 of 180. Specifically, the reception unit 120 has the "name (identifier)", "data type", "initial setting value of sampling frequency (reference frequency)", and "initial setting value of sampling points" of each I / O node. (Reference score) ”and the like are received, and these are stored in the collection rule table 183. Details of the "name (identifier)", "data type", "reference frequency", "reference point number", etc. stored in the collection rule table 183 will be described later in the description of FIG. In the present embodiment, the "reference frequency" is also referred to as a "reference sampling frequency", and the "reference point number" is also referred to as a "reference sampling point number".

第1調整部130は、PLC10が実行するサンプリング処理に係る処理負荷が、ユーザの許容する最大処理負荷以下となるように、PLC10がサンプリング処理を実行する際に従う収集規則を調整する。 The first adjusting unit 130 adjusts the collection rules to be followed when the PLC 10 executes the sampling process so that the processing load related to the sampling process executed by the PLC 10 is equal to or less than the maximum processing load allowed by the user.

(基準収集規則の、最大値Vammを用いた調整)
第1調整部130は、先ず、図4等に例示する収集規則テーブル183を参照して、「調整後の収集規則」が未だ収集規則テーブル183に格納されていないことを確認すると、「基準収集規則(つまり、初期設定段階の収集規則)」を取得する。第1調整部130は、収集規則テーブル183の「ID」、「名称」、および「データ型」等の項目に入力値があって、かつ、「実周波数」および「実点数」等の項目に入力値のない行があると、「調整後の収集規則」が格納されていないと判定する。
(Adjustment using the maximum value Vamm of the standard collection rule)
First, the first adjusting unit 130 refers to the collection rule table 183 exemplified in FIG. 4 and the like, and confirms that the "adjusted collection rule" is not yet stored in the collection rule table 183. Get the rule (that is, the collection rule at the initialization stage). The first adjusting unit 130 has input values in the items such as "ID", "name", and "data type" of the collection rule table 183, and in the items such as "actual frequency" and "actual score". If there is a line with no input value, it is determined that the "adjusted collection rule" is not stored.

第1調整部130は、「調整後の収集規則」が格納されていないと判定すると、各I/Oノードの「データ型」、「巡回頻度」、「基準周波数」、「基準点数」、および、「巡回単位順列を一巡するまでに要する時間」を含む、「基準収集規則」を取得する。 When the first adjusting unit 130 determines that the "adjusted collection rule" is not stored, the "data type", "patrol frequency", "reference frequency", "reference point number", and the reference point number of each I / O node are stored. , Acquire a "standard collection rule" including "time required to complete a round of the patrol unit sequence".

第1調整部130は、次に、基準収集規則に従ってPLC10がサンプリング処理を実行した場合に要する処理負荷の大きさを示す値(平均サンプリング速度Vmean)を算出する。基準収集規則から平均サンプリング速度Vmeanを算出する方法について、詳細は図7の説明において後述する。 Next, the first adjusting unit 130 calculates a value ( mean sampling rate Vmean) indicating the magnitude of the processing load required when the PLC 10 executes the sampling process according to the reference collection rule. The method of calculating the mean sampling rate Vmean from the reference collection rule will be described in detail later in the description of FIG. 7.

そして、第1調整部130は、「余裕速度Vmargin(=最大値Vamm-平均サンプリング速度Vmean)が『0』以上であるか」を判定する。 Then, the first adjusting unit 130 determines "whether the margin speed V margin (= maximum value V amm - mean sampling speed V main) is" 0 "or more."

第1調整部130は、「余裕速度Vmarginが『0』以上である」と判定すると、PLC10が実際にサンプリング処理を実行する際に従う収集規則として、基準収集規則をそのまま変更せずに採用する。すなわち、第1調整部130は、各I/Oノードについて、収集規則テーブル183の「基準周波数」および「基準点数」の各々の値を、「実周波数」および「実点数」の各々へと格納する。 When the first adjusting unit 130 determines that the margin speed V margin is "0" or more, the first adjusting unit 130 adopts the reference collecting rule as it is as the collecting rule to be followed when the PLC 10 actually executes the sampling process. .. That is, the first adjusting unit 130 stores the respective values of the "reference frequency" and the "reference point number" in the collection rule table 183 in each of the "actual frequency" and the "actual score" for each I / O node. do.

第1調整部130は、「余裕速度Vmarginが『0』未満である」と判定すると、基準収集規則を調整し、調整後の収集規則を、PLC10が実際にサンプリング処理を実行する際に従う収集規則として採用する。すなわち、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように調整した収集規則を、収集規則テーブル183に格納する。具体的には、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように調整した値を、収集規則テーブル183の「実周波数」および「実点数」へと格納する。また、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、収集規則テーブル183に格納されている巡回単位順列を調整する。さらに、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、収集規則テーブル183に格納されている「巡回単位順列を一巡するまでに要する時間」を調整する。第1調整部130による収集規則の調整方法について、詳細は図9から図12の説明において後述する。 When the first adjusting unit 130 determines that "the margin speed V margin is less than" 0 "", the first adjusting unit 130 adjusts the reference collecting rule, and collects the adjusted collecting rule according to when the PLC 10 actually executes the sampling process. Adopt as a rule. That is, the first adjustment unit 130 stores the collection rule adjusted so that "the margin speed V margin is" 0 "or more" in the collection rule table 183. Specifically, for example, the first adjusting unit 130 transfers the value adjusted so that the margin speed V margin is "0" or more to the "actual frequency" and "actual score" of the collection rule table 183. Store. Further, for example, the first adjusting unit 130 adjusts the patrol unit order sequence stored in the collection rule table 183 so that “the margin speed V margin becomes“ 0 ”or more”. Further, for example, the first adjusting unit 130 adjusts the "time required to make a round of the patrol unit sequence" stored in the collection rule table 183 so that "the margin speed V margin becomes" 0 "or more". do. The method of adjusting the collection rule by the first adjusting unit 130 will be described in detail later in the description of FIGS. 9 to 12.

(調整後の収集規則の、最大値Vammを用いた再調整)
第1調整部130は、図4等に例示する収集規則テーブル183を参照して、「ID」、「名称」、および「データ型」等の項目に入力値がある行の、「実周波数」および「実点数」等の項目に入力値があると、「調整後の収集規則」が格納されていると判定する。第1調整部130は、調整後の収集規則に従ったサンプリング処理の処理負荷の大きさを示す値(平均サンプリング速度Vmean)を算出する。調整後の収集規則から平均サンプリング速度Vmeanを算出する方法は、基準収集規則から平均サンプリング速度Vmeanを算出する方法と同様である。
(Re-adjustment of the adjusted collection rule using the maximum value Vamm )
The first adjusting unit 130 refers to the collection rule table 183 exemplified in FIG. 4 and the like, and refers to the “real frequency” of the row in which the input values are in the items such as “ID”, “name”, and “data type”. And if there is an input value in an item such as "actual score", it is determined that the "adjusted collection rule" is stored. The first adjusting unit 130 calculates a value (mean sampling rate Vmaan ) indicating the magnitude of the processing load of the sampling process according to the adjusted collection rule. The method of calculating the mean sampling rate V mean from the adjusted collection rule is the same as the method of calculating the mean sampling rate V mean from the reference collection rule.

そして、第1調整部130は、「余裕速度Vmargin(=最大値Vamm-平均サンプリング速度Vmean)が『0』以上であるか」を判定する。 Then, the first adjusting unit 130 determines "whether the margin speed V margin (= maximum value V amm - mean sampling speed V main) is" 0 "or more."

第1調整部130は、「余裕速度Vmarginが『0』以上である」と判定すると、PLC10が実際にサンプリング処理を実行する際に従う収集規則として、収集規則テーブル183に格納されている調整後の収集規則をそのまま変更せずに採用する。すなわち、第1調整部130は、各I/Oノードについて、収集規則テーブル183の「実周波数」および「実点数」の各々の項目に格納されている値を変更しない。 When the first adjusting unit 130 determines that "the margin speed V margin is" 0 "or more", it is stored in the collecting rule table 183 as a collecting rule to be followed when the PLC 10 actually executes the sampling process. Adopt the collection rules of No. without changing them. That is, the first adjusting unit 130 does not change the values stored in the respective items of the "real frequency" and the "real score" of the collection rule table 183 for each I / O node.

第1調整部130は、「余裕速度Vmarginが『0』未満である」と判定すると、調整後の収集規則を再調整し、再調整後の収集規則を、PLC10が実際にサンプリング処理を実行する際に従う収集規則として採用する。すなわち、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように再調整した収集規則を、収集規則テーブル183に格納する。具体的には、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように再調整した値を、収集規則テーブル183の「実周波数」および「実点数」へと格納する。また、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、収集規則テーブル183に格納されている巡回単位順列を調整する。さらに、例えば、第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、収集規則テーブル183に格納されている「巡回単位順列を一巡するまでに要する時間」を調整する。第1調整部130による収集規則の調整方法について、詳細は図9から図12の説明において後述する。 When the first adjusting unit 130 determines that "the margin speed V margin is less than" 0 "", the adjusted collection rule is readjusted, and the PLC 10 actually executes the sampling process for the readjusted collection rule. Adopt as a collection rule to follow. That is, the first adjustment unit 130 stores the collection rule readjusted so that “the margin speed V margin becomes“ 0 ”or more” in the collection rule table 183. Specifically, for example, the first adjusting unit 130 transfers the value readjusted so that the margin speed V margin becomes "0" or more to the "actual frequency" and "actual score" of the collection rule table 183. And store. Further, for example, the first adjusting unit 130 adjusts the patrol unit order sequence stored in the collection rule table 183 so that “the margin speed V margin becomes“ 0 ”or more”. Further, for example, the first adjusting unit 130 adjusts the "time required to make a round of the patrol unit sequence" stored in the collection rule table 183 so that "the margin speed V margin becomes" 0 "or more". do. The method of adjusting the collection rule by the first adjusting unit 130 will be described in detail later in the description of FIGS. 9 to 12.

収集部140は、収集規則テーブル183に格納されている調整後の収集規則に従って、サンプリング処理を実行し、つまり、制御データテーブル181を参照して、データベース20に送信すべきデータを収集する。すなわち、収集部140は、収集規則テーブル183に格納されている巡回単位順列に従って、データ収集対象とするI/Oノードを順次切り替えながら、各I/Oノードのデータを収集する。その際、収集部140は、収集規則テーブル183に格納されている「巡回単位順列を一巡するまでに要する時間」で、巡回単位順列を一巡する。また、収集部140は、収集規則テーブル183に格納されている、各I/Oノードの「実周波数」および「実点数」に従って、各I/Oノードのデータを収集する。そして、第1調整部130によって調整された収集規則に従って収集したデータを、収集部140は、評価部150に通知する。 The collection unit 140 executes the sampling process according to the adjusted collection rule stored in the collection rule table 183, that is, refers to the control data table 181 and collects the data to be transmitted to the database 20. That is, the collection unit 140 collects the data of each I / O node while sequentially switching the I / O nodes to be collected according to the patrol unit order sequence stored in the collection rule table 183. At that time, the collecting unit 140 makes a round of the patrol unit sequence in the "time required to make a round of the patrol unit sequence" stored in the collection rule table 183. Further, the collecting unit 140 collects the data of each I / O node according to the "actual frequency" and the "actual score" of each I / O node stored in the collection rule table 183. Then, the collection unit 140 notifies the evaluation unit 150 of the data collected according to the collection rule adjusted by the first adjustment unit 130.

評価部150は、収集規則テーブル183に格納されている調整後の収集規則に従って収集部140が収集した各I/Oノードのデータに対して、重要度(例えば、調停済重要度)を算出し、算出した重要度を、収集規則テーブル183に格納する。 The evaluation unit 150 calculates the importance (for example, arbitrated importance) for the data of each I / O node collected by the collection unit 140 according to the adjusted collection rule stored in the collection rule table 183. , The calculated importance is stored in the collection rule table 183.

例えば、収集規則テーブル183に格納されている「順列:A、B、C、A、D、E、F」に従って収集部140が収集する、順列の先頭に出現する「I/Oノード:A」について、評価部150は、重要度を算出する。評価部150は、算出した重要度を、収集規則テーブル183の、順列の先頭に出現する「I/Oノード:A」の「重要度」の項目に格納する。同様に、収集規則テーブル183に格納されている「順列:A、B、C、A、D、E、F」に従って収集部140が収集する、順列の先頭から4番目に出現する「I/Oノード:A」について、評価部150は、重要度を算出する。評価部150は、算出した重要度を、収集規則テーブル183の、順列の先頭から4番目に出現する「I/Oノード:A」の「重要度」の項目に格納する。 For example, the "I / O node: A" appearing at the beginning of the sequence collected by the collection unit 140 according to the "sequential sequence: A, B, C, A, D, E, F" stored in the collection rule table 183. The evaluation unit 150 calculates the importance of the above. The evaluation unit 150 stores the calculated importance in the item of "importance" of "I / O node: A" appearing at the head of the order in the collection rule table 183. Similarly, the "I / O" that appears fourth from the beginning of the sequence is collected by the collection unit 140 according to the "sequence: A, B, C, A, D, E, F" stored in the collection rule table 183. For "node: A", the evaluation unit 150 calculates the importance. The evaluation unit 150 stores the calculated importance in the item of "importance" of the "I / O node: A" that appears fourth from the beginning of the order in the collection rule table 183.

前述の通り、評価部150は、各I/Oノードのデータについて、例えば、複数の利用目的の各々に対応する複数の評価方式の各々を適用して、評価方式ごとの重要度を算出する。そして、評価部150は、算出した評価方式ごとの重要度を用いて、「複数の評価方式の全体に対応する重要度」である調停済重要度を算出し、算出した調停済重要度を、収集規則テーブル183における各I/Oノードの「重要度」の項目に格納する。評価部150は、各I/Oノードのデータについて、例えば、「評価方式ごとの重要度」を示す値に、「評価方式ごとの重み付け係数」を乗じた値の和を用いて、調停済重要度を算出する。また、評価部150は、各I/Oノードのデータについて、例えば、「評価方式ごとの重要度」の中で最も高い重要度を、調停済重要度とする。 As described above, the evaluation unit 150 applies, for example, each of the plurality of evaluation methods corresponding to each of the plurality of purposes of use to the data of each I / O node, and calculates the importance of each evaluation method. Then, the evaluation unit 150 calculates the arbitrated importance, which is the "importance corresponding to the entire plurality of evaluation methods", using the calculated importance of each evaluation method, and determines the calculated arbitrated importance. It is stored in the item of "importance" of each I / O node in the collection rule table 183. The evaluation unit 150 uses, for example, the sum of the values indicating "importance for each evaluation method" multiplied by the "weighting coefficient for each evaluation method" for the data of each I / O node, and is arbitrated important. Calculate the degree. Further, the evaluation unit 150 sets the highest importance of the data of each I / O node in the "importance for each evaluation method" as the arbitrated importance.

さらに、評価部150は、収集部140から通知された各I/Oノードのデータを、データベース20に送信し、これらのデータを収集データテーブル21に保存させる。 Further, the evaluation unit 150 transmits the data of each I / O node notified from the collection unit 140 to the database 20, and stores these data in the collection data table 21.

第2調整部160は、収集規則テーブル183を参照して、収集規則テーブル183における各I/Oノードの「重要度」が所定の基準を満たしているかを判定し、所定の基準を満たしていると判定したI/Oノードについての収集規則を変更する(調整する)。 The second adjusting unit 160 refers to the collection rule table 183, determines whether the "importance" of each I / O node in the collection rule table 183 meets a predetermined standard, and satisfies the predetermined standard. Change (adjust) the collection rule for the I / O node determined to be.

具体的には、第2調整部160は、所定の基準を満たしていると判定したI/Oノードについて、収集規則テーブル183の「実周波数」、「実点数」、および、「巡回頻度(より正確には、相対的な巡回頻度)」の少なくとも一つの項目を更新する。第2調整部160による「実周波数」、「実点数」、および、「巡回頻度」の更新内容について、詳細は後に図6を用いて説明する。 Specifically, the second adjusting unit 160 determines that the I / O node meets the predetermined criteria, the “real frequency”, the “real score”, and the “patrol frequency” of the collection rule table 183. To be precise, at least one item of "relative patrol frequency)" is updated. Details of the updated contents of the "actual frequency", the "actual score", and the "patrol frequency" by the second adjusting unit 160 will be described later with reference to FIG.

表示制御部170は、表示画面(例えば、ツールなどの外部表示装置の表示画面)に、実行中のサンプリング処理に係る情報を表示する。表示制御部170は、例えば、ユーザの設定した最大値Vamm、実行中のサンプリング処理に係る処理負荷の大きさを示す平均サンプリング速度Vmean、および、最大値Vammと平均サンプリング速度Vmeanとの差である余裕速度Vmarginを表示させる。また、表示制御部170は、例えば、「巡回単位順列に含まれる複数のI/Oノードの各々の名称」、「巡回単位順列における、各I/Oノードの出現順序」、および、「現在、データ収集対象となっているI/Oノード」を表示させる。さらに、表示制御部170は、例えば、各I/Oノードについて、適用中の収集規則における「サンプリング周波数」、「サンプリング点数」、および、「直近のデータに対する重要度」を表示させる。 The display control unit 170 displays information related to the sampling process being executed on the display screen (for example, the display screen of an external display device such as a tool). The display control unit 170 includes, for example, a maximum value Vamm set by the user, an average sampling rate Vmean indicating the magnitude of the processing load related to the sampling process during execution, and a maximum value Vamm and an average sampling rate Vmean . The margin speed V marin, which is the difference between the two, is displayed. Further, the display control unit 170 may, for example, "name each of the plurality of I / O nodes included in the patrol unit sequence", "the appearance order of each I / O node in the patrol unit sequence", and "currently, Display the "I / O node for which data is to be collected". Further, the display control unit 170 displays, for example, the “sampling frequency”, the “sampling point”, and the “importance to the latest data” in the collection rule being applied for each I / O node.

(記憶部の詳細)
記憶部180は、PLC10が使用する各種データを格納する記憶装置である。なお、記憶部180は、PLC10が実行する(1)制御プログラム、(2)OSプログラム、(3)PLC10が有する各種機能を実行するためのアプリケーションプログラム、および、(4)該アプリケーションプログラムを実行するときに読み出す各種データを非一時的に記憶してもよい。上記の(1)~(4)のデータは、例えば、ROM(read only memory)、フラッシュメモリ、EPROM(Erasable Programmable ROM)、EEPROM(登録商標)(Electrically EPROM)、HDD(Hard Disc Drive)等の不揮発性記憶装置に記憶される。PLC10は、図示しない一時記憶部を備えていてもよい。一時記憶部は、PLC10が実行する各種処理の過程で、演算に使用するデータおよび演算結果等を一時的に記憶するいわゆるワーキングメモリであり、RAM(Random Access Memory)等の揮発性記憶装置で構成される。どのデータをどの記憶装置に記憶するのかについては、PLC10の使用目的、利便性、コスト、または、物理的な制約等から適宜決定される。記憶部180はさらに制御データテーブル181、最大許容値テーブル182、および、収集規則テーブル183を格納している。
(Details of memory)
The storage unit 180 is a storage device that stores various data used by the PLC 10. The storage unit 180 executes (1) a control program executed by the PLC 10, (2) an OS program, (3) an application program for executing various functions of the PLC 10, and (4) the application program. Various data to be read at times may be stored non-temporarily. The data of (1) to (4) above may be, for example, ROM (read only memory), flash memory, EPROM (Erasable Programmable ROM), EEPROM (registered trademark) (Electrically EPROM), HDD (Hard Disc Drive), or the like. Stored in a non-volatile storage device. The PLC 10 may include a temporary storage unit (not shown). The temporary storage unit is a so-called working memory that temporarily stores data used for calculation and calculation results in the process of various processes executed by the PLC 10, and is composed of a volatile storage device such as a RAM (Random Access Memory). Will be done. Which data is stored in which storage device is appropriately determined from the purpose of use, convenience, cost, physical restrictions, and the like of the PLC 10. The storage unit 180 further stores the control data table 181 and the maximum allowable value table 182, and the collection rule table 183.

制御データテーブル181には、取得部110によって、取得部110がスレーブ装置から制御周期ごとに取得した制御データが格納される。最大許容値テーブル182には、受付部120によって、受付部120が受け付けた最大値Vammが格納される。収集規則テーブル183には、収集部140がサンプリングを実行する際に従う、つまり、収集部140が制御データテーブル181を参照してデータベース20に送信すべきデータを収集する際に従う、収集規則等が格納される。 The control data table 181 stores the control data acquired by the acquisition unit 110 from the slave device for each control cycle by the acquisition unit 110. In the maximum allowable value table 182, the maximum value Vamm received by the reception unit 120 is stored by the reception unit 120. The collection rule table 183 stores the collection rules and the like that the collection unit 140 follows when performing sampling, that is, the collection unit 140 refers to the control data table 181 and collects data to be transmitted to the database 20. Will be done.

(収集規則テーブルの概要)
図4は、収集規則テーブル183のデータ構造の一例を示す図である。図4に例示するように、収集規則テーブル183には、例えば、各I/Oノードを識別するIDが、巡回単位順列における出現順序に従って格納されており、つまり、収集規則テーブル183には、巡回単位順列が格納されている。言い換えれば、収集規則テーブル183の「ID」の項目に格納されているIDに対応するI/Oノードが、収集規則テーブル183の「ID」の項目に格納されている順に(例えば、図4の紙面の上から順に)、データ収集対象となる。図4の例では、「順列:A、B、C、D、E、F、・・・、X」との巡回単位順列が収集規則テーブル183において規定されている。つまり、図4に例示する収集規則テーブル183には、「Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後に・・・、Xの後にA」との巡回単位順列が格納されている。
(Overview of collection rule table)
FIG. 4 is a diagram showing an example of the data structure of the collection rule table 183. As illustrated in FIG. 4, in the collection rule table 183, for example, the IDs that identify each I / O node are stored in the order of appearance in the patrol unit sequence, that is, in the collection rule table 183, the patrol is performed. A unit sequence is stored. In other words, the I / O nodes corresponding to the IDs stored in the "ID" item of the collection rule table 183 are stored in the "ID" item of the collection rule table 183 (for example, in FIG. 4). Data will be collected from the top of the page). In the example of FIG. 4, the patrol unit sequence of "sequential sequence: A, B, C, D, E, F, ..., X" is specified in the collection rule table 183. That is, in the collection rule table 183 exemplified in FIG. 4, "A is followed by B, B is followed by C, C is followed by D, D is followed by E, E is followed by F, F is followed by ..., and X is followed by. The patrol unit order sequence with "A" is stored.

本実施形態の説明においては、記載を簡略化するため、例えば、「ID:A」のI/Oノードを「I/Oノード:A」と、「ID:B」のI/Oノードを「I/Oノード:B」といったように略記することがある。 In the description of the present embodiment, for the sake of simplification, for example, the I / O node of "ID: A" is referred to as "I / O node: A" and the I / O node of "ID: B" is referred to as "I / O node". It may be abbreviated as "I / O node: B".

ユーザは、初期設定として、例えば、各IDに対応するI/Oノードが、どのようなデータについてのデータであるのかを示す「名称」、および、そのデータの1単位当たりの大きさの基準となる「データ型」を登録する。ユーザは、各I/Oノードについて「データ型」を登録することによって、各I/Oノードについて、収集するデータの1単位当たりの大きさを登録する。 As initial settings, the user uses, for example, a "name" indicating what kind of data the I / O node corresponding to each ID is about, and a standard of the size of the data per unit. Register the "data type". The user registers the size of the data to be collected per unit for each I / O node by registering the "data type" for each I / O node.

また、ユーザは、初期設定として、各I/Oノードについての収集規則を登録する。すなわち、ユーザは、各I/Oノードについて、サンプリング周波数の初期設定として「基準周波数」を、サンプリング点数の初期設定として「基準点数」を、登録する。さらに、ユーザは、各I/Oノードに付与される重要度の変数名を示す項目である「重要度変数」を登録してもよい。 In addition, the user registers a collection rule for each I / O node as an initial setting. That is, the user registers the "reference frequency" as the initial setting of the sampling frequency and the "reference point number" as the initial setting of the sampling points for each I / O node. Further, the user may register an "importance variable" which is an item indicating the variable name of the importance given to each I / O node.

受付部120は、各I/Oノードについて、ユーザの登録する「名称(識別子)」、「データ型」、「基準周波数」、および「基準点数」等を受け付け、これらを収集規則テーブル183の対応する項目に格納する。 The reception unit 120 receives the "name (identifier)", "data type", "reference frequency", "reference score", etc. registered by the user for each I / O node, and corresponds to these in the collection rule table 183. Store in the item to be.

図4の例では、ユーザが、「ID:A」のI/Oノードについて、その「名称」として「TorqueData1(例えば、軸1のトルク)」を登録し、また、「ID:A」のI/Oノードのデータの「データ型」が「INT」型であることが示されている。「ID:A」のI/Oノードの「基準周波数(つまり、初期設定されたサンプリング周波数)」は、「200Hz」であり、「基準点数(つまり、初期設定されたサンプリング点数)」は、「1000」である。 In the example of FIG. 4, the user registers "TorqueData1 (for example, torque of the shaft 1)" as the "name" of the I / O node of "ID: A", and also I of "ID: A". It is shown that the "data type" of the data in the / O node is "INT" type. The "reference frequency (that is, the preset sampling frequency)" of the I / O node of "ID: A" is "200 Hz", and the "reference point number (that is, the preset sampling point number)" is ". 1000 ".

同様に、ユーザが、「ID:B」のI/Oノードについて、その「名称」として「VelocityData1(例えば、軸1の速度)」を登録し、また、「ID:B」のI/Oノードのデータの「データ型」が「DINT」型であることが示されている。「ID:B」のI/Oノードの「基準周波数」は、「200Hz」であり、「基準点数」は、「1000」である。 Similarly, the user registers "Velocity Data1 (for example, the speed of the axis 1)" as the "name" of the I / O node of "ID: B", and also the I / O node of "ID: B". It is shown that the "data type" of the data in is "DINT" type. The "reference frequency" of the I / O node of "ID: B" is "200 Hz", and the "reference point number" is "1000".

(待ち時間の設定についての注記)
前述の通り、収集部140は、収集規則テーブル183に格納されている巡回単位順列に従って巡回を実行する。ここで、詳細は後に図12の(B)を参照して説明するが、収集部140は、サンプリングするデータとデータとの間に待ち時間を設定してもよい。例えば、図4に例示する収集規則テーブル183には、「ID」および「収集時間(図4においては不図示)」の項目にだけデータが格納されている行があってもよい。すなわち、収集規則テーブル183は、巡回単位順列における各I/Oノード(より正確には、「各ID」)について、巡回単位順列における1回の出現ごとの収集時間(サンプリング期間)を示す「収集時間」の項目を有していてもよい。
(Note on waiting time setting)
As described above, the collection unit 140 executes the patrol according to the patrol unit sequence stored in the collection rule table 183. Here, the details will be described later with reference to FIG. 12B, but the collecting unit 140 may set a waiting time between the data to be sampled. For example, in the collection rule table 183 illustrated in FIG. 4, there may be a row in which data is stored only in the items of “ID” and “collection time (not shown in FIG. 4)”. That is, the collection rule table 183 shows the collection time (sampling period) for each occurrence in the circulation unit sequence for each I / O node (more accurately, “each ID”) in the circulation unit sequence. It may have an item of "time".

例えば、「順列:A、B、C、D」を格納した収集規則テーブル183における「ID:D」の行について、「基準周波数」および「基準点数」等の項目は未指定で、「収集時間」の項目にだけ「10.7s」が格納されている場合、この収集規則テーブル183には、以下の収集規則が格納されている。すなわち、「ID:C」のI/Oノードについてのサンプリング(つまり、データ収集)を完了した後、「ID:A」のI/Oノードについてのサンプリングを開始するまで、「10.7秒」の間、サンプリング処理を中断するとの収集規則が格納されている。なお、本実施の形態では、「秒」は「S」と略記することがある。 For example, for the row of "ID: D" in the collection rule table 183 that stores "sequential columns: A, B, C, D", items such as "reference frequency" and "reference score" are not specified, and "collection time" is not specified. When "10.7s" is stored only in the item "", the following collection rules are stored in this collection rule table 183. That is, "10.7 seconds" from the completion of sampling (that is, data collection) for the "ID: C" I / O node to the start of sampling for the "ID: A" I / O node. During that time, a collection rule for interrupting the sampling process is stored. In this embodiment, "second" may be abbreviated as "S".

複数のI/Oノードのサンプリングの間に「待ち時間」が設定される(挿入される)場合、「待ち時間」として設定されるI/Oノードの「ID」および「収集時間」の項目のみが設定され、「基準周波数」および「基準点数」等の項目は未指定とされる。ただし、「待ち時間」として設定されるI/Oノードについて、収集規則テーブル183において、「基準点数:0」および「実点数:0」が設定されてもよい。 If "waiting time" is set (inserted) during sampling of multiple I / O nodes, only the "ID" and "collection time" items of the I / O node set as "waiting time" Is set, and items such as "reference frequency" and "reference score" are not specified. However, for the I / O node set as the "waiting time", "reference score: 0" and "actual score: 0" may be set in the collection rule table 183.

(重要度について)
前述の通り、収集部140は、巡回単位順列において順々に出現するIDに対応するI/Oノードのデータを次々と収集し、評価部150は、収集部140によって収集されたデータに対して重要度(調停済重要度)を付与する。具体的には、評価部150は、収集部140によって収集されたデータに対して付与した重要度を、収集規則テーブル183の「履歴」項目へと格納する。
(About importance)
As described above, the collection unit 140 collects the data of the I / O nodes corresponding to the IDs appearing in sequence in the patrol unit sequence one after another, and the evaluation unit 150 collects the data collected by the collection unit 140. Gives importance (arbitrated importance). Specifically, the evaluation unit 150 stores the importance given to the data collected by the collection unit 140 in the "history" item of the collection rule table 183.

収集規則テーブル183は、「N」を「1」以上の整数として、1巡目からN巡目までの巡回単位順列の各々において、各巡回単位順列において出現するIDに対応するI/Oノードのデータに対して付与される重要度が格納される、N個の「履歴」項目を有する。N個の「履歴」には、1巡目からN巡目までの巡回単位順列の各々において付与される重要度が、例えばFIFO(First - In First - Out)で格納され、言い換えれば、重要度の、過去N回分の履歴が格納される。図4に示す例は、「N=6」の例であり、つまり、図4の収集規則テーブル183は、1巡目から6巡目までの巡回単位順列の各々において付与される重要度の各々が格納される、「履歴1」から「履歴6」までの6個の「履歴」項目を有している。 In the collection rule table 183, "N" is an integer of "1" or more, and in each of the cyclic unit sequence from the first round to the Nth cycle, the I / O node corresponding to the ID appearing in each cyclic unit sequence is used. It has N "history" items that store the importance given to the data. In the N "history", the importance given in each of the cyclic unit sequence from the first round to the Nth round is stored in, for example, FIFO (First --In First --Out), in other words, the importance. The history of the past N times is stored. The example shown in FIG. 4 is an example of “N = 6”, that is, the collection rule table 183 of FIG. Has six "history" items from "history 1" to "history 6" in which is stored.

例えば、収集規則テーブル183に、「順列:A、B、C、A、D、E、F」が格納されている場合、図4の収集規則テーブル183の「履歴」項目には、以下のように収集部140によって付与された重要度が格納される。 For example, when the collection rule table 183 stores "sequential columns: A, B, C, A, D, E, F", the "history" item of the collection rule table 183 in FIG. 4 is as follows. The importance given by the collecting unit 140 is stored in.

すなわち、評価部150は、1巡目の巡回単位順列の先頭の「I/Oノード:A」について、「重要度:2」を算出すると、収集規則テーブル183における先頭の「ID:A」の「履歴1」に「重要度:2」を格納する。評価部150は、1巡目の巡回単位順列の先頭から4番目に出現する「I/Oノード:A」について、「重要度:1」を算出すると、収集規則テーブル183における先頭から4番目に出現する「ID:A」の「履歴1」に「重要度:1」を格納する。 That is, when the evaluation unit 150 calculates the "importance: 2" for the "I / O node: A" at the head of the first round of the patrol unit sequence, the head "ID: A" in the collection rule table 183 is calculated. Store "importance: 2" in "history 1". When the evaluation unit 150 calculates "importance: 1" for the "I / O node: A" that appears fourth from the beginning of the first round of the circulation unit sequence, it becomes the fourth from the beginning in the collection rule table 183. "Importance: 1" is stored in "History 1" of "ID: A" that appears.

評価部150は、2巡目の巡回単位順列の先頭の「I/Oノード:A」について、「重要度:3」を算出すると、収集規則テーブル183における先頭の「ID:A」の「履歴1」に「重要度:3」を、そして、「履歴2」に「重要度:2」を格納する。評価部150は、2巡目の巡回単位順列の先頭から4番目に出現する「I/Oノード:A」について、「重要度:2」を算出すると、収集規則テーブル183における先頭から4番目に出現する「ID:A」の「履歴1」に「重要度:2」を、「履歴2」に「重要度:1」を格納する。 When the evaluation unit 150 calculates "importance: 3" for the "I / O node: A" at the head of the second round of the patrol unit sequence, the "history" of the head "ID: A" in the collection rule table 183. "Importance: 3" is stored in "1", and "importance: 2" is stored in "History 2". When the evaluation unit 150 calculates the "importance: 2" for the "I / O node: A" that appears fourth from the beginning of the second round of the patrol unit sequence, it becomes the fourth from the beginning in the collection rule table 183. "Importance: 2" is stored in "History 1" of the appearing "ID: A", and "Importance: 1" is stored in "History 2".

(その他の項目について)
図4に例示する収集規則テーブル183は、これまでに説明した「ID」、「名称」、「データ型」、「基準周波数」、「基準点数」、「重要度変数」、「履歴1」から「履歴6」、および、「収集時間」に加えて、以下の項目を有する。すなわち、収集規則テーブル183は、「実周波数(「実サンプリング周波数」とも称する)」および「実点数(「実サンプリング点数」とも称する)」の項目を有する。「実周波数」および「実点数」について、詳細は後に図6から図8等を用いて説明する。
(About other items)
The collection rule table 183 illustrated in FIG. 4 is based on the "ID", "name", "data type", "reference frequency", "reference score", "importance variable", and "history 1" described so far. In addition to "History 6" and "Collection time", it has the following items. That is, the collection rule table 183 has items of "real frequency (also referred to as" real sampling frequency ")" and "real score (also referred to as" real sampling score ")". Details of the "real frequency" and the "real score" will be described later with reference to FIGS. 6 to 8 and the like.

§3.動作例
図5は、PLC10が実行する処理の概要を示すフロー図である。受付部120は、ツールなどから、ユーザの指定する最大値Vammを受け付け、受け付けた最大値Vammを、記憶部180の最大許容値テーブル182に格納する(S110)。
§3. Operation Example FIG. 5 is a flow chart showing an outline of the processing executed by the PLC 10. The reception unit 120 receives the maximum value Vam specified by the user from a tool or the like, and stores the received maximum value Vam in the maximum allowable value table 182 of the storage unit 180 (S110).

また、受付部120は、ツールなどから、各I/Oノードについて、ユーザの指定する「データ型」、「基準周波数」、および「基準点数」等の収集規則についての初期設定(基準値)を受け付ける。受付部120は、受け付けた「収集規則の初期設定」を、記憶部180の収集規則テーブル183に格納する。つまり、受付部120は、各I/Oノードの「名称(識別子)」、「データ型」、「基準周波数」、「基準点数」、「巡回頻度」、および、「順列を一巡するのに割り当てられた期間」の初期値を設定する(S120)。 In addition, the reception unit 120 sets initial settings (reference values) for collection rules such as "data type", "reference frequency", and "reference score" specified by the user for each I / O node from a tool or the like. accept. The reception unit 120 stores the received "initial setting of the collection rule" in the collection rule table 183 of the storage unit 180. That is, the reception unit 120 is assigned to make a round of the "name (identifier)", "data type", "reference frequency", "reference score", "patrol frequency", and "circular sequence" of each I / O node. The initial value of "the determined period" is set (S120).

初期設定の段階では、各I/Oノードの「巡回頻度」は、例えば、巡回単位順列において「1回」であるものとする。すなわち、ユーザが「データ収集対象」として選択した全てのI/Oノードが各々1回だけ出現する巡回単位順列が、初期設定段階の巡回単位順列として、収集規則テーブル183に格納され、各I/Oノードの「巡回頻度」は初期設定段階では「1」である。また、「順列を一巡するのに割り当てられた期間」は、詳細は後述するが、巡回単位順列、サンプリング周波数、および、サンプリング点数から算出される。 At the initial setting stage, the "patrol frequency" of each I / O node is assumed to be, for example, "once" in the patrol unit order sequence. That is, the cyclic unit sequence in which all the I / O nodes selected by the user as the "data collection target" appear only once is stored in the collection rule table 183 as the cyclic unit sequence in the initial setting stage, and each I / The "patrol frequency" of the O node is "1" at the initial setting stage. Further, the "period allocated to make a round of the sequence" will be described in detail later, but is calculated from the cycle unit sequence, the sampling frequency, and the number of sampling points.

第1調整部130は、収集部140が収集規則テーブル183に格納されている収集規則に従って実行するサンプリング処理に係る処理負荷を示す平均サンプリング速度Vmeanが、ユーザの許容する最大処理負荷を示す最大値Vamm以下であるかを判定する。すなわち、第1調整部130は、「平均サンプリング速度Vmean<=最大値Vamm」となっているかを判定する(S130)。第1調整部130は、収集規則テーブル183を参照して、調整後の収集規則が格納済であれば調整後の収集規則から平均サンプリング速度Vmeanを算出し、調整後の収集規則が未格納であれば基準収集規則から平均サンプリング速度Vmeanを算出する。そして、第1調整部130は、算出した平均サンプリング速度Vmeanが、最大許容値テーブル182に格納されている最大値Vamm以下であるかを判定する。 In the first adjusting unit 130, the average sampling rate Vmean indicating the processing load related to the sampling process executed by the collecting unit 140 according to the collection rule stored in the collection rule table 183 indicates the maximum processing load allowed by the user. It is determined whether the value is less than or equal to V amm . That is, the first adjusting unit 130 determines whether or not the “mean sampling speed V mean <= maximum value V amm ” is set (S130). The first adjusting unit 130 calculates the mean sampling rate V mean from the adjusted collection rule if the adjusted collection rule has been stored with reference to the collection rule table 183, and the adjusted collection rule is not stored. If so, the mean sampling rate Vmean is calculated from the reference collection rule. Then, the first adjusting unit 130 determines whether the calculated average sampling rate Vmean is equal to or less than the maximum value Vamm stored in the maximum permissible value table 182.

第1調整部130が、平均サンプリング速度Vmeanが最大値Vamm以下であると判定すると(S130でYes)、収集規則テーブル183に格納されている収集規則をそのまま、収集部140が従うべき収集規則として採用する。すなわち、調整後の収集規則が未格納であれば、第1調整部130は、各I/Oノードについて、収集規則テーブル183の「基準周波数」および「基準点数」の各々の値を、「実周波数」および「実点数」の各々へと格納する。調整後の収集規則が格納済であれば、第1調整部130は、各I/Oノードについて、収集規則テーブル183の「実周波数」および「実点数」の各々の項目に格納されている値を変更しない。 When the first adjusting unit 130 determines that the average sampling rate Vmean is equal to or less than the maximum value Vamm ( Yes in S130), the collection rule stored in the collection rule table 183 is collected as it is, and the collection unit 140 should follow. Adopt as a rule. That is, if the adjusted collection rule is not stored, the first adjustment unit 130 sets the respective values of the "reference frequency" and the "reference point score" of the collection rule table 183 for each I / O node to "actual". Store in each of "frequency" and "actual score". If the adjusted collection rule has already been stored, the first adjustment unit 130 will use the values stored in the "real frequency" and "real score" items of the collection rule table 183 for each I / O node. Do not change.

収集部140は、収集規則テーブル183に格納されている収集規則に従って、制御データテーブル181を参照してデータ収集を実行する(S150)。すなわち、収集部140は、収集規則テーブル183に格納されている巡回単位順列に従って、データ収集対象とするI/Oノードを切り替えながら、各I/Oノードのデータを、収集規則テーブル183の「実周波数」および「実点数」に従って、収集する。 The collection unit 140 refers to the control data table 181 and executes data collection according to the collection rules stored in the collection rule table 183 (S150). That is, the collection unit 140 collects the data of each I / O node in the collection rule table 183 while switching the I / O nodes to be collected according to the patrol unit sequence stored in the collection rule table 183. Collect according to "frequency" and "actual score".

第1調整部130が、平均サンプリング速度Vmeanが最大値Vammより大きいと判定すると(S130でNo)、収集規則テーブル183に格納されている収集規則を調整(なたは再調整)した収集規則を、収集部140が従うべき収集規則として採用する。つまり、第1調整部130は、各I/Oノードの「巡回頻度(より正確には、相対的な巡回頻度)」、「サンプリング周波数」、「サンプリング点数」、および「順列を一巡するのに割り当てられた期間」の少なくとも一つを、最大値Vammを用いて補正(調整)する(S140)。第1調整部130は、平均サンプリング速度Vmeanが最大値Vamm以下となるように、各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」、および「順列を一巡するのに割り当てられた期間」の少なくとも1つを調整する。 When the first adjusting unit 130 determines that the average sampling rate Vmean is larger than the maximum value Vamm ( No in S130), the collection rule stored in the collection rule table 183 is adjusted (or readjusted) for collection. The rule is adopted as the collection rule to be followed by the collection unit 140. That is, the first adjusting unit 130 makes a round of the "patrol frequency (more accurately, the relative patrol frequency)", "sampling frequency", "sampling point", and "sequential sequence" of each I / O node. At least one of the "allocated periods" is corrected (adjusted) using the maximum value Vamm (S140). The first adjusting unit 130 makes a round of the "circulation frequency", "sampling frequency", "sampling point", and "sequential sequence" of each I / O node so that the average sampling speed V mean is equal to or less than the maximum value Vamm . Adjust at least one of the "durations allotted to".

調整後の収集規則が未格納であれば、第1調整部130は、例えば、収集規則テーブル183の「基準周波数」および「基準点数」の少なくとも一方の値を調整した値を、「実周波数」および「実点数」へと格納する。また、第1調整部130は、例えば、収集規則テーブル183に格納されている巡回単位順列を調整し、さらに、例えば、収集規則テーブル183に格納されている「巡回単位順列を一巡するまでに要する時間」を調整する。 If the adjusted collection rule is not stored, for example, the first adjustment unit 130 sets the adjusted value of at least one of the "reference frequency" and the "reference point" in the collection rule table 183 as the "actual frequency". And store in "actual score". Further, the first adjusting unit 130 adjusts, for example, the patrol unit sequence stored in the collection rule table 183, and further, for example, it takes to make a round of the “circulation unit sequence” stored in the collection rule table 183. Adjust the time.

調整後の収集規則が格納済であれば、第1調整部130は、平均サンプリング速度Vmeanが最大値Vamm以下となるように、収集規則テーブル183の「実周波数」および「実点数」の少なくとも一方の値を再調整する。また、第1調整部130は、例えば、収集規則テーブル183に格納されている巡回単位順列を再調整し、さらに、例えば、収集規則テーブル183に格納されている「巡回単位順列を一巡するまでに要する時間」を再調整する。 If the adjusted collection rule is already stored, the first adjustment unit 130 determines the "actual frequency" and "actual score" of the collection rule table 183 so that the average sampling rate Vmean is equal to or less than the maximum value Vamm . Readjust at least one of the values. Further, the first adjusting unit 130 readjusts, for example, the patrol unit sequence stored in the collection rule table 183, and further, for example, by the time the patrol unit sequence stored in the collection rule table 183 is cycled. Readjust "Time required".

収集部140は、収集規則テーブル183に格納されている、S140における調整後(または、再調整後)の収集規則に従って、制御データテーブル181を参照してデータ収集(サンプリング)を実行する(S150)。収集部140は、収集規則テーブル183に格納されている収集規則に従って収集した各I/Oノードのデータを評価部150に通知する。 The collection unit 140 executes data collection (sampling) with reference to the control data table 181 according to the adjusted (or readjusted) collection rule in S140 stored in the collection rule table 183 (S150). .. The collection unit 140 notifies the evaluation unit 150 of the data of each I / O node collected according to the collection rules stored in the collection rule table 183.

評価部150は、収集部140から通知された各I/Oノードのデータに対して重要度(調停済重要度)を算出し、算出した重要度を、収集規則テーブル183における、対応するI/Oノードの「履歴(重要度の履歴)」の項目に格納する。 The evaluation unit 150 calculates the importance (arbitrated importance) for the data of each I / O node notified from the collection unit 140, and the calculated importance is the corresponding I / in the collection rule table 183. Store in the "History (history of importance)" item of the O node.

第2調整部160は、収集規則テーブル183を参照して、収集規則テーブル183における各I/Oノードの「重要度」が所定の基準を満たしているかを判定し、所定の基準を満たしていると判定したI/Oノードについての収集規則を調整する。すなわち、第2調整部160は、各I/Oノードの重要度に基づいて、収集規則テーブル183における、各I/Oノードの「巡回頻度(より正確には、相対的な巡回頻度)」、「サンプリング周波数」、および「サンプリング点数」の少なくとも一つの値を更新する(S160)。 The second adjusting unit 160 refers to the collection rule table 183, determines whether the "importance" of each I / O node in the collection rule table 183 meets a predetermined standard, and satisfies the predetermined standard. Adjust the collection rules for the I / O nodes that are determined to be. That is, the second coordinating unit 160 determines the “patrol frequency (more accurately, relative patrol frequency)” of each I / O node in the collection rule table 183, based on the importance of each I / O node. At least one value of "sampling frequency" and "sampling point" is updated (S160).

これまでに図5を参照しながら説明してきたPLC10が実行する処理(言い換えれば、PLC10が実行する制御方法)は、以下のように整理することができる。すなわち、PLC10が実行する制御方法は、マスタスレーブ制御システムである制御システム1におけるPLC10(マスタ装置)の制御方法であって、収集ステップ(S150)と、受付ステップ(S110)と、第1調整ステップ(S140)と、を含んでいる。収集ステップS150は、サーボドライバ30等のスレーブ装置から周期的に取得した制御データから、データベース20等の外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集するステップである。受付ステップS110は、収集ステップS150にて単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値Vammを受け付けるステップである。第1調整ステップS140は、前記所定の収集規則に従って収集ステップS150にて単位時間あたりに収集されるデータのデータ量が、受付ステップS110にて受け付けられた最大値Vamm以下となるように、前記収集規則を調整するステップである。 The processes executed by the PLC 10 (in other words, the control method executed by the PLC 10) described so far with reference to FIG. 5 can be organized as follows. That is, the control method executed by the PLC 10 is a control method of the PLC 10 (master device) in the control system 1 which is a master-slave control system, and is a collection step (S150), a reception step (S110), and a first adjustment step. (S140) and. The collection step S150 is a step of repeatedly collecting each of a plurality of data to be transmitted to an external device such as the database 20 from the control data periodically acquired from the slave device such as the servo driver 30 according to a predetermined collection rule. be. The reception step S110 is a step of receiving the maximum value Vamm specified by the user for the data amount of the data collected per unit time in the collection step S150. In the first adjustment step S140, the data amount of the data collected per unit time in the collection step S150 according to the predetermined collection rule is equal to or less than the maximum value Vamm received in the reception step S110. It is a step to adjust the collection rules.

前記の方法によれば、PLC10が実行する制御方法は、単位時間あたりに収集するデータのデータ量が最大値Vamm以下となるように収集規則を調整し、調整した収集規則に従って、前記制御データから、前記複数のデータの各々を繰り返し収集する。 According to the above method, the control method executed by the PLC 10 adjusts the collection rule so that the amount of data to be collected per unit time is the maximum value Vamm or less, and the control data is in accordance with the adjusted collection rule. From, each of the plurality of data is repeatedly collected.

ここで、単位時間あたりに収集するデータのデータ量が大きくなるほど、PLC10が実行する制御方法のデータ収集に係る単位時間当たりの処理負荷が大きくなることは明らかである。つまり、最大値Vammは、PLC10が実行する制御方法のデータ収集に係る単位時間当たりの処理負荷に対応する。 Here, it is clear that the larger the amount of data to be collected per unit time, the larger the processing load per unit time related to the data collection of the control method executed by the PLC 10. That is, the maximum value Vamm corresponds to the processing load per unit time related to the data collection of the control method executed by the PLC 10.

したがって、PLC10が実行する制御方法は、データ収集に係る単位時間当たりの処理負荷が、ユーザの指定する最大値Vammに対応する処理負荷以下となるように、前記制御データから、データベース20等の外部装置に送信すべきデータを収集することができるとの効果を奏する。言い換えれば、PLC10が実行する制御方法によってユーザは、前記制御データから前記複数のデータの各々を収集する処理に係る処理負荷を管理できるようになるとの効果を奏する。具体的には、ユーザは、PLC10に、「サーボドライバ30等のスレーブ対象に対する制御処理などの、データ収集処理以外の処理」の実行に影響のない適切な処理負荷で、前記外部装置に送信すべきデータを、前記制御データから収集させることができる。 Therefore, the control method executed by the PLC 10 is to obtain the database 20 or the like from the control data so that the processing load per unit time related to data collection is equal to or less than the processing load corresponding to the maximum value Vamm specified by the user. It has the effect of being able to collect data to be transmitted to an external device. In other words, the control method executed by the PLC 10 has an effect that the user can manage the processing load related to the process of collecting each of the plurality of data from the control data. Specifically, the user transmits the PLC 10 to the external device with an appropriate processing load that does not affect the execution of "processing other than data collection processing such as control processing for the slave target such as the servo driver 30". The data to be output can be collected from the control data.

また、「PLC10が実行する制御方法が単位時間あたりに収集するデータのデータ量」は、ユーザにとって直感的に把握しやすく、かつ、「PLC10が実行する制御方法の、データ収集に係る単位時間当たりの処理負荷」を正確に示すことのできる指標である。 Further, the "data amount of data collected by the control method executed by the PLC 10 per unit time" is easy for the user to intuitively understand, and "the control method executed by the PLC 10 per unit time related to data collection". It is an index that can accurately indicate the processing load of.

したがって、PLC10が実行する制御方法は、「データ収集に係る単位時間当たりの処理負荷」の指標として正確で、かつ、ユーザにとって直感的な把握の容易な「単位時間あたりに収集するデータのデータ量」に基づいて、データ収集処理を管理できるとの効果を奏する。 Therefore, the control method executed by the PLC 10 is accurate as an index of "processing load per unit time related to data collection" and is easy for the user to intuitively understand "the amount of data collected per unit time". It has the effect of being able to manage the data collection process based on.

(重要度に基づく、各I/Oノードの収集規則の調整について)
図6は、各I/Oノードについて、重要度に基づいて収集規則を調整する方法の具体例を説明する図である。図6の(A)は、重要度に基づいて、サンプリング周波数とサンプリング点数とを調整する方法の一例を示す図である。図6の(B)は、重要度に基づいて、各I/Oノードの巡回頻度(より正確には、相対的な巡回頻度)を調整し、つまり、収集部140の従う巡回単位順列を調整する方法の一例を示す図である。
(Regarding the adjustment of collection rules for each I / O node based on importance)
FIG. 6 is a diagram illustrating a specific example of a method of adjusting the collection rule based on the importance of each I / O node. FIG. 6A is a diagram showing an example of a method of adjusting the sampling frequency and the number of sampling points based on the importance. FIG. 6B adjusts the patrol frequency of each I / O node (more accurately, the relative patrol frequency) based on the importance, that is, adjusts the patrol unit order according to the collection unit 140. It is a figure which shows an example of the method.

(サンプリング周波数およびサンプリング点数の少なくとも一方の調整)
「N」を「1」以上の整数として、第2調整部160は、収集規則テーブル183の「履歴(重要度の履歴)」に格納されている値が、連続してN回、増加基準値Uth以上であるI/Oノード(つまり、各ID)の収集規則を変更する。
(Adjustment of at least one of sampling frequency and sampling point)
With "N" as an integer of "1" or more, in the second adjustment unit 160, the value stored in the "history (history of importance)" of the collection rule table 183 is continuously increased N times, and the reference value is increased. Change the collection rule of I / O nodes (that is, each ID) that are Uth or higher.

図6の(A)には、「N=6」、「増加基準値Uth=3」である例が示されている。図6の(A)において、「I/Oノード:A」の「履歴1」から「履歴6」までの各々には、いずれも「3」以上の値が入力されており、つまり、「I/Oノード:A」について、「履歴」に格納されている値は、連続して「6」回、増加基準値「3」以上である。そこで、第2調整部160は、「I/Oノード:A」の「実周波数」を「200Hzから、400Hzへ」増加させ、また、「実点数」を「1000から、2000へ」増加させている。ただし、第2調整部160にとって、「実周波数」と「実点数」との両方の値を増加させることは必須ではなく、少なくとも一方の値を増加させればよい。第2調整部160は、重要度の高いデータのI/Oノードについて、そのI/Oノードの収集規則を調整して、具体的には、サンプリング周波数とサンプリング点数との少なくとも一方を増加させて、より多くのデータを収集する。 FIG. 6A shows an example in which “N = 6” and “increase reference value Uth = 3”. In (A) of FIG. 6, a value of "3" or more is input to each of "History 1" to "History 6" of "I / O node: A", that is, "I". For "/ O node: A", the value stored in the "history" is continuously "6" times, and the increase reference value is "3" or more. Therefore, the second adjustment unit 160 increases the "real frequency" of the "I / O node: A" from "200 Hz to 400 Hz" and increases the "real score" from "1000 to 2000". There is. However, it is not essential for the second adjusting unit 160 to increase both the "real frequency" and the "real score" values, and at least one of the values may be increased. The second adjustment unit 160 adjusts the collection rule of the I / O node for the data of high importance, specifically, increases at least one of the sampling frequency and the sampling point. , Collect more data.

「M」を「1」以上の整数として、第2調整部160は、収集規則テーブル183の「履歴(重要度の履歴)」に格納されている値が、連続してM回、減少基準値Dth以下であるI/Oノード(つまり、各ID)の収集規則を変更する。 With "M" as an integer of "1" or more, in the second adjustment unit 160, the value stored in the "history (history of importance)" of the collection rule table 183 is continuously reduced M times. Change the collection rule of I / O nodes (that is, each ID) that are Dth or less.

図6の(A)には、「M=6」、「減少基準値Dth=1」である例が示されている。図6の(A)において、「I/Oノード:D」の「履歴1」から「履歴6」までの各々には、いずれも「1」以下の値が入力されており、つまり、「I/Oノード:D」について、「履歴」に格納されている値は、連続して「6」回、減少基準値「1」以下である。そこで、第2調整部160は、「I/Oノード:D」の「実周波数」を「200Hzから、100Hzへ」減少させ、また、「実点数」を「1000から、500へ」減少させている。ただし、第2調整部160にとって、「実周波数」と「実点数」との両方の値を減少させることは必須ではなく、少なくとも一方の値を減少させればよい。第2調整部160は、重要度の低いデータのI/Oノードについて、そのI/Oノードの収集規則を調整して、具体的には、サンプリング周波数とサンプリング点数との少なくとも一方を減少させて、収集するデータ量を抑制する。 FIG. 6A shows an example in which “M = 6” and “decrease reference value Dth = 1”. In (A) of FIG. 6, a value of "1" or less is input to each of "History 1" to "History 6" of "I / O node: D", that is, "I". For "/ O node: D", the value stored in the "history" is continuously "6" times, and is equal to or less than the reduction reference value "1". Therefore, the second adjustment unit 160 reduces the "real frequency" of the "I / O node: D" from "200 Hz to 100 Hz" and the "real score" from "1000 to 500". There is. However, it is not essential for the second adjusting unit 160 to reduce both the "real frequency" and the "real score" values, and at least one of the values may be reduced. The second adjustment unit 160 adjusts the collection rule of the I / O node of the less important data, specifically, reduces at least one of the sampling frequency and the sampling point. , Suppress the amount of data collected.

(巡回頻度の調整)
「N」を「1」以上の整数として、第2調整部160は、収集規則テーブル183の「履歴」に格納されている値が、連続してN回、増加基準値Uth以上であるI/Oノード(つまり、各ID)の巡回頻度(より正確には、相対的な巡回頻度)を増加させる。また、「M」を「1」以上の整数として、第2調整部160は、収集規則テーブル183の「履歴」に格納されている値が、連続してM回、減少基準値Dth以下であるI/Oノード(つまり、各ID)の巡回頻度(より正確には、相対的な巡回頻度)を減少させる。すなわち、第2調整部160は、各I/Oノードの重要度に基づいて、各I/Oノードの相対的な巡回頻度を変更し、つまり、巡回単位順列を変更する。
(Adjustment of patrol frequency)
With "N" as an integer of "1" or more, the second adjusting unit 160 determines that the value stored in the "history" of the collection rule table 183 is N times in succession and is equal to or greater than the increase reference value Uth. Increases the patrol frequency (more precisely, the relative patrol frequency) of the O-node (ie, each ID). Further, in the second adjusting unit 160, where "M" is an integer of "1" or more, the value stored in the "history" of the collection rule table 183 is continuously M times or less than the reduction reference value Dth. Decrease the patrol frequency (more precisely, the relative patrol frequency) of the I / O node (ie, each ID). That is, the second adjusting unit 160 changes the relative patrol frequency of each I / O node based on the importance of each I / O node, that is, changes the patrol unit sequence.

図6の(B)の一段目には、データ収集対象のI/OノードのIDが、A、B、C、D、E、Fの6つである場合の、通常の巡回単位順列(つまり、初期設定段階の巡回単位順列)が、具体的には、「順列:A、B、C、D、E、F」が、示されている。初期設定段階において、各I/Oノードの「巡回頻度」は「1」であり、したがって、データ収集対象のI/OノードのIDが、A、B、C、D、E、Fの6つである場合、初期設定段階の巡回単位順列は、例えば「順列:A、B、C、D、E、F」となる。収集部140は、「Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後にA、Aの後にB、Bの後にC、Cの後にD、Dの後にE、Eの後にF、Fの後にA、Aの後にB、・・・」で巡回を実行する。 In the first stage of (B) of FIG. 6, when the IDs of the I / O nodes for which data is collected are six, A, B, C, D, E, and F, a normal patrol unit sequence (that is,). , Circular unit order sequence in the initial setting stage), specifically, "sequential sequence: A, B, C, D, E, F" is shown. In the initial setting stage, the "patrol frequency" of each I / O node is "1", and therefore, the IDs of the I / O nodes for which data is collected are six, A, B, C, D, E, and F. In the case of, the patrol unit order sequence in the initial setting stage is, for example, "sequential sequence: A, B, C, D, E, F". The collecting unit 140 says, "A is followed by B, B is followed by C, C is followed by D, D is followed by E, E is followed by F, F is followed by A, A is followed by B, B is followed by C, and C is followed by D. , D followed by E, E followed by F, F followed by A, A followed by B, ... ”.

図6の(B)の二段目には、「N=6」、「増加基準値Uth=3」として、「I/Oノード:A」の巡回頻度を増加させた場合の巡回単位順列が示されている。図6の(A)の「I/Oノード:A」のように、「履歴1」から「履歴6」までの各々に「3」以上の値が入力され、つまり、「履歴」の値が、連続「6」回、増加基準値「3」以上であると、第2調整部160は、「I/Oノード:A」の巡回頻度を増加させる。図6の(B)の二段目に示す「順列:A、B、C、A、D、E、F」は、図6の(B)の一段目に示す「順列:A、B、C、D、E、F」から、「I/Oノード:A」についてのみ、その巡回頻度を増加させた場合の巡回単位順列の一例である。「順列:A、B、C、A、D、E、F」において、「I/Oノード:A」の「巡回頻度」は「2」であり、他のI/Oノード(つまり、B、C、D、E、F)の「巡回頻度」は「1」である。第2調整部160は、重要度の高いデータのI/Oノードについて、そのI/Oノードの収集規則を調整して、具体的には、相対的な巡回頻度を増加させて、より多くのデータを収集する。 In the second row of (B) in FIG. 6, the patrol unit order sequence when the patrol frequency of "I / O node: A" is increased with "N = 6" and "increase reference value Uth = 3" is shown. It is shown. Like "I / O node: A" in (A) of FIG. 6, a value of "3" or more is input to each of "History 1" to "History 6", that is, the value of "History" is When the number of times is continuously "6" times and the increase reference value is "3" or more, the second adjusting unit 160 increases the patrol frequency of "I / O node: A". The "sequential sequence: A, B, C, A, D, E, F" shown in the second row of FIG. 6 (B) is the "sequential sequence: A, B, C" shown in the first row of FIG. 6 (B). , D, E, F ”, only for“ I / O node: A ”is an example of a patrol unit order sequence when the patrol frequency is increased. In the "order: A, B, C, A, D, E, F", the "patrol frequency" of the "I / O node: A" is "2", and the other I / O node (that is, B, The "patrol frequency" of C, D, E, F) is "1". The second coordinating unit 160 adjusts the collection rule of the I / O node of the data of high importance, specifically, increases the relative patrol frequency, and more. Collect data.

図6の(B)の三段目には、「M=6」、「減少基準値Dth=1」として、「I/Oノード:D」の巡回頻度を増加させた場合の巡回単位順列が示されている。図6の(A)の「I/Oノード:D」のように、「履歴1」から「履歴6」までの各々に「1」以下の値が入力され、つまり、「履歴」の値が、連続「6」回、減少基準値「1」以下であると、第2調整部160は、「I/Oノード:D」の巡回頻度を減少させる。図6の(B)の三段目に示す「順列:A、B、C、A、E、F、A、B、C、A、D、E、F」は、図6の(B)の二段目に示す「順列:A、B、C、A、D、E、F」から、「I/Oノード:D」の巡回頻度を減少させた場合の巡回単位順列の一例である。「順列:A、B、C、A、E、F、A、B、C、A、D、E、F」において、「巡回頻度」は、「I/Oノード:A」が「4」、「I/Oノード:B、C、E、Fが「2」、「I/Oノード:D」が「1」である。第2調整部160は、重要度の低いデータのI/Oノードについて、そのI/Oノードの収集規則を調整して、具体的には、相対的な巡回頻度を減少させて、収集するデータ量を抑制する。 In the third row of (B) in FIG. 6, the patrol unit order sequence when the patrol frequency of "I / O node: D" is increased with "M = 6" and "decrease reference value Dth = 1" is shown. It is shown. Like "I / O node: D" in (A) of FIG. 6, a value of "1" or less is input to each of "History 1" to "History 6", that is, the value of "History" is When the number of times is continuously "6" times and the reduction reference value is "1" or less, the second adjusting unit 160 reduces the patrol frequency of "I / O node: D". The "order: A, B, C, A, E, F, A, B, C, A, D, E, F" shown in the third row of FIG. 6 (B) is that of FIG. 6 (B). This is an example of a patrol unit sequence when the patrol frequency of "I / O node: D" is reduced from "sequential sequence: A, B, C, A, D, E, F" shown in the second row. In the "order: A, B, C, A, E, F, A, B, C, A, D, E, F", the "patrol frequency" is "4" for "I / O node: A". "I / O node: B, C, E, F is" 2 "," I / O node: D "is" 1 ". The second coordinating unit 160 adjusts the collection rule of the I / O node of the less important data, specifically, reduces the relative patrol frequency, and collects the data. Suppress the amount.

(最大値Vammを用いた収集規則の調整の具体例)
取得部110がスレーブ装置から制御周期ごとに取得した全ての制御データを、つまり、全てのI/Oノードのデータを、収集部140が初期設定段階の収集規則に従って収集できれば最も望ましいが、そのような収集処理は処理負荷が極めて大きくなってしまう。そこで、ユーザは「PLC10が実行するサンプリング処理に係る処理負荷(言い換えれば、「システムのデータ収集能力」)」の許容最大値を、「最大値Vamm」として設定し、PLC10について、サンプリング処理に係る処理負荷を管理する。
(Specific example of adjustment of collection rule using maximum value Vamm )
It is most desirable if the acquisition unit 110 can collect all the control data acquired from the slave device for each control cycle, that is, the data of all the I / O nodes according to the collection rules in the initial setting stage. The processing load of such collection processing becomes extremely large. Therefore, the user sets the allowable maximum value of the "processing load related to the sampling process executed by the PLC 10 (in other words, the" data collection capacity of the system ")" as the "maximum value Vamm ", and performs the sampling process on the PLC 10. Manage the processing load.

第1調整部130は、収集部140によるサンプリング処理に係る処理負荷が、「最大値Vamm」によって規定される処理負荷以下となるように、収集部140がサンプリング処理を実行する際に従う収集規則を調整する。具体的には、第1調整部130は、各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」、および、「巡回単位順列を一巡するまでに要する時間」の少なくとも一つの項目を、最大値Vammを用いて、調整する。 The first adjusting unit 130 follows a collection rule when the collecting unit 140 executes the sampling process so that the processing load related to the sampling process by the collecting unit 140 is equal to or less than the processing load specified by the “maximum value Vamm ”. To adjust. Specifically, the first adjustment unit 130 has at least one of the “patrol frequency”, “sampling frequency”, “sampling point”, and “time required to complete the patrol unit sequence” of each I / O node. Adjust one item using the maximum value Vamm .

第1調整部130が、各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」、および、「巡回単位順列を一巡するまでに要する時間」のいずれを調整するかは、例えば、収集部140の収集するデータの利用目的により決定される。例えば、収集部140の収集するデータに対する「一貫性のある解析」を目的として、PLC10にデータ収集処理(つまり、サンプリング処理)を実行させる場合、収集規則の内、「サンプリング周波数」は不変とするのが望ましい。したがって、第1調整部130は、例えば、「巡回頻度」および「サンプリング点数」の少なくとも一方を変更し(調整し)、「サンプリング周波数」は変更せずに維持する(周波数維持)。 Whether the first adjusting unit 130 adjusts the "patrol frequency", "sampling frequency", "sampling point", or "time required to complete the patrol unit sequence" of each I / O node is determined. For example, it is determined by the purpose of use of the data collected by the collecting unit 140. For example, when the PLC 10 is made to execute the data collection process (that is, the sampling process) for the purpose of "consistent analysis" for the data collected by the collection unit 140, the "sampling frequency" in the collection rule is unchanged. Is desirable. Therefore, for example, the first adjusting unit 130 changes (adjusts) at least one of the “patrol frequency” and the “sampling point”, and keeps the “sampling frequency” unchanged (frequency maintenance).

例えば、収集部140に、「取得部110がスレーブ装置から制御周期ごとに取得した全ての制御データ」から、まんべんなくデータを収集させることを目的とする場合、収集規則の内、「巡回頻度」および「サンプリング点数」は不変とするのが望ましい。したがって、第1調整部130は、例えば、「サンプリング周波数」を変更し(調整し)、「巡回頻度」および「サンプリング点数」は変更せずに維持する(巡回頻度および点数維持)。収集部140が繰り返し実行するサンプリング処理の間が途切れることを許容できる場合、第1調整部130は、繰り返し実行するサンプリング処理の間に待ち時間を設け、つまり、「巡回単位順列を一巡するまでに要する時間」を調整する(待ち時間挿入)。 For example, when the purpose is to have the collection unit 140 collect data evenly from "all control data acquired by the acquisition unit 110 from the slave device at each control cycle", the "patrol frequency" and "patrol frequency" in the collection rules It is desirable that the "sampling score" is invariant. Therefore, for example, the first adjusting unit 130 changes (adjusts) the "sampling frequency" and keeps the "patrol frequency" and the "sampling score" unchanged (patrol frequency and score maintenance). If it is permissible for the sampling unit 140 to interrupt the sampling process to be repeatedly executed, the first adjusting unit 130 provides a waiting time between the sampling processes to be repeatedly executed, that is, "until the cycle unit sequence is cycled. Adjust the "time required" (waiting time insertion).

第1調整部130は、収集部140の収集するデータの利用目的に応じて、任意の方法によって、サンプリング処理に係る処理負荷が、「最大値Vamm」によって規定される処理負荷以下となるように、収集規則を調整する。つまり、第1調整部130は、収集部140の実行するデータ収集処理(サンプリング処理)の処理負荷の大きさを示す値(平均サンプリング速度Vmean)が最大値Vamm以下となるよう、収集部140の収集するデータの利用目的に応じて、収集規則を調整する。 The first adjusting unit 130 makes the processing load related to the sampling process less than or equal to the processing load specified by the "maximum value Vamm " by any method according to the purpose of use of the data collected by the collecting unit 140. In addition, adjust the collection rules. That is, the first adjusting unit 130 collects so that the value (mean sampling speed Vmean) indicating the magnitude of the processing load of the data collecting process (sampling process) executed by the collecting unit 140 is equal to or less than the maximum value Vamm . The collection rules are adjusted according to the purpose of use of the data collected by 140.

以下、先ず図7および図8を用いて、第1調整部130が、収集部140の実行するサンプリング処理の処理負荷の大きさを示す値(平均サンプリング速度Vmean)と、最大値Vammとから、収集規則の調整要否を判定する方法について説明する。 Hereinafter, first, using FIGS. 7 and 8, the first adjusting unit 130 sets a value (mean sampling rate Vmean) indicating the magnitude of the processing load of the sampling process executed by the collecting unit 140, and a maximum value V amm . The method for determining the necessity of adjusting the collection rule will be described.

(収集規則の調整が不要である場合の例)
図7は、収集部140が実際にサンプリング処理を実行する際に従う収集規則として、基準収集規則をそのまま変更せずに採用できる場合の収集規則テーブル183等の一例を示す図である。図7において、「最大値Vamm=1024byte/s」とする。
(Example when adjustment of collection rules is not necessary)
FIG. 7 is a diagram showing an example of a collection rule table 183 or the like when the reference collection rule can be adopted without changing the reference collection rule as the collection rule to be followed when the collection unit 140 actually executes the sampling process. In FIG. 7, “maximum value Vamm = 1024byte / s” is set.

ユーザは、取得部110がスレーブ装置から制御周期ごとに取得し、制御データテーブル181に格納されている制御データである、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」のデータについて、以下の内容を登録する。すなわち、ユーザは、各I/Oノードについて、「名称」、「データ型」、「基準周波数」、および「基準点数」を設定する。ここで、「データ型」は、図4に例示したように、例えば、「INT」、「DINT」等であり、各I/Oノードのデータの1単位当たりの大きさを示す情報である。例えば、「データ型:INT」のデータの1単位当たりの大きさは「16bit」であり、「データ型:DINT」のデータの1単位当たりの大きさは「32bit」であるものとする。 The user acquires control data from the slave device for each control cycle by the acquisition unit 110, which is control data stored in the control data table 181 such as "I / O node: A", "I / O node: B", and , Register the following contents for the data of "I / O node: C". That is, the user sets a "name", a "data type", a "reference frequency", and a "reference point" for each I / O node. Here, the "data type" is, for example, "INT", "DINT", etc., as illustrated in FIG. 4, and is information indicating the size of the data of each I / O node per unit. For example, it is assumed that the size of the data of "data type: INT" per unit is "16 bits", and the size of the data of "data type: DINT" per unit is "32 bits".

図7の(A)に例示する収集規則テーブル183には、「I/Oノード:A」について、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「200Hz」、「基準点数」が「1000」であるとの情報が登録されている。同様に、「I/Oノード:B」は、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「200Hz」、「基準点数」が「1000」である。また、「I/Oノード:C」は、「データ型」が例えば「INT」であって、1単位当たり16bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。 In the collection rule table 183 exemplified in FIG. 7A, for "I / O node: A", the "data type" is, for example, "DINT", the unit is 32 bits, and the "reference frequency" is "reference frequency". Information that "200 Hz" and "reference point" are "1000" is registered. Similarly, for "I / O node: B", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "200 Hz", and the "reference point number" is "1000". .. Further, in the "I / O node: C", the "data type" is, for example, "INT", 16 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000".

(サンプリング速度の算出方法)
第1調整部130は、各I/Oノードの「データ型」、「基準周波数」、および「基準点数」から、各I/Oノードについて、「単位時間あたり(1秒間)に収集されるデータのデータ量(byte)」を示すサンプリング速度Vsampleを算出する。「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々のサンプリング速度Vsampleをサンプリング速度V、V、およびVとすると、第1調整部130は、以下のように、サンプリング速度V、V、およびVを算出する。すなわち、第1調整部130は、各I/Oノードについて、「データ型」によって特定されるデータ1単位当たりの大きさに、「基準周波数」の値を乗じた後、「8bit/byte」で除して、サンプリング速度Vsampleを算出する。サンプリング速度V、V、およびVは各々、具体的には、図7の(B)に例示するように、
(Calculation method of sampling speed)
The first adjusting unit 130 collects data per unit time (1 second) for each I / O node from the "data type", "reference frequency", and "reference point number" of each I / O node. The sampling rate V sample indicating "data amount (byte)" is calculated. Assuming that the sampling speeds V sample of "I / O node: A", "I / O node: B", and "I / O node: C " are sampling speeds V A , V B , and VC, respectively. The first adjusting unit 130 calculates the sampling speeds V A , V B , and VC as follows. That is, for each I / O node, the first adjustment unit 130 multiplies the size per unit of data specified by the "data type" by the value of the "reference frequency", and then uses "8 bits / byte". Divide to calculate the sampling rate V sample . The sampling rates V A , V B , and VC are, specifically, as illustrated in FIG. 7 (B), respectively.

Figure 0007010185000001
Figure 0007010185000001

となる。 Will be.

すなわち、第1調整部130は、各I/Oノードについて、「データ型」によって特定されるデータ1単位当たりの大きさに、「サンプリング周波数」の値を乗じた後、「8bit/byte」で除して、サンプリング速度Vsampleを算出する。 That is, for each I / O node, the first adjustment unit 130 multiplies the size per unit of data specified by the "data type" by the value of the "sampling frequency", and then uses "8 bits / byte". Divide to calculate the sampling rate V sample .

(収集時間の算出方法)
また、第1調整部130は、各I/Oノードの「データ型」、「基準周波数」、および「基準点数」から、各I/Oノードについて、「基準点数を収集するのに要する期間」である収集時間Tsampleを算出する。「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々の収集時間Tsampleを収集時間T、T、およびTとすると、第1調整部130は、以下のように、収集時間T、T、およびTを算出する。すなわち、第1調整部130は、各I/Oノードについて、「基準点数」の値を「基準周波数」の値で除して、収集時間Tsampleを算出する。収集時間T、T、およびTは各々、具体的には、図7の(B)に例示するように、
(Calculation method of collection time)
In addition, the first adjustment unit 130 describes the "period required to collect the reference points" for each I / O node from the "data type", "reference frequency", and "reference point number" of each I / O node. The collection time T sample is calculated. Assuming that the collection time T sample of each of "I / O node: A ", "I / O node: B ", and "I / O node: C" is collection time TA, TB, and TC , The first adjusting unit 130 calculates the collection times TA , TB , and TC as follows. That is, the first adjusting unit 130 calculates the collection time T sample by dividing the value of the “reference point” by the value of the “reference frequency” for each I / O node. The collection times TA , TB , and TC are, specifically, as illustrated in FIG. 7 (B), respectively.

Figure 0007010185000002
Figure 0007010185000002

となる。 Will be.

すなわち、第1調整部130は、各I/Oノードについて、「サンプリング点数」の値を「サンプリング周波数」の値で除して、収集時間Tsampleを算出する。以下の説明において、「各I/Oノードの収集時間Tsampleの、全I/Oノード分の合計(つまり、全I/Oノード分の収集時間Tsampleの合計)」を「総収集時間TAll」と称することがある。総収集時間TAllは、第1調整部130が巡回単位順列を一巡するのに割り当てられた期間(言い換えれば、巡回単位順列を一巡するまでに収集部140が要する期間)とも言える。図7の(B)に示す例では、巡回単位順列における各I/Oノードの収集時間Tsampleの合計から、「総収集時間TAll=T+T+T=5+5+1=11s」となる。 That is, the first adjustment unit 130 calculates the collection time T sample by dividing the value of the “sampling point” by the value of the “sampling frequency” for each I / O node. In the following description, "total collection time T sample of each I / O node, total for all I / O nodes (that is, total collection time T sample for all I / O nodes)" is referred to as "total collection time T." Sometimes referred to as " All ". The total collection time T All can be said to be the period allocated for the first adjusting unit 130 to make a round of the traveling unit sequence (in other words, the period required for the collecting unit 140 to make a round of the traveling unit sequence). In the example shown in FIG. 7B, the total collection time T All = TA + TB + TC = 5 + 5 + 1 = 11s is obtained from the total collection time T sample of each I / O node in the cyclic unit sequence.

(平均サンプリング速度の算出方法)
第1調整部130は、巡回単位順列における各I/Oノードについて算出したサンプリング速度Vsampleと収集時間Tsampleとから、収集部140によって単位時間あたりに収集されるデータのデータ量を示す「平均サンプリング速度Vmean」を算出する。具体的には、第1調整部130は、「巡回単位順列を一巡するまでに収集部140によって収集されるデータのデータ量を、巡回単位順列を一巡するまでに収集部140が要する時間間隔で除した値」として、「平均サンプリング速度Vmean」を算出する。例えば、第1調整部130は、「各I/Oノードのサンプリング速度Vsampleに各I/Oノードの収集時間Tsampleを乗じた値」の全I/Oノード分の合計を、全I/Oノード分の収集時間Tsampleの合計で除して、平均サンプリング速度Vmeanを算出する。平均サンプリング速度Vmeanは、具体的には、図7の(B)に例示するように、
(Calculation method of average sampling rate)
The first adjustment unit 130 indicates the amount of data collected per unit time by the collection unit 140 from the sampling speed V sample and the collection time T sample calculated for each I / O node in the cyclic unit sequence. "Sampling speed V mean " is calculated. Specifically, the first coordinating unit 130 "determines the amount of data collected by the collecting unit 140 before making a round of the traveling unit sequence, at the time interval required by the collecting unit 140 to make a round of the traveling unit sequence. The "average sampling rate V mean " is calculated as the "divided value". For example, the first adjusting unit 130 sets the total of all I / O nodes of "a value obtained by multiplying the sampling rate V sample of each I / O node by the collection time T sample of each I / O node". The average sampling rate Vmean is calculated by dividing by the total collection time T sample for the O node. Specifically, the average sampling rate V mean is as illustrated in FIG. 7 (B).

Figure 0007010185000003
Figure 0007010185000003

となる。 Will be.

(余裕速度の算出方法)
第1調整部130は、最大値Vammから平均サンプリング速度Vmeanを差し引いた値として、「余裕速度Vmargin」を算出する。「最大値Vamm=1024byte/s」であり、「平均サンプリング速度Vmean=910byte/s」であるから、図7の(B)に例示するように、
(Calculation method of margin speed)
The first adjusting unit 130 calculates the "margin speed V margin " as a value obtained by subtracting the average sampling speed V margin from the maximum value V amm . Since "maximum value V am = 1024 bytes / s" and "mean sampling rate V mean = 910 bytes / s", as illustrated in FIG. 7 (B),

Figure 0007010185000004
Figure 0007010185000004

である。 Is.

第1調整部130は、「余裕速度Vmargin=114byte/s」であり、つまり、「余裕速度Vmarginが『0』以上である」ことを確認すると、収集規則の調整が不要であると判定する。第1調整部130は、各I/Oノードについて、収集規則テーブル183の「基準周波数」および「基準点数」の各々の値を、「実周波数」および「実点数」の各々へと格納する。 When the first adjusting unit 130 confirms that "margin speed V margin = 114byte / s", that is, "margin speed V margin is" 0 "or more", it is determined that adjustment of the collection rule is unnecessary. do. For each I / O node, the first adjusting unit 130 stores the respective values of the “reference frequency” and the “reference point number” in the collection rule table 183 in each of the “actual frequency” and the “actual score”.

つまり、図7の(C)に例示するように、第1調整部130は、収集規則テーブル183の「I/Oノード:A」について、「実周波数」に「基準周波数」と等しい「200Hz」を格納し、「実点数」に「基準点数」と等しい「1000」を格納する。同様に、「I/Oノード:B」について、「実周波数」に「基準周波数」と等しい「200Hz」を格納し、「実点数」に「基準点数」と等しい「1000」を格納する。また、「I/Oノード:C」について、「実周波数」に「基準周波数」と等しい「1000Hz」を格納し、「実点数」に「基準点数」と等しい「1000」を格納する。 That is, as illustrated in FIG. 7 (C), the first adjusting unit 130 has "200 Hz", which is equal to the "reference frequency" in the "actual frequency" of the "I / O node: A" in the collection rule table 183. Is stored, and "1000" equal to the "reference score" is stored in the "actual score". Similarly, for the "I / O node: B", "200 Hz" equal to the "reference frequency" is stored in the "real frequency", and "1000" equal to the "reference score" is stored in the "real score". Further, for the "I / O node: C", "1000 Hz" equal to the "reference frequency" is stored in the "real frequency", and "1000" equal to the "reference score" is stored in the "real score".

収集部140は、収集規則テーブル183に格納されている調整後の収集規則に従ってサンプリング処理を実行し、つまり、収集規則テーブル183に格納されている各I/Oノードの「基準周波数」および「基準点数」に従って、サンプリングを実行する。具体的には、図7の(C)に例示する収集規則テーブル183には、「順列:A、B、C」が格納されているため、収集部140は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々のデータを、この順に収集する。収集部140は、「I/Oノード:A」について、「サンプリング周波数:200Hz」として、「サンプリング点数:1000」点のデータを、収集する。収集部140は、「I/Oノード:B」について、「サンプリング周波数:200Hz」として、「サンプリング点数:1000」点のデータを、収集する。収集部140は、「I/Oノード:C」について、「サンプリング周波数:1000Hz」として、「サンプリング点数:1000」点のデータを、収集する。 The collection unit 140 executes sampling processing according to the adjusted collection rule stored in the collection rule table 183, that is, the “reference frequency” and “reference frequency” of each I / O node stored in the collection rule table 183. Sampling is performed according to the "score". Specifically, since the collection rule table 183 exemplified in FIG. 7 (C) stores "sequential columns: A, B, C", the collection unit 140 has "I / O node: A". , "I / O node: B", and "I / O node: C" are collected in this order. The collection unit 140 collects data of "sampling points: 1000" with "sampling frequency: 200 Hz" for "I / O node: A". The collection unit 140 collects data of "sampling points: 1000" with "sampling frequency: 200 Hz" for "I / O node: B". The collection unit 140 collects data of "sampling points: 1000" points as "sampling frequency: 1000 Hz" for "I / O node: C".

(サンプリング速度についての留意点)
図7に示す例では、「I/Oノード:C」のサンプリング速度Vは「2000byte/s」であり、「最大値Vamm=1024byte/s」よりも大きい。しかしながら、「平均サンプリング速度Vmean=910byte/s」は「最大値Vamm=1024byte/s」以下であるから、第1調整部130は、収集規則の調整が不要であると判定する。
(Notes on sampling speed)
In the example shown in FIG. 7, the sampling rate VC of the “I / O node: C ” is “2000 bytes / s”, which is larger than the “maximum value Vamm = 1024 bytes / s”. However, since the "mean sampling rate Vmean = 910byte / s" is equal to or less than the "maximum value V amm = 1024byte / s", the first adjusting unit 130 determines that the collection rule does not need to be adjusted.

すなわち、特定のI/Oノードのサンプリング速度Vsampleが最大値Vammを超えていても、データ収集全体の平均(平均サンプリング速度Vmean)が最大値Vamm以下であれば、第1調整部130は、収集規則の調整は不要であると判定する。 That is, even if the sampling speed V sample of a specific I / O node exceeds the maximum value Vamm , if the average of the entire data collection (mean sampling speed V mean ) is equal to or less than the maximum value Vamm , the first adjustment unit 130 determines that adjustment of the collection rules is not necessary.

(収集規則の調整が必要である場合の例)
図8は、収集部140が実際にサンプリング処理を実行する際に従う収集規則として、基準収集規則をそのまま採用できない場合の収集規則テーブル183等の一例を示す図である。図8において、「最大値Vamm=1024byte/s」とする。
(Example when it is necessary to adjust the collection rules)
FIG. 8 is a diagram showing an example of a collection rule table 183 or the like when the reference collection rule cannot be adopted as it is as the collection rule to be followed when the collection unit 140 actually executes the sampling process. In FIG. 8, “maximum value Vamm = 1024byte / s” is set.

図8の(A)に例示する収集規則テーブル183には、「I/Oノード:A」について、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「2000Hz」、「基準点数」が「2000」であるとの情報が登録されている。同様に、「I/Oノード:B」は、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。また、「I/Oノード:C」は、「データ型」が例えば「INT」であって、1単位当たり16bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。 In the collection rule table 183 exemplified in FIG. 8A, for "I / O node: A", the "data type" is, for example, "DINT", the unit is 32 bits, and the "reference frequency" is "reference frequency". Information that "2000 Hz" and "reference point" are "2000" is registered. Similarly, for "I / O node: B", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000". .. Further, in the "I / O node: C", the "data type" is, for example, "INT", 16 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000".

(サンプリング速度の算出方法)
上述の通り、第1調整部130は、各I/Oノードについて、「データ型」によって特定されるデータ1単位当たりの大きさに、「サンプリング周波数」の値を乗じた後、「8bit/byte」で除して、サンプリング速度Vsampleを算出する。具体的には、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」のサンプリング速度V、V、およびVの各々について、図8の(B)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「サンプリング速度V=8000byte/s」、「サンプリング速度V=4000byte/s」、「サンプリング速度V=2000byte/s」を算出する。
(Calculation method of sampling speed)
As described above, for each I / O node, the first adjustment unit 130 multiplies the size per unit of data specified by the "data type" by the value of the "sampling frequency" and then "8 bits / byte". , To calculate the sampling rate V sample . Specifically, the first adjusting unit 130 has sampling rates VA , BB , and "I / O node: A", "I / O node: B", and "I / O node: C". For each of the VCs, the following values are calculated as illustrated in ( B ) of FIG. That is, the first adjusting unit 130 calculates "sampling speed V A = 8000 byte / s", "sampling speed V B = 4000 byte / s", and "sampling speed VC = 2000 byte / s".

(収集時間の算出方法)
また、第1調整部130は、各I/Oノードについて、「サンプリング点数」の値を「サンプリング周波数」の値で除して、収集時間Tsampleを算出する。具体的には、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の収集時間T、T、およびTの各々について、図8の(B)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「収集時間T=1s」、「収集時間T=1s」、「収集時間T=1s」を算出する。
(Calculation method of collection time)
Further, the first adjusting unit 130 calculates the collection time T sample by dividing the value of the “sampling point” by the value of the “sampling frequency” for each I / O node. Specifically, the first adjusting unit 130 collects the “I / O node: A”, “I / O node: B”, and “I / O node: C” collection times TA , TB , and For each of the TCs, the following values are calculated as illustrated in ( B ) of FIG. That is, the first adjusting unit 130 calculates "collection time TA = 1s", "collection time TB = 1s", and "collection time TC = 1s".

(平均サンプリング速度および余裕速度の算出方法)
第1調整部130は、巡回単位順列における各I/Oノードについて算出したサンプリング速度Vsampleと収集時間Tsampleとから、平均サンプリング速度Vmeanを算出する。例えば、第1調整部130は、「各I/Oノードのサンプリング速度Vsampleに各I/Oノードの収集時間Tsampleを乗じた値」の全I/Oノード分の合計を、全I/Oノード分の収集時間Tsampleの合計で除して、平均サンプリング速度Vmeanを算出する。すなわち、第1調整部130は、「平均サンプリング速度Vmean=4667byte/s」を算出する。また、「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=-3643byte/s」を算出する。
(Calculation method of average sampling speed and margin speed)
The first adjusting unit 130 calculates the average sampling rate V mean from the sampling rate V sample and the collection time T sample calculated for each I / O node in the cyclic unit sequence. For example, the first adjusting unit 130 sets the total of all I / O nodes of "a value obtained by multiplying the sampling rate V sample of each I / O node by the collection time T sample of each I / O node". The average sampling rate Vmean is calculated by dividing by the total collection time T sample for the O node. That is, the first adjusting unit 130 calculates "mean sampling speed V mean = 4667 bytes / s". Further, since "maximum value V am = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = −3643 bytes / s".

第1調整部130は、「余裕速度Vmargin=-3643byte/s」であり、つまり、「余裕速度Vmarginが『0』未満である」ことを確認すると、収集規則の調整が必要であると判定する。 When the first adjusting unit 130 confirms that "margin speed V margin = -3643 byte / s", that is, "margin speed V margin is less than" 0 "", it is necessary to adjust the collection rule. judge.

図7および図8を用いて説明したように、第1調整部130は、平均サンプリング速度Vmeanと最大値Vammとの比較から、収集規則の調整要否を判定する。そして、収集規則の調整が必要であると判定した第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、収集規則を調整する。具体的には、第1調整部130は、各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」、および、「巡回単位順列を一巡するまでに要する時間」の少なくとも一つの項目を、最大値Vammを用いて、調整する。 As described with reference to FIGS. 7 and 8, the first adjusting unit 130 determines whether or not the collection rule needs to be adjusted by comparing the average sampling rate V mean with the maximum value V amm . Then, the first adjustment unit 130, which determines that the collection rule needs to be adjusted, adjusts the collection rule so that the margin speed V margin becomes "0" or more. Specifically, the first adjustment unit 130 has at least one of the “patrol frequency”, “sampling frequency”, “sampling point”, and “time required to complete the patrol unit sequence” of each I / O node. Adjust one item using the maximum value Vamm .

(収集規則の調整を行なう場合の一般的な留意点について)
図9は、或るI/Oノードの収集規則を増減させた場合に、平均サンプリング速度Vmeanの値がどのように変化するかの傾向を説明する図である。具体的には、図9は、第1調整部130が、各I/Oノードの「巡回頻度」、「サンプリング周波数」、および「サンプリング点数」を調整する(つまり、増減させる)ことによる、平均サンプリング速度Vmeanへの一般的な影響を説明する図である。
(General points to keep in mind when adjusting collection rules)
FIG. 9 is a diagram illustrating a tendency of how the value of the average sampling rate Vmean changes when the collection rule of a certain I / O node is increased or decreased. Specifically, in FIG. 9, the first adjusting unit 130 adjusts (that is, increases / decreases) the “circulation frequency”, “sampling frequency”, and “sampling point” of each I / O node. It is a figure explaining the general influence on a sampling rate V mean .

第1調整部130は、収集部140の収集するデータの利用目的に応じて、各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」、および、「巡回単位順列を一巡するまでに要する時間」の少なくとも1つを調整する。ここで、或るI/Oノードの収集規則が変更されると、「第1調整部130が巡回単位順列を一巡するのに要する総時間(つまり、総収集時間TAll)に対して、各I/Oノードの収集時間Tsampleが占める割合」が相対的に変化する。具体的には、或るI/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」の少なくとも一つを変更すると、「総収集時間TAllに対して、各I/Oノードの収集時間Tsampleが占める割合」が相対的に変化する。そのため、或るI/Oノードの収集規則を変更すると、巡回単位順列における他のI/Oノードの収集規則にも影響を与え、結果として平均サンプリング速度Vmeanが大きく変わることがある。そこで、図9に、各I/Oノードの収集規則の変更と、その平均サンプリング速度Vmeanへの影響について整理した図を示しておく。 The first adjusting unit 130 makes a round of the "circulation frequency", "sampling frequency", "sampling point", and "circulation unit sequence" of each I / O node according to the purpose of use of the data collected by the collection unit 140. Adjust at least one of the "time required to do". Here, when the collection rule of a certain I / O node is changed, "for the total time required for the first adjusting unit 130 to make a round of the patrol unit sequence (that is, the total collection time T All ), each The "ratio occupied by the collection time T sample of the I / O node" changes relatively. Specifically, when at least one of the "patrol frequency", "sampling frequency", and "sampling point" of a certain I / O node is changed, the "total collection time T All " of each I / O node is changed. The "ratio occupied by the collection time T sample " changes relatively. Therefore, changing the collection rule of one I / O node may affect the collection rule of other I / O nodes in the cyclic unit sequence, and as a result, the mean sampling rate Vmean may change significantly. Therefore, FIG. 9 shows a diagram summarizing the changes in the collection rules of each I / O node and their effects on the average sampling rate Vmean .

図9の(A)は、収集規則を変更するI/Oノードのサンプリング速度Vsampleが最大値Vammよりも大きい場合の、変更する収集規則と、その平均サンプリング速度Vmeanへの影響を説明する図である。サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「巡回頻度」を増加させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「巡回頻度」を減少させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。 FIG. 9A describes the collection rule to be changed and its influence on the average sampling rate V mean when the sampling rate V sample of the I / O node that changes the collection rule is larger than the maximum value Vamm . It is a figure to do. If the "patrol frequency" of the I / O node whose sampling rate V sample is larger than the maximum value V am is increased, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value V am. Sex rises. If the "patrol frequency" of the I / O node whose sampling rate V sample is larger than the maximum value V am is reduced, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value V am. Gender declines.

サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「サンプリング周波数」を増加させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「サンプリング周波数」を減少させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。 If the "sampling frequency" of the I / O node where the sampling rate V sample is larger than the maximum value Vamm is increased, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value Vamm . Sex rises. If the "sampling frequency" of the I / O node where the sampling rate V sample is larger than the maximum value Vamm is reduced, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value Vamm . Gender declines.

サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「サンプリング点数」を増加させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。サンプリング速度Vsampleが最大値Vammよりも大きいI/Oノードの「サンプリング点数」を減少させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。 If the "sampling points" of the I / O node whose sampling rate V sample is larger than the maximum value V am is increased, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value V am. Sex rises. If the "sampling points" of the I / O node whose sampling rate V sample is larger than the maximum value V am is reduced, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value V am. Gender declines.

図9の(B)は、収集規則を変更するI/Oノードのサンプリング速度Vsampleが最大値Vammよりも小さい場合の、変更する収集規則と、その平均サンプリング速度Vmeanへの影響を説明する図である。サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「巡回頻度」を増加させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「巡回頻度」を減少させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。 (B) of FIG. 9 describes the collection rule to be changed and its influence on the average sampling rate V mean when the sampling rate V sample of the I / O node that changes the collection rule is smaller than the maximum value Vamm . It is a figure to do. If the "patrol frequency" of the I / O node whose sampling rate V sample is smaller than the maximum value V am is increased, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value V am. Gender declines. If the "patrol frequency" of the I / O node whose sampling rate V sample is smaller than the maximum value V am is reduced, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value V am. Sex rises.

サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「サンプリング周波数」を増加させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「サンプリング周波数」を減少させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。 If the "sampling frequency" of the I / O node where the sampling rate V sample is smaller than the maximum value Vamm is increased, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value V am. Sex rises. If the "sampling frequency" of the I / O node where the sampling rate V sample is smaller than the maximum value Vamm is reduced, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value Vamm . Gender declines.

サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「サンプリング点数」を増加させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。サンプリング速度Vsampleが最大値Vammよりも小さいI/Oノードの「サンプリング点数」を減少させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。 If the "sampling point" of the I / O node whose sampling rate V sample is smaller than the maximum value Vamm is increased, the average sampling rate V mean becomes smaller and the average sampling rate V mean can be larger than the maximum value Vamm . Gender declines. If the "sampling points" of the I / O node whose sampling rate V sample is smaller than the maximum value V am is reduced, the average sampling rate V mean becomes larger and the average sampling rate V mean can be larger than the maximum value V am. Sex rises.

図9の(C)は、収集規則を変更するI/Oノードのサンプリング速度Vsampleが最大値Vammに等しい場合の、変更する収集規則と、その平均サンプリング速度Vmeanへの影響を説明する図である。サンプリング速度Vsampleが最大値Vammに等しいI/Oノードの「巡回頻度」を増減させた場合、平均サンプリング速度Vmeanの値は、そのI/Oノード以外の、他のI/Oノードの収集規則に依存する。 FIG. 9C describes the collection rule to be changed and its influence on the average sampling rate V mean when the sampling rate V sample of the I / O node that changes the collection rule is equal to the maximum value Vamm . It is a figure. When the "patrol frequency" of an I / O node whose sampling rate V sample is equal to the maximum value V am is increased or decreased, the value of the average sampling rate V mean is that of other I / O nodes other than that I / O node. Depends on collection rules.

サンプリング速度Vsampleが最大値Vammに等しいI/Oノードの「サンプリング周波数」を増加させると、平均サンプリング速度Vmeanは大きくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は上昇する。 If the "sampling frequency" of the I / O node where the sampling rate V sample is equal to the maximum value V am is increased, the average sampling rate V mean becomes larger and the average sampling rate V mean may be larger than the maximum value V am . Rise.

サンプリング速度Vsampleが最大値Vammに等しいI/Oノードの「サンプリング周波数」を減少させると、平均サンプリング速度Vmeanは小さくなり、平均サンプリング速度Vmeanが最大値Vammよりも大きくなる可能性は下降する。 If the "sampling frequency" of the I / O node where the sampling rate V sample is equal to the maximum value V am is reduced, the average sampling rate V mean becomes smaller and the average sampling rate V mean may be larger than the maximum value V am . Goes down.

サンプリング速度Vsampleが最大値Vammに等しいI/Oノードの「サンプリング点数」を増減させた場合、平均サンプリング速度Vmeanの値は、そのI/Oノード以外の、他のI/Oノードの収集規則に依存する。 When the "sampling point" of an I / O node whose sampling rate V sample is equal to the maximum value V am is increased or decreased, the value of the average sampling rate V mean is that of other I / O nodes other than that I / O node. Depends on collection rules.

第1調整部130は、「余裕速度Vmarginが『0』以上となる」ように、例えば、各I/Oノードの「巡回頻度」、「サンプリング周波数」、および、「サンプリング点数」の少なくとも一つを、図9を用いて説明した上述の傾向に留意して調整する。 The first adjusting unit 130 is, for example, at least one of the “patrol frequency”, “sampling frequency”, and “sampling point” of each I / O node so that “the margin speed V margin becomes“ 0 ”or more”. This is adjusted in consideration of the above-mentioned tendency described with reference to FIG.

(「サンプリング周波数」を不変とする場合の調整方法の一例)
図10は、第1調整部130が、各I/Oノードの「サンプリング周波数」を不変としつつ、平均サンプリング速度Vmeanが最大値Vamm以下となるように収集規則を調整する例を示す図である。図10において、「最大値Vamm=1024byte/s」とする。図10に例示するように、第1調整部130は、各I/Oノードの「サンプリング周波数」は変更せずに、例えば、各I/Oノードの「巡回頻度(より正確には、相対的な巡回頻度)」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(An example of the adjustment method when the "sampling frequency" is invariant)
FIG. 10 is a diagram showing an example in which the first adjusting unit 130 adjusts the collection rule so that the average sampling rate Vmean is equal to or less than the maximum value Vamm while keeping the “sampling frequency” of each I / O node unchanged. Is. In FIG. 10, “maximum value Vamm = 1024byte / s” is set. As illustrated in FIG. 10, the first adjusting unit 130 does not change the “sampling frequency” of each I / O node, for example, the “patrol frequency (more accurately, relative)” of each I / O node. The frequency of patrols) ”is increased or decreased so that the average sampling rate V mean is set to the maximum value V amm or less.

図10の(A)は、第2調整部160によって、「I/Oノード:A」の巡回頻度が変更された直後の収集規則テーブル183の一例を示す図である。例えば、「I/Oノード:A」について、収集規則テーブル183の「履歴」に格納されている値が、連続してN回、増加基準値Uth以上である判定した第2調整部160は、「I/Oノード:A」の巡回頻度を、図10の(A)のように増やす。すなわち、第2調整部160は、「I/Oノード:A」の巡回頻度を増やす前の巡回単位順列である「順列:A、B、C」について、「I/Oノード:A」の巡回頻度を増やして、例えば、図10の(A)に例示する「順列:A、B、A、C」に変更する。 FIG. 10A is a diagram showing an example of a collection rule table 183 immediately after the patrol frequency of “I / O node: A” is changed by the second adjusting unit 160. For example, for "I / O node: A", the second adjusting unit 160 that determines that the value stored in the "history" of the collection rule table 183 is equal to or greater than the increase reference value Uth N times in a row The patrol frequency of "I / O node: A" is increased as shown in (A) of FIG. That is, the second adjusting unit 160 patrols "I / O node: A" with respect to "sequential sequence: A, B, C" which is a patrol unit sequence before increasing the patrol frequency of "I / O node: A". The frequency is increased, and the frequency is changed to, for example, "sequence: A, B, A, C" exemplified in (A) of FIG.

図10の(A)に例示する収集規則テーブル183には、「順列:A、B、A、C」が格納されており、さらに、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々について、以下の情報が格納されている。すなわち、「I/Oノード:A」について、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「400Hz」、「基準点数」が「1000」であるとの情報が登録されている。同様に、「I/Oノード:B」は、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「400Hz」、「基準点数」が「1000」である。また、「I/Oノード:C」は、「データ型」が例えば「INT」であって、1単位当たり16bit、「基準周波数」が「200Hz」、「基準点数」が「1000」である。 In the collection rule table 183 exemplified in FIG. 10A, "sequential columns: A, B, A, C" are stored, and further, "I / O node: A" and "I / O node:" are stored. The following information is stored for each of "B" and "I / O node: C". That is, for "I / O node: A", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "400 Hz", and the "reference point number" is "1000". Information is registered. Similarly, for "I / O node: B", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "400 Hz", and the "reference point number" is "1000". .. Further, in the "I / O node: C", the "data type" is, for example, "INT", 16 bits per unit, the "reference frequency" is "200 Hz", and the "reference point number" is "1000".

(サンプリング速度の算出方法)
これまでに説明した方法を用いて、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」のサンプリング速度V、V、およびVの各々について、図10の(A)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「サンプリング速度V=1600byte/s」、「サンプリング速度V=1600byte/s」、「サンプリング速度V=400byte/s」を算出する。
(Calculation method of sampling speed)
Using the methods described so far, the first adjusting unit 130 has a sampling rate VA of "I / O node: A ", "I / O node: B", and "I / O node: C". , V B , and VC , respectively, the following values are calculated as illustrated in FIG. 10 (A). That is, the first adjusting unit 130 calculates "sampling speed V A = 1600 bytes / s", "sampling speed V B = 1600 bytes / s", and "sampling speed VC = 400 bytes / s".

(収集時間の算出方法)
また、これまでに説明した方法を用いて、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の収集時間T、T、およびTの各々について、図10の(A)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「収集時間T=2.5s」、「収集時間T=2.5s」、「収集時間T=5s」を算出する。
(Calculation method of collection time)
Further, using the method described so far, the first adjusting unit 130 collects "I / O node: A", "I / O node: B", and "I / O node: C". For each of TA, TB , and TC , the following values are calculated as illustrated in ( A ) of FIG. That is, the first adjusting unit 130 calculates "collection time TA = 2.5s", "collection time TB = 2.5s", and "collection time TC = 5s".

(平均サンプリング速度および余裕速度の算出方法)
第1調整部130は、巡回単位順列の各I/Oノードについて算出したサンプリング速度Vsampleと収集時間Tsampleとから、平均サンプリング速度Vmeanを算出する。例えば、第1調整部130は、「各I/Oノードのサンプリング速度Vsampleに各I/Oノードの収集時間Tsampleを乗じた値」の全I/Oノード分の合計を、全I/Oノード分の収集時間Tsampleの合計で除して、平均サンプリング速度Vmeanを算出する。すなわち、第1調整部130は、「平均サンプリング速度Vmean=1120byte/s」を算出する。また、「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=-96byte/s」を算出する。
(Calculation method of average sampling speed and margin speed)
The first adjusting unit 130 calculates the average sampling rate V mean from the sampling rate V sample and the collection time T sample calculated for each I / O node in the cyclic unit sequence. For example, the first adjusting unit 130 sets the total of all I / O nodes of "a value obtained by multiplying the sampling rate V sample of each I / O node by the collection time T sample of each I / O node". The average sampling rate Vmean is calculated by dividing by the total collection time T sample for the O node. That is, the first adjusting unit 130 calculates "mean sampling speed V mean = 1120 bytes / s". Further, since "maximum value V am = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = -96 bytes / s".

第1調整部130は、「余裕速度Vmargin=-96byte/s」であり、つまり、「余裕速度Vmarginが『0』未満である」ことを確認すると、収集規則の調整が必要であると判定する。 When the first adjusting unit 130 confirms that "margin speed V margin = -96 byte / s", that is, "margin speed V margin is less than" 0 "", it is necessary to adjust the collection rule. judge.

(巡回頻度の調整例)
第1調整部130は、各I/Oノードの「サンプリング周波数」は変更せずに、例えば、図10の(B)に例示するように各I/Oノードの「巡回頻度」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(Example of adjusting patrol frequency)
The first adjusting unit 130 does not change the "sampling frequency" of each I / O node, but increases or decreases the "patrol frequency" of each I / O node, for example, as illustrated in FIG. 10B. , The average sampling rate V mean is set to the maximum value V amm or less.

ここで、図9を用いて説明したように、最大値Vammよりも大きいサンプリング速度VsampleのI/Oノードの「巡回頻度」を減少させると、一般的に平均サンプリング速度Vmeanは小さくなる(図9の(A))。また、最大値Vammよりも小さいサンプリング速度VsampleのI/Oノードの「巡回頻度」を増加させると、一般的に平均サンプリング速度Vmeanは小さくなる(図9の(B))。 Here, as described with reference to FIG. 9, when the “patrol frequency” of the I / O node of the sampling rate V sample larger than the maximum value Vamm is reduced, the average sampling rate V mean is generally reduced. ((A) in FIG. 9). Further, when the "patrol frequency" of the I / O node of the sampling rate V sample smaller than the maximum value Vamm is increased, the average sampling rate V mean generally becomes smaller ((B) in FIG. 9).

「最大値Vamm=1024byte/s」であるから、「サンプリング速度V=1600byte/s」は最大値Vammよりも大きく、「サンプリング速度V=400byte/s」は最大値Vammよりも小さい。 Since "maximum value V amm = 1024 bytes / s", "sampling speed V B = 1600 bytes / s" is larger than the maximum value V amm , and "sampling speed VC = 400 bytes / s" is larger than the maximum value V amm . small.

そこで、第1調整部130は、「順列:A、B、A、C」について、「I/Oノード:B」の「巡回頻度(より正確には、「相対的な巡回頻度」)」の減少、および、「I/Oノード:C」の「巡回頻度」の増加の少なくとも一方を実行する。例えば、「I/Oノード:B」の重要度が、「I/Oノード:A」および「I/Oノード:C」の重要度よりも低い場合、第1調整部130は、図10の(A)の「順列:A、B、A、C」を、図10の(B)の「順列:A、B、C、A、A、C」に変更する。 Therefore, the first adjusting unit 130 describes the "circulation frequency (more accurately," relative patrol frequency ") of the" I / O node: B "for the" sequence: A, B, A, C ". Perform at least one of a decrease and an increase in the "patrol frequency" of "I / O node: C". For example, when the importance of "I / O node: B" is lower than the importance of "I / O node: A" and "I / O node: C", the first adjusting unit 130 is shown in FIG. The "order: A, B, A, C" in (A) is changed to the "order: A, B, C, A, A, C" in (B) of FIG.

「順列:A、B、A、C」において、「I/Oノード:A、B、および、C」の各々の巡回頻度は、「2、1、1(相対的には、2/4、1/4、1/4)」である。これに対し、「順列:A、B、C、A、A、C」において、「I/Oノード:A、B、および、C」の各々の巡回頻度は、「3、1、2(相対的には、3/6、1/6、2/6)」である。つまり、第1調整部130は、「順列:A、B、A、C」について、「I/Oノード:B」の「巡回頻度(より正確には、「相対的な巡回頻度」)」を減少させ、「I/Oノード:C」の「巡回頻度」を増加させて、「順列:A、B、C、A、A、C」に変更する。 In the "sequential sequence: A, B, A, C", the patrol frequency of each of the "I / O nodes: A, B, and C" is "2, 1, 1 (relatively 2/4, 1/4, 1/4) ". On the other hand, in the "order: A, B, C, A, A, C", the patrol frequency of each of the "I / O nodes: A, B, and C" is "3, 1, 2 (relative). 3/6, 1/6, 2/6) ”. That is, the first adjusting unit 130 sets the "patrol frequency (more accurately," relative patrol frequency ") of the" I / O node: B "for the" sequence: A, B, A, C ". Decrease, increase the "patrol frequency" of "I / O node: C", and change to "order: A, B, C, A, A, C".

図10の(B)に例示するように、第1調整部130が「順列:A、B、C、A、A、C」について算出する平均サンプリング速度Vmeanは「平均サンプリング速度Vmean=1000byte/s」となる。「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=24byte/s」を算出する。余裕速度Vmarginが0以上であると判定した第1調整部130は、この「順列:A、B、C、A、A、C」を、収集部140が従うべき巡回単位順列として採用する。 As illustrated in (B) of FIG. 10, the average sampling rate V mean calculated by the first adjusting unit 130 for “sequential sequence: A, B, C, A, A, C” is “average sampling rate V mean = 1000 bytes”. / S ". Since "maximum value V amm = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = 24 bytes / s". The first adjusting unit 130, which has determined that the margin speed V margin is 0 or more, adopts this "sequential sequence: A, B, C, A, A, C" as the patrol unit sequential sequence to be followed by the collecting unit 140.

図10を用いて説明したように、第1調整部130は、巡回単位順列の各I/Oノードの「サンプリング周波数」は変更せずに、各I/Oノードの「巡回頻度(相対的な巡回頻度)」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。例えば、第1調整部130は、「I/Oノード:B」の「巡回頻度」を「1/4から1/6に」減少させ、「I/Oノード:C」の「巡回頻度」を「1/4から2/6に」増加させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。 As described with reference to FIG. 10, the first adjusting unit 130 does not change the “sampling frequency” of each I / O node in the patrol unit sequence, but the “patrol frequency (relative) of each I / O node. The patrol frequency) ”is increased or decreased so that the average sampling rate V mean is set to the maximum value V amm or less. For example, the first adjusting unit 130 reduces the "patrol frequency" of "I / O node: B" from "1/4 to 1/6" and reduces the "patrol frequency" of "I / O node: C". Increase "from 1/4 to 2/6" so that the mean sampling rate V mean is less than or equal to the maximum value V am .

なお、第2調整部160によって「順列:A、B、C」から「I/Oノード:A」の巡回頻度が増やされた「順列:A、B、A、C」について、平均サンプリング速度Vmeanを最大値Vamm以下とするための調整方法は、上述のものに限られない。例えば、第1調整部130は、図10の(B)に例示する「順列:A、B、A、C」を、「順列:A、B、C」に戻すことによって、平均サンプリング速度Vmeanを最大値Vamm以下としてもよい。 The average sampling speed V for the "sequential sequence: A, B, A, C" in which the patrol frequency from the "sequential sequence: A, B, C" to the "I / O node: A" was increased by the second adjusting unit 160. The adjustment method for setting the mean to the maximum value Vamm or less is not limited to the above. For example, the first adjusting unit 130 returns the “sequential sequence: A, B, A, C” exemplified in FIG. 10 (B) to the “sequential sequence: A, B, C”, whereby the average sampling rate Vmean . May be set to a maximum value of V am or less.

(「巡回頻度」および「サンプリング点数」を不変とする場合の調整方法の一例)
図11は、第1調整部130が、各I/Oノードの「巡回頻度」および「サンプリング点数」を不変としつつ、平均サンプリング速度Vmeanが最大値Vamm以下となるように収集規則を調整する例を示す図である。図11において、「最大値Vamm=1024byte/s」とする。図11に例示するように、第1調整部130は、巡回単位順列の各I/Oノードの「巡回頻度」および「サンプリング点数」は変更せずに、例えば、各I/Oノードの「サンプリング周波数」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(An example of the adjustment method when the "patrol frequency" and "sampling score" are unchanged)
In FIG. 11, the first adjusting unit 130 adjusts the collection rule so that the average sampling rate V mean is equal to or less than the maximum value Vamm while keeping the “patrol frequency” and “sampling point” of each I / O node unchanged. It is a figure which shows the example. In FIG. 11, “maximum value Vamm = 1024byte / s” is set. As illustrated in FIG. 11, the first adjusting unit 130 does not change the “patrol frequency” and the “sampling point” of each I / O node in the patrol unit sequence, for example, “sampling” of each I / O node. The "frequency" is increased or decreased so that the average sampling rate V mean is set to the maximum value V am or less.

図11の(A)は、第1調整部130による調整前の収集規則テーブル183の一例であり、「順列:A、B、C」の「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々について、以下の情報が格納されている。すなわち、「I/Oノード:A」について、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「2000Hz」、「基準点数」が「2000」であるとの情報が登録されている。同様に、「I/Oノード:B」は、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。また、「I/Oノード:C」は、「データ型」が例えば「INT」であって、1単位当たり16bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。 FIG. 11A is an example of the collection rule table 183 before adjustment by the first adjustment unit 130, and is an example of “I / O node: A” and “I / O node” of “order: A, B, C”. : B ”and“ I / O node: C ”are stored in the following information. That is, for "I / O node: A", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "2000 Hz", and the "reference point number" is "2000". Information is registered. Similarly, for "I / O node: B", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000". .. Further, in the "I / O node: C", the "data type" is, for example, "INT", 16 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000".

(サンプリング速度および収集時間の算出方法)
これまでに説明した方法を用いて、第1調整部130は、「I/Oノード:A、B、および、C」について、サンプリング速度V、V、Vと、収集時間T、T、Tと、を算出する。すなわち、第1調整部130は、「サンプリング速度V=8000byte/s」、「サンプリング速度V=4000byte/s」、「サンプリング速度V=2000byte/s」を算出する。また、第1調整部130は、「収集時間T=1s」、「収集時間T=1s」、「収集時間T=1s」を算出する。
(Calculation method of sampling speed and collection time)
Using the method described so far, the first adjusting unit 130 determines the sampling speeds VA , BB , VC and the collection time TA for "I / O nodes: A , B, and C ". Calculate TB and TC . That is, the first adjusting unit 130 calculates "sampling speed V A = 8000 byte / s", "sampling speed V B = 4000 byte / s", and "sampling speed VC = 2000 byte / s". Further, the first adjusting unit 130 calculates "collection time TA = 1s", "collection time TB = 1s", and "collection time TC = 1s".

(平均サンプリング速度および余裕速度の算出方法)
第1調整部130は、巡回単位順列の各I/Oノードについて算出したサンプリング速度Vsampleと収集時間Tsampleとから、「平均サンプリング速度Vmean=4667byte/s」を算出する。また、「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=-3643byte/s」を算出する。
(Calculation method of average sampling speed and margin speed)
The first adjusting unit 130 calculates "mean sampling rate V mean = 4667 bytes / s" from the sampling rate V sample and the collection time T sample calculated for each I / O node in the cyclic unit sequence. Further, since "maximum value V am = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = −3643 bytes / s".

第1調整部130は、「余裕速度Vmargin=-3643byte/s」であり、つまり、「余裕速度Vmarginが『0』未満である」ことを確認すると、収集規則の調整が必要であると判定する。 When the first adjusting unit 130 confirms that "margin speed V margin = -3643 byte / s", that is, "margin speed V margin is less than" 0 "", it is necessary to adjust the collection rule. judge.

(サンプリング周波数の調整例)
第1調整部130は、巡回単位順列の各I/Oノードの「巡回頻度」および「サンプリング点数」は変更せずに、例えば、図11の(B)に例示するように各I/Oノードの「サンプリング周波数」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(Sampling frequency adjustment example)
The first adjusting unit 130 does not change the “patrol frequency” and the “sampling point” of each I / O node in the patrol unit sequence, for example, as illustrated in FIG. 11B, each I / O node. The "sampling frequency" of the above is increased or decreased so that the average sampling speed Vmaan is set to the maximum value Vamm or less.

先ず、第1調整部130は、「最大値Vamm=1024byte/s」を、調整前の「平均サンプリング速度Vmean=4667byte/s」で除した値である「低減率R」を算出する。すなわち、 First, the first adjustment unit 130 calculates a "reduction rate R" which is a value obtained by dividing the "maximum value V amm = 1024 bytes / s" by the "mean sampling rate V mean = 4667 bytes / s" before adjustment. That is,

Figure 0007010185000005
Figure 0007010185000005

である。 Is.

次に、第1調整部130は、各I/Oノードの調整前のサンプリング周波数(FA_未補正、FB_未補正、FC_未補正)に低減率Rを乗じて、各I/Oノードの調整後のサンプリング周波数(FA_補正後、FB_補正後、FC_補正後)を算出する。すなわち、 Next, the first adjustment unit 130 multiplies the sampling frequency ( FA_uncorrected , FB_uncorrected , FC_uncorrected ) before adjustment of each I / O node by the reduction rate R, and each I / O node. The adjusted sampling frequency ( after FA_correction , after FB_correction , after FC_correction ) is calculated. That is,

Figure 0007010185000006
Figure 0007010185000006

を算出する。 Is calculated.

そして、第1調整部130は、各I/Oノードについて、「データ型」によって特定されるデータ1単位当たりの大きさに、「調整後のサンプリング周波数」の値を乗じた後、「8bit/byte」で除して、調整後のサンプリング速度Vsampleを算出する。具体的には、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の調整後のサンプリング速度V、V、およびVの各々について、図11の(B)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「調整後のサンプリング速度V=1756byte/s」、「調整後のサンプリング速度V=876byte/s」、「調整後のサンプリング速度V=438byte/s」を算出する。 Then, for each I / O node, the first adjustment unit 130 multiplies the size per unit of data specified by the "data type" by the value of the "adjusted sampling frequency", and then "8 bits /". Divide by "byte" to calculate the adjusted sampling rate V sample . Specifically, the first adjusting unit 130 has adjusted sampling speeds VA , V of "I / O node: A", "I / O node: B", and "I / O node: C". For each of B and VC , the following values are calculated as illustrated in (B) of FIG. That is, the first adjusting unit 130 has "adjusted sampling speed VA = 1756 byte / s", "adjusted sampling speed V B = 876 byte / s", and "adjusted sampling rate VC = 438 byte / s". Is calculated.

また、第1調整部130は、各I/Oノードについて、「サンプリング点数」の値を「調整後のサンプリング周波数」の値で除して、調整後の収集時間Tsampleを算出する。具体的には、第1調整部130は、「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の調整後の収集時間T、T、およびTの各々について、図11の(B)に例示するように、以下の値を算出する。すなわち、第1調整部130は、「調整後の収集時間T=4.6s」、「調整後の収集時間T=4.6s」、「調整後の収集時間T=4.6s」を算出する。 Further, the first adjustment unit 130 calculates the adjusted collection time T sample by dividing the value of the “sampling point” by the value of the “adjusted sampling frequency” for each I / O node. Specifically, the first adjusting unit 130 has the adjusted collection times TA, T of "I / O node: A ", "I / O node: B", and "I / O node: C". For each of B and TC , the following values are calculated as illustrated in (B) of FIG. That is, the first adjusting unit 130 has "adjusted collection time TA = 4.6s", "adjusted collection time TB = 4.6s", and "adjusted collection time TC = 4.6s". Is calculated.

前述のように、第1調整部130は、巡回単位順列の各I/Oノードについて算出した調整後のサンプリング速度V、V、Vと調整後の収集時間T、T、Tとから、調整後の「平均サンプリング速度Vmean(「Vmean_補正後」とも称する)」を算出する。平均サンプリング速度Vmeanは、具体的には、図11の(B)に例示するように、「平均サンプリング速度Vmean=1024byte/s」となる。「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=0byte/s」を算出する。余裕速度Vmarginが0以上であると判定した第1調整部130は、この調整後のサンプリング周波数(FA_補正後、FB_補正後、FC_補正後)を、収集部140が従うべきサンプリング周波数として採用する。 As described above, the first adjusting unit 130 has adjusted sampling rates VA , BB , VC calculated for each I / O node in the cyclic unit sequence, and adjusted collection times TA , TB , T. From C , the adjusted "mean sampling rate V mean (also referred to as" V mean_corrected ")" is calculated. Specifically, the average sampling rate V mean is “average sampling rate V mean = 1024 bytes / s” as illustrated in FIG. 11 (B). Since "maximum value V amm = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling speed V mean = 0 bytes / s". The first adjusting unit 130, which determines that the margin speed V margin is 0 or more, samples the adjusted sampling frequency ( after FA_correction , after FB_correction , after FC_correction ) to be followed by the collection unit 140. Adopt as a frequency.

(「待ち時間」を挿入する場合の調整方法の一例)
図12は、第1調整部130が、サンプリング処理の間に待ち時間を挿入して、平均サンプリング速度Vmeanが最大値Vamm以下となるように、「巡回単位順列を一巡するまでに要する時間」を調整する例を示す図である。図12において、「最大値Vamm=1024byte/s」とする。図12に例示するように、第1調整部130は、巡回単位順列の各I/Oノードの「巡回頻度」、「サンプリング周波数」、「サンプリング点数」は変更せずに、「巡回単位順列を一巡するまでに要する時間」を増減させて、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(An example of adjustment method when inserting "waiting time")
In FIG. 12, the first adjusting unit 130 inserts a waiting time during the sampling process so that the average sampling speed V mean is equal to or less than the maximum value Vamm . It is a figure which shows the example which adjusts. In FIG. 12, “maximum value Vamm = 1024byte / s” is set. As illustrated in FIG. 12, the first adjusting unit 130 does not change the "circulation frequency", "sampling frequency", and "sampling point" of each I / O node in the circulation unit sequence, and performs the "circulation unit sequence". Increase or decrease the "time required to make a round" so that the average sampling rate V mean is set to the maximum value V amm or less.

図12の(A)は、第1調整部130による調整前の収集規則テーブル183の一例であり、「順列:A、B、C」の「I/Oノード:A」、「I/Oノード:B」、および、「I/Oノード:C」の各々について、以下の情報が格納されている。すなわち、「I/Oノード:A」について、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「2000Hz」、「基準点数」が「2000」であるとの情報が登録されている。同様に、「I/Oノード:B」は、「データ型」が例えば「DINT」であって、1単位当たり32bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。また、「I/Oノード:C」は、「データ型」が例えば「INT」であって、1単位当たり16bit、「基準周波数」が「1000Hz」、「基準点数」が「1000」である。 FIG. 12A is an example of the collection rule table 183 before adjustment by the first adjustment unit 130, and is an example of “I / O node: A” and “I / O node” of “order: A, B, C”. : B ”and“ I / O node: C ”are stored in the following information. That is, for "I / O node: A", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "2000 Hz", and the "reference point number" is "2000". Information is registered. Similarly, for "I / O node: B", the "data type" is, for example, "DINT", 32 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000". .. Further, in the "I / O node: C", the "data type" is, for example, "INT", 16 bits per unit, the "reference frequency" is "1000 Hz", and the "reference point number" is "1000".

(サンプリング速度および収集時間の算出方法)
これまでに説明した方法を用いて、第1調整部130は、「I/Oノード:A、B、および、C」について、サンプリング速度V、V、Vと、収集時間T、T、Tと、を算出する。すなわち、第1調整部130は、「サンプリング速度V=8000byte/s」、「サンプリング速度V=4000byte/s」、「サンプリング速度V=2000byte/s」を算出する。また、第1調整部130は、「収集時間T=1s」、「収集時間T=1s」、「収集時間T=1s」を算出する。
(Calculation method of sampling speed and collection time)
Using the method described so far, the first adjusting unit 130 determines the sampling speeds VA , BB , VC and the collection time TA for "I / O nodes: A , B, and C ". Calculate TB and TC . That is, the first adjusting unit 130 calculates "sampling speed V A = 8000 byte / s", "sampling speed V B = 4000 byte / s", and "sampling speed VC = 2000 byte / s". Further, the first adjusting unit 130 calculates "collection time TA = 1s", "collection time TB = 1s", and "collection time TC = 1s".

(平均サンプリング速度および余裕速度の算出方法)
第1調整部130は、巡回単位順列の各I/Oノードについて算出したサンプリング速度Vsampleと収集時間Tsampleとから、「平均サンプリング速度Vmean=4667byte/s」を算出する。また、「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=-3643byte/s」を算出する。
(Calculation method of average sampling speed and margin speed)
The first adjusting unit 130 calculates "mean sampling rate V mean = 4667 bytes / s" from the sampling rate V sample and the collection time T sample calculated for each I / O node in the cyclic unit sequence. Further, since "maximum value V am = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = −3643 bytes / s".

第1調整部130は、「余裕速度Vmargin=-3643byte/s」であり、つまり、「余裕速度Vmarginが『0』未満である」ことを確認すると、収集規則の調整が必要であると判定する。 When the first adjusting unit 130 confirms that "margin speed V margin = -3643 byte / s", that is, "margin speed V margin is less than" 0 "", it is necessary to adjust the collection rule. judge.

(「待ち時間」の挿入例)
第1調整部130は、「巡回頻度」、「サンプリング周波数」、「サンプリング点数」は変更せずに、例えば、図12の(B)に例示するように「待ち時間T」を挿入して、平均サンプリング速度Vmeanを最大値Vamm以下とする。
(Example of inserting "waiting time")
The first adjusting unit 130 inserts, for example, a “waiting time T D ” as illustrated in FIG. 12B without changing the “patrol frequency”, “sampling frequency”, and “sampling point”. , The average sampling rate V mean is set to the maximum value V amm or less.

補正後の平均サンプリング速度Vmean_補正後は最大値Vamm以下となるから、つまり、 Average sampling speed after correction V mean_ After correction, the maximum value is less than V amm , that is,

Figure 0007010185000007
Figure 0007010185000007

となる。第1調整部130は、これを解いて、すなわち、 Will be. The first adjusting unit 130 solves this, that is,

Figure 0007010185000008
Figure 0007010185000008

となる。第1調整部130は、「順列:A、B、C」に「待ち時間T」を挿入し、具体的には、図12の(B)に例示するように、「待ち時間T」を収集規則テーブル183に格納する。すなわち、図12の(B)には、図12の(A)に例示する収集規則テーブル183に対し、「ID:D」および「収集時間:10.7s」だけが格納され、その他の項目にデータの格納されていない行が追加された収集規則テーブル183が示されている。 Will be. The first adjusting unit 130 inserts the "waiting time T D " into the "order: A, B, C", and specifically, as illustrated in FIG. 12 (B), the "waiting time T D ". Is stored in the collection rule table 183. That is, in FIG. 12B, only “ID: D” and “collection time: 10.7s” are stored in the collection rule table 183 exemplified in FIG. 12A, and other items are included. A collection rule table 183 is shown with the addition of rows that do not contain data.

「順列:A、B、C」における各I/Oノードの収集時間Tsampleの合計である「総収集時間TAll」は「総収集時間TAll=1+1+1=3s」である。「順列:A、B、C」に「待ち時間T」を挿入した「順列:A、B、C、D」の「総収集時間TAll」は「総収集時間TAll=1+1+1+10.7=13.7s」である。そして、「I/Oノード:D」は待ち時間に対応するノードであるため、「I/Oノード:D」の「サンプリング点数」は「0」であり、つまり、「I/Oノード:D」について収集されるデータのデータ量は「0」である。 The "total collection time T All ", which is the total of the collection time T samples of each I / O node in the "order: A, B, C", is "total collection time T All = 1 + 1 + 1 = 3s". "Total collection time T All " of "Sequential: A, B, C, D" with "Waiting time T D " inserted in "Sequential: A, B, C" is "Total collection time T All = 1 + 1 + 1 + 10.7 = 13.7s ". Since "I / O node: D" is a node corresponding to the waiting time, the "sampling point" of "I / O node: D" is "0", that is, "I / O node: D". The amount of data collected for "" is "0".

第1調整部130は、「巡回単位順列を一巡するまでに収集するデータのデータ量」は変えずに、「待ち時間を挿入して巡回単位順列を一巡するまでに要する総収集時間TAllを大きくする」ことによって、平均サンプリング速度Vmeanを小さくする。 The first adjusting unit 130 does not change the "data amount of data to be collected until one round of the patrol unit sequence", but "inserts a waiting time and sets the total collection time T All required to complete the cycle of the patrol unit sequence". By "increasing", the average sampling rate V mean is decreased.

図12の(B)に例示するように、第1調整部130が「順列:A、B、C、D」について算出する平均サンプリング速度Vmeanは「平均サンプリング速度Vmean=1022byte/s」となる。「最大値Vamm=1024byte/s」であるから、第1調整部130は、「余裕速度Vmargin=最大値Vamm-平均サンプリング速度Vmean=2byte/s」を算出する。余裕速度Vmarginが0以上であると判定した第1調整部130は、この「順列:A、B、C、D」を含む、図12の(B)に示す収集規則テーブル183に格納された収集規則を、収集部140が従うべき巡回単位順列として採用する。 As illustrated in FIG. 12 (B), the average sampling rate V mean calculated by the first adjusting unit 130 for the “sequential sequence: A, B, C, D” is “average sampling rate V mean = 1022byte / s”. Become. Since "maximum value V amm = 1024 bytes / s", the first adjusting unit 130 calculates "margin speed V margin = maximum value V amm -mean sampling rate V mean = 2 bytes / s". The first adjusting unit 130, which is determined to have a margin speed V margin of 0 or more, is stored in the collection rule table 183 shown in FIG. 12 (B) including this “sequential sequence: A, B, C, D”. The collection rule is adopted as the patrol unit sequence to be followed by the collection unit 140.

(表示処理について)
図13は、表示制御部170が、ツールなどの外部表示装置の表示画面に表示させる情報の一例を示す図である。表示制御部170は、表示画面(例えば、ツールなどの外部表示装置の表示画面)に、実行中のサンプリング処理に係る情報を表示させ、例えば、図13に例示するように、ユーザの設定した最大値Vammを表示させる。図13に示す例では、表示制御部170は、さらに、実行中のサンプリング処理に係る処理負荷の大きさを示す平均サンプリング速度Vmean、および、最大値Vammと平均サンプリング速度Vmeanとの差である余裕速度Vmarginを表示させている。
(About display processing)
FIG. 13 is a diagram showing an example of information to be displayed on the display screen of an external display device such as a tool by the display control unit 170. The display control unit 170 displays information related to the sampling process being executed on the display screen (for example, the display screen of an external display device such as a tool), and the maximum set by the user, for example, as illustrated in FIG. Display the value V amm . In the example shown in FIG. 13, the display control unit 170 further indicates the average sampling rate V mean indicating the magnitude of the processing load related to the sampling process during execution, and the difference between the maximum value Vamm and the average sampling rate V mean . The margin speed V marin, which is, is displayed.

また、表示制御部170は、例えば、「巡回単位順列に含まれる複数のI/Oノードの各々の名称」、「巡回単位順列における、各I/Oノードの出現順序」、および、「現在、データ収集対象となっているI/Oノード」を表示させる。さらに、表示制御部170は、例えば、各I/Oノードについて、適用中の収集規則における「サンプリング周波数」、「サンプリング点数」、および、「直近のデータに対する重要度」を表示させる。 Further, the display control unit 170 may, for example, "name each of the plurality of I / O nodes included in the patrol unit sequence", "the appearance order of each I / O node in the patrol unit sequence", and "currently, Display the "I / O node for which data is to be collected". Further, the display control unit 170 displays, for example, the “sampling frequency”, the “sampling point”, and the “importance to the latest data” in the collection rule being applied for each I / O node.

§4.変形例
図14は、記憶部180に格納されている収集規則テーブル183について、図4に例示したのとは異なる収集規則テーブル183のデータ構造の一例を示す図である。図14に例示する収集規則テーブル183は、図4に例示した収集規則テーブル183の備える項目に加えてさらに、「収集フラグ変数」との項目を有する。
§4. Modification Example FIG. 14 is a diagram showing an example of the data structure of the collection rule table 183, which is different from that illustrated in FIG. 4, for the collection rule table 183 stored in the storage unit 180. The collection rule table 183 exemplified in FIG. 14 has an item of "collection flag variable" in addition to the items provided in the collection rule table 183 illustrated in FIG.

収集部140は、制御データテーブル181に格納されている制御データのうち、収集規則テーブル183の「収集フラグ変数」が「TRUE」であるI/Oノードのデータを収集し、「収集フラグ変数」が「FALSE」のI/Oノードのデータは収集しない。つまり、収集部140は、取得部110がスレーブ装置から制御周期ごとに取得した制御データのうち、収集規則テーブル183の「収集フラグ変数」が「TRUE」であるI/Oノードのみを、データ収集対象とする。 The collection unit 140 collects the data of the I / O node whose "collection flag variable" of the collection rule table 183 is "TRUE" among the control data stored in the control data table 181 and collects the "collection flag variable". Does not collect data for the "FALSE" I / O node. That is, among the control data acquired by the acquisition unit 110 from the slave device for each control cycle, the collection unit 140 collects only the I / O nodes whose “collection flag variable” in the collection rule table 183 is “TRUE”. set to target.

第1調整部130は、収集規則テーブル183の「収集フラグ変数」が「TRUE」であるI/Oノードのみをデータ収集対象とすることで、サンプリングの必要なI/Oノードのデータだけを収集することができる。 The first adjustment unit 130 collects only the data of the I / O node that needs to be sampled by targeting only the I / O node whose "collection flag variable" of the collection rule table 183 is "TRUE". can do.

収集規則テーブル183が「収集フラグ変数」との項目を有する場合、第1調整部130は、「収集フラグ変数」が「FALSE」のI/Oノードの「サンプリング点数」を「0」として、平均サンプリング速度Vmeanを算出する。 When the collection rule table 183 has an item of "collection flag variable", the first adjusting unit 130 sets the "sampling score" of the I / O node whose "collection flag variable" is "FALSE" to "0" and averages it. Calculate the sampling rate V mean .

〔ソフトウェアによる実現例〕
PLC10の制御ブロック(具体的には、取得部110、受付部120、第1調整部130、収集部140、評価部150、第2調整部160、および、表示制御部170)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、CPU(CenTral Processing Unit)を用いてソフトウェアによって実現してもよい。
[Example of implementation by software]
The control block of the PLC 10 (specifically, the acquisition unit 110, the reception unit 120, the first adjustment unit 130, the collection unit 140, the evaluation unit 150, the second adjustment unit 160, and the display control unit 170) is an integrated circuit (specifically, the display control unit 170). It may be realized by a logic circuit (hardware) formed in an IC chip) or the like, or may be realized by software using a CPU (Central Processing Unit).

後者の場合、PLC10は、各機能を実現するソフトウェアであるプログラムの命令を実行するCPU、上記プログラムおよび各種データがコンピュータ(またはCPU)で読み取り可能に記録されたROM(Read Only Memory)または記憶装置(これらを「記録媒体」と称する)、上記プログラムを展開するRAM(Random Access Memory)等を備えている。そして、コンピュータ(またはCPU)が上記プログラムを上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記記録媒体としては、「一時的でない有形の媒体」、例えば、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路等を用いることができる。また、上記プログラムは、該プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明は、上記プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 In the latter case, the PLC 10 is a CPU that executes instructions of a program that is software that realizes each function, a ROM (Read Only Memory) or a storage device in which the above program and various data are readablely recorded by a computer (or CPU). (These are referred to as "recording media"), RAM (Random Access Memory) for expanding the above program, and the like are provided. Then, the object of the present invention is achieved by the computer (or CPU) reading the program from the recording medium and executing the program. As the recording medium, a "non-temporary tangible medium", for example, a tape, a disk, a card, a semiconductor memory, a programmable logic circuit, or the like can be used. Further, the program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the program. 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.

1 制御システム(マスタスレーブ制御システム)
10 PLC(マスタ装置)
20 データベース(外部装置)
30 サーボドライバ(スレーブ装置)
120 受付部
130 第1調整部
140 収集部
160 第2調整部
170 表示制御部
R 低減率(一律の割合)
S110 受付ステップ
S140 第1調整ステップ
S150 収集ステップ
All 総収集時間(順列を一巡するまでに収集部が要する時間)
amm 最大値(ユーザの指定する最大値)
mean 平均サンプリング速度(単位時間あたりに収集されるデータのデータ量)
margin 余裕速度(最大値Vamm-平均サンプリング速度Vmean
1 Control system (master-slave control system)
10 PLC (master device)
20 Database (external device)
30 Servo driver (slave device)
120 Reception unit 130 1st adjustment unit 140 Collection unit 160 2nd adjustment unit 170 Display control unit R Reduction rate (uniform rate)
S110 Reception step S140 First adjustment step S150 Collection step T All Total collection time (time required by the collection unit to complete the sequence)
V amm maximum value (maximum value specified by the user)
V mean average sampling rate (data amount of data collected per unit time)
V margin margin speed (maximum value Vamm -mean sampling speed V mean )

Claims (10)

マスタスレーブ制御システムにおけるマスタ装置であって、
スレーブ装置から周期的に取得した制御データから、外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集する収集部と、
前記収集部によって単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値を受け付ける受付部と、
前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量が、前記受付部により受け付けられた前記最大値以下となるように、前記所定の収集規則を調整する第1調整部と、
を備えるマスタ装置。
A master device in a master-slave control system
A collection unit that repeatedly collects each of a plurality of data to be transmitted to the external device from the control data periodically acquired from the slave device according to a predetermined collection rule.
A reception unit that accepts the maximum value specified by the user for the amount of data collected per unit time by the collection unit.
The first adjustment that adjusts the predetermined collection rule so that the amount of data collected per unit time by the collection unit according to the predetermined collection rule is equal to or less than the maximum value accepted by the reception unit. Department and
Master device with.
前記所定の収集規則は、前記収集部によって収集される前記複数のデータの各々の収集順序を示す順列を含み、
前記収集部は、前記複数のデータの各々を、前記順列に従って繰り返し収集し、
前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量は、前記順列を一巡するまでに前記収集部によって収集されるデータのデータ量を、前記順列を一巡するまでに前記収集部が要する時間で除した値である
請求項1に記載のマスタ装置。
The predetermined collection rule includes a sequence indicating the collection order of each of the plurality of data collected by the collection unit.
The collecting unit repeatedly collects each of the plurality of data according to the order.
The amount of data collected per unit time by the collecting unit in accordance with the predetermined collection rule is the amount of data collected by the collecting unit by the time the order is cycled. The master device according to claim 1, which is a value divided by the time required by the collecting unit.
前記第1調整部は、前記所定の収集規則として、(1)前記複数のデータの各々の、前記順列における出現回数、(2)前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、(3)前記複数のデータの各々の、前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数、および、(4)前記順列を一巡するまでに前記収集部が要する時間の少なくとも1つを調整する
請求項2に記載のマスタ装置。
The first adjusting unit, as the predetermined collection rule, (1) the number of appearances of each of the plurality of data in the sequence, and (2) each appearance of each of the plurality of data in the sequence once. The number of data points collected in, (3) the collection frequency, which is the number of data points collected per unit time for each appearance of each of the plurality of data in the sequence, and (4) one round of the sequence. The master device according to claim 2, wherein at least one of the times required by the collecting unit is adjusted.
前記収集部によって収集された前記複数のデータの各々に対して付与される評価値が所定の基準を満たすと、当該所定の基準を満たす評価値の付与されたデータについて、(1)前記順列における出現回数、(2)前記順列における1回の出現ごとに収集されるデータ点数、および、(3)前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数の少なくとも1つを調整する第2調整部をさらに備え、
前記第1調整部は、前記第2調整部により調整された前記出現回数、前記順列における1回の出現ごとに収集されるデータ点数、および、前記収集周波数を含む前記所定の収集規則を、前記最大値を用いてさらに調整する
請求項2または3に記載のマスタ装置。
When the evaluation value given to each of the plurality of data collected by the collecting unit meets a predetermined standard, the data to which the evaluation value satisfying the predetermined standard is given is (1) in the above-mentioned order sequence. At least the number of appearances, (2) the number of data points collected for each appearance in the sequence, and (3) the number of data points collected per unit time for each appearance in the sequence. Further equipped with a second adjustment unit to adjust one,
The first adjusting unit obtains the predetermined number of appearances adjusted by the second adjusting unit, the number of data points collected for each appearance in the order, and the predetermined collection rule including the collection frequency. The master apparatus according to claim 2 or 3, further adjusted using the maximum value.
前記第1調整部は、(1)前記複数のデータの各々の、前記順列における1回の出現ごとに収集されるデータ点数、および、(2)前記複数のデータの各々の、前記順列における1回の出現ごとに単位時間当たりに収集されるデータ点数である収集周波数の少なくとも一方を、一律の割合で小さくする
請求項2から4のいずれか1項に記載のマスタ装置。
The first adjusting unit includes (1) the number of data points collected for each appearance of each of the plurality of data in the sequence, and (2) 1 of each of the plurality of data in the sequence. The master device according to any one of claims 2 to 4, wherein at least one of the collection frequencies, which is the number of data points collected per unit time for each appearance, is reduced at a uniform rate.
(1)前記最大値、(2)前記第1調整部によって調整された前記所定の収集規則に従う前記収集部によって単位時間あたりに収集されるデータのデータ量、および、(3)両者の差をユーザに対して表示させる表示制御部をさらに備える
請求項1から5のいずれか1項に記載のマスタ装置。
(1) the maximum value, (2) the amount of data collected per unit time by the collecting unit according to the predetermined collection rule adjusted by the first adjusting unit, and (3) the difference between the two. The master device according to any one of claims 1 to 5, further comprising a display control unit to be displayed to the user.
前記収集部によって収集される前記複数のデータの各々は、前記スレーブ装置から周期的に取得した制御データのうち、ユーザによって収集対象として選択されたデータである
請求項1から6のいずれか1項に記載のマスタ装置。
The plurality of data collected by the collecting unit is any one of claims 1 to 6, which is data selected as a collection target by the user among the control data periodically acquired from the slave device. The master device described in.
マスタスレーブ制御システムにおけるマスタ装置の制御方法であって、
スレーブ装置から周期的に取得した制御データから、外部装置に送信すべき複数のデータの各々を、所定の収集規則に従って、繰り返し収集する収集ステップと、
前記収集ステップにて単位時間あたりに収集されるデータのデータ量について、ユーザの指定する最大値を受け付ける受付ステップと、
前記所定の収集規則に従って前記収集ステップにて単位時間あたりに収集されるデータのデータ量が、前記受付ステップにて受け付けられた前記最大値以下となるように、前記所定の収集規則を調整する第1調整ステップと、
を含む制御方法。
It is a control method of the master device in the master-slave control system.
A collection step of repeatedly collecting each of a plurality of data to be transmitted to the external device from the control data periodically acquired from the slave device according to a predetermined collection rule.
A reception step that accepts the maximum value specified by the user for the amount of data collected per unit time in the collection step, and a reception step.
The predetermined collection rule is adjusted so that the amount of data collected per unit time in the collection step according to the predetermined collection rule is equal to or less than the maximum value received in the reception step. 1 adjustment step and
Control methods including.
請求項1から7のいずれか一項に記載のマスタ装置としてコンピュータを機能させるための情報処理プログラムであって、前記各部としてコンピュータを機能させるための情報処理プログラム。 An information processing program for operating a computer as the master device according to any one of claims 1 to 7, and an information processing program for operating the computer as each part. 請求項9に記載の情報処理プログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the information processing program according to claim 9 is recorded.
JP2018177785A 2018-09-21 2018-09-21 Master device, master device control method, information processing program, and recording medium Active JP7010185B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2018177785A JP7010185B2 (en) 2018-09-21 2018-09-21 Master device, master device control method, information processing program, and recording medium
PCT/JP2019/036410 WO2020059719A1 (en) 2018-09-21 2019-09-17 Master device, method for controlling master device, information processing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018177785A JP7010185B2 (en) 2018-09-21 2018-09-21 Master device, master device control method, information processing program, and recording medium

Publications (2)

Publication Number Publication Date
JP2020052441A JP2020052441A (en) 2020-04-02
JP7010185B2 true JP7010185B2 (en) 2022-01-26

Family

ID=69887029

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018177785A Active JP7010185B2 (en) 2018-09-21 2018-09-21 Master device, master device control method, information processing program, and recording medium

Country Status (2)

Country Link
JP (1) JP7010185B2 (en)
WO (1) WO2020059719A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7063292B2 (en) 2019-03-15 2022-05-09 オムロン株式会社 Control system, configuration device, and configuration program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324567A (en) 1999-05-10 2000-11-24 Mitsubishi Electric Corp Remote monitor system
WO2012111653A1 (en) 2011-02-16 2012-08-23 三菱電機株式会社 Data transfer device
JP2014178852A (en) 2013-03-14 2014-09-25 Toshiba Corp Control system and control program
WO2016031244A1 (en) 2014-08-27 2016-03-03 株式会社 東芝 Monitoring control system and data collecting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000324567A (en) 1999-05-10 2000-11-24 Mitsubishi Electric Corp Remote monitor system
WO2012111653A1 (en) 2011-02-16 2012-08-23 三菱電機株式会社 Data transfer device
JP2014178852A (en) 2013-03-14 2014-09-25 Toshiba Corp Control system and control program
WO2016031244A1 (en) 2014-08-27 2016-03-03 株式会社 東芝 Monitoring control system and data collecting device

Also Published As

Publication number Publication date
JP2020052441A (en) 2020-04-02
WO2020059719A1 (en) 2020-03-26

Similar Documents

Publication Publication Date Title
US9229871B2 (en) Cache device, communication apparatus, and computer program product
US9317427B2 (en) Reallocating unused memory databus utilization to another processor when utilization is below a threshold
US7412509B2 (en) Control system computer, method, and program for monitoring the operational state of a system
CN100565487C (en) Moderator, cross bar switch, request system of selection and messaging device
US20180052789A1 (en) Direct Memory Access Transmission Control Method and Apparatus
EP0932090A2 (en) Plant supervisory system
EP2854018A1 (en) Storage management device, control method , and control program
JP7010185B2 (en) Master device, master device control method, information processing program, and recording medium
JP7285187B2 (en) System and method for anomaly characterization based on joint analysis of history and time series
CN109067607B (en) Method and device for adjusting rated bandwidth
JP6394313B2 (en) Storage management device, storage management method, and storage management program
CN109344026A (en) Data monitoring method, device, electronic equipment and computer readable storage medium
US20030009508A1 (en) Method and system for providing processor task scheduling
CN116260738B (en) Equipment monitoring method and related equipment
JP2017194931A (en) Storage management device, storage device management method, and storage device management program
CN108376553A (en) A kind of monitoring method and system of the disk of video server
CN116991335B (en) Queue resource allocation method and device, disk array card, equipment and medium
CN115113825A (en) Performance data acquisition method, device, equipment and readable storage medium
WO2021199342A1 (en) Communication device, communication method, and program
CN116914941B (en) Power distribution control system based on Internet of things
JP6852697B2 (en) Master device, control method of master device, information processing program, and recording medium
JP2001092693A (en) Device for estimating processing delay performance
JP2001242932A (en) Plant supervisory control system
JPH10307613A (en) Updating method of process data gathering device
JPH1031651A (en) Information processing method and information display device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201215

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20211227

R150 Certificate of patent or registration of utility model

Ref document number: 7010185

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150