Data collection device, and computer-readable recording medium having program recorded thereon
Patent Information
- Application Number
- JP2025501979
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-29
AI Technical Summary
Data collection devices face challenges in managing the load on control devices during data acquisition, with varying acquisition times and loads depending on the type of data and control program execution, leading to inefficiencies and increased load on manufacturing sites.
A data collection device that includes units for measuring data acquisition time and load, calculating the load on the control device, and determining optimal data collection timing to distribute the load and minimize loss, using a loss function to adjust data acquisition timing to reduce load and delay.
The solution effectively reduces the load on control devices during data acquisition, optimizing data collection timing to minimize loss and delay, thereby improving efficiency and reducing the burden on manufacturing sites.
Abstract
Description
Data collection device and computer-readable recording medium having a program recorded thereon
[0001] The present disclosure relates to a data collection device and a computer-readable recording medium having a program recorded thereon.
[0002] In recent years, various data have been collected from industrial machines or control devices that control the industrial machines in order to utilize the data for maintenance and management of the industrial machines. For example, the collected data includes various parameters set in the control devices, various setting data, control programs such as numerical control programs, data indicating operation history of the control devices, and operation data of the industrial machines (see, for example, Patent Document 1).
[0003] A device that collects data from industrial machinery in this way is called a data collection device. In addition to the specific function of collecting data, recent data collection devices also use communication functions to send and receive data with external devices and provide a visual user interface. For example, data collection devices collect data at predetermined times or when a specified event occurs.
[0004] Japanese Patent Application Laid-Open No. 2019-109697
[0005] The load on a control device varies depending on the block of the control program it executes. Furthermore, the load and time required for the acquisition process vary depending on the type of data. Furthermore, the desired acquisition period varies depending on the type of data. In manufacturing sites, there is a demand for technology that can collect data while minimizing the load associated with data acquisition.
[0006] The data collection device according to the present disclosure solves the above-described problem by estimating the load generated in the control device from which data is to be collected, and collecting data in such a way that the load is distributed.
[0007] One aspect of the present disclosure includes a data acquisition time measurement unit that acquires various data from a control device that controls industrial machinery when a control program is not being executed and measures the time required to acquire the data; a data acquisition load calculation unit that calculates a load on the control device due to the acquisition of various data based on the time required to acquire the various data measured by the data acquisition time measurement unit; an operation-time acquisition time measurement unit that acquires a block number of the control program being executed from the control device while the industrial machinery is operating based on the control program and measures the time required to acquire data related to the block number; an operation-time load calculation unit that calculates a load at the time of execution of each block of the control program based on the time required to acquire data related to the block number measured by the operation-time acquisition time measurement unit; and a collection time calculation unit that determines the timing of collection of various data based on the load at the time of execution of each block calculated by the operation-time load calculation unit and the load applied to the acquisition of various data calculated by the data acquisition load calculation unit so as to reduce a predetermined loss calculated based on the load on the control device and a delay in data acquisition timing. The data collection device includes a data collection unit that collects data when the control device executes a control program at the collection timing of various data determined by the collection time calculation unit.
[0008] 1 is a schematic hardware configuration diagram of a control device according to an embodiment of the present disclosure; FIG. 2 is a block diagram showing schematic functions of a control device according to a first embodiment; FIG. 3 is a table diagram illustrating load values and the average time required to acquire various data; FIG. 4 is a table diagram illustrating the average time required to acquire data when each block of a control program is executed during operation of an industrial machine, and the average execution time of the blocks; FIG. 5 is a table diagram illustrating load values when each block of a control program is executed during operation of an industrial machine; FIG. 6 is a graph showing the relationship between the transition of load values during execution of each block of a control program and the timing of acquiring servo loads and alert information; FIG. 7 is another graph showing the relationship between the transition of load values during execution of each block of a control program and the timing of acquiring servo loads and alert information; FIG. 8 is a block diagram showing schematic functions of a control device according to a second embodiment; FIG. 9 is a block diagram showing schematic functions of a control device according to a third embodiment;
[0009] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. [First Embodiment] Fig. 1 is a schematic hardware configuration diagram showing the main parts of a data collection device according to a first embodiment of the present disclosure. The data collection device 1 according to this embodiment can be implemented on a computer such as a personal computer attached to a control device that controls industrial machinery based on a control program, or a personal computer, cell computer, fog computer 6, or cloud server 7 connected to the control device via a wired or wireless network. In this embodiment, an example is shown in which the data collection device 1 is implemented on a personal computer connected to a control device that controls industrial machinery via a network.
[0010] The CPU 11 provided in the data collection device 1 according to this embodiment is a processor that controls the entire data collection device 1. The CPU 11 reads a system program stored in the ROM 12 via the bus 22 and controls the entire data collection device 1 in accordance with the system program. The RAM 13 temporarily stores temporary calculation data, display data, various data acquired from outside, and the like.
[0011] The nonvolatile memory 14 is composed of, for example, a battery-backed memory (not shown) or an SSD (Solid State Drive), and retains its stored state even when the data collection device 1 is powered off. The nonvolatile memory 14 stores programs and data read from the external device 72 via the interface 15, programs and data input via the input device 71, and programs and data acquired from the industrial machinery 4 or other devices via the network 5. The stored data may include, for example, data related to physical quantities such as motor current, voltage, torque, position, speed, and acceleration of the drive unit detected by a sensor attached to the industrial machinery 4, and vibrations and sounds generated in each part of the industrial machinery 4. The programs and data stored in the nonvolatile memory 14 may be loaded into the RAM 13 during execution / use. Furthermore, various system programs, such as known analysis programs, are pre-written in the ROM 12.
[0012] The interface 15 is an interface for connecting the CPU 11 of the data collection device 1 to an external device 72 such as a USB device. For example, system programs, setting data, etc. are read from the external device 72. In addition, programs and setting data created and edited within the data collection device 1 can be stored in external storage means via the external device 72.
[0013] The interface 20 is an interface for connecting the CPU 11 of the data collection device 1 to a wired or wireless network 5. The network 5 may be one that communicates using technologies such as serial communication such as RS-485, Ethernet (registered trademark), optical communication, wireless LAN, Wi-Fi (registered trademark), Bluetooth (registered trademark), etc. At least one industrial machine 4 to be controlled, at least one other industrial machine 4, a fog computer 6, a cloud server 7, etc. are connected to the network 5, and data is exchanged between the network 5 and the data collection device 1.
[0014] The display device 70 displays various data read into the memory, data obtained as a result of executing programs, etc., output via the interface 17. An input device 71, which is comprised of a keyboard, pointing device, etc., passes instructions, data, etc. based on operations by an operator to the CPU 11 via the interface 18.
[0015] 2 is a schematic block diagram showing functions of the data collection device 1 according to the first embodiment of the present disclosure. Each function of the data collection device 1 according to this embodiment is realized by the CPU 11 included in the data collection device 1 shown in FIG. 1 executing a system program and controlling the operation of each part of the data collection device 1.
[0016] The data collecting device 1 of this embodiment includes a data acquisition time measuring unit 100, a data acquisition load calculating unit 110, an operating acquisition time measuring unit 120, an operating load calculating unit 130, a collection time calculating unit 140, and a data collecting unit 150. The RAM 13 to the nonvolatile memory 14 of the data collecting device 1 are provided with a program storage unit 210, which is an area for storing in advance a control program for controlling the industrial machine 4, and a data storage unit 220, which is an area for storing collected data.
[0017] The data acquisition time measurement unit 100 attempts to acquire various data when a control program is not being executed in the control device that controls the industrial machine 4. The data acquisition time measurement unit 100 repeatedly acquires various data, such as block numbers of the control program, servo loads, and alert information, a predetermined number of times (e.g., 10 times) from the control device of the industrial machine 4. Then, it measures the average value of the time taken to acquire each piece of data and outputs the measured average value of the acquisition time to the data acquisition load calculation unit 110. It also outputs the average time taken to acquire block numbers to the operating load calculation unit 130.
[0018] The data acquisition load calculation unit 110 calculates a load value related to the acquisition of various data from the control device based on the average value of the time required to acquire each piece of data input from the data acquisition time measurement unit 100. The data acquisition load calculation unit 110 calculates a load value assuming that the longer the time required to acquire the data, the higher the load related to the data acquisition. The load value related to the data acquisition may be a relative load value based on a predetermined reference value. For example, it may be a relative load value based on the load value expected when predetermined data (such as a block number) is acquired from the control device. The data acquisition load calculation unit 110 outputs the calculated load values related to the acquisition of various data to the collection time calculation unit 140.
[0019] FIG. 3 is a table illustrating the average time and load values required to acquire various data. In the example of FIG. 3, the data acquisition time measurement unit 100 attempts to acquire various data such as block numbers, servo loads, and alert information. The average time required to acquire data related to block numbers was measured to be 100 ms, the average time required to acquire data related to servo loads was measured to be 120 ms, and the average time required to acquire data related to alert information was measured to be 200 ms. The load values are calculated assuming that the longer the average acquisition time, the higher the load value. In the example of FIG. 3, the load value when acquiring block numbers is set to a reference value of 1.0, and the load values related to the acquisition of other data are calculated.
[0020] The operation-time acquisition measurement unit 120 repeatedly acquires block numbers of the control program from the control device that controls the industrial machine 4 while the industrial machine 4 is operating based on the control program. This process may be performed, for example, during a test run of the industrial machine 4 based on the control program. At this time, the operation-time acquisition measurement unit 120 repeatedly acquires block numbers at a cycle (e.g., 10 ms) that is short enough to allow changes in the block numbers during execution to be grasped. Then, based on the block number acquisition results, the operation-time acquisition measurement unit 120 measures, for each block number, the average time required to acquire data and the average time required from the start to the end of the block. The operation-time acquisition measurement unit 120 outputs the measured average time required to acquire data for each block number and the average time required from the start to the end of the block to the operation load calculation unit 130.
[0021] 4 is a table illustrating the average time required to acquire data when each block of the control program is executed and the average execution time of the block during operation of the industrial machine 4. In the example of FIG. 4, it takes an average of 120 ms from the time a request to acquire a block number is sent during execution of block number 1 until the block number is actually acquired. It also takes an average of 30 ms from the time execution of block number 1 starts to the time it ends. This means that if block number acquisition is repeated at intervals of, for example, 10 ms, a response indicating block number 1 is acquired an average of three times.
[0022] The operation load calculation unit 130 calculates a load value during execution of each block of the control program based on the (average value of) time required to acquire data related to the block number input from the data acquisition time measurement unit 100 and the (average value of) time required to acquire data related to the block number input from the operation acquisition time measurement unit 120. The load value during execution of each block is calculated assuming that the longer the time required to acquire data, the higher the load. The load value during execution of each block may be a relative load value based on a predetermined reference value. For example, the time required to acquire data when the industrial machine 4 is not operating is considered to correspond to a no-load state (load value 0%). Furthermore, the longest average time required to acquire data while the control program is being executed is considered to correspond to a maximum load state (load value 100%). Then, the load value may be calculated from the ratio of the data acquisition time for each block number, using the time required to acquire data in a no-load state and the time required to acquire data in a maximum load state as reference values. The operating load calculation unit 130 outputs the calculated load value during execution of each block to the collection time calculation unit 140 .
[0023] FIG. 5 is a table illustrating load values when each block of the control program is executed while the industrial machine 4 is operating. In the example of FIG. 5, the time (100 ms) required to acquire data related to the block number when the control program is not being executed is considered to be the data acquisition time under no load (load value 0%). Furthermore, the average time (200 ms) required to acquire data related to block number 3, which took the longest time to acquire data related to the block number while the control program was being executed, is considered to be the data acquisition time under maximum load (load value 100%). For the other blocks, load values are determined according to the ratio of the time required to acquire data between 100 ms and 200 ms. For example, during the execution of block number 2, it took only 150 ms to acquire data. This is exactly midway between 100 ms under no load and 200 ms under maximum load, so the load value during the execution of block number 2 can be calculated as 50%.
[0024] The collection time calculation unit 140 determines the timing for collecting data based on a predetermined evaluation value. The predetermined evaluation value can be, for example, a predetermined loss calculated based on the load on the control device and the delay in the timing of data acquisition. The following equation (1) shows an example of a loss function Loss(t) that calculates the predetermined loss based on the load on the control device and the delay in the timing of data acquisition. The collection time calculation unit 140 may determine the timing for acquiring each piece of data so that the loss calculated by the loss function set in this way is approximately minimized. In equation (1), k is an index representing the type of data (for example, k=1 for data related to block numbers, k=2 for data related to servo loads, k=3 for data related to alert information, etc.), n is the number of times data is acquired from the control device between the start and end of execution of the control program, and T k is the timing period for acquiring the original data of data type k (for example, once every 5 seconds), L b is the load tolerance that can be applied in the data acquisition process in block b (calculated as 100 - the load value during execution of block b), k,b (t k,n ) is the load value imposed by acquiring data of data type k in block b, and α and β are weighting coefficients. In equation 1, the first term represents the loss due to a delay in the timing of data acquisition. The second term represents the loss due to the load generated by data acquisition. If priority is given to the timing of data acquisition, the coefficient α should be set to a large value, and if priority is given to reducing the load on the control device, the coefficient β should be set to a large value.
[0025]
[0026] The flow of processing for changing the timing of data collection will be described below with reference to FIGS. 6 to 8. FIG. 6 is a graph showing the relationship between the transition of the load value during execution of each block of the control program calculated by the operation load calculation unit 130 and the timing of acquiring the preset servo load and alert information. In the example of FIG. 6, the servo load information and alert information are set to be acquired periodically at predetermined intervals. If the timing of acquiring each piece of data is not changed, the loss calculated by the first term of the loss function Loss(t) exemplified in Equation 1 will be 0. On the other hand, when attention is paid to the second term of the loss function Loss(t), in the example of FIG. 6, the load value L imposed on the execution of the control program at timing A at which the servo load information is acquired will be 0. p The load value L imposed on the execution of the control program at the timing B for acquiring the alert information is very large. p Therefore, at these acquisition timings, the loss calculated by the second term in Equation 1 is large.
[0027] Therefore, the collection time calculation unit 140 acquires the servo load information that should be acquired at timing A at the load value L p If the timing of collecting data is delayed from the timing at which it should be acquired, the loss calculated by the first term of Equation 1 will increase. However, the load value L imposed on the execution of the control program p If the timing is delayed until the timing at which the loss decreases, the loss calculated by the second term of Equation 1 may become smaller.
[0028] FIG. 7 shows the acquisition of servo load information at timing A. rate The graph shows the case where the acquisition of the servo load information is delayed until timing A. rate If the delay is made until the load value L p Therefore, while the loss calculated by the first term of Equation 1 increases due to the delay in timing, the load value L pBy acquiring data at a timing when the loss is low, the loss calculated by the second term of Equation 1 is significantly reduced.
[0029] FIG. 8 shows the acquisition of alert information at timing B. rate 1. As in the case where the acquisition of the servo load information is delayed, the delay in acquiring the alert information at timing B increases the loss calculated by the first term of Equation 1, while the load value L p By acquiring data at a timing when the loss is low, the loss calculated by the second term of Equation 1 is significantly reduced.
[0030] In this way, the collection time calculation unit 140 checks whether there is a timing at which the calculated loss will be reduced if the data acquisition timing is delayed within a predetermined range for each data acquisition timing, and if there is a timing at which the loss can be reduced, the collection time calculation unit 140 delays the data acquisition timing.
[0031] The data collection unit 150 collects predetermined data from the control device while the industrial machine 4 is operating, at the timing calculated by the collection time calculation unit 140. The data collection unit 150 may start collecting various data from the time when the control device notifies the data collection unit 150 that the industrial machine 4 has started operating based on a control program. The data collection unit 150 stores the collected data in the data storage unit 220.
[0032] The data collection device 1 according to this embodiment having the above configuration collects various data taking into account the load state of each control device when a control program is executed in the control device of each industrial machine 4. Furthermore, the data collection timing can be determined taking into account not only the load state of the control device but also a delay from the original data collection timing.
[0033] Second Embodiment The following describes a data collection device 1 according to a second embodiment. When collecting data from a plurality of control devices, the data collection device 1 according to this embodiment determines the data acquisition timing taking into consideration data retransmissions and data processing delays that occur when data responses from the respective control devices arrive at the data collection device 1 simultaneously.
[0034] 9 is a schematic block diagram showing functions of the data collection device 1 according to the second embodiment of the present disclosure. Each function of the data collection device 1 according to this embodiment is realized by the CPU 11 included in the data collection device 1 shown in FIG. 1 executing a system program and controlling the operation of each part of the data collection device 1.
[0035] The data collection device 1 of this embodiment includes a data acquisition time measurement unit 100, a data acquisition load calculation unit 110, an operating acquisition time measurement unit 120, an operating load calculation unit 130, a collection time calculation unit 140, and a data collection unit 150, as well as a response time measurement unit 160 and a data collection control unit 170. The RAM 13 to the nonvolatile memory 14 of the data collection device 1 also include a program storage unit 210, which is an area for storing in advance a control program for controlling the industrial machine 4, and a data storage unit 220, which is an area for storing collected data.
[0036] The data acquisition time measurement unit 100, data acquisition load calculation unit 110, driving acquisition time measurement unit 120, driving load calculation unit 130, and collection time calculation unit 140 according to this embodiment have the same functions as the data acquisition time measurement unit 100, data acquisition load calculation unit 110, driving acquisition time measurement unit 120, driving load calculation unit 130, and collection time calculation unit 140 according to the first embodiment.
[0037] The response time measurement unit 160 measures the time from when a request to acquire various data is made to the control device to when a response is returned for each block when the industrial machine 4 is operating according to the control program. This process may be performed, for example, during a test run of the industrial machine 4 based on the control program. For example, when the control device is executing the control program, the response time measurement unit 160 requests various data from the control device of the industrial machine 4 during execution of each block. The response time measurement unit 160 then measures the response time, which is the time it takes to receive data in response. By repeating this process, the response time measurement unit 160 measures the average response time for various data for each control program block. The response time measurement unit 160 outputs the average value of the measured response times to the data collection control unit 170.
[0038] The data collection control unit 170 determines the timing of data collection based on a predetermined evaluation value calculated from the response time for acquiring various data measured by the response time measurement unit 160 and the collection timing of various data calculated by the collection time calculation unit 140. The predetermined evaluation value can be a predetermined loss calculated based on the load on the control device, delays in data acquisition timing, and delays in data retransmission and data processing that occur due to simultaneous data responses (collisions). The following equation (2) shows an example of a loss function Loss2(t) that calculates the predetermined loss based on the load on the control device, delays in data acquisition timing, and the possibility of data response collisions. The data collection control unit 170 may determine the timing of acquiring each piece of data so that the loss calculated by the loss function set in this way is approximately minimized. In equation 2, e is an index assigned to the control device from which data is collected (for example, e=1 for control device a, e=2 for control device b, ...), k is an index representing the type of data (for example, k=1 for data relating to block numbers, k=2 for data relating to servo loads, k=3 for data relating to alert information, ...), n is the number of times data is acquired from the control device from the start to the end of execution of the control program, f(t) is a function that predicts the response time from the time when data is requested, t e,k,n is the timing of making the nth request to acquire data type k from control device e, and γ is a weighting coefficient. In equation 2, the first term represents the loss calculated based on the load on the control device and the delay in data acquisition timing. The second term represents the loss when two or more data responses collide. If the loss due to data response collisions is important, the coefficient γ should be set to a large value. This is particularly effective when collecting data from many control devices.
[0039]
[0040] The data collection unit 150 according to this embodiment collects predetermined data from the control devices of the respective industrial machines 4 in operation at the timing determined by the data collection control unit 170. The data collection unit 150 may start collecting various data from the time when the data collection unit 150 is notified by each control device that the industrial machines 4 have started operating based on a control program. The data collection unit 150 stores the collected data in the data storage unit 220.
[0041] The data collection device 1 according to this embodiment having the above configuration collects various data taking into account the load state of each control device when a control program is executed in the control device of each industrial machine 4. Furthermore, the data collection timing can be determined taking into account not only the load state of the control device but also a delay from the original data collection timing. Furthermore, the data collection timing can be determined taking into account losses due to collisions of data responses.
[0042] Third Embodiment A data collection device 1 according to a third embodiment will be described below. When collecting data from a plurality of control devices, the data collection device 1 according to this embodiment adjusts the data acquisition timing by resetting the loss function if, for example, the data collection load is higher than expected.
[0043] 10 is a schematic block diagram showing functions of the data collection device 1 according to the third embodiment of the present disclosure. Each function of the data collection device 1 according to this embodiment is realized by the CPU 11 included in the data collection device 1 shown in FIG. 1 executing a system program and controlling the operation of each unit of the data collection device 1.
[0044] The data collection device 1 of this embodiment includes a data acquisition time measurement unit 100, a data acquisition load calculation unit 110, an operation acquisition time measurement unit 120, an operation load calculation unit 130, a collection time calculation unit 140, a data collection unit 150, a response time measurement unit 160, and a data collection control unit 170, as well as a data collection adjustment unit 180. The RAM 13 to the nonvolatile memory 14 of the data collection device 1 are provided with a program storage unit 210, which is an area for storing in advance a control program for controlling the industrial machine 4, and a data storage unit 220, which is an area for storing collected data.
[0045] The data acquisition time measurement unit 100, data acquisition load calculation unit 110, driving acquisition time measurement unit 120, driving load calculation unit 130, collection time calculation unit 140, data collection unit 150, response time measurement unit 160, and data collection control unit 170 according to this embodiment have the same functions as the data acquisition time measurement unit 100, data acquisition load calculation unit 110, driving acquisition time measurement unit 120, driving load calculation unit 130, collection time calculation unit 140, data collection unit 150, response time measurement unit 160, and data collection control unit 170 according to the second embodiment.
[0046] The data collection adjustment unit 180 adjusts the definition of loss when the loss in data collection is larger than expected due to delays from the data acquisition cycle, the time required to acquire data, response collisions, etc. The data collection adjustment unit 180 adjusts the definition of loss when a statistical value (for example, an average value, a median value, a maximum value, etc.) relating to the delay from the original data acquisition timing exceeds a predetermined threshold Th at a predetermined timing during data collection. delay Furthermore, the data collection adjustment unit 180 determines whether a statistical value (for example, an average value, a median value, or a maximum value) relating to the time required for data acquisition processing is greater than a predetermined threshold value Th at a predetermined timing during data collection. actime Furthermore, the data collection adjustment unit 180 determines whether the collision frequency of data responses is greater than a predetermined threshold Th at a predetermined timing during data collection. collisionIf either of the determinations indicates that the threshold is exceeded, the data collection adjustment unit 180 adjusts the definition of the loss function used by the collection time calculation unit 140 and the data collection control unit 170.
[0047] Specifically, the statistical value relating to the delay from the original data acquisition timing is set to a threshold value Th delay If the time required for data acquisition is greater than t, the coefficient α in the loss function Loss(t) is increased to adjust the timing of data acquisition so that the delay from the data acquisition cycle does not become too large. actime If the frequency of collisions of data responses is greater than the threshold Th collision If it is greater than , the value of the coefficient γ in the loss function Loss2(t) is increased, and the timing of acquiring data is adjusted so that collisions of data responses are less likely to occur.
[0048] The data collection device 1 of this embodiment, which has the above configuration, can reset the loss function and adjust the data acquisition timing to a more appropriate one when collecting data from multiple control devices if the data collection load is higher than expected or if a data response collision occurs.
[0049] Although the embodiments of the present disclosure have been described in detail above, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the invention or the idea and intent of the present disclosure derived from the content described in the claims and their equivalents. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values or mathematical expressions are used in the description of the above-described embodiments.
[0050] The following are supplementary notes related to embodiments of the present disclosure. (Supplementary Note 1) A data collection device (1) according to one aspect of the present disclosure includes a data acquisition time measurement unit (100) that acquires various data from a control device that controls an industrial machine (4) at a timing when a control program is not being executed and measures the time required to acquire the data, a data acquisition load calculation unit (110) that calculates a load placed on the control device due to the acquisition of various data based on the time required to acquire the various data measured by the data acquisition time measurement unit (100), an operation-time acquisition time measurement unit (120) that acquires a block number of the control program being executed from the control device while the industrial machine (4) is operating based on the control program and measures the time required to acquire data related to the block number, and The control system includes an operating load calculation unit (130) that calculates the load when each block of the control program is executed based on the time required to acquire data related to the measured block number; a collection time calculation unit (140) that determines the timing of collecting various types of data based on the load when each block is executed calculated by the operating load calculation unit (130) and the load applied in acquiring various types of data calculated by the data acquisition load calculation unit (110) so as to reduce a predetermined loss calculated based on the load applied to the control device and a delay in the timing of data acquisition; and a data collection unit (150) that collects data when the control program is executed by the control device at the timing of collecting various types of data determined by the collection time calculation unit (140).(Supplementary Note 2) A data collection device (1) according to another aspect of the present disclosure further includes: a response time measurement unit (160) that measures, for each block of the control program, a response time from when a request for acquisition of various data is made to each of the control devices that control the plurality of industrial machines (4) during operation of the industrial machines (4) based on the control program until a response is returned; and a data collection control unit (170) that determines the timing of collection of various data based on the response times of the various data measured by the response time measurement unit (160) and the timing of collection of the various data determined by the collection time calculation unit (140) so as to reduce a predetermined loss calculated based on the load on the control device, delay in data acquisition timing, and possibility of data response collision, and the data collection unit (150) collects data when the control program is executed by the plurality of control devices at the timing of collection of the various data determined by the data collection control unit (170). (Supplementary Note 3) A data collection device (1) according to another aspect of the present disclosure further includes a data collection adjustment unit (180) that adjusts the calculation of loss by at least one of the collection time calculation unit (140) and the data collection control unit (170) when at least one of the load on the control device, the delay from the data acquisition cycle, and the frequency of collisions in data response exceeds a predetermined threshold when data is collected at the data collection time calculated by the data collection control unit (170).(Supplementary Note 4) A computer-readable recording medium according to one aspect of the present disclosure records a program that causes a computer to execute the following steps: acquiring various data from a control device that controls an industrial machine (4) at a timing when a control program is not being executed, and measuring the time required to acquire the data; calculating a load on the control device due to the acquisition of the various data, based on the measured time required to acquire the various data; acquiring a block number of the control program being executed from the control device while the industrial machine is operating based on the control program, and measuring the time required to acquire data related to the block number; calculating a load at the time of execution of each block of the control program, based on the measured time required to acquire data related to the block number; determining a collection timing of the various data, based on the calculated load at the time of execution of each block and the calculated load applied in acquiring the various data, so as to reduce a predetermined loss calculated based on the load on the control device and a delay in the timing of data acquisition; and collecting data when the control program is executed by the control device at the determined collection timing of the various data.
[0051] REFERENCE SIGNS LIST 1 Data collection device 4 Industrial machine 5 Network 6 Fog computer 7 Cloud server 11 CPU 12 ROM 13 RAM 14 Non-volatile memory 15, 17, 18, 20 Interface 22 Bus 70 Display device 71 Input device 72 External device 100 Data acquisition time measurement unit 110 Data acquisition load calculation unit 120 Operation acquisition time measurement unit 130 Operation load calculation unit 140 Collection time calculation unit 150 Data collection unit 160 Response time measurement unit 170 Data collection control unit 180 Data collection adjustment unit 210 Program storage unit 220 Data storage unit
Claims
1. A data acquisition time measurement unit that acquires various data from a control device that controls an industrial machine when a control program is not being executed, and measures the time required to acquire the data; a data acquisition load calculation unit that calculates the load placed on the control device when acquiring various data, based on the time required to acquire the various data measured by the data acquisition time measurement unit; an operation-time acquisition time measurement unit that acquires a block number of the control program being executed from the control device while the industrial machine is operating based on the control program, and measures the time required to acquire data related to the block number; an operation-time load calculation unit that calculates the load at the time of execution of each block of the control program, based on the time required to acquire data related to the block number measured by the operation-time acquisition time measurement unit; a collection time calculation unit that determines the collection timing of various data, based on the load at the time of execution of each block calculated by the operation-time load calculation unit and the load placed on the acquisition of various data calculated by the data acquisition load calculation unit, so as to reduce a predetermined loss calculated based on the load placed on the control device and a delay in data acquisition timing; a data collection unit that collects data when the control device executes a control program at the collection timing of various data determined by the collection time calculation unit.
2. The data collection device according to claim 1, further comprising: a response time measurement unit that measures, for each block of the control program, a response time from when a request is made to acquire various data to each of the control devices that control the multiple industrial machines during operation of the multiple industrial machines based on the control program to when a response is returned; and a data collection control unit that determines the timing of collection of the various data based on the response time of the various data measured by the response time measurement unit and the collection timing of the various data determined by the collection time calculation unit so as to reduce a predetermined loss calculated based on the load on the control device, delays in data acquisition timing, and the possibility of data response collisions, wherein the data collection unit collects data when the control program is executed by the multiple control devices at the collection timing of the various data determined by the data collection control unit.
3. The data collection device according to claim 2, further comprising a data collection adjustment unit which adjusts loss calculations by at least one of the collection time calculation unit and the data collection control unit when at least one of the load on the control device, the delay from the data acquisition cycle, and the frequency of collisions in data response exceeds a predetermined threshold value when data is collected at the data collection time determined by the data collection control unit.
4. A computer-readable recording medium having recorded thereon a program that causes a computer to execute the steps of: acquiring various data from a control device that controls industrial machinery when a control program is not being executed, and measuring the time required to acquire the data; calculating the load on the control device due to the acquisition of the various data based on the measured time required to acquire the various data; acquiring a block number of the control program being executed from the control device while the industrial machinery is operating based on the control program, and measuring the time required to acquire data related to the block number; calculating the load at the time of execution of each block of the control program based on the measured time required to acquire data related to the block number; determining the timing of collection of the various data based on the calculated load at the time of execution of each block and the calculated load for acquiring the various data so that a predetermined loss calculated based on the load on the control device and the delay in the timing of data acquisition is small; and collecting data when the control program is executed by the control device at the determined timing of collection of the various data.
Citation Information
Patent Citations
Data collection system, data collection method, and control device
JP2020008920A
Trace data acquisition system, trace data acquisition method, and program
JP2020123230A
Data collection device for manufacturing device
JP2021103361A
Production system, data transmission method, and program
JP2021157413A
