Production system, data transmission method and procedure
By using the distinction between asynchronous areas and synchronous areas in industrial machines, the problem of increased processing load during data collection is solved, efficient data transmission is achieved, equipment load is reduced, and the accuracy of data transmission is improved.
Patent Information
- Application Number
- CN202110300614.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-03-26
- Filing Date
- 2021-03-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-03-22
AI Technical Summary
Existing technologies increase the processing load on industrial machines and external devices during data collection, which is difficult to effectively reduce.
A production system was designed that utilizes asynchronous areas, unlike synchronous areas that periodically undergo synchronization, to reduce the processing load at the time of data collection by writing data in industrial machines and sending it to external devices. The system includes an acquisition module, a writing module, a data sending module and a judgment module to ensure the completion of the data writing and sending process in the asynchronous area.
It effectively reduces the processing load during data collection, eliminates the need for polling between the data collection device and the controller, and improves the efficiency and accuracy of data transmission.
Smart Images

Figure CN113448292B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a production system, a data transmission method, and a program. Background Art
[0002] In WO 2015 / 068210 A1, a system is described in which an industrial machine configured to control another industrial machine acquires collection object data related to the operation of the other industrial machine and sends the collection object data to a higher-level device communicably connected to the industrial machine. Summary of the invention
[0003] One aspect of the present disclosure is to reduce the processing load during data collection, for example.
[0004] According to one aspect of the present disclosure, there is provided a production system including: an industrial machine configured to control another industrial machine; and an acquisition module configured to acquire data related to the operation of at least one of the industrial machine or the other industrial machine, wherein the industrial machine includes: a write module configured to write data into an asynchronous area, the asynchronous area being different from a synchronous area that periodically undergoes synchronization; and a data sending module configured to send the data written in the asynchronous area to an external device.
[0005] According to one aspect of the present disclosure, there is provided a data sending method, which includes: acquiring data related to the operation of an industrial machine configured to control another industrial machine or at least one of the other industrial machines; writing the data into an asynchronous area, which is different from a synchronous area that periodically undergoes synchronization; and sending the data written in the asynchronous area to an external device.
[0006] According to one aspect of the present disclosure, there is provided a program for causing an industrial machine configured to control another industrial machine to send data related to the operation of at least one of the industrial machine or the other industrial machine to an external device, the data being written in an asynchronous area that is different from a synchronous area that undergoes synchronization periodically.
[0007] According to one aspect of the present disclosure, an industrial machine includes: a first determination module, which is configured to determine whether the writing of data is completed; and a notification sending module, which is configured to send a predetermined notification to an external device when it is determined that the writing of data is completed, the external device is configured to send a predetermined request to the industrial machine when the external device receives the predetermined notification, and the data sending module is configured to send data to the external device when the predetermined request is received.
[0008] According to one aspect of the present disclosure, an industrial machine includes: a first control loop, which is configured to control another industrial machine and includes an acquisition module and a write module; and a second control loop, which includes an asynchronous area and a data sending module, and the write module of the first control loop is configured to write data into the asynchronous area of the second control loop.
[0009] According to an aspect of the present disclosure, the asynchronous area includes a plurality of small areas, the writing module is configured to write data by selecting at least one available small area from the plurality of small areas, and the data sending module is configured to send the data written in the at least one small area to an external device.
[0010] According to one aspect of the present disclosure, the production system also includes a second writing module, which is configured to write the data written in the asynchronous area into a buffer area different from the synchronous area and the asynchronous area, and the data sending module is configured to send the data written in the buffer area to an external device.
[0011] According to one aspect of the present disclosure, an industrial machine includes: a second determination module configured to determine whether writing of data from an asynchronous area to a buffer area is completed; and a first erasing module configured to erase the data written in the asynchronous area when it is determined that writing of data from the asynchronous area to the buffer area is completed.
[0012] According to one aspect of the present disclosure, an industrial machine includes: a third determination module configured to determine whether the transmission of data to an external device is completed; and a second erasing module configured to erase the data written in the buffer area when the transmission of data to the external device is completed.
[0013] According to one aspect of the present disclosure, the acquisition module is configured to acquire data having a predefined data structure, and the industrial machine is configured to control another industrial machine by using all or part of the data based on the predefined data structure.
[0014] According to one aspect of the present disclosure, the data is data related to an operation of another industrial machine, and the data transmission module is configured to add identification information related to the another industrial machine to the data and transmit the data to which the identification information is added to the external device.
[0015] According to one aspect of the present disclosure, an industrial machine includes a segmentation module configured to segment data into multiple data segments, a writing module configured to write each data segment obtained by the segmentation into an asynchronous area, and a data sending module configured to send each data segment written in the asynchronous area to an external device.
[0016] Effects of the Invention
[0017] According to the present disclosure, it is possible to reduce the processing load at the time of data collection, for example. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a view for illustrating an example of the overall configuration of a production system according to an embodiment of the present disclosure.
[0019] Figure 2 It is a view for illustrating the process flow for collecting collection target data.
[0020] Figure 3 It is a functional block diagram used to illustrate the functions to be implemented in a production system.
[0021] Figure 4 is a table showing an example of data stored in the asynchronous area.
[0022] Figure 5 is a flowchart for illustrating an example of processing to be performed in the production system according to the first embodiment of the present disclosure.
[0023] Figure 6 is a flowchart for illustrating an example of processing to be performed in the production system according to the first embodiment.
[0024] Figure 7 is a flowchart for illustrating an example of processing to be performed in the production system according to the second embodiment of the present disclosure.
[0025] Figure 8 is a flowchart for illustrating an example of processing to be performed in the production system according to the third embodiment of the present disclosure.
[0026] Fig. 9 It is a functional block diagram in the modification example (3) of the present disclosure. DETAILED DESCRIPTION
[0027] [1. Overall configuration of the production system]
[0028] When data is collected by performing polling between an external device and an industrial machine, it is necessary to monitor the synchronization area regularly, and therefore, the processing load on the industrial machine and the external device may increase. As a result of extensive research and development for reducing the processing load on each of the industrial machine and the external device, the inventors conceived a novel and original production system, etc. Now, a detailed description of the production system, etc. according to the first embodiment of the present disclosure is given.
[0029] Figure 1 is a diagram for illustrating an example of the overall configuration of a production system. Figure 1As shown, the production system 1 includes a data collection device 10, a controller 20, and a controlled device 30. In the first embodiment, the data collection device 10 and the controller 20 are connected to each other through a general network such as Ethernet (trademark). The controller 20 and the controlled device 30 are connected to each other through a network for industrial machines. The network for connecting machines to each other is not limited to the example of the first embodiment, and the controller 20 and the controlled device 30 can be connected through any network.
[0030] The data collection device 10 is an example of an external device. Therefore, the term "data collection device 10" as used in the first embodiment can be read as an "external device". The external device is a device different from the industrial machine described later. The external device is communicably connected to the industrial machine through a network. For example, the external device is configured to collect data related to the operation of the industrial machine. In addition, for example, the external device is configured to analyze the operation of the industrial machine and provide feedback of the analysis result to the industrial machine.
[0031] For example, the data collection device 10 is a personal computer, a server computer, a cellular phone (including a smart phone), or a mobile terminal (including a tablet terminal). The data collection device 10 may be an industrial machine. The data collection device 10 includes a CPU 11, a memory 12, a communicator 13, an operation interface 14, and a display 15.
[0032] The CPU 11 includes at least one processor. The memory 12 includes a RAM or a hard disk drive, and is configured to store various programs and data. The CPU 11 is configured to perform various types of processing based on those programs and data. The communicator 13 includes a network card and a communication interface, such as various types of communication connectors, and is configured to communicate with other devices. The operation interface 14 is an input device such as a mouse and a keyboard. The display 15 is a liquid crystal display, an organic EL display, etc., and is configured to display various types of screens according to instructions from the CPU 11.
[0033] The controller 20 is an example of an industrial machine. Therefore, the term "controller 20" as used in the first embodiment can be read as "industrial machine". Industrial machines are a general term for machines configured to assist or replace human work and their peripheral machines. For example, in addition to the controller 20, the controlled device 30 also corresponds to an industrial machine. For example, a programmable logic controller (PLC), a robot controller, an industrial robot, a motor controller, a servo amplifier, an inverter, a converter, a machine tool, a conveying machine or a semiconductor manufacturing apparatus corresponds to an industrial machine. The controller 20 is configured to control at least one controlled device 30. The production system 1 can be referred to as a "unit", which is a unit smaller than a production line. In this case, the controller 20 can be referred to as a "unit controller".
[0034] The controller 20 includes a CPU 21, an Internet of Things (IoT) unit 22, a third memory 23, and a second communicator 24. The physical configuration of each of the CPU 21, the third memory 23, and the second communicator 24 may be the same as that of the CPU 11, the memory 12, and the communicator 13, respectively. The CPU 21 may include at least one of a volatile memory or a non-volatile memory. For example, the CPU 21 may include a memory called a "cache memory". The CPU 21 stores variables described later.
[0035] The CPU 21 is an example of a first control loop. Therefore, the CPU 21 used in the first embodiment can be read as a "first control loop". The first control loop is configured to control another industrial machine described later. The first control loop is not limited to a general-purpose processor and may be any loop. For example, the first control loop may be a loop called an "FPGA" or an "ASIC". The first control loop is a circuit.
[0036] The IoT unit 22 is an example of a second control loop. Therefore, the IoT unit 22 as used in the first embodiment can be read as a "second control loop". The second control loop is a loop configured to send data to an external device. The second control loop is not limited to a loop for IoT, and may be any loop. For example, the second control loop may be a loop called "FPGA" or "ASIC". For example, the second control loop may be a general-purpose processor. The second control loop is a circuit.
[0037] The IoT unit 22 is configured to send data to another computer via a network. For example, the IoT unit 22 includes a first memory 22A, a second memory 22B, and a first communicator 22C. The first memory 22A and the second memory 22B may be respectively the same as the memory 12. The first communicator 22C may be the same as the communicator 13. For example, the first communicator 22C is mainly used for communication with the data collection device 10, and the second communicator 24 is mainly used for controlling the controlled device 30. The IoT unit 22 may include another configuration, for example, a CPU. When the CPU 21 has a data collection function, the IoT unit 22 may be omitted.
[0038] The controlled device 30 is an example of another industrial machine. Therefore, the controlled device 30 as used in the first embodiment can be read as "another industrial machine". The term "industrial machine" has such a meaning as described above. Another industrial machine may be any type of industrial machine described above. In the first embodiment, another industrial machine is controlled by the controller 20. It is sufficient as long as the other industrial machine is an industrial machine different from the controller 20.
[0039] The controlled device 30 includes a CPU 31, a memory 32, and a communicator 33. The physical configuration of each of the CPU 31, the memory 32, and the communicator 33 may be the same as the physical configuration of each of the CPU 11, the memory 12, and the communicator 13, respectively. The controlled device 30 may also include other physical components. For example, the controlled device 30 may include a circuit called an "FPGA" or an "ASIC". In addition, for example, a machine to be controlled such as a motor, a sensor for detecting the operation of the motor, a camera for photographing the state of a workpiece to be processed, an input / output device, or another industrial machine may be connected to the controlled device 30. The number of controlled devices 30 to be controlled by the controller 20 may be any number. For example, the controller 20 may control only one device, or may control two or more devices.
[0040] The programs and data described as being stored in each of the data collection device 10, the controller 20, and the controlled device 30 can be provided through a network. In addition, the hardware configuration of each device is not limited to the examples mentioned above, and various types of hardware can be applied. For example, a reader configured to read a computer-readable information storage medium (e.g., an optical drive or a memory card slot) and an input / output device configured to be directly connected to an external device (e.g., a USB terminal) can be included. In this case, the program and data stored in the information storage medium can be provided through the reader or the input / output device.
[0041] [2. Overview of production system]
[0042] In the first embodiment, the controller 20 is configured to control the controlled device 30 based on each of a plurality of variables. The variables are referenced by a control program for controlling the controlled device 30. The control program can also rewrite the variables. For example, the variable indicates the result of an unfinished calculation or a physical quantity detected by a sensor (e.g., a torque value detected by a torque sensor or a rotation speed of a motor detected by a motor encoder). The variable can be a value related to the operation of the controlled device 30, and can be a value related to, for example, the position or movement speed of a robot arm, the speed of a motor, or a waiting time for waiting for an operation.
[0043] For example, when the controlled device 30 performs multiple processes in a predetermined order, the execution order of the processes is described in the control program. The controller 20 transmits instructions to the controlled device 30 based on the control program. Variables can be used as execution conditions for processes. For example, the controlled device 30 stores a variable for starting the process, a variable for terminating the process, or a variable for ending the process. Variables can be referred to as "input / output variables". The controller 20 can control the controlled device 30 without specifically using variables.
[0044] "Processing" is a task or operation performed by the controlled device 30. A process may consist of only one task, or may consist of a combination of multiple tasks. Depending on the use of the controlled device 30, a process may have any content. For example, a process is identification of a workpiece, clamping of a workpiece, opening / closing of a door, setting of a workpiece, or processing using a machine tool. The controlled device 30 performs at least one process. The number of processes performed by the controlled device 30 may be any number. The controlled device 30 may perform only one process, or may perform multiple processes. The controlled device 30 performs a process based on instructions received from the controller 20 and a device program stored in the controlled device 30 itself.
[0045] The device program is a program that defines the operation of the controlled device 30. In the device program, each process of each process is defined. The device program can be created in any language according to the controlled device 30, and can be created by using, for example, a ladder language or a robot language. In the first embodiment, a device program is prepared for each process. Therefore, when a certain controlled device 30 is to perform "n" processes ("n" is a natural number), the controlled device 30 stores at least "n" device programs.
[0046] In the first embodiment, data related to the operation of at least one of the controller 20 or the controlled device 30 is collected by the control program. Hereinafter, this data is referred to as "collection object data". The collection object data may be data related to the operation of both the controller 20 and the controlled device 30, or may be data related to the operation of either one of them. In the first embodiment, a case where the collection object data is data related to the operation of the controlled device 30 is described.
[0047] For example, the collection object data is generated based on the detection signal from the sensor for detecting the operation of the controlled device 30. The collection object data includes the physical quantity detected by the sensor. The collection object data may indicate only the operation at one point in time, or may indicate the operation at multiple points in time in chronological order. The collection object data may have any content, and examples thereof include the torque value detected by the torque sensor, the speed and position of the motor detected by the motor encoder, the position and posture of the robot arm detected by the motion sensor or the gyro sensor, or the temperature detected by the temperature sensor. The collection object data may be the internal information of the controlled device 30, and examples thereof may include the load on the CPU 31, the consumption of the memory 32, and the communication volume of the communicator 33. The collection object data may indicate the calculation result when the CPU 31 performs a predetermined calculation, or may indicate an intermediate result thereof.
[0048] In a first embodiment, at least one collection object data segment is collected by at least one application program included in a control program. The control program may include multiple applications, and the collection object data collected by the application program may be different between the applications. The application program itself may be referred to as a "control program". The application program may be provided separately from the control program.
[0049] The application can collect the collection object data from the controlled device 30 by any method. For example, so-called message communication (non-fixed cycle communication or asynchronous communication) can be used, or a file transfer protocol (FTP) or the like can be used. When there are multiple controlled devices 30, the communication method for sending the collection object data between one controlled device 30 and another controlled device 30 may be different. In the first embodiment, the application is described as being created by the same user as the user of the control program, but may be created by a user different from the user of the control program.
[0050] Figure 2 FIG. 2 is a diagram for illustrating the flow of a process for collecting collection target data. Figure 2 As shown, the control program includes multiple application programs. Figure 2 In the example of , the control program includes three application programs, namely, a message receiving application program A, a message receiving application program B, and a file reading application program C. Unless clearly distinguished, those applications are hereinafter referred to simply as "application programs".
[0051] For example, the message receiving application A is an application for collecting first collection object data (e.g., torque value) by using message communication. The message receiving application B is an application for collecting second collection object data (e.g., motor speed) by using message communication. The file reading application C is an application for collecting third collection object data (e.g., posture of robot arm) by using FTP.
[0052] In the first embodiment, the data collection device 10 selects collection object data and performs data collection settings for each of the controller 20 and the controlled device 30. For example, as the data collection settings, the type of collection object data and the collection conditions for the collection object data are set. Examples of the collection conditions may be a trigger for starting the collection of the collection object data, a sampling period, a size of the data, and a period for the collection object data. Each of the controller 20 and the controlled device 30 collects the collection object data based on the data collection settings.
[0053] For example, the CPU 21 executes a control program to send a command for control to the controlled device 30. The command for control is a command for controlling the operation of the controlled device 30, and includes, for example, output to a motor, the position and speed of a robot arm, and other information. In the first embodiment, the controlled device 30 operates based on the command for control, and at the same time, during the operation, generates collection object data to send the collection object data to the controller 20. The collection object data may be generated and sent by other methods in the same manner as the second embodiment of the present disclosure and the third embodiment of the present disclosure described later.
[0054] When the CPU 21 receives the collection object data from the controlled device 30, the CPU 21 transmits the received collection object data to the IoT unit 22. The collection object data may be transmitted to the IoT unit 22 after being accumulated in a memory such as the CPU 21 or the third memory 23, or may be transmitted to the IoT unit 22 without being particularly accumulated in any of those memories. The IoT unit 22 records the transmitted collection object data in the first memory 22A.
[0055] In the first embodiment, the first memory 22A is divided into a synchronous area and an asynchronous area. The synchronous area is an area where synchronization is performed between the CPU 21 and the IoT unit 22. Synchronization as used herein is to perform matching of data regularly (periodically). Synchronization is to make any one of the values stored in the CPU 21 and the values stored in the synchronous area of the IoT unit 22 consistent with each other (copy one value to another).
[0056] For example, for a given variable, changing the value stored in the CPU 21 to the value stored in the synchronization area of the IoT unit 22 corresponds to synchronization. Also, for example, for a given variable, changing the value stored in the synchronization area of the IoT unit 22 to the value stored in the CPU 21 corresponds to synchronization. Synchronization may be mainly performed by the CPU 21 or may be mainly performed by the IoT unit 22. The CPU 21 or the IoT unit 22 undergoes synchronization in each given fixed cycle period.
[0057] In the first embodiment, the variables stored in the synchronization area are periodically sent to the data collection device 10. For example, polling is performed between the data collection device 10 and the IoT unit 22, and the data collection device 10 periodically collects the variables stored in the synchronization area. The data collection device 10 can collect all the variables, but in the first embodiment, it is assumed that only a part of the variables are collected. For example, when the user of the data collection device 10 and the user of the controller 20 are different from each other, the data collection device 10 collects a part or all of the variables that are allowed to be disclosed to the user of the data collection device 10.
[0058] The asynchronous area is an area that is not a synchronous area. The asynchronous area is an area that does not undergo synchronization between the CPU 21 and the IoT unit 22. However, the asynchronous area may have data that is synchronized irregularly (non-periodically). For example, the CPU 21 transmits the collection object data collected from the controlled device 30 to the IoT unit 22, and writes the collection object data into the asynchronous area of the first memory 22A.
[0059] In the first embodiment, the asynchronous area is divided into a plurality of channels. A channel is a storage area provided in the asynchronous area. A channel may be formed by a serial address, or may be formed by a non-serial discontinuous address. The number of channels provided in the asynchronous area may be freely set, and for example, approximately several channels may be provided, or ten or more channels may be provided. The channel to be used by each application may be fixed, but in the first embodiment, each application may use any channel.
[0060] For example, when all channels in an asynchronous region are free, the channels are used in address order. Figure 2 In the example of , when the message receiving application A first receives the collection target data, the CPU 21 writes the collection target data into the first channel 1. When the message receiving application B secondly receives the collection target data, the CPU 21 writes the collection target data into the second channel 2. When the file reading application C subsequently receives the collection target data, the CPU 21 writes the collection target data into the third channel 3.
[0061] The IoT unit 22 writes the collection object data written in each channel of the asynchronous area into the second memory 22B. The second memory 22B can also be divided into multiple channels. In the first embodiment, the second memory 22B includes at least one buffer area, and writes the collection object data into the buffer area. When the collection object data is written into the buffer area, the IoT unit 22 sends a completion notification indicating that the writing of the collection object data is completed to the data collection device 10. When the data collection device 10 receives the completion notification, the data collection device 10 requests the IoT unit 22 for the collection object data to be written. The IoT unit 22 sends the collection object data to the data collection device 10 in response to the request from the data collection device 10.
[0062] As described above, the production system 1 writes the collection object data to the asynchronous area instead of the synchronous area that undergoes synchronization periodically, and sends the collection object data to the data collection device 10, thereby eliminating the need for polling between the data collection device 10 and the controller 20, for example, and reducing the processing load at the time of data collection. This configuration is described in detail below.
[0063] [3. Functions to be implemented in the production system]
[0064] Figure 3 1 is a functional block diagram for illustrating functions to be implemented in the production system 1. In the first embodiment, the functions to be implemented in each of the data collection device 10, the controller 20, and the controlled device 30 are described.
[0065] [3-1. Functions to be achieved by data collection equipment]
[0066] like Figure 3 As shown, the data collection device 10 includes a data storage 100 and a collection module 101 .
[0067] [Data storage]
[0068] The data storage 100 is mainly implemented by the memory 12. The data storage 100 is configured to store data related to data collection. For example, the data storage 100 stores variable data, which stores variables collected from the synchronization area of the controller 20. The variable data is collected regularly. The variable data can store the value of the variable at a certain point in time, or can store the time sequence change of the value of the variable. In addition, the variable data can only store the value of one variable, or can store the values of multiple variables. In another example, the variable data can store a value calculated based on the values of multiple variables. In the first embodiment, the variables included in the variable data are recorded in the synchronization area of the first memory 22A.
[0069] In addition, for example, the data storage 100 stores collection object data collected from the asynchronous area of the controller 20. The collection object data is data collected irregularly. In addition, for example, the data storage 100 stores an application for analyzing the operation of the controller 20 or the controlled device 30. For example, the application processes variable data or collection object data as input and processes the analysis result as output. In the application, the relationship between the variable data or collection object data and the analysis result is defined. Feedback can be provided to the controller 20 based on the analysis result.
[0070] [Collection Module]
[0071] The collection module 101 is mainly implemented by the CPU 11. The collection module 101 is configured to collect collection object data from the controller 20. Collection used in this article has the same meaning as receiving or obtaining. In the first embodiment, when the collection module 101 receives a completion notification sent by the notification sending module 207 described later, the collection module 101 sends a predetermined request to the controller 20. The request is a request for sending the collection object data, and is issued by sending data in a predetermined format. Hereinafter, the request is referred to as a "data sending request". The data sending request may include information for identifying the collection object data to be sent.
[0072] The collection module 101 determines whether a completion notification is received from the controller 20. When the collection module 101 determines that the completion notification is received, the collection module 101 sends a data transmission request to the controller 20. The collection module 101 sends the data transmission request to the controller 20 in response to receiving the completion notification (on the condition that the completion notification is received). The collection object data is transmitted by the data transmission module 213 described later, and the collection module 101 collects the transmitted collection object data.
[0073] The controller 20 may spontaneously send the collection object data to the data collection device 10. In this case, the collection module 101 receives the collection object data spontaneously sent by the controller 20. In another example, when the analysis result of the variable data is fed back, the collection module 101 may query the controller 20 whether there is the collection object data in the buffer area. In this case, the controller 20 may refer to the buffer area in response to the query to send the collection object data to the data collection device 10.
[0074] [3-2. Functions to be implemented by the controller]
[0075] like Figure 3As shown, in the controller 20, a first data storage device 200, a second data storage device 201, a third data storage device 202, an operation control module 203, an acquisition module 204, a first writing module 205, a first determination module 206, a notification sending module 207, a second writing module 208, a second determination module 209, a first erasing module 210, a third determination module 211, a second erasing module 212 and a data sending module 213 are implemented.
[0076] [First data storage]
[0077] The first data storage 200 is mainly implemented by the first memory 22A. The first data storage 200 is configured to store data to be collected by the data collection device 10. In the first embodiment, the first data storage 200 has a synchronous area and an asynchronous area. That is, the first data storage 200 is divided into a synchronous area and an asynchronous area. The synchronous area is an area in the first address area, and the asynchronous area is an area in the second address area. The first data storage 200 may have a plurality of synchronous areas. The first data storage 200 may have a plurality of asynchronous areas. Each of the synchronous area and the asynchronous area is a storage area within a predetermined address range.
[0078] For example, the first data memory 200 is configured to store the current value of each of the plurality of variables in the synchronization area. The current value of the variable stored in the first data memory 200 and the current value of the variable stored in the third data memory 202 match each other. As described above, the matching of those values is performed periodically. It is sufficient as long as the data to be synchronized is stored in the synchronization area and data other than the variables can be stored therein. It is sufficient as long as the synchronization area stores the data to be synchronized.
[0079] Figure 4 is a table showing an example of data stored in the asynchronous area. Figure 4 As shown, the first data storage 200 stores at least one collection object data segment in the asynchronous area. In the first embodiment, the asynchronous area is divided into multiple channels, and for example, at least one collection object data segment is stored in each separate channel. When the collection object data has a large size, the collection object data can be divided so as to be stored in multiple channels. When the collection object data has a small size, multiple collection object data segments can be stored in one channel.
[0080] A channel is a storage area within a fixed address range provided in an asynchronous area. A channel is an example of a small area included in an asynchronous area. Therefore, a channel as used in the first embodiment can be read as a "small area". It is sufficient as long as the small area is a fixed storage area, and the small area can be called any name other than "channel". The small area may be associated with an application for collecting collection object data, or may not be specifically associated with the application. That is, a small area may be an area dedicated to a specific application or an area shared by multiple applications.
[0081] [Second data storage]
[0082] The second data storage 201 is mainly implemented by the second memory 22B. The second data storage 201 is configured to store the collection object data transmitted from the first data storage 200. In the first embodiment, the second data storage 201 has a buffer area. The buffer area is an area for temporarily storing the collection object data to be sent to the data collection device 10. The buffer area can also be said to be an area to be referenced by the data collection device 10. The second data storage 201 can have a plurality of buffer areas. The buffer area is a storage area within a predetermined address range.
[0083] In the first embodiment, a case is described in which the first data storage 200 has a synchronous area and an asynchronous area and the second data storage 201 has a buffer area. However, the synchronous area, the asynchronous area, and the buffer area may exist in one memory (actually a piece of hardware). In this case, the IoT unit 22 may include only one memory instead of multiple memories. In addition, for example, the synchronous area and the asynchronous area may exist in separate memories. In addition, for example, the synchronous area and the buffer area may exist in one memory, and the asynchronous area may exist in another memory. In addition, for example, the asynchronous area and the buffer area may exist in one memory, and the synchronous area may exist in another memory.
[0084] The second data storage 201 may store all the collection object data segments stored in the first data storage 200, or may store only a part of the collection object data. For example, when the storage capacity of the second data storage 201 is greater than the storage capacity of the asynchronous area of the first data storage 200, the second data storage 201 may store all the collection object data segments stored in the asynchronous area of the first data storage 200. Meanwhile, for example, when the storage capacity of the second data storage 201 is less than the storage capacity of the asynchronous area of the first data storage 200, the second data storage 201 may store a part of the collection object data stored in the asynchronous area of the first storage 200.
[0085] [Third data storage]
[0086] The third data memory 202 is mainly implemented by at least one of the memory in the CPU 21 or the third memory 23. The third data memory 202 is configured to store data required for controlling the controlled device 30. For example, the third data memory 202 stores the current value of each of the multiple variables. The third data memory 202 stores the current value of each variable. Each variable is stored in a specific register. It is assumed that the relationship between each variable and each register (which variable is stored in which register) is pre-specified by the creator of the control program, for example. The variables stored in the register can be appropriately referenced by another device.
[0087] In addition, for example, the third data storage 202 stores control programs (including applications for collecting collection object data) and parameters. In addition, for example, the third data storage 202 may store another program such as firmware, or may store a program for sending variable data to the data collection device 10. In addition, for example, the third data storage 202 may store variable definitions indicating definitions of variables disclosed to users of the data collection device 10. All or part of the variables indicated in the variable definitions are subject to data collection. In addition, for example, the third data storage 202 stores settings for collecting object data.
[0088] The data stored in the controller 20 is not limited to the examples mentioned above. For example, the controller 20 may store data for defining a register corresponding to each variable. In addition, for example, the controller 20 may store information that enables identification of the controlled device 30 to be controlled by the controller 20 itself. In addition, for example, the controller 20 may store information that enables identification of the data collection device 10. Those data segments may be stored in any one of the first data storage 200, the second data storage 201, and the third data storage 202.
[0089] [Operation Control Module]
[0090] The operation control module 203 is mainly implemented by the CPU 21. The operation control module 203 is configured to control the operation of the controlled device 30 based on the control program. For example, the operation control module 203 transmits a command to the controlled device 30, and the controlled device 30 operates based on the command. In the first embodiment, the collection object data is collected in response to the command for control, and therefore the command can also be said to be a command for collecting the collection object data. The operation control module 203 periodically updates each of a plurality of variables to control the controlled device 30. For example, when the controlled device 30 operates based on the value of the variable associated with the device program, the operation control module 203 transmits an instruction to the controlled device 30 to change the value of the variable used to start the device program. The controlled device 30 executes the device program by changing the value of the variable based on the instruction. When the variable is not particularly used to control the operation of the controlled device 30, the operation control module 203 can control the operation of the controlled device 30 by sending a command indicating the operation to be performed by the controlled device 30.
[0091] [Get module]
[0092] The acquisition module 204 is mainly implemented by the CPU 21. The acquisition module 204 is configured to acquire collection object data related to the operation of at least one of the controller 20 or the controlled device 30. In the first embodiment, the "collection object data" is generated by the generation module 302 described later, and thus the acquisition module 204 acquires the collection object data generated by the generation module 302. For example, the acquisition module 204 acquires the collection object data based on an application for collecting the collection object data.
[0093] [First writing module]
[0094] The first write module 205 is mainly implemented by CPU 21. The first write module 205 is configured to write the collection object data into an asynchronous area, which is different from the synchronous area that regularly undergoes synchronization. Writing as used herein has the same meaning as storage, recording or transmission. This is the same as the writing performed by the second write module 208 described later.
[0095] The first writing module 205 writes the collection object data acquired by the acquisition module 204 into the asynchronous area. The collection object data may be written into the asynchronous area after being temporarily written into, for example, a storage area of the third data storage device 202, or may be written into the asynchronous area immediately after the collection object data is acquired without such temporary writing. In the first embodiment, the controller 20 includes a first control loop (CPU 21) and a second control loop (IoT unit 22), and therefore the first writing module 205 of the first control loop writes the collection object data into the asynchronous area of the second control loop.
[0096] In the first embodiment, the asynchronous area has a plurality of channels, and thus the first writing module 205 selects at least one available channel from the plurality of channels to write the collection object data. An available channel is a channel into which the collection object data can be written. For example, a channel that does not store the collection object data, a channel whose unused capacity is larger than the size of the collection object data, or a channel that stores the collection object data sent to the data collection device 10 is an available channel.
[0097] For example, the first writing module 205 queries the IoT unit 22 whether there is an available channel. The query to be performed may include a storage size for writing the collection object data (the data size of the collection object data). When the IoT unit 22 receives the query, the IoT unit 22 refers to the asynchronous area of the second memory 22B to determine whether there is an available channel. At this time, the IoT unit 22 can determine whether there is a channel with a storage size equal to or greater than the storage size included in the query.
[0098] The IoT unit 22 sends the determination result to the first writing module 205. When there are available channels, the determination result may indicate a part or all of the available channels. The first writing module 205 selects any channel indicated in the determination result. The channel may be selected by any method, for example, the channel with the lowest numbered address may be selected, or the channel may be randomly selected. The first writing module 205 requests the IoT unit 22 to write the collection object data into the selected channel.
[0099] [First judgment module]
[0100] The first determination module 206 is mainly implemented by the IoT unit 22. The first determination module 206 is configured to determine whether the writing of the collection object data is completed. The first determination module 206 can determine whether the writing of the collection object data to the freely selected memory is completed. In the first embodiment, the case where the first determination module 206 determines whether the writing of the collection object data to the buffer area of the second data memory 201 is completed is described. However, when the buffer area is not specifically provided, the first determination module 206 can determine whether the writing of the collection object data to the asynchronous area of the first data memory 200 is completed. The first determination module 206 determines whether the writing of the collection object data up to the last data segment is completed.
[0101] [Notification sending module]
[0102] The notification sending module 207 is mainly implemented by the IoT unit 22. The notification sending module 207 is configured to send a predetermined completion notification to the data collection device 10 when the first determination module 206 determines that the writing of the collection object data is completed. The notification sending module 207 sends the predetermined completion notification to the data collection device 10 in response to the first determination module 206 determining that the writing of the collection object data is completed (under the condition that the writing is determined to be completed). It is sufficient as long as the completion notification has a predetermined format, and may include, for example, the type of the collection object data, the address in the buffer area storing the collection object data, and other information.
[0103] [Second writing module]
[0104] The second writing module 208 is mainly implemented by the IoT unit 22. The second writing module 208 is configured to write the collection object data written in the asynchronous area into a buffer area different from the synchronous area and the asynchronous area. The second writing module 208 can start writing the collection object data into the buffer area when the writing of the collection object data to the asynchronous area is completed, or can start writing the collection object data into the buffer area during the writing of the collection object data to the asynchronous area.
[0105] The second write module 208 can determine whether the buffer area is available. For example, a buffer area where the collection object data is not written, a buffer area whose unused capacity is equal to or greater than the size of the collection object data, or a buffer area that only stores the sent collection object data corresponds to the buffer area being available. When it is determined that the buffer area is available, the second write module 208 writes the collection object data in the asynchronous area into the buffer area. When it is determined that the buffer area is not available, the second write module 208 waits to write the collection object data from the asynchronous area into the buffer area until it is determined that the buffer area is available.
[0106] [Second determination module]
[0107] The second determination module 209 is mainly implemented by the IoT unit 22. The second determination module 209 is configured to determine whether the writing of the collection object data from the asynchronous area to the buffer area is completed. The second determination module 209 determines whether the writing of the collection object data until the last data segment of the collection object data written in the asynchronous area to the buffer area is completed.
[0108] [First Erase Module]
[0109] The first erasing module 210 is mainly implemented by the IoT unit 22. The first erasing module 210 is configured to erase the collection object data written in the asynchronous area when it is determined that the writing of the data from the asynchronous area to the buffer area is completed. The first erasing module 210 erases the collection object data written in the asynchronous area in response to determining that the writing of the collection object data from the asynchronous area to the buffer area is completed (under the condition that the writing is determined to be completed).
[0110] [Third determination module]
[0111] The third determination module 211 is mainly implemented by the CPU 21. The third determination module 211 is configured to determine whether the sending of the collection target data to the data collection device 10 is completed. The third determination module 211 determines whether the sending of the collection target data up to the last data segment of the collection target data written in the buffer area to the data collection device 10 is completed.
[0112] [Second Erase Module]
[0113] The second erasing module 212 is mainly implemented by the CPU 21. The second erasing module 212 is configured to erase the collection target data written in the buffer area when it is determined that the transmission of the collection target data to the data collection device 10 is completed. The second erasing module 212 erases the collection target data written in the buffer area in response to determining that the transmission of the collection target data to the data collection device 10 is completed (under the condition that the transmission is determined to be completed).
[0114] [Data sending module]
[0115] The data transmission module 213 is mainly implemented by the IoT unit 22. The data transmission module 213 is configured to transmit the collection object data written in the asynchronous area to the data collection device 10. In the first embodiment, when the data collection device 10 receives the completion notification, the data collection device 10 transmits a predetermined request to the controller 20, and when the data transmission module 213 receives the request, the data transmission module 213 transmits the data to the external device. The data transmission module 213 transmits the collection object data written in the asynchronous area in response to the reception of the request (under the condition that the request is received).
[0116] In the first embodiment, the collection target data is written in the channels of the asynchronous area, and thus the data transmission module 213 transmits the collection target data written in at least one channel to the data collection device 10. In particular, when no channel is provided, the data transmission module 213 transmits the collection target data in the asynchronous area regardless of the channel.
[0117] Furthermore, in the first embodiment, the collection target data is written in the buffer area, and thus the data transmission module 213 transmits the data written in the buffer area to the data collection device 10. In particular, when no buffer area is provided, the data transmission module 213 directly transmits the collection target data in the asynchronous area.
[0118] [3-3. Functions to be implemented by the controlled device]
[0119] like Figure 3 As shown, in the controlled device 30, a data storage 300, a processing execution module 301 and a generation module 302 are implemented.
[0120] [Data storage]
[0121] The data storage 300 is mainly implemented by the memory 32. The data storage 300 is configured to store data required for the controlled device 30 to perform processing. For example, the data storage 300 stores the current values of the device program and the variables. The current values of the variables stored in the data storage 300 are regularly matched with the current values of the variables stored in the first data storage 200. The value of each variable is stored in a predetermined register. In addition, for example, the data storage 300 stores settings for collecting object data.
[0122] [Processing execution module]
[0123] The processing execution module 301 is mainly implemented by the CPU 31. The processing execution module 301 is configured to execute a predetermined process based on the device program stored in the data storage 300 and the instruction received from the controller 20. For example, when the controller 20 is about to start a certain device program, the controller 20 sends an instruction to the controlled device 30 to set the variable associated with the device program to a predetermined value. When the controlled device 30 receives the instruction, the controlled device 30 changes the variable to the predetermined value. When the processing execution module 301 detects that the variable is changed to the predetermined value, the processing execution module 301 executes the device program associated with the variable.
[0124] When the process indicated by the device program ends, the process execution module 301 changes the variable associated with the device program to a predetermined value, and sends the fact to the controller 20. Then, when another device program is executed, the controller 20 sends an instruction to the controlled device 30 to set the variable associated with the other device program to a predetermined value, and the process execution module 301 executes the other device program. When the execution order of a plurality of device programs is defined in the controlled device 30, it is not necessary to send the end of the device program to the controller 20, and the process execution module 301 can execute the plurality of device programs one after another.
[0125] [Generate Module]
[0126] The generation module 302 is mainly implemented by the CPU 31. The generation module 302 is configured to generate collection object data. For example, the generation module 302 generates the collection object data based on the variables stored in the data storage 300, the detection signal from the sensor connected to the controlled device 30, or the internal information of the controlled device 30. In the first embodiment, the data collection device 10 performs settings on the collection object data, and thus the generation module 302 generates the collection object data based on the settings. For example, the generation module 302 determines whether the set collection condition is met. When the generation module 302 determines that the collection condition is met, the generation module 302 generates the collection object data of the type included in the command.
[0127] [4. Processing to be performed in the production system]
[0128] Figure 5 and Figure 6 Each is a flowchart for illustrating an example of a process performed in the production system 1 according to the first embodiment. Figure 5 and Figure 6 The processing shown in Figure 3 An example of the processing to be performed by the functional blocks shown in FIG.
[0129] like Figure 5 As shown, the data collection device 10 selects collection object data to perform settings on the collection object data for each of the controller 20 and the controlled device 30 (step S1). For example, the setting content is specified by the user of the data collection device 10. The data collection device 10 sends the setting content specified by the user to each of the controller 20 and the controlled device 30. Each of the controller 20 and the controlled device 30 receives and stores the setting content of the collection object data. The controlled device 30 may receive the setting content via the controller 20, or may be directly and communicatively connected to the data collection device 10.
[0130] The CPU 21 of the controller 20 sends a command for control to the controlled device 30 (step S2). In step S2, the CPU 21 executes a control program to generate and send a command for control, which includes the content of the operation of the controlled device 30. When the controlled device 30 receives the command for control (step S3), the controlled device 30 operates based on the command to generate operation data (step S4). The operation data is included in the collection object data. For example, the operation data can indicate information other than the content designated as the collection object. The operation data can indicate a response to the command for control (a response to be sent in each cycle).
[0131] In step S4, collection object data may also be generated. For example, the controlled device 30 determines whether the collection condition is satisfied based on the variables stored in the memory 32. The collection condition does not need to be a condition related to the variable, and the determination may be performed based on, for example, a physical quantity detected by a sensor connected to the controlled device 30, a calculation result of the CPU 31, or the presence or absence of an alarm. When the collection condition is satisfied, the controlled device 30 generates the collection object data selected by the data collection device 10 based on, for example, a variable or a detection signal from a sensor.
[0132] The controlled device 30 sends the collection object data to the controller 20 (step S5). The collection object data sent in step S5 includes operation data. When a sending method for collecting object data is pre-specified, the controlled device 30 sends the collection object data generated in step S4 by the specified sending method. When multiple sending methods are not provided and only one sending method is used, the sending method may not be specified.
[0133] When the controller 20 receives the collection object data (step S6), the CPU 21 selects an available channel from a plurality of channels in the asynchronous area (step S7). In step S7, the CPU 21 inquires the IoT unit 22 whether there is an available channel. The IoT unit 22 refers to the asynchronous area of the first memory 22A to determine whether there is an available channel. The IoT unit 22 sends the determination result to the CPU 21. The CPU 21 receives the determination result. When the determination result indicates that there is an available channel, the CPU 21 selects at least one of the available channels as an available channel. When the determination result indicates that there is no available channel, the CPU 21 temporarily writes the collection object data into the third memory 23, and waits until an available channel is provided.
[0134] The CPU 21 writes the collection target data into the channel selected in step S7 (step S8). In step S8, the CPU 21 specifies the channel selected in step S4 to request the IoT unit 22 to write the collection target data. When the IoT unit 22 receives the request, the IoT unit 22 writes the collection target data into the channel specified by the CPU 21.
[0135] Next, refer to Figure 6, when the collection object data is written into the selected channel, the IoT unit 22 writes the collection object data into the buffer area of the second memory 22B (step S9). The IoT unit 22 determines whether the writing of the collection object data from the selected channel to the buffer area is completed (step S10). When it is determined that the writing of the collection object data is not completed ("N" in step S10), the processing returns to the processing of step S9 to continue the writing of the collection object data. At the same time, when it is determined that the writing of the collection object data is completed ("Y" in step S10), the IoT unit 22 erases the collection object data from the channel where the writing of the collection object data is completed (step S11), and sends a completion notification to the data collection device 10 (step S12). Either the processing of step S11 or the processing of step S12 can be performed first.
[0136] When the data collection device 10 receives the completion notification (step S13), the data collection device 10 sends a data transmission request to the controller 20 (step S14). When the IoT unit 22 of the controller 20 receives the data transmission request (step S15), the IoT unit 22 sends the collection object data written in the buffer area to the controller 20 (step S16). The data collection device 10 receives the collection object data and records the collection object data in the memory 12 (step S17).
[0137] The IoT unit 22 determines whether the sending of the collection object data written in the buffer area is completed (step S18). When it is determined that the sending of the collection object data is not completed ("N" in step S18), the process returns to the process of step S16 to continue sending the collection object data. At the same time, when it is determined that the sending of the collection object data is completed ("Y" in step S18), the IoT unit 22 erases the sent collection object data in the write buffer area (step S19), and the process ends.
[0138] With the production system 1 described above, after writing data into the asynchronous area of the first memory 22A including the synchronous area that periodically undergoes synchronization and the asynchronous area that is different from the synchronous area, the data is sent to the data collection device 10, thereby eliminating the need for polling between the data collection device 10 and the controller 20. As a result, the processing load on each of the data collection device 10 and the controller 20 can be reduced.
[0139] The production system 1 also sends a notification to the data collection device 10 when writing of the collection object data is completed, and also sends the data written in the asynchronous area when the controller 20 receives a request from an external device, thereby eliminating the need for polling between the data collection device 10 and the controller 20. As a result, the processing load on each of the data collection device 10 and the controller 20 can be reduced.
[0140] In addition, the production system 1 is separately provided with the CPU 21 as the first control loop for controlling the controlled device 30 and the IoT unit 22 as the second control loop for sending data to the data collection device 10, thereby distributing the processing load. Therefore, it is possible to prevent problems from occurring in the control and data transmission of the controlled device 30. As a result, the accuracy of control can be improved, and the collection object data can be sent quickly and accurately.
[0141] In addition, in the production system 1, the asynchronous area is divided into a plurality of channels. The production system 1 writes the collection object data into at least one channel and transmits the collection object data written in at least one channel to the data collection device 10, thereby preventing other collection object data segments from being unable to be transmitted until the transmission of a given collection object data segment is completed. As a result, the asynchronous area can be effectively utilized, and the collection object data can be efficiently transmitted.
[0142] Furthermore, the production system 1 writes the collection target data written in the asynchronous area into the buffer area, and transmits the collection target data written in the buffer area to the data collection device 10. This enables, for example, the asynchronous area to be used for other purposes after the collection target data is written to the buffer area, thereby making effective use of the asynchronous area.
[0143] Furthermore, when determining that writing of the collection target data from the asynchronous area to the buffer area is completed, the production system 1 erases the collection target data written in the asynchronous area, thereby being able to reduce memory consumption and effectively utilize the asynchronous area.
[0144] Furthermore, when it is determined that the transmission of the data to the data collection device 10 is completed, the production system 1 erases the data written in the buffer area, thereby being able to reduce the memory consumption and effectively utilize the buffer area.
[0145] [5. Second embodiment]
[0146] In the first embodiment, a case where the controlled device 30 operates according to a command received from the controller 20 and transmits the collection object data generated during the operation is described. The controlled device 30 may generate and transmit the collection object data based on its own settings regardless of the command received from the controller 20. Now, a production system 1 according to a second embodiment is described. In the second embodiment, the overall configuration and functional blocks of the production system 1 are the same as those in the first embodiment. In the second embodiment, referring to Figure 5 and Figure 6 The processing flows described are different from those in the first embodiment.
[0147] Figure 71 is a flowchart for illustrating an example of processing to be performed in the production system 1 according to the second embodiment. Also, in the second embodiment, a command for control is sent from the controller 20 to the controlled device 30, but in Figure 7 is omitted. Figure 7 As shown, the process of step S21 is the same as the process of step S1. The controlled device 30 generates collection target data based on the setting from the data collection device 10 (step S22), and transmits the collection target data to the controller 20 (step S23).
[0148] In step S22, the controlled device 30 determines whether the collection condition is met independently of the command for control (without the command for control). When it is determined that the collection condition is met, the controlled device 30 generates collection object data. The controlled device 30 sends the collection object data separately from the response to the command for control. Similarly, in the second embodiment, the collection object data may include operation data. The following processing from step S24 to step S26 is the same as the processing from step S6 to step S8. After step S26, the same processing as step S9 and its subsequent steps is performed.
[0149] According to the second embodiment, the controlled device 30 is enabled to generate collection target data without a command for control from the controller 20 .
[0150] [6. Third embodiment]
[0151] In the second embodiment, a case where the controlled device 30 spontaneously transmits the collection object data is described, but the controlled device 30 may be configured to store the collection object data, and the controller 20 may be configured to acquire the collection object data stored in the controlled device 30. That is, the collection object data stored in the controlled device 30 may be read out at the timing of the controller 20. Now, a production system 1 according to a third embodiment is described.
[0152] Figure 8 1 is a flowchart showing an example of processing to be performed in the production system 1 according to the third embodiment. Also, in the third embodiment, a command for control is sent from the controller 20 to the controlled device 30, but in Figure 8 is omitted. Figure 8 As shown, the processing of step S31 and step S32 is the same as the processing of step S21 and step S22, respectively. The controlled device 30 stores the collection object data generated independently of the control command (without the control command) in the memory 32, and the controller 20 obtains the stored collection object data (step S33).
[0153] In step S33, the controlled device 30 accumulates the collection object data until the acquisition request is received from the controller 20, instead of generating and immediately sending the collection object data. In the third embodiment, it is assumed that the operation data is not included in the collection object data, but when the sending timing of the collection object data is exactly the same as the sending timing of the operation data, the operation data can be included in the collection object data. The controller 20 executes an application for collecting the collection object data, and sends an acquisition request for the collection object data to the controlled device 30 at any time. When the controlled device 30 receives the acquisition request, the controlled device 30 sends the stored collection object data to the controller 20. The following processing from step S34 to step S36 is the same as the processing from step S24 to step S26. After step S34, the same processing as step S9 and its subsequent steps is performed.
[0154] According to the second embodiment, the controlled device 30 is enabled to generate collection target data without a command for control from the controller 20 .
[0155] [7. Modification example]
[0156] The present disclosure is not limited to the above-described embodiments, and may be appropriately modified without departing from the spirit of the present disclosure.
[0157] (1) For example, the controller 20 may utilize all or part of the collection object data in controlling the controlled device 30, while sending the collection object data acquired from the controlled device 30 to the data collection device 10. In the modified example (1) of the present disclosure, the controller 20 may specify the data structure of the collection object data, add a timestamp or other information to the collection object data, and then send the collection object data to the data collection device 10.
[0158] The acquisition module 204 in the modified example (1) acquires the collection object data having a predefined data structure. The data structure refers to information indicating what is stored in which part of the collection object data. For example, the format, type, content or extension of the collection object data corresponds to an example of the data structure. It is assumed that the data structure of the collection object data is stored in the third data storage 202. For example, the definition of the data structure of the collection object data can be described in the control program or an application program in the control program. The acquisition module 204 acquires the data structure stored in the third data storage 202.
[0159] The operation control module 203 controls the controlled device 30 by using all or part of the collection object data based on a predefined data structure. The operation control module 203 identifies the data structure of the collection object data acquired by the acquisition module 204 based on the data structure acquired by the acquisition module 204. The operation control module 203 controls the controlled device 30 by using all or part of the collection object data based on the identified data structure. The controlled device 30 is controlled based on the collection object data acquired from the controlled device 30, and thus the control can be referred to as "feedback".
[0160] It is assumed that in the application for feedback, the relationship between the collection object data and the control content is described. The application for feedback may be a part of the control program, or may be a program provided separately from the control program. For example, the operation control module 203 inputs all or part of the identified data structure and the collection object data into the application for feedback, and determines the control content in the feedback. When an application is to be prepared for each data structure of the collection object data (for each type of each collection object data), the operation control module 203 inputs the collection object data into the application corresponding to the identified data structure, and determines the control content in the feedback.
[0161] For example, when the operation control module 203 recognizes that the collection object data is data related to the torque value based on the predefined data structure, the operation control module 203 inputs all or part of the collection object data to an application for correcting the abnormality of the torque value. The application determines the correction amount of the command related to the torque directed to the controlled device 30 based on the value of the input collection object data. In addition, for example, when the operation control module 203 recognizes that the collection object data is data related to the position of the motor based on the predefined data structure, the operation control module 203 inputs all or part of the collection object data to an application for correcting the abnormality of the position of the motor. The application determines the correction amount of the command related to the position of the motor relative to the controlled device 30 based on the value of the input collection object data. Similarly, for another data structure, feedback corresponding to the identified data structure and the collection object data can be performed.
[0162] According to the modification example (1), the collection object data is generated based on a predefined data structure, and the controlled device 30 is controlled by using all or part of the collection object data, so that the controlled device 30 can be controlled using the collection object data while the data is sent to the data collection device 10. For example, the collection object data is immediately used for control on the controller 20 side that is closer to the controlled device 30 to be controlled, so that feedback corresponding to the acquired collection object data can be performed faster than by having the data collection device 10 analyze the collection object data and feed back the analysis result to the controlled device 30.
[0163] (2) In addition, for example, the application on the controlled device 30 side can determine the collection object data without causing the controller 20 to recognize the data structure of the collection object data. In this case, the application on the controller 20 transmits the collection object data to the data collection device 10 without recognizing the data structure of the collection object data, and thus information for identifying which controlled device 30 the collection object data is for can be added. The data structure of the collection object data is recognized by the data collection device 10.
[0164] The data sending module 213 adds identification information related to the controlled device 30 to the collection object data, and sends the collection object data added with the identification information to the data collection device 10. The identification information can be any information that can uniquely identify the controlled device 30, and is, for example, a name, IP address, ID, or other information about the controlled device 30. In the modified example (2) of the present disclosure, a case where the identification information is stored in the third data storage 202 is described, but the identification information may be stored in another storage. For example, a command for control includes identification information about the controlled device 30 to which the command is to be sent. The data sending module 213 adds the identification information to the collection object data acquired from the controlled device 30.
[0165] According to modification example (2), collection target data added with identification information about the controlled device 30 is transmitted, thereby enabling the controller 20 to identify for which controlled device 30 the collection target data about operation is received. As a result, for example, the operation of the controlled device 30 can be accurately analyzed.
[0166] (3) Furthermore, for example, when the collection target data has a large size, the collection target data may be divided and written into a plurality of channels. Fig. 9 is a functional block diagram in the modified example (3) of the present disclosure. Fig. 9As shown, in the modified example (3), in addition to the functions described in the embodiment, a segmentation module 214 is implemented on the controller 20. The segmentation module 214 is mainly implemented by the CPU 21. The segmentation unit 214 is configured to segment the collection object data into a plurality of data segments. For example, the segmentation unit 214 segments the collection object data into a plurality of data segments so that the size of each individual data segment is equal to or less than the size of the channel. The sizes of the individual data segments obtained by segmenting the collection object data may be equal to or different from each other.
[0167] The first writing module 205 writes each segmented data segment into the asynchronous area. For example, the first writing module 205 writes each data segment into the asynchronous area by assigning each data segment to different channels. It is possible to freely set which data is written into which channel. For example, each data segment is stored in the channel so that the order of the data segments in the collection object data matches the order of the channels.
[0168] The data transmission module 213 transmits each data segment written in the asynchronous area to the data collection device 10. The data transmission module 213 may combine the divided data segments into one and then transmit the data, or may transmit the data segments in a divided state. When the data is transmitted in a divided state, the data is combined on the data collection device 10 side. Assuming that when the data segments in a divided state are sequentially transmitted by the data transmission module 213 and combined on the data collection device 10 side, information for identifying that the data belongs to the same collection object data is added to each data segment. The data collection device 10 combines the data segments based on the information, thereby acquiring the collection object data.
[0169] According to the modification example (3), by dividing the collection target data into a plurality of data segments, writing each of the divided data segments in the asynchronous area, and transmitting each of the data segments written in the asynchronous area, the collection target data can be efficiently transmitted.
[0170] (4) Furthermore, for example, the above-mentioned modification examples may be combined.
[0171] In addition, for example, in the embodiment, a case is described where the collection object data is data related to the operation of the controlled device 30, but the collection object data may be data related to the operation of the controller 20. In this case, the generation module 302 is implemented by the CPU 21 of the controller 20. The generation module 302 generates the collection object data related to the operation of the controller 20 based on the detection signal from the sensor connected to the controller 20 and the internal information of the controller 20. The processing flow of sending the collection object data to the data collection device 10 is as described in the embodiment. In addition, for example, in the first embodiment, a case is described where the collection object data is generated and sent based on the command for control, but the collection object data may be generated and sent based on the command for collection separate from the command for control.
[0172] In addition, for example, when writing of the collection object data from the asynchronous area to the buffer area is completed, the collection object data written in the asynchronous area does not need to be erased in particular. In this case, it is sufficient that the transmitted collection object data stored in the asynchronous area is overwritten when new collection object data is acquired. In addition, for example, when sending of the collection object data to the data collection device 10 is completed, there is no need to erase the collection object data written in the buffer area in particular. In this case, it is sufficient that the transmitted collection object data stored in the buffer area is overwritten when new collection object data is acquired.
[0173] Furthermore, for example, each of the functions described above may be implemented by any device included in the production system 1. For example, the function described as being implemented by the data collection device 10 may be implemented by the controller 20 or the controlled device 30. Furthermore, for example, the function described as being implemented by the controller 20 may be implemented by the data collection device 10 or the controlled device 30. Furthermore, for example, each function may be implemented by one computer rather than being shared by a plurality of computers.
[0174] In addition, the above embodiments are given only as specific examples, and the present invention disclosed herein is not limited to the specific configuration and data storage examples of the specific examples. Those skilled in the art may make various modifications to the disclosed embodiments, for example, with respect to the shape and number of physical components, data structures, and the execution order of processing. It should be understood that the technical scope of the present invention disclosed herein includes such modifications.
Claims
1. A production system, in, An industrial machine having a first CPU that controls another industrial machine and an IoT unit capable of communicating with an external device and having a second CPU, The first CPU comprises: an acquisition module configured to acquire first data related to operation of at least one of the industrial machine or the other industrial machine; and a writing module configured to write the first data into an asynchronous area, the asynchronous area of the IoT unit where periodic matching is not performed between the first CPU and the IoT unit being different from a synchronous area of the IoT unit where matching of second data is periodically performed between the first CPU and the IoT unit, The second CPU of the IoT unit includes: A data sending module is configured to send the first data written in the asynchronous area to the external device.
2. The production system according to claim 1, in, The production system comprises: A first determination module configured to determine whether writing of the first data is completed; and a notification sending module, configured to send a predetermined notification to the external device when it is determined that the writing of the first data is completed, wherein the external device is configured to send a predetermined request to the industrial machine when the external device receives the predetermined notification, and The data sending module is configured to send the first data to the external device upon receiving the predetermined request.
3. The production system according to claim 1 or 2, in, The asynchronous area includes a plurality of small areas. The writing module is configured to write the first data by selecting at least one available small area from the plurality of small areas, and The data sending module is configured to send the first data written in the at least one small area to the external device.
4. The production system according to claim 1 or 2, further comprising a second writing module, wherein the second writing module is configured to write the first data written in the asynchronous area into a buffer area different from the synchronous area and the asynchronous area, in, The data transmission module is configured to transmit the first data written in the buffer area to the external device.
5. The production system according to claim 4, wherein: The industrial machine comprises: a second determination module configured to determine whether writing of the first data from the asynchronous area to the buffer area is completed; and The first erasing module is configured to erase the first data written in the asynchronous area when it is determined that writing of the first data from the asynchronous area to the buffer area is completed.
6. The production system according to claim 4, wherein: The industrial machine comprises: a third determination module configured to determine whether the sending of the first data to the external device is completed; and The second erasing module is configured to erase the first data written in the buffer area when the sending of the first data to the external device is completed.
7. The production system according to claim 1 or 2, in, The acquisition module is configured to acquire the first data having a predefined data structure, and The industrial machine is configured to control the other industrial machine by using all or part of the first data based on the predefined data structure.
8. The production system according to claim 1 or 2, in, The first data is data related to the operation of the other industrial machine, and The data transmission module is configured to add identification information related to the other industrial machine to the first data, and transmit the first data to which the identification information is added to the external device.
9. The production system according to claim 1 or 2, in, The industrial machine includes a segmentation module configured to segment the first data into a plurality of data segments, The writing module is configured to write each first data segment obtained by segmentation into the asynchronous area, and The data sending module is configured to send the first data segments written in the asynchronous area to the external device.
10. A data transmission method, comprising: The first CPU acquires first data related to the operation of at least one of an industrial machine having a first CPU controlling another industrial machine and an IoT unit capable of communicating with an external device and having a second CPU, or the another industrial machine; the first CPU writes the first data into an asynchronous area, the asynchronous area of the IoT unit where periodic matching is not performed between the first CPU and the IoT unit being different from a synchronous area of the IoT unit where matching of second data is periodically performed between the first CPU and the IoT unit; and The second CPU transmits the first data written in the asynchronous area to the external device.
11. An information storage medium, which is used to enable an industrial machine having a first CPU that controls another industrial machine and an IoT unit that is capable of communicating with an external device and has a second CPU, the second CPU to send first data related to the operation of the industrial machine or at least one of the other industrial machines to the external device, the first data being written in an asynchronous area, and the asynchronous area of the IoT unit where periodic matching is not performed between the first CPU and the IoT unit is different from the synchronous area of the IoT unit where matching of second data is periodically performed between the first CPU and the IoT unit.
