CN115777096A - Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program - Google Patents

Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program Download PDF

Info

Publication number
CN115777096A
CN115777096A CN202080102678.4A CN202080102678A CN115777096A CN 115777096 A CN115777096 A CN 115777096A CN 202080102678 A CN202080102678 A CN 202080102678A CN 115777096 A CN115777096 A CN 115777096A
Authority
CN
China
Prior art keywords
library
program
data
user
industrial
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080102678.4A
Other languages
Chinese (zh)
Inventor
中田博之
寺田启
齐藤靖之
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of CN115777096A publication Critical patent/CN115777096A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Abstract

The IPC (10) has: an analysis library (13) for acquiring data from an industrial device (31) and analyzing the data; an API (50) that calls the analysis library (13); a display control unit (19) that, if an API reference manual (25) describing the method of using the API (50) is input, causes the API reference manual (25) to be displayed on a display device (30); and a program creation unit (21) that creates a user program (11) using the analysis library (13) and the API (50) in accordance with an instruction from a user.

Description

Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program
Technical Field
The present invention relates to a data analysis program creation support device, a data analysis program creation support method, and a data analysis program creation support program that use an application programming interface.
Background
The industrial device executes various processes in accordance with a user program created by a user of the industrial device. When developing the user program, the user program is created in such a manner that the user program calls a library including various Application programs using an API (Application Programming Interface).
In the API design method described in patent document 1, an API designer performs usability research, which is a validity check of a code sample, in order to create a good API, and corrects the API based on 1 or more usability researches that have been performed.
Patent document 1: japanese patent laid-open publication No. 2005-129027
Disclosure of Invention
However, in the technique of patent document 1, although the API designer can create a good API, a third party other than the API designer cannot understand the specification of the API, and thus cannot create a user program using the API.
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a data analysis program creation support device that enables a third party other than an API designer to easily create a user program using an API.
In order to solve the above problems and achieve the object, a data analysis program creation support device according to the present invention includes: a library that acquires and analyzes data from an industrial device; and an application programming interface that makes calls to the library. In addition, the data analysis program creation support device of the present invention includes: a display control unit that, if reference information describing a method of using an application programming interface is input, displays the reference information on a display device; and a program creation unit that creates a user program using the library and the application programming interface in accordance with an instruction from a user.
ADVANTAGEOUS EFFECTS OF INVENTION
The data analysis program creation support device according to the present invention has an effect that a third party other than the API designer can easily create a user program using an API.
Drawings
Fig. 1 is a diagram showing a configuration of a data analysis system having an IPC according to an embodiment.
Fig. 2 is a diagram showing the structure of an IPC according to an embodiment.
Fig. 3 is a diagram for explaining the relationship between the source code and the execution code.
Fig. 4 is a diagram for explaining a process of creating an execution code from a plurality of source codes.
Fig. 5 is a diagram for explaining a library used in the IPC according to the embodiment.
Fig. 6 is a flowchart showing a processing flow of a process of creating a user program by an IPC according to an embodiment.
Fig. 7 is a flowchart showing a processing flow of the process of analyzing data by the IPC according to the embodiment.
Fig. 8 is a flowchart showing a processing flow of a process of acquiring data from a library included in the IPC according to the embodiment.
FIG. 9 is a diagram showing another configuration example of an IPC according to an embodiment.
Fig. 10 is a diagram showing an example of the hardware configuration for implementing the IPC according to the embodiment.
Detailed Description
Hereinafter, a data analysis program creation support device, a data analysis program creation support method, and a data analysis program creation support program according to embodiments of the present invention will be described in detail with reference to the drawings.
Detailed description of the preferred embodiments
Fig. 1 is a diagram showing a configuration of a data analysis system having an IPC according to an embodiment. The data analysis system 101 includes an IPC (Industrial Personal Computer) 10, a display device 30 connected to the IPC10, and 1 or more Industrial devices connected to the IPC 10. Here, a case where the IPC10 is connected to the industrial devices 31 to 33 via an industrial network or the like will be described.
The data analysis system 101 is applied to a multi-axis control system that operates a machine in multiple axes, and the like. An example of a multi-axis control system is a system having a plurality of servo amplifiers and a controller that controls the plurality of servo amplifiers.
The IPC10 as a program creation support device is a computer that collects and analyzes data from the industrial devices 31 to 33 at the same time. The IPC10 displays information (API reference manual 25 described later) used when creating a program (user program 11 described later) for collecting and analyzing data on the display device 30. The IPC10 collects and analyzes data from the industrial devices 31 to 33 in accordance with the user program 11 created by the users using the industrial devices 31 to 33. Examples of the industrial devices 31 to 33 are devices such as motion controllers and servo amplifiers.
Fig. 2 is a diagram showing the structure of an IPC according to an embodiment. Here, a case where data is collected from the industrial device 31 by the IPC10 will be described. IPC10 includes API 50, analysis library 13, communication IF (InterFace) 14, data input unit 18, display control unit 19, instruction input unit 20, program creation unit 21, and execution control unit 22.
When the IPC10 creates the user program 11 by the program creating unit 21 in accordance with an instruction from the user, the user program 11 is stored in a memory (not shown in fig. 1) included in the IPC 10. The user program 11 is a program created by a user using the industrial device 31. The IPC10 collects and analyzes data from the industrial device 31 by executing the user program 11. The user can use the user program 11 in his company and sell it to another company as part of a system including the industrial device 31.
The API 50 is an interface for the user program 11 to use the parsing library 13. The API 50, the analysis library 13, and the communication IF 14 are created by a manufacturer of the industrial device 31 (hereinafter referred to as a device manufacturer) and provided to a user.
The analysis library 13 includes, for example, an FFT (Fast Fourier Transform) library 15, a wavelet Transform library 16, a frequency characteristic analysis library 17, and the like. Other libraries may be included in the analysis library 13.
The FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 analyze the state and the like of the industrial equipment 31 based on data acquired from the industrial equipment 31, and provide the state of the industrial equipment 31 to the user with ease of understanding. In the following description, the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 may be referred to as a library set.
The FFT library 15 detects how many frequency components the waveform in the time domain contains. The wavelet transform base 16 performs frequency analysis using wavelet functions as basis functions. The frequency characteristic analysis library 17 analyzes the frequency characteristic.
The communication IF 14 has a communication interface function of performing communication with the industrial equipment 31 and acquiring data from the industrial equipment 31. The communication IF 14 acquires data from the industrial equipment 31 in accordance with an instruction from the FFT library 15, the wavelet transform library 16, or the frequency characteristic analysis library 17. The communication IF 14 is stored in the IPC10 as a communication library for executing communication processing.
The data input unit 18 receives the API reference manual 25 and the sample program 26. The data input unit 18, upon receiving the API reference manual 25, inputs the API reference manual 25 to the display control unit 19. Upon receiving the sample program 26, the data input unit 18 inputs the sample program 26 to the display control unit 19 and the program creation unit 21.
The API reference manual 25 is data describing the specification of the API 50. That is, the API reference manual 25 is reference information describing a method of using the API 50. The user can easily understand the method of use of the API 50 by referring to the API reference manual 25. The API reference manual 25 is input to the data input unit 18 via a removable storage medium such as a DVD (Digital Versatile Disc). The API reference manual 25 may be input to the data input unit 18 via a network such as the internet.
The sample program 26 is data representing a specific use case of the API 50. The user refers to the sample program 26 as a reference when creating the user program 11. The user may embed the sample program 26 in the user program 11 as it is. In this case, the user program 11 can easily call up a library such as the FFT library 15 from the user program 11. The API reference manual 25 and the sample program 26 are created by the device manufacturer and provided to the user. The user program 11 of the present embodiment is created by a user using the industrial device 31. The user is a third party other than the API designer.
The display control unit 19 causes the display device 30 to display the API reference manual 25 and the sample program 26. Thus, the user can refer to the API reference manual 25 and the sample program 26. The API reference manual 25 may be written on paper. In this case, the user creates the user program 11 while referring to the API reference manual 25 on paper.
The instruction input unit 20 receives an instruction from a user. The instruction received by the instruction input unit 20 from the user is an instruction for creating the user program 11 and an instruction for executing the user program 11. The user refers to the API reference manual 25 and the sample program 26 and inputs an instruction to the instruction input unit 20. The instruction from the user is transmitted to the instruction input unit 20 via a mouse, a keyboard, or the like, for example.
The instruction input unit 20 transmits an instruction for creating the user program 11 received from the user to the program creating unit 21. The instruction input unit 20 transmits an instruction for executing the user program 11 received from the user to the execution control unit 22.
The program creating unit 21 creates the user program 11 in accordance with an instruction from the user. The user program 11 created by the program creating unit 21 is a program that can call a library in the analysis library 13 using the API 50. The FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 acquire data from the industrial equipment 31 using the communication IF 14 and analyze the data IF called and executed by the user program 11.
The display device 30 displays the analysis result obtained by the analysis library 13, the user program 11, the API reference manual 25, and the sample program 26.
In the present embodiment, since the API reference manual 25 and the sample program 26 created by the device manufacturer are provided to the user, the user can easily create the user program 11 while referring to the API reference manual 25 and the sample program 26. Thus, the IPC10 can create the user program 11 embedded with the library set in accordance with an instruction from the user.
The execution control unit 22 executes the user program 11 if receiving an instruction to execute the user program 11. In this way, the user program 11 calls a library of the library group defined in the user program 11, and acquires and analyzes data from the industrial equipment 31.
The parts other than the user program 11 in the IPC10 are provided by the device manufacturer of the industrial device 31. Further, the sample program 26 may not be provided to the user.
Furthermore, the IPC10 may be manufactured by a device manufacturer or may be manufactured by a vendor other than the device manufacturer. The IPC10 is not limited to an industrial personal computer, and may be a commercially available personal computer. The program creating unit 21 may be stored in a computer provided outside the IPC 10.
Here, a method of creating the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 will be described. Fig. 3 is a diagram for explaining the relationship between the source code and the execution code. Fig. 4 is a diagram for explaining a process of creating an execution code from a plurality of source codes. Fig. 5 is a diagram for explaining a library used in the IPC according to the embodiment. The creation flow of the execution code is shown in fig. 3 to 5.
As shown in fig. 3, in creating the execution code 81 run by the IPC10, the source code 61 that the user can read and understand is created by the user. The object code 71 is created by compiling the source code 61. The object code 71 is data that can be understood by the IPC10 but is difficult for the user to understand. By linking this object code 71, execution code 81 executable by IPC10 is created.
As shown in fig. 4, there may be a plurality of source codes as the source codes 62A and 62B. Source code 62B is the source code called by source code 62A. That is, the source code 62A, 62B is created hierarchically. In this case, source code 62A, 62B are compiled separately, creating object code 72A corresponding to source code 62A and object code 72B corresponding to source code 62B. By linking these object codes 72A, 72B, execution code 82 executable by the IPC10 is created.
As shown in fig. 5, source code 63 created by a user sometimes calls a library 75 that aggregates a plurality of object codes. The library 75 has completed compilation. Object code 73 is created by compiling source code 63. By linking these object code 73 and library 75, execution code 83 executable by the IPC10 is created.
Examples of the library 75 are the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 included in the analysis library 13. These FFT library 15, wavelet transform library 16 and frequency characteristic analysis library 17 are created by the equipment manufacturer. That is, the device manufacturer creates the FFT library 15 by compiling the source code corresponding to the FFT library 15, creates the wavelet transform library 16 by compiling the source code corresponding to the wavelet transform library 16, and creates the frequency characteristic analysis library 17 by compiling the source code corresponding to the frequency characteristic analysis library 17.
In the present embodiment, the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 created by the device manufacturer are provided from the device manufacturer to the user of the IPC 10. The FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 can be understood by the IPC10, but are difficult to understand by the user. Therefore, by distributing the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 as a library, confidentiality of the FFT library 15, the wavelet transform library 16, and the frequency characteristic analysis library 17 is ensured.
Fig. 6 is a flowchart showing a processing flow of a process of creating a user program by an IPC according to an embodiment. IPCs 10 are provided to users by device manufacturers. IPC10 at this stage includes API 50, analysis library 13, and communication IF 14, but does not include user program 11. If the API reference manual 25 and the sample program 26 are provided to the user by the device manufacturer, the API reference manual 25 and the sample program 26 are input to the data input unit 18 of the IPC 10. Thus, the IPC10 receives the API reference manual 25 (step S10). In addition, the IPC10 receives the sample program 26 (step S20). Further, the process of step S10 and the process of step S20 may be performed in an arbitrary order.
Upon receiving the API reference manual 25 and the sample program 26, the data input unit 18 transmits the API reference manual 25 and the sample program 26 to the display control unit 19. Thus, the display control unit 19 of the IPC10 causes the display device 30 to display the API reference manual 25 and the sample program 26 (step S30). Thus, the API reference manual 25 and the sample program 26 are referred to by the user. The API reference manual 25 and the sample program 26 may be displayed on the display device 30 in accordance with instructions from the user.
In addition, the data input section 18, if receiving the sample program 26, sends the sample program 26 to the program creation section 21. The user inputs an instruction to create the user program 11 to the instruction input unit 20. The instruction is sent to the program creating unit 21. The program creating unit 21 creates the user program 11 in accordance with an instruction from the user. In this case, the user program 11 may include the sample program 26. Thus, the IPC10 creates the user program 11 in accordance with the instruction from the user (step S40).
Fig. 7 is a flowchart showing a processing flow of the process of analyzing data by the IPC according to the embodiment. The instruction input unit 20 of the IPC10, if receiving an instruction to execute the user program 11 from the user, transmits the instruction to the execution control unit 22. Upon receiving the instruction to execute the user program 11, the execution control unit 22 activates the user program 11 (step S110) and executes the user program 11. This makes it possible to call a library in the order of the user program 11, the API 50, and the analysis library 13. That is, the user program 11 calls the API 50 (step S120), and the API 50 calls the library in the analysis library 13. The library called by the user program 11 is specified within the user program 11. Here, a case where the FFT library 15 is called by the user program 11 will be described. In this case, the user program 11 calls the FFT library 15 from the API 50 (step S130).
IF called, the FFT library 15 acquires data from the industrial equipment 31 via the communication IF 14 (step S140). The data acquisition process is executed until a predetermined amount of data is collected. The predetermined amount of data is sufficient to realize analysis. The predetermined amount may be set by the creator of the FFT library 15 or by the user of the IPC 10. The amount of data is set in the API 50.
The FFT library 15 determines whether or not data of an amount necessary for analysis is acquired (step S150). That is, the FFT library 15 determines whether or not a predetermined amount of data has been acquired.
IF the data of the amount necessary for analysis has not been acquired (No at step S150), the FFT library 15 acquires the data from the industrial equipment 31 via the communication IF 14 (step S140). If the FFT library 15 acquires data of the amount necessary for analysis (Yes at step S150), the data is analyzed based on the acquired data (step S160). The execution control unit 22 sends the analysis result obtained by the FFT library 15 to the display control unit 19. The display control unit 19 causes the display device 30 to display the analysis result obtained by the FFT library 15 (step S170).
Next, the operation of the FFT library 15 and other libraries will be described. Here, a case where the FFT library 15 acquires data from the industrial equipment 31 will be described. The FFT library 15 needs to transmit an accurate data acquisition command to the industrial device 31 in order to acquire accurate data for analysis from the industrial device 31, but the data acquisition commands are different in the industrial devices 31 to 33 in many cases. The data acquisition command is a command for acquiring data from any one of the industrial devices 31 to 33.
Therefore, in order to select an accurate data acquisition command, the FFT library 15 needs to acquire an accurate device ID (Identification) depending on the model of the industrial device 31. The device ID is device identification information for identifying the industrial device 31.
The FFT library 15 executes a series of processes consisting of a process of acquiring the device ID of the industrial device 31, a process of creating a data acquisition command to the industrial device 31 in accordance with the device ID of the industrial device 31, and a process of receiving data from the industrial device 31. Thereby, the user can use the API 50 without considering the model of the industrial equipment 31.
When acquiring the device ID of the industrial device 31, the FFT library 15 issues an ID acquisition command to the industrial devices 31 to 33. The ID acquisition command is a command for acquiring a device ID from a desired industrial device. When there are a plurality of industrial devices such as the industrial devices 31 to 33, a plurality of ID acquisition commands for the industrial devices may be prepared. Therefore, the FFT library 15 continues to issue various ID acquisition commands until the correct device ID can be acquired from the industrial device 31.
Fig. 8 is a flowchart showing a processing flow of a process of acquiring data from a library included in the IPC according to the embodiment. Here, a process in the case where the FFT library 15 acquires data from the industrial equipment 31 will be described.
The FFT library 15 issues an ID acquisition command for the industrial equipment 31 (step S210). The ID acquisition command issued by the FFT library 15 is a command for acquiring a device ID from the industrial device 31. When the ID acquisition command issued from the FFT library 15 is a correct ID acquisition command, the device ID of the industrial device 31 is transmitted from the industrial device 31.
The FFT library 15 determines whether or not the device ID of the industrial device 31 is acquired (step S220). If the device ID of the industrial device 31 has not been acquired (No at step S220), the FFT library 15 issues another ID acquisition command different from the issued ID acquisition command (step S230).
The FFT library 15 repeats the process of issuing another ID acquisition command different from the issued ID acquisition command until the device ID of the industrial device 31 can be acquired. That is, the FFT library 15 repeats the processing of steps S220 and S230 until the device ID of the industrial device 31 can be acquired.
When the device ID of the industrial device 31 is acquired (Yes at step S220), the FFT library 15 determines whether or not the industrial device 31 is an industrial device whose device version needs to be acquired (step S240).
If the industrial device 31 does not need to acquire the device version (No at step S240), the FFT library 15 acquires data from the industrial device 31. At this time, the FFT library 15 transmits a data acquisition command including the device ID of the industrial device 31 to the industrial device 31 via the communication IF 14. Thereby, the FFT library 15 acquires data from the industrial equipment 31 via the communication IF 14 (step S260).
On the other hand, if the industrial device 31 is an industrial device for which the device version needs to be acquired (Yes at step S240), the FFT library 15 acquires the device version of the industrial device 31 from the industrial device 31 (step S250). At this time, the FFT library 15 transmits a version acquisition command, which is a command for acquiring the device version of the industrial device 31, to the industrial device 31. The version acquisition command includes the device ID of the industrial device 31. Thereby, the device version of the industrial device 31 is transmitted from the industrial device 31 to the FFT library 15. Then, the FFT library 15 transmits a data acquisition command to the industrial equipment 31 via the communication IF 14. The data acquisition command in this case is a command corresponding to the device version of the industrial device 31. Thereby, the FFT library 15 acquires data from the industrial equipment 31 via the communication IF 14 (step S260).
The FFT library 15 determines whether or not data of an amount necessary for analysis is acquired (step S270). IF the data of the amount necessary for analysis has not been acquired (No at step S270), the FFT library 15 acquires the data from the industrial equipment 31 via the communication IF 14 (step S260). If the FFT library 15 acquires data of the amount necessary for analysis (Yes at step S270), the data acquisition process ends.
The industrial device 31 sometimes implements version upgrades as needed. In this case, in order to enhance the function of data acquisition or to improve the performance of data acquisition, a new data acquisition command more convenient than the data acquisition command before version-up may be prepared. Therefore, the FFT library 15 of the present embodiment acquires the device version from the industrial device 31 in order to check whether the new data acquisition command is usable or not.
The FFT library 15 may acquire the model of the industrial device 31 instead of the device version, and acquire data using a data acquisition command corresponding to the model. In this case, the FFT library 15 transmits a model acquisition command, which is a command for acquiring the model of the industrial apparatus 31, to the industrial apparatus 31. The model acquisition command includes the device ID of the industrial device 31.
The FFT library 15 may acquire the device version and model, and acquire data using a data acquisition command corresponding to the device version and model. In this case, the FFT library 15 transmits a model version acquisition command, which is a command for acquiring the device version and model of the industrial device 31, to the industrial device 31. The model version acquisition command includes the device ID of the industrial device 31.
The fft library 15 also executes data acquisition processing for the industrial devices 32 and 33 by the same processing as the data acquisition processing for the industrial device 31. In the IPC10, the wavelet transform library 16 and the frequency characteristic analysis library 17 also acquire data from the industrial devices 31 to 33 by the same processing as the FFT library 15.
In this way, in the data analysis system 101, the API reference manual 25 and the sample program 26 are provided to the IPC10, and the IPC10 displays the API reference manual 25 and the sample program 26 on the display device 30. Thus, the user can create the user program 11 while referring to the API reference manual 25 and the sample program 26. Thus, the data analysis system 101 can easily perform adjustment of the industrial equipment 31 based on the analysis result of the data acquired from the industrial equipment 31.
In the case of the industrial devices 31 to 33, the hardware of the IPC10 is assisted by the application program as a library group. In the present embodiment, when a device manufacturer who develops IPC10 as hardware develops library groups, the library groups are provided to a user of IPC10 together with API reference manual 25 and sample program 26.
Only a device manufacturer who has sufficient knowledge of the hardware of the industrial devices 31 to 33 may create a high-speed and high-precision analysis function. Therefore, it is difficult for the user to create a user program having a high-speed and high-precision analysis function. On the other hand, in the present embodiment, the analysis function is made into a library, and the API reference manual 25 and the sample program 26 are provided to the user. Thus, the user can create the user program 11 in which the library set is embedded, without knowing the technical know-how of the analysis, while referring to the API reference manual 25 and the sample program 26.
In the embodiment, the case where 1 IPC10 executes both creation of the user program 11 and analysis of data has been described, but creation of the user program 11 and analysis of data may be executed by different IPCs.
FIG. 9 is a diagram showing another configuration example of an IPC according to an embodiment. Of the components in fig. 9, those that realize the same functions as those of the IPC10 shown in fig. 2 are given the same reference numerals, and redundant description thereof is omitted. Here, a case will be described where the IPC for creating the user program 11 is IPC 10B, and the IPC for analyzing data using the user program 11 is IPC 10A. Here IPC 10A collects data from industrial equipment 31.
IPC 10A includes API 50, analysis library 13, communication IF 14, data input unit 18A, display control unit 19A, instruction input unit 20A, and execution control unit 22.
The IPC 10B has a data input unit 18B, a display control unit 19B, an instruction input unit 20B, a program creation unit 21, and an output unit 23.
When the program creating unit 21 creates the user program 11 in accordance with an instruction from the user, the IPC 10B stores the user program 11 in a memory (not shown in fig. 9) included in the IPC 10A. The IPC 10B may transmit the user program 11 to the IPC 10A via the communication unit, or may store the user program in the IPC 10A via a storage medium.
The data input unit 18B receives the API reference manual 25 and the sample program 26. The data input unit 18B, upon receiving the API reference manual 25, inputs the API reference manual 25 to the display control unit 19B. Upon receiving the sample program 26, the data input unit 18B inputs the sample program 26 to the display control unit 19B and the program creation unit 21.
The display control unit 19B causes the display device 35 to display the API reference manual 25 and the sample program 26. Thus, the user can refer to the API reference manual 25 and the sample program 26. The display control unit 19B may display at least one of the API reference manual 25 and the sample program 26 on the display device 30.
The instruction input unit 20B receives an instruction from a user. The instruction received from the user by the instruction input unit 20B is an instruction for creating the user program 11. The user refers to the API reference manual 25 and the sample program 26 and inputs an instruction to the instruction input unit 20B. The instruction from the user is transmitted to the instruction input unit 20B via a mouse, a keyboard, or the like, for example.
The instruction input unit 20B transmits an instruction for creating the user program 11 received from the user to the program creating unit 21.
The program creating unit 21 creates the user program 11 in accordance with an instruction from the user. The program creating unit 21 stores the created user program 11 in a memory or the like included in the IPC 10A. The output unit 23 outputs the user program 11 stored in the memory or the like to the data input unit 18A. Further, the user program 11 may be transmitted from the IPC 10B to the IPC 10A by communication, or the user program 11 may be transmitted via a storage medium.
The display device 35 displays the user program 11, the API reference manual 25, and the sample program 26.
Upon receiving the user program 11 output from the output unit 23, the data input unit 18A stores the user program 11 in a memory (not shown in fig. 9) of the IPC 10A.
The analysis library 13 of the API 50 is the same analysis library as the analysis library 13 described in fig. 2.
The instruction input unit 20A receives an instruction from a user. The instruction received from the user by the instruction input unit 20A is an instruction for executing the user program 11. The instruction from the user is transmitted to the instruction input unit 20A via a mouse, a keyboard, or the like, for example. The instruction input unit 20A transmits an instruction for executing the user program 11 received from the user to the execution control unit 22.
The execution control unit 22 executes the user program 11 if receiving an instruction to execute the user program 11. In this way, the user program 11 calls a library of a library group defined in the user program 11, and acquires and analyzes data from the industrial equipment 31.
Here, the hardware configuration of the IPC10 will be explained. Fig. 10 is a diagram showing an example of a hardware configuration for realizing the IPC according to the embodiment.
The IPC10 can be realized by an input device 42, a processor 41, a memory 43, an output device 44, and a communication device 45. Examples of the Processor 41 include a CPU (Central Processing Unit, also referred to as a Central Processing Unit, a Processing Unit, an arithmetic Unit, a microprocessor, a microcomputer, a DSP (Digital Signal Processor), and a system LSI (Large Scale Integration). Examples of the Memory 43 are a RAM (Random Access Memory) and a ROM (Read Only Memory).
The IPC10 is realized by reading out, executing, by the processor 41, a data analysis program stored in the memory 43 for executing the actions of the IPC10 and executable by a computer, creating an auxiliary program. The data analysis program creation support program executed by the IPC10 is a display program for displaying the API reference manual 25 and the sample program 26, a creation program for creating the user program 11 in accordance with an instruction from the user, and the user program 11 for acquiring and analyzing data from the industrial devices 31 to 33. Further, the data analysis program creation support program may not have the user program 11. The display program, creation program, and user program 11 for executing the operation of the IPC10 can also be said to be a flow or method for causing a computer to execute the IPC 10.
The display program, creation program, and user program 11 executed by the IPC10 have a module configuration including the execution control unit 22, program creation unit 21, and display control unit 19, and are loaded on the main storage device, and are generated on the main storage device. Thus, the processor 41 executes the functions of the execution control unit 22, the program creation unit 21, and the display control unit 19. The processing realized by the display program corresponds to the processing performed by the display control section 19, the processing realized by the creation program corresponds to the processing performed by the program creation section 21, and the processing realized by the user program 11 corresponds to the processing performed by the execution control section 22.
The input device 42 performs the functions of the data input unit 18 and the instruction input unit 20. That is, the input device 42 receives instructions from the user, the API reference manual 25, and the sample program 26, and sends the instructions to the processor 41.
The memory 43 is used as a temporary memory when various processes are executed by the processor 41. The memory 43 stores the user program 11, the API 50, the API reference manual 25, the sample program 26, the communication IF 14, the analysis library 13, and the like.
The output device 44 outputs the API reference manual 25 and the sample program 26 to the display device 30. The communication device 45 transmits an ID acquisition command, a version acquisition command, and a data acquisition command to the industrial devices 31 to 33, and receives device IDs, device versions, and data for analysis from the industrial devices 31 to 33.
The display program, the creation program, and the user program 11 may be provided as a computer program product stored in a computer-readable storage medium as files in an installable format or an executable format. The display program, the creation program, and the user program 11 may be provided to the IPC10 via a network such as the internet. The functions of the IPC10 may be partly implemented by dedicated hardware such as a dedicated circuit, and partly implemented by software or firmware.
In this way, in the embodiment, if the API reference manual 25 describing the method of using the API 50 is input to the IPC10, the display control unit 19 causes the display device 30 to display the API reference manual 25. Thus, the user can easily create the user program 11 by referring to the API reference manual 25, and the library group using the API 50 is embedded in the user program 11.
Further, if the sample program 26 is input to the IPC10, the display control unit 19 causes the display device 30 to display the sample program 26. Thus, the user can easily create the user program 11 with reference to the sample program 26. Further, since the device manufacturer provides the analysis function to the user as a library set, it is possible to provide the user with a recipe that is not intended to be disclosed to another company embedded in the library set. Thus, the secret of the know-how can be ensured.
The device manufacturer provides the library set having the parsing function to the 2 nd company which is a partner application provider of the device manufacturer, and thus opportunities for the 3 rd company to adopt industrial devices such as servo amplifiers created by the device manufacturer via the application created by the 2 nd company are increased. In addition, the device manufacturer can anticipate the profit by providing advanced parsing functions as a charging option.
The configuration shown in the above embodiment is an example, and may be combined with other known techniques, and a part of the configuration may be omitted or modified within a range not departing from the gist thereof.
Description of the reference numerals
10. 10A, 10B ipc,11 user program, 13 analysis library, 14 communication IF,15FFT library, 16 wavelet transform library, 17 frequency characteristic analysis library, 18A, 18B data input section, 19A, 19B display control section, 20A, 20B instruction input section, 21 program creation section, 22 execution control section, 23 output section, 25API reference manual, 26 sample program, 30, 35 display device, 31 to 33 industrial equipment, 41 processor, 42 input device, 43 memory, 44 output device, 45 communication device, 50api,61, 62A, 62B, 63 source code, 71, 72A, 72B, 73 target code, 75 library, 81 to 83 execution code, 101 data analysis system.

Claims (8)

1. A data analysis program creation assistance device is characterized by comprising:
a library that acquires and analyzes data from an industrial device;
an application programming interface that calls the library;
a display control unit that, if reference information describing a method of using the application programming interface is input, causes a display device to display the reference information; and
and a program creating unit that creates a user program using the library and the application programming interface in accordance with an instruction from a user.
2. The data parser creation assistance device according to claim 1,
the display control unit displays a sample program, which is a sample program of the application programming interface, on the display device if the sample program is received.
3. The data parser creation assistance apparatus according to claim 1 or 2,
the library issues an identification information acquisition command for acquiring, from the industrial device, device identification information for identifying the industrial device, generates a data acquisition command for acquiring the data from the industrial device based on the device identification information acquired from the industrial device, and transmits the data acquisition command to the industrial device.
4. The data parser creation assistance device according to claim 3,
the library generates a version acquisition command for acquiring a version of the industrial device from the industrial device based on the device identification information acquired from the industrial device, transmits the version acquisition command to the industrial device, and generates the data acquisition command based on the version and the device identification information, and transmits the data acquisition command to the industrial device.
5. The data parser creation assistance device according to claim 3,
the library generates a model acquisition command for acquiring a model of the industrial device from the industrial device based on the device identification information acquired from the industrial device, transmits the model acquisition command to the industrial device, and generates the data acquisition command based on the model and the device identification information, and transmits the data acquisition command to the industrial device.
6. The data parser creation assistance apparatus according to any one of claims 1 to 5,
also provided are:
a communication interface called by the library, which performs communication with the industrial equipment; and
and a control unit that acquires and analyzes data from the industrial equipment by executing the user program using the application programming interface, the library, and the communication interface.
7. A data analysis program creation assistance method is characterized by comprising the following steps:
a display step in which, if reference information describing a method of using an application programming interface is input, a display control unit displays the reference information on a display device; and
a creation step in which a program creation unit creates, in response to an instruction from a user, a user program using a library for acquiring and analyzing data from an industrial device and an application programming interface for calling the library.
8. A data analysis program creation assistance program that causes a computer to execute the steps of:
a display step in which, if reference information describing a method of using an application programming interface is input, a display control unit displays the reference information on a display device; and
a creation step in which a program creation unit creates, in response to an instruction from a user, a user program using a library for acquiring and analyzing data from an industrial device and an application programming interface for calling the library.
CN202080102678.4A 2020-07-03 2020-07-03 Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program Pending CN115777096A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/026203 WO2022003955A1 (en) 2020-07-03 2020-07-03 Data analysis program creation assistance device, data analysis program creation assistance method, and data analysis program creation assistance program

Publications (1)

Publication Number Publication Date
CN115777096A true CN115777096A (en) 2023-03-10

Family

ID=77915261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080102678.4A Pending CN115777096A (en) 2020-07-03 2020-07-03 Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program

Country Status (3)

Country Link
JP (1) JP6945766B1 (en)
CN (1) CN115777096A (en)
WO (1) WO2022003955A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5088542B2 (en) * 2007-06-15 2012-12-05 横河電機株式会社 Data processing device
JP5389857B2 (en) * 2011-05-11 2014-01-15 みずほ情報総研株式会社 Development support system, development support method, and development support program
CN103891201B (en) * 2011-09-19 2018-03-30 塔塔咨询服务有限公司 For the exploitation of the application and service based on sensing data and the calculating platform of deployment
JP6212657B2 (en) * 2014-12-09 2017-10-11 株式会社野村総合研究所 Development support system
JP2017146684A (en) * 2016-02-16 2017-08-24 株式会社日立製作所 Development system and development method
JP6873868B2 (en) * 2017-08-23 2021-05-19 株式会社日立製作所 Data analysis processing support device and data analysis processing support method

Also Published As

Publication number Publication date
JPWO2022003955A1 (en) 2022-01-06
JP6945766B1 (en) 2021-10-06
WO2022003955A1 (en) 2022-01-06

Similar Documents

Publication Publication Date Title
CN109840206B (en) Data testing method, device, terminal and storage medium
RU2643484C2 (en) Generation of own code from code in intermediate language for application
CN111538942B (en) Expression processing method, electronic device and storage medium
US20110126179A1 (en) Method and System for Dynamic Patching Software Using Source Code
KR101110241B1 (en) Program test device and program
CN111459495A (en) Unit test code file generation method, electronic device and storage medium
US7765535B2 (en) Software development tool program
JP4229459B2 (en) Test sequencer and method for managing and executing sequence items
CN113704110A (en) Automatic testing method and device for user interface
CN112988862A (en) Configurable data visualization method and device
KR20140050323A (en) Method and apparatus for license verification of binary file
US20080127061A1 (en) Method and system for editing code
Feuerstack et al. Automated usability evaluation during model-based interactive system development
CN115777096A (en) Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program
CN111930398A (en) Application program updating method, device, system, medium and equipment
US10310958B2 (en) Recording medium recording analysis program, analysis method, and analysis apparatus
CN115904384A (en) Configuration method, device and equipment for application program release and storage medium
CN114356783A (en) Method and device for automatically generating unit test code, storage medium and equipment
CN114416099A (en) Model integration method based on information physical system and related components
KR20140121583A (en) Method and system for certifying application
CN109445798B (en) LuaJIT byte code processing method, device and storage medium
JP2008003841A (en) Build processing method, device and program
US20120330878A1 (en) Conventions for inferring data models
JP6965202B2 (en) Analytical equipment, analysis method and program
Di Martino et al. Automatic dynamic data structures recognition to support the migration of applications to the cloud

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination