Analysis device and computer-readable recording medium
Patent Information
- Application Number
- CN202480089949.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-28
- Publication Date
- 2026-10-23
Smart Images

Figure CN122971815A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to analytical apparatus and computer-readable recording media. Background Technology
[0002] In numerical control programs executed by control devices to control industrial machinery such as machine tools and robots, numerical instructions (G-codes) and movement quantities are used. These values can be specified using variables. The value of a variable is specified by its variable number. Besides directly specifying the value of the variable within the numerical control program, numerical control programs that flexibly respond to various situations can be created by changing the value of the variable in response to user operations, changes in the state of the industrial machinery, and changes in peripheral equipment (e.g., Patent Document 1). When using multiple variables, memory is pre-stored according to the number of variables used.
[0003] Existing technical documents
[0004] Patent documents
[0005] Patent Document 1: Japanese Patent Application Publication No. 2021-026309 Summary of the Invention
[0006] The problem that the invention aims to solve
[0007] If the number of variables in a numerical control program increases, it becomes a list of variable numbers, making the program difficult to read.
[0008] On-site, the aim is to improve the readability of numerical control programs.
[0009] Methods for solving problems
[0010] The analytical apparatus disclosed herein analyzes the variables used in the numerical control program to generate computational information, and generates AI based on the computational information using large-scale language models (LLM) to generate information on the role of each variable, thereby solving the aforementioned problem.
[0011] Furthermore, one aspect of this disclosure is an analysis apparatus comprising: a computational information generation unit that generates computational information that associates variables included in a program involving industrial machinery with access information for those variables; a prompt generation unit that generates a prompt that queries the function information of the variables; a sending unit that sends the prompt to a dialog-type response device; a receiving unit that receives a response containing function information generated by the dialog-type response device based on the prompt; a program updating unit that updates the program based on the computational information and the function information; and an output unit that outputs the updated program by the program updating unit. Attached Figure Description
[0012] Figure 1 This is a schematic hardware structure diagram of the parsing apparatus according to one embodiment of the present disclosure.
[0013] Figure 2 This is a block diagram illustrating the general functionality of the analytical apparatus of the first embodiment.
[0014] Figure 3 This is a schematic diagram illustrating an example of a numerical control program.
[0015] Figure 4 This is a schematic diagram illustrating other examples of numerical control programs.
[0016] Figure 5 This is a schematic diagram illustrating an example of computational information from a numerical control program.
[0017] Figure 6 This is a schematic diagram representing other examples of computational information in a numerical control program.
[0018] Figure 7 This is a schematic diagram illustrating an example of a sequence program.
[0019] Figure 8 This is a schematic diagram illustrating an example of computational information for a sequence program.
[0020] Figure 9 This is a diagram illustrating an example of an external application.
[0021] Figure 10 This is a schematic diagram illustrating an example of computational information from an external application.
[0022] Figure 11 This is a diagram illustrating an example of a template.
[0023] Figure 12 This is a diagram illustrating an example of a prompt.
[0024] Figure 13 This is a schematic diagram illustrating an example of the response of a dialog-type response device.
[0025] Figure 14 This is a schematic diagram illustrating an example of an updated numerical control program.
[0026] Figure 15 This is a schematic diagram representing other examples of the updated numerical control program.
[0027] Figure 16 This is a diagram illustrating other examples of prompts.
[0028] Figure 17 This is a diagram illustrating an example of how the relationship between the value of a variable and an instruction can be defined.
[0029] Figure 18 This is a schematic diagram illustrating an example of how a timeline diagram displays information about the transitions of variables. Detailed Implementation
[0030] The following is related to the appendix. Figure 1 The embodiments of this disclosure will now be described. Furthermore, in the following description, structures having the same or similar functions will be labeled with the same symbols. Also, repeated descriptions of these structures will sometimes be omitted.
[0031] In this application, "based on XX" means "at least based on XX," and includes cases based on other elements besides XX. Furthermore, "based on XX" is not limited to the direct use of XX, but also includes cases where XX has been processed or manipulated. "XX" can be any element (e.g., any information).
[0032] [First Implementation Method]
[0033] Figure 1 This is a schematic hardware structure diagram showing the main parts of the parsing device according to the first embodiment of this disclosure. The parsing device 1 of this embodiment can be implemented, for example, on a control device for controlling industrial machinery. Furthermore, the parsing device 1 can be implemented, for example, on a personal computer installed with the control device, a personal computer connected to the control device via a wired / wireless network, a unit computer, a fog computer 6, a cloud computer 7, or a similar computer. In this embodiment, an example is shown where the parsing device 1 is installed on a computer connected to the control device for controlling industrial machinery via a network.
[0034] The parsing device 1 in this embodiment has a CPU 11, which is the processor that controls the entire parsing device 1. The CPU 11 reads the system program stored in the ROM 12 via the bus 22 and controls the entire parsing device 1 according to the system program. Temporary calculation data, display data, and various data obtained from external sources are temporarily stored in the RAM 13.
[0035] The non-volatile memory 14 is composed of, for example, a battery-backed memory (not shown) or an SSD (Solid State Drive), and maintains its storage state even when the power supply to the parsing device 1 is disconnected. The non-volatile memory 14 stores programs and data read from the external device 72 via the interface 15, programs and data input via the input device 71, programs and data obtained from the control device 3 controlling the industrial machinery 4 and other devices via the network 5. The programs and data stored in the non-volatile memory 14 can also be expanded in the RAM 13 during execution / use. Furthermore, various system programs, such as known parsing programs, are pre-written into the ROM 12.
[0036] Interface 15 is used to connect the CPU 11 of the parsing device 1 to an external device 72 such as a USB device. System programs, setting data, etc., are read from the external device 72. Furthermore, programs and setting data created or edited within the parsing device 1 can be stored in an external storage unit via the external device 72.
[0037] Interface 20 is used to connect the CPU 11 of the parsing device 1 to a wired or wireless network 5. Network 5 can communicate using technologies such as RS-485 serial communication, Ethernet communication, optical communication, wireless LAN, Wi-Fi, and Bluetooth. A control device 3 that controls at least one piece of industrial machinery 4, a dialog-type response device 2 that responds to user inquiries, a cloud computer 6, and a cloud computer 7 are connected to network 5, and data is exchanged between them and the parsing device 1.
[0038] Data read into the memory, data obtained as a result of executing programs, etc., are output and displayed on the display device 70 via interface 17. In addition, the input device 71, which consists of a keyboard, indicator devices, voice input devices, etc., transmits instructions and data based on user operations to the CPU 11 via interface 18.
[0039] The conversational response device 2 is configured to return a response text to a given text. The conversational response device 2 has a large-scale language model that has learned to respond to a given text. This model can be, for example, a known model such as BERT or Transformer. The large-scale language model learns the probability of each text being a response to a given text when it is input. It also learns the probability of other texts following that text. Through repeated learning, the large-scale language model outputs a text string with high probability as a response to a given text when it is input. During learning, depending on how it learns to respond to a given text, the conversational response device 2 can be used for purposes such as dialogue, question answering, text summarization, text editing, text translation, text conversion, text modification, text optimization, text explanation, text detection, recognition, prediction, judgment, code generation, image generation, and comprehensive judgment.
[0040] The analysis device 1 disclosed herein is based on a connection to a dialog-type response device 2 via a network 5. This dialog-type response device 2, for example, has a model that has been trained based on various information publicly available on the Internet. Examples of publicly available information include manuals for the control device 3 and industrial machinery 4, manuals for programming languages such as numerical control programming languages, PLC languages, and C languages, and publicly available technical documents related to these programming languages. If necessary, additional training (fine-tuning) can be performed in advance using various documents including specifications for the control device 3 and industrial machinery 4, specifications for programming languages such as numerical control programming languages, PLC languages, and C languages, and technical documents related to these programming languages. These documents show the names of system variables, sample function codes, functions, etc.; therefore, by narrowing the information to such a scope, a dialog-type response device 2 can be prepared that returns a response to queries with a certain degree of accuracy.
[0041] Figure 2 This diagram is a schematic block diagram illustrating the functions of the analysis apparatus 1 according to the first embodiment of this disclosure. The functions of the analysis apparatus 1 of this embodiment are described by... Figure 1 The parsing device 1 shown has a CPU 11 that executes system programs and controls the operation of each part of the parsing device 1.
[0042] The parsing device 1 of this embodiment includes: a program acquisition unit 100, a calculation information generation unit 110, a prompt generation unit 130, a transmission unit 140, a receiving unit 150, a program update unit 170, and an output unit 190. Furthermore, a template storage unit 200 is provided in the RAM 13 or non-volatile memory 14 of the parsing device 1, which pre-stores templates related to the prompts.
[0043] The program acquisition unit 100 acquires the program executed on the control device 3 for controlling the industrial machinery 4. This program may be, for example, a numerical control program. Alternatively, it may be a sequence program executed on a PLC (Programmable Logic Controller) (not shown) included with the control device 3. Furthermore, it may also be the source code of an external application that accesses variables used in the numerical control program. This source code is written in languages such as C, C++, or C#. The program acquisition unit 100 may also acquire programs stored in RAM 13 or non-volatile memory 14 according to user operations on the input device 71. Additionally, it may acquire programs stored in external devices 72. Furthermore, it may acquire programs from the control device 3, the cloud computer 6, or the cloud computer 7 via the network 5. The program acquisition unit 100 outputs the acquired program to the computational information generation unit 110. Additionally, the program acquisition unit 100 outputs the acquired program to the prompt generation unit 130 and the program update unit 170.
[0044] The computation information generation unit 110 parses the program acquired by the program acquisition unit 100 and generates computation information that associates the variables contained in the program with the access information of those variables. Figure 3 , Figure 4 This is a schematic diagram illustrating an example of a numerical control program acquired by the program acquisition unit 100. In the numerical control program, variables are represented by placing a numerical value after "#". Figure 3 In numerical control programs, for example, "#100", "#101", "#102", "#118600", "#118650", "#300", and "#500" are variables. Additionally, in... Figure 4 In the numerical control program, "#101", "#102", "#103", "#300", and "#500" are variables. The calculation information production department 110 extracts such variables from the numerical control program.
[0045] The computational information production unit 110 extracts the location of the processing program for the variables read and written from the processing program, as well as the information involved in that read and write operation. Figure 3 In the example, for instance, at position N0102, the variable "#100" is substituted (written) into the value obtained by adding variables "#101" and "#102". Additionally, the values of variables "#100" and "#101" are read from the same position N0102. The calculation information generation unit 110 generates access information containing information related to such access actions for each variable. Furthermore, it generates calculation information that associates this access information with each variable.
[0046] Figure 5 It means Figure 3 A table illustrating examples of computational information involved in the numerical control program. Additionally, Figure 6 It means Figure 4 A table or diagram illustrating examples of the computational information involved in the numerical control program. In Figure 5 , 6 In the access information column, the reference numeral "[W]" indicates that a write operation is in progress, and "[R]" indicates that a read operation is in progress. The access information includes at least the information related to such an access action. Additionally, "N" and the following four digits represent the sequence number within the numerical control program performing the read / write operation. The access information may also include information related to the location of the access action performed on a variable within such a numerical control program. Furthermore, in the access information related to writing, the value, variable, mathematical expression, etc., following ":" indicates the value written to that variable. Thus, the access information related to writing to a variable can include the value, variable, formula, etc., representing the value written to that variable. Regarding... Figure 5 ,6 The illustrated calculation information, such as the variable "#101" contained in the numerical control program O0001, is written to the position of serial number N0102 as the value calculated by the mathematical expression "#100+#102". It is then read from the position of serial number N0103.
[0047] Figure 7 This is a schematic diagram illustrating an example of a sequence program acquired by the program acquisition unit 100. The sequence program, for example, includes an input data structure and a ladder logic. The input data structure represents the function code of the function provided by the sequence program, the variable number of the variable accessed through the sequence program, and the set value set for that variable. Furthermore, the ladder logic defines the input / output of signals and the access actions involved in reading and writing variables within the sequence program. Figure 7 The example represents a sequence of procedures for setting the value of variable "#500". Within this sequence, a ladder logic function sets the value of variable "#500" to 20 if the value of signal "R100.0" is 1, and sets the value of variable "#500" to 10 if the value of signal "R100.0" is 0.
[0048] Figure 8 It means Figure 7 A table or diagram illustrating examples of computational information related to the numerical control program. Figure 8 In this context, the condition following "[W]" indicates the condition for performing an access action on a variable. The access information may also include information related to the conditions for performing an access action on a variable within such a sequence of procedures.
[0049] Figure 9 This is a schematic diagram illustrating an example of the source code of an external application acquired by the program acquisition unit 100. In the external application, variables of the numerical control program are accessed by executing specified library functions. Figure 9 In the example, by accessing a library function like "cnc_set_values()", values can be written to specified variables. In the constructor that is designated as the third argument to the function "cnc_set_values()", the variable number is specified (in... Figure 9 In the example, it's "Macro.datano") and the value to be set (in Figure 9 In the example, it's "Macro.mcr_val", thus setting a value for the specified variable. Figure 9 In the example, the value of the variable "#300" is set to 50. Figure 10 It means Figure 9 A table or diagram illustrating examples of computational information involved in the source code of an external application.
[0050] Furthermore, the forms of accessing information are not limited to Figure 5, 6 The forms illustrated in examples 8 and 10. Any form is acceptable as long as the procedure for accessing each variable, the access action, and the value written to the variable through that access action are understood. The calculation information generation unit 110 outputs the calculation information thus generated to the prompt generation unit 130 and the program update unit 170.
[0051] The prompt generation unit 130 generates a prompt that can be input into the dialog-type response device 2 based on the program obtained by the program acquisition unit 100 and the calculation information generated by the calculation information generation unit 110. The prompt generated by the prompt generation unit 130 is a prompt for querying function information, which indicates the function of each variable included in the program obtained by the program acquisition unit 100. The prompt generation unit 130 can assign prompt identification information to the prompt to uniquely identify the generated prompt. For example, the prompt generation unit 130 can generate a prompt by applying the program and calculation information to a template corresponding to the query information.
[0052] Figure 11 This is a schematic diagram illustrating an example of multiple templates stored in the template storage unit 200. Figure 11 In this example, the template storage unit 200 stores multiple templates 1, 2, ... Furthermore, the type of program being queried is matched with each template. The prompt generation unit 130 selects a template stored in the template storage unit 200 to match the type of program obtained by the program acquisition unit 100 with the type of query information. Then, a prompt is generated using the selected template. Finally, the generated prompt is sent to the sending unit 140.
[0053] Figure 12 This is a diagram illustrating an example of a template. Figure 12 The illustrated template is used to create prompts that query information about the function of various variables used within the program. In this example, the prompt queries for the names of each variable and the data stored in each variable as function information. The template could be, for example, a template that includes information keys for embedding specified information at designated locations within the prompt text. The prompt generation unit 130 creates the prompt by embedding corresponding information at the locations of each information key. Figure 12 In the example, files containing numerical control programs are appended to the information keys such as "CNC_PROGRAM1" and "CNC_PROGRAM2". Additionally, files containing calculation information extracted from each numerical control program are appended to the information keys such as "VALIABLES_INFO1" and "VALIABLES_INFO2". The template can also include information keys corresponding to information calculated through specified operations based on specified mechanical information.
[0054] Such templates are prepared in advance to match the form of inquiries made to the dialogic response device 2. For example, if the dialogic response device 2 corresponds to an inquiry in the form of listing items, it is preferable to use a template that lists each item. Furthermore, if it corresponds to an inquiry in the form of natural language, it is preferable to use a template that provides prompts in the form of natural text. Each template is preferably prepared to include mechanical information as a reference and information calculated based on that mechanical information when providing answers to inquiries about the causes and countermeasures for actions that differ from the expected normal behavior.
[0055] The sending unit 140 sends the prompt generated by the prompt generation unit 130 to the dialog-type response device 2. The dialog-type response device 2, receiving the prompt from the sending unit 140, generates a response to the received prompt. The dialog-type response device 2 includes operational information such as the name of the variable and information about the data stored in the variable in the response. For example, the variable name is expected to be used in manuals for the control device 3 and industrial machinery 4, manuals for programming languages such as numerical control programming languages, PLC languages, and C languages, as well as in publicly available technical documents related to these programming languages. Furthermore, regarding the information about the data stored in the variable, it is expected to include the type of data that is parsed from the additional program and substituted into the variable. Figure 13 This represents an example of a response generated by the dialogic response device 2. The dialogic response device 2 then sends the generated response to the parsing device 1.
[0056] The receiving unit 150 receives a response sent from the dialog-type response device 2. The response received by the receiving unit 150 contains action information generated by the dialog-type response device 2 for each variable included in the program. The receiving unit 150 outputs the received response to the program update unit 170.
[0057] The program update unit 170 updates the program acquired by the program acquisition unit 100 based on the calculation information generated by the calculation information generation unit 110 and the action information contained in the response received by the receiving unit 150 from the dialog-type response device 2. For example, the program update unit 170 may replace the variable numbers contained in each program with the names of the variables represented by the responses from the dialog-type response device 2. Alternatively, the names of the variables represented by the responses, the types of data, and the variable numbers may be correlated. The program update unit 170 outputs the updated program to the output unit 190.
[0058] The output unit 190 outputs the updated program from the program update unit 170. The output unit 190 can also display the updated program on the display device 70. Figure 14 , 15 This is a schematic diagram showing an example of the updated program based on output unit 190. Figure 14In the example, each variable is replaced with the name of the variable included in the response of dialogic response device 2. Additionally, Figure 15 This is an example of associating the names of variables included in the response of the dialog-type response device 2 with each variable. For example, when a variable is selected by means of a mouse cursor, the output unit 190 may display information such as a dialog box showing the data corresponding to that variable. The output unit 190 may also send the updated program via the network 5 to other computers such as the control device 3, the cloud computer 6, and the cloud computer 7.
[0059] The parsing device 1 of this embodiment, having the above-described structure, can display variables by replacing their names with variable names or by matching them with information about the data stored in those variables in programs such as numerical control device programs where variables are represented by variable numbers, associated sequence programs, and source programs of external applications. Therefore, the overall readability of the program can be expected to be improved.
[0060] [Second Implementation]
[0061] The parsing apparatus of the second embodiment of this disclosure will now be described. The parsing apparatus 1 of this embodiment has the same hardware structure as the parsing apparatus 1 of the first embodiment.
[0062] The parsing apparatus 1 of this embodiment, like the parsing apparatus 1 of the first embodiment, includes: a program acquisition unit 100, a calculation information generation unit 110, a prompt generation unit 130, a transmission unit 140, a receiving unit 150, a program update unit 170, and an output unit 190. Furthermore, a template storage unit 200 is prepared in the RAM 13 or non-volatile memory 14 of the parsing apparatus 1 to pre-store the templates related to the prompts.
[0063] The parsing device 1 of this embodiment has the same functions as the program acquisition unit 100, calculation information production unit 110, transmission unit 140, and receiving unit 150 in the first embodiment.
[0064] The prompt generation unit 130 generates prompts that can be input into the dialog-type response device 2 based on the program obtained by the program acquisition unit 100 and the calculation information generated by the calculation information generation unit 110. In this embodiment, the prompt generated by the prompt generation unit 130 is a prompt that inquires about at least one of the following: variable conflict information, variable duplication information, and variable transformation information, as information related to the function of each variable included in the program obtained by the program acquisition unit 100. Variable conflict refers to variables using the same variable number in different locations. Variable conflict information includes the variable numbers of the conflicting variables and a list of the names and locations of programs using the conflicting variables. Variable duplication information includes a list of the names and locations of programs that make the same writes to different variables. Variable transformation refers to the flow of data values read and written to variables. Variable transformation information includes information indicating the flow of data values read and written between various variables. Along with this information, the variable usage relationship, the type of data stored in the variable, and the timing of data updates may also be included in the information related to the function of each variable. Figure 16 This is a schematic diagram illustrating an example of the template used by the prompt production unit 130 in this embodiment.
[0065] The program update unit 170 updates the program acquired by the program acquisition unit 100 based on the calculation information generated by the calculation information generation unit 110 and the action information contained in the response received by the receiving unit 150 from the dialog-type response device 2. In this embodiment, the program update unit 170 can, for example, change the variable number used at any program location to a different variable number for conflicting variables represented by the response from the dialog-type response device 2, thereby eliminating the conflict. Regarding variables using duplicate values, variable numbers can be standardized to reduce the number of variables. Even if the variable numbers of two or more variables using duplicate values are standardized, there is no problem if no instruction to change the value used in that variable is executed. The relationship between the value used in a variable and the instruction to change it can be stored in RAM 13 or non-volatile memory 14 based on a predefined basis. Figure 17This is an example of defining the relationship between the values used in variables and instructions. Variables can be integrated based on this relationship definition and the action information generated by the dialog-type response device 2. Furthermore, the program update unit 170 can macronize variables that use duplicate values to reduce the amount of code. When there are two or more variables using duplicate values, and no instructions are executed to change the value used by those variables, macronizing the processing related to those variables is more efficient. In this case, the processing related to that variable is aggregated as a macro into other programs and replaced with a form that calls it. The program update unit 170 can also perform constantization of values at the same time. Such a program update method can be implemented by pre-determining rules based on known code optimization techniques. The same optimization can also be performed on PLC programs and the source code of external applications. The program update unit 170 outputs the updated program to the output unit 190.
[0066] The output unit 190 outputs the updated program from the program update unit 170. In addition to outputting the program, the output unit 190 of this embodiment can also output variable change information contained in the response from the dialog-type response device 2. Figure 18 This is a schematic diagram illustrating an example of displaying transition information. The transition information of variables can also be directly displayed from the information contained in the response from the dialogic response device 2. Additionally, as... Figure 18 As illustrated, it can also be displayed in the form of a sequence diagram, for example. When creating a sequence diagram based on the transformation information of variables, well-known sequence diagram creation libraries such as Mermaid and SequenceDiagram can be used.
[0067] The parsing apparatus 1 of this embodiment, with the above-described structure, improves the overall readability of the program by eliminating variable conflicts and duplications. Furthermore, by observing variable transformation information simultaneously, the overall program flow can be easily grasped. Moreover, eliminating conflicts and duplications reduces unnecessary resources. If variables are not managed correctly, multiple variables may be required for similar instructions, sometimes resulting in additional memory consumption. Furthermore, in cases where variables are accessed by executing numerical control programs using multi-system instructions, or by accessing variables from external applications or signal control processors, conflicts sometimes occur with the variables in use. In cases of conflicting or duplicated variables, the numerical control program needs to be parsed to handle these issues, which can be a significant burden for the user. The parsing apparatus 1 of this embodiment also helps to solve these problems.
[0068] As a variation of the parsing device 1 in this embodiment, the parsing device 1 can re-output the program updated by the program update unit 170 to the prompt generation unit 130 and query the dialog-type response device 2 for various function information. With this configuration, by querying the updated program for variable conflict information, variable duplication information, and variable transformation information, it is possible to confirm whether there are any further variable conflicts or duplications, and how the variable transformation information has changed due to the update.
[0069] [Other Implementation Methods]
[0070] In the above-described embodiments, the results of the user's countermeasures can also be fed back to the conversational response device 2. For example, in a response containing multiple cause-and-countermeasure information, if the result of cause investigation and countermeasures is a response containing cause-and-countermeasure information that actually helps improve actions that differ from normal, the sending unit 140 sends a message to the conversational response device 2 indicating that the response is effective. With this configuration, it is estimated that the accuracy of the conversational response device 2 in identifying the cause of actions that differ from normal and formulating countermeasures will increase, and it is estimated that this will help reduce the time required for countermeasure research.
[0071] The embodiments of this disclosure have been described in detail above, but this disclosure is not limited to the various embodiments described above. Various additions, substitutions, modifications, and partial deletions can be made to these embodiments without departing from the spirit and essence of the invention, or without departing from the idea and spirit of this disclosure derived from the claims and their equivalents. For example, in the embodiments described above, the order of each action and the order of each process are shown as an example and are not limited thereto. Furthermore, the same applies to the use of numerical values or mathematical formulas in the description of the embodiments described above.
[0072] The following are notes relating to embodiments of this disclosure.
[0073] (Note 1)
[0074] The analysis apparatus (1) of this disclosure includes: a calculation information generation unit (110) that generates calculation information that associates variables included in the program involving industrial machinery (4) with access information of those variables; a prompt generation unit (130) that generates a prompt that queries the function information of the variables; a sending unit (140) that sends the prompt to a dialog-type response device (2); a receiving unit (150) that receives a response containing function information generated by the dialog-type response device (2) based on the prompt; a program update unit (170) that updates the program based on the calculation information and the function information; and an output unit (190) that outputs the program updated by the program update unit (170).
[0075] (Note 2)
[0076] In another aspect of this disclosure, the parsing device (1) receives at least one of the variable's function information, which includes information about the data stored in the variable and the variable's name. The program update unit (170) updates the program based on the operation information and the function information by at least one of the following: the substitution of the variable number in the program to the variable's name, and the correspondence between the variable's name and the variable number.
[0077] (Note 3)
[0078] In another embodiment of the present disclosure, the parsing device (1) receives the variable's action information, which includes at least one of the variable's conflict information, the variable's duplication information, and the variable's transformation information. The program update unit (170) updates the program based on the operation information and the action information by at least one of eliminating variable conflicts, unifying duplicate variables, and macroscopicating the operation instructions involved in the duplicate variables.
[0079] (Note 4)
[0080] The parsing device (1) of another aspect of this disclosure parses the program, which is at least one of a numerical control program, a PLC program, and a source program for reading and writing the variables.
[0081] (Note 5)
[0082] The parsing apparatus (1) of another aspect of this disclosure has a computational information production unit (110) that further parses the processing program updated by the program update unit (170).
[0083] (Note 6)
[0084] According to one aspect of this disclosure, a computer-readable recording medium records a program that enables a computer to operate as follows: a computation information generation unit (110) that generates computation information that associates variables included in the program involving the industrial machinery (4) with access information of those variables; a prompt generation unit (130) that generates a prompt that queries the function information of the variables; a sending unit (140) that sends the prompt to a dialog-type response device (2); a receiving unit (150) that receives a response containing function information generated by the dialog-type response device (2) based on the prompt; a program updating unit (170) that updates the program based on the computation information and the function information; and an output unit (190) that outputs the program updated by the program updating unit (170).
[0085] Attached text description
[0086] 1. Analysis device
[0087] 2. Dialogue-based response device
[0088] 3. Control device
[0089] 4. Industrial Machinery
[0090] 5. Network
[0091] 6 Fog Terminal Computers
[0092] 7. Cloud computing
[0093] 11 CPU
[0094] 12 ROM
[0095] 13 RAM
[0096] 14. Non-volatile memory
[0097] Interfaces 15, 17, 18, and 20
[0098] 22 bus
[0099] 70 Display devices
[0100] 71 Input Device
[0101] 72 External devices
[0102] 100 Procedure Acquisition Department
[0103] 110 Computing Information Production Department
[0104] 130 Tip Production Department
[0105] 140 Sending Department
[0106] 150 Receiving Department
[0107] 170 Program Update Department
[0108] 190 Output Section
[0109] 200 Template Storage Department.
Claims
1. An analytical apparatus, characterized in that, have: The computational information production department creates computational information that links variables contained in the programs involved in industrial machinery with access information for those variables. The production department is prompted to generate a prompt that inquires about the function of the aforementioned variables. The sending unit sends the prompt to the conversational response device; A receiving unit that receives a response containing action information generated by the dialogic response device based on the prompt; The program update unit updates the program based on the computation information and the function information; The output section outputs the updated program from the program update section.
2. The analytical apparatus according to claim 1, characterized in that, The function information of the variable includes at least one of the information of the data stored in the variable and the name of the variable. The program update unit updates the program based on the operation information and the function information by at least one of the following: replacing the variable number in the program with the variable name, and the correspondence between the variable name and the variable number.
3. The analytical apparatus according to claim 1, characterized in that, The variable's effect information includes at least one of the following: the variable's conflict information, the variable's duplication information, and the variable's transformation information. The program update unit updates the program based on the operation information and the function information by at least one of the following: eliminating variable conflicts, unifying duplicate variables, and macronizing the operation instructions involved in the duplicate variables.
4. The analytical apparatus according to claim 1, characterized in that, The program is at least one of a numerical control program, a PLC program, and a source program for reading and writing the variables.
5. The analytical apparatus according to claim 1, characterized in that, The computational information production unit then parses the processing program updated by the program update unit.
6. A computer-readable recording medium, characterized in that, The system contains programs that cause the computer to perform the following actions: The computational information production department creates computational information that links variables contained in the programs involved in industrial machinery with access information for those variables. The production department is prompted to generate a prompt that inquires about the function of the aforementioned variables. The sending unit sends the prompt to the conversational response device; A receiving unit that receives a response containing action information generated by the dialogic response device based on the prompt; The program update unit updates the program based on the computation information and the function information; The output section outputs the updated program from the program update section.
Citation Information
Patent Citations
Control system, analyzing method and program
JP2021026309A