Information generation device and computer-readable storage medium
The information generation device addresses the challenge of understanding control states in industrial machines by associating program elements with additional information, facilitating easy visual comprehension of control states.
Patent Information
- Application Number
- DE112022005446
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-01-21
- Publication Date
- 2024-09-12
AI Technical Summary
Conventional systems for displaying control states of industrial machines on a display screen make it difficult for operators, especially inexperienced ones, to understand the control state of the control device.
An information generation device that includes a program acquisition unit, extraction unit, and lookup creation unit to associate program elements with additional information, and a computer-readable storage medium that stores instructions to create a reference work for easy understanding of control states.
Enables operators to easily understand the control state of the control device by visually displaying additional information alongside images, reducing the workload and enhancing comprehension.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical Area]
[0001] The present disclosure relates to an information generating apparatus and a computer-readable storage medium. [State of the art]
[0002] Conventionally, systems for displaying various signals indicating the control states of an industrial machine on a display screen are known (Patent Literature 1). In such systems, the input / output timings of several types of signals are displayed on the display screen. [Citation list][Patent literature]
[0003] Patent Literature 1: Japanese Patent Application Laid-Open No. 2020-175534 [Summary of the invention][Technical problem]
[0004] However, with the conventional system, even when various signals are displayed on the display screen, it is difficult for the operator to understand the control state of the control device. For example, the operator must have considerable experience to understand what type of operation is being performed in an industrial machine by observing the states of the various signals displayed on the display screen. This means that it is difficult for an inexperienced operator to understand the operation being performed in the industrial machine even when observing the states of the various signals.
[0005] The present disclosure aims to provide an information generating apparatus and a computer-readable storage medium that enable the operator to easily understand the control state of a control apparatus. [Solution to the problem]
[0006] An information generation device comprises: a program acquisition unit that acquires a program executed in a control device configured to control an industrial machine; an extraction unit that extracts, from the program acquired by the program acquisition unit, a program constituting element and additional information added to the element; and a reference work creation unit that creates a reference work in which the element and the additional information extracted by the extraction unit are associated with each other.
[0007] A computer-readable storage medium stores an instruction that causes a computer to perform: acquiring a program executed in a control device configured to control an industrial machine; extracting a program-constituting element and additional information added to the element from the acquired program; and creating a reference work in which the extracted element and the extracted additional information are associated with each other. [Advantageous effects of the invention]
[0008] According to an aspect of the present disclosure, it is possible to make the control state of a control device easily understandable to the operator. [Brief description of the drawings]
[0009] They show: [ Fig. 1] Fig. 1 is a block diagram showing an example of a hardware configuration of an industrial machine; [ Fig. 2] Fig. 2 is a block diagram showing an example of a function of an information generating device in a control device; [ Fig. 3] Fig. 3 is a diagram showing an example of a machining program; [ Fig. 4] Fig. 4 is a diagram showing an example of information registered in a reference book; [ Fig. 5] Fig. 5 is a diagram showing an example of a ladder program; [ Fig. 6] Fig. 6 is a diagram showing an example of information registered in a reference book; [ Fig. 7] Fig. 7 is a diagram showing an example of an embedded program; [ Fig. 8] Fig. 8 is a diagram showing an example of information registered in a reference book; [ Fig. 9] Fig. 9 is a diagram showing an example of a display mode of an image and additional information; [ Fig. 10] Fig. 10 is a flowchart showing an example of a flow of a method for creating a reference work; [ Fig. 11] Fig. 11 is a flowchart showing an example of a process performed by the information generating device; [ Fig. 12] Fig. 12 is a block diagram showing an example of functions of the information generating apparatus having a receiving unit; [ Fig. 13A] Fig. 13A is a diagram showing an example of editing a reference work; [ Fig. 13B] Fig. 13B is a diagram showing an example of editing a reference work; [ Fig. 14] Fig. 14 is a diagram showing an example of a ladder program; and [ Fig. 15] Fig. 15 is a diagram showing an example of information registered in a reference book. [Description of implementation examples]
[0010] An information generation device according to an embodiment of the present disclosure will be described below with reference to the drawings. It should be noted that not all combinations of features described in the following embodiments are absolutely necessary to solve the problem. Furthermore, a more detailed description than necessary may be omitted. The following description of the embodiment and the drawings are intended to help those skilled in the art fully understand the present disclosure, but do not limit the scope of the claims.
[0011] The information generation device is implemented on a control device that controls, for example, an industrial machine. The information generation device can be implemented on a server, a personal computer (PC), or a mobile tablet device connected to the control device via a wired or wireless connection.
[0012] The industrial machine includes a machine tool, an injection molding machine, a wire-cutting machine, and an industrial robot. The machine tool is, for example, a lathe, a machining center, a drilling center, and a combined machine. The control device is, for example, a numerical control device that controls an industrial machine. An embodiment in which the information generation device is implemented in a control device that controls a machine tool will be described below.
[0013] Fig. 1 is a block diagram showing an example of a hardware configuration of a machine tool with a control device.
[0014] A machine tool 1 includes a control device 2, an input / output device 3, a servo amplifier 4, a servo motor 5, a spindle amplifier 6, a spindle motor 7, a sub-device 8, and an image sensor element 9.
[0015] The control device 2 is a device that controls the entire machine tool 1. The control device 2 includes a hardware processor 201, a bus 202, a read-only memory (ROM) 203, a random access memory (RAM) 204, and a non-volatile memory 205.
[0016] The hardware processor 201 is a processor that controls the entire control device 2 according to a system program. The hardware processor 201 reads the system program stored in the ROM 203 via the bus 202 and performs various processes based on the system program. The hardware processor 201 controls the servo motor 5 and the spindle motor 7 depending on a machining program. The hardware processor 201 is, for example, a central processing unit (CPU) or an electronic circuit.
[0017] For example, the hardware processor 201 analyzes a machining program and outputs control instructions to the servo motor 5 and the spindle motor 7 in each control cycle.
[0018] Bus 202 is a communication path that connects the respective hardware components within control device 2. These hardware components within control device 2 transmit data via bus 202.
[0019] The ROM 203 is a storage device that stores the system program for controlling the entire control device 2, or the like. An information generation program can be stored in the ROM 203. The information generation program is a program that is executed in the information generation device. The ROM 203 is a computer-readable storage medium.
[0020] RAM 204 is a storage device that temporarily stores various data. RAM 204 functions as a work area in which hardware processor 201 processes various data.
[0021] The non-volatile memory 205 is a storage device that retains data even when the machine tool 1 is turned off and the control device 2 is not supplied with power. The non-volatile memory 205 stores, for example, a machining program and various parameters. The non-volatile memory 205 is a computer-readable storage medium. The non-volatile memory 205 is, for example, a battery-backed memory or a solid-state drive (SSD).
[0022] The control device 2 also includes a first interface 206, an axis control circuit 207, a spindle control circuit 208, a programmable logic controller (PLC) 209, an I / O unit 210, and a second interface 211.
[0023] The first interface 206 connects the bus 202 and the input / output device 3. The first interface 206 transmits, for example, various data processed by the hardware processor 201 to the input / output device 3.
[0024] The input / output device 3 is a device that receives various data via the first interface 206 and displays the various data. Furthermore, the input / output device 3 accepts the input of various data and transmits the various data to the hardware processor 201, for example, via the first interface 206.
[0025] The input / output device 3 is, for example, a touch panel. If the input / output device 3 is a touch panel, the input / output device 3 is, for example, a capacitive touch panel. It should be noted that the touch panel can also consist of other types of touch panels, without being limited to the capacitive type. The input / output device 3 is installed in a control panel (not shown) in which the control device 2 is housed.
[0026] The axis control circuit 207 is a circuit that controls the servo motor 5. In response to receiving a control instruction from the hardware processor 201, the axis control circuit 207 outputs an instruction to drive the servo motor 5 to the servo amplifier 4. For example, the axis control circuit 207 transmits a torque command to control the torque of the servo motor 5 to the servo amplifier 4.
[0027] In response to receiving an instruction from the axis control circuit 207, the servo amplifier 4 supplies power to the servo motor 5.
[0028] The servo motor 5 is driven in response to a power supply from the servo amplifier 4. The servo motor 5 is connected to a ball screw, which drives, for example, a tool rest. In response to the drive of the servo motor 5, the structure of the machine tool 1, for example, a tool rest, moves in each control axis direction. The servo motor 5 has a built-in encoder (not shown) that detects the position of the control axis and the feed rate. Position feedback information and feed rate feedback information, which indicate the position of the control axis and the feed rate of the control axis, respectively, and are detected by the encoder, are fed back to the axis control circuit 207. Accordingly, the axis control circuit 207 performs control of the control axis.
[0029] The spindle control circuit 208 is a circuit for controlling the spindle motor 7. In response to receiving a control instruction from the hardware processor 201, the spindle control circuit 208 transmits an instruction to drive the spindle motor 7 to the spindle amplifier 6. For example, the spindle control circuit 208 transmits a spindle rate command to control a rotational speed of the spindle motor 7 to the spindle amplifier 6.
[0030] Upon receiving an instruction from the spindle control circuit 208, the spindle amplifier 6 supplies power to the spindle motor 7.
[0031] The spindle motor 7 is driven in response to a power supply from the spindle amplifier 6. The spindle motor 7 is connected to the spindle and drives the spindle.
[0032] The PLC 209 is a device that executes a ladder program to control the slave device 8. The PLC 209 transmits an instruction to the slave device 8 via the I / O unit 210.
[0033] The I / O unit 210 is an interface that connects the PLC 209 and the slave device 8. The I / O unit 210 transmits an instruction received from the PLC 209 to the slave device 8.
[0034] The auxiliary device 8 is a device installed on the machine tool 1 and configured to perform an auxiliary operation in the machine tool 1. The auxiliary device 8 operates based on an instruction received from the I / O unit 210. The auxiliary device 8 may be a device installed in the periphery of the machine tool 1. For example, the auxiliary device 8 is a tool changer, a cutting fluid injector, or a door opening / closing drive device.
[0035] The second interface 211 connects the bus 202 and the image sensor element 9. The second interface 211 transmits the image data captured by the image sensor element 9 to the hardware processor 201.
[0036] The image sensor element 9 is a component that converts light emanating from an object and entering through a lens into digital image data and outputs the digital image data. The image sensor element 9 is also referred to as an image sensor. The image sensor element 9 is mounted, for example, on a camera.
[0037] Next, the functions of an information generating device 20 will be described.
[0038] Fig. Figure 2 is a block diagram showing an example of the functions of the information generation device 20 implemented in the control device 2. The information generation device 20 includes a program acquisition unit 21, an extraction unit 22, a reference book creation unit 23, a reference book storage unit 24, an image acquisition unit 25, an association unit 26, and an output unit 27.
[0039] The program acquisition unit 21, the extraction unit 22, the reference book creation unit 23, the image acquisition unit 25, the association unit 26, and the output unit 27 are implemented when the hardware processor 201 performs calculation processing, for example, by using a system program and an information generation program stored in the ROM 203 and various data stored in the non-volatile memory 205. The reference book storage unit 24 is implemented with various data stored in the RAM 204 or the non-volatile memory 205.
[0040] The program acquisition unit 21 acquires a program to be executed in the control device 2 that controls the machine tool 1. The program acquisition unit 21 acquires a program, for example, from the non-volatile memory 205 of the control device 2. The program includes a machining program, a sequence program, a system program, and an embedded program.
[0041] The machining program refers to a program for operating each axis of the machine tool 1 to machine a workpiece.
[0042] The sequence program refers to a program that causes the PLC 209 to operate according to sequence control. Sequence control refers to control that runs sequentially according to a predetermined order or logic. The sequence program includes a ladder program and a function block.
[0043] The system program refers to a program that operates the operating system (OS) of the control device 2. Furthermore, the system program is a program implemented in the control device 2 by the vendor of the control device 2.
[0044] The embedded program refers to a program that supports the system program. Furthermore, the embedded program is a program that allows the user, including the operator of the control device 2, to customize the system program.
[0045] The extraction unit 22 extracts a program-constituting element and additional information added to the element from a program acquired by the program acquisition unit 21. The program-constituting element represents various codes and symbols included in the program. The additional information added to an element is a comment consisting of a character string. The additional information may be an image. The additional information is information for describing an element. The additional information may be a symbol name for identifying an element.
[0046] If the program is a machining program, the program-forming element includes G-code, M-code, F-code, and S-code. The program-forming element may also include a macro variable.
[0047] If the program is a sequence program, the program-forming element includes a character symbol. The character symbol includes an address that indicates the location where a device is located.
[0048] If the program is a system program, the program-forming element represents various codes contained within the system program. The various codes are codes described in different programming languages.
[0049] If the program is an embedded program, the program-forming element corresponds to various codes contained within the embedded program. The various codes are codes described in different programming languages.
[0050] Fig. Figure 3 shows a diagram illustrating an example of a machining program. The character string inserted between the parentheses is additional information. The text "Update machining passes of a workpiece" is additional information that describes that the instruction described in the next line is an instruction for updating the number of machining passes of a workpiece.
[0051] The string beginning with "#" in the line after "(Update machining passes)", i.e., "#2000", is a macro variable. As described in the supplementary information, the text "#2000=#2000+1;" is an instruction to update the number of machining passes on a workpiece. This means that the value of the macro variable "#2000" is incremented by 1 each time machining of a workpiece begins or ends.
[0052] The text "Robot Workload" is additional information describing that the instruction described in the next line is an instruction to cause a robot to transport a workpiece. As described in the additional information, the text "M200;" is an instruction to cause a robot to transport a workpiece.
[0053] The text "Step 1: Machine the top surface of a workpiece using tool 8" is additional information describing that an instruction described in the next and subsequent lines is an instruction to machine the top surface of a workpiece using a tool whose tool number is 8. The text "T8 M6;" is an instruction to exchange the tool for a tool whose tool number is 8.
[0054] For example, the extraction unit 22 extracts the macro variable "#2000," which is a program-constituting element, and the auxiliary information "update workpiece machining passes" as a set. Furthermore, the extraction unit 22 extracts the program-constituting element "M200;" and the auxiliary information "robot work load" as a set. Furthermore, the extraction unit 22 extracts the element "T8 M6;," which constitutes the program, and the auxiliary information "Step 1: Machining the upper surface of a workpiece by tool 8," as a set.
[0055] The extraction unit 22 extracts, for example, a character string inserted between parentheses and a macro variable or an instruction described in the line following this character string as additional information and as a program-forming element.
[0056] The reference work creation unit 23 creates a reference work in which a program-forming element and additional information extracted by the extraction unit 22 are associated with each other. "Associating" means registering a program-forming element and additional information as associated with each other. The reference work can also be referred to as a table in which a program-forming element and additional information are associated with each other.
[0057] Fig. Figure 4 shows a diagram illustrating an example of information registered in a reference book. In the reference book, the elements "#2000," "M200," and "T8 M6," which constitute a program retrieved by the extraction unit 22, are associated with the additional information "update workpiece machining passes," "robot workload," and "Step 1: machine the upper surface of a workpiece with tool 8," respectively.
[0058] Fig. Figure 5 shows a diagram showing an example of a ladder program. The line extending from left to right is a connecting line. The vertical lines on either side of the connecting line are control buses. The circular graphic symbol displayed on the connecting line represents a cooling coil. The text "Y001,0" displayed in the area above the cooling coil is a character string representing an address. The character string in the speech bubble that comes into contact with the graphic symbol is auxiliary information.
[0059] The extraction unit 22 extracts the character string “coolant pump on” described in the speech bubble and the address “Y001,0” described next to the graphic symbol of the cooling coil as additional information or as a program-forming element.
[0060] The reference work creation unit 23 creates a reference work in which a program-forming element and additional information extracted by the extraction unit 22 are associated with each other. Note that when the extraction unit 22 extracts an address from a ladder program, the reference work creation unit 23 may append a character string "=1" to the character string indicating the address to create the reference work. In this case, the reference work associates the element constituting a program and its control state with the additional information.
[0061] Fig. Figure 6 is a diagram showing an example of information registered in a reference book. In the reference book, the program-forming element and a control state retrieved by the retrieval unit 22 are associated with the additional information. In particular, "Y001,0=1" and "coolant pump on" are associated with each other. That is, the additional information recorded in the Fig. 6, describe that a coolant pump is turned on when the state of “Y001,0” is “1”.
[0062] Fig. Figure 7 shows a diagram showing an example of an embedded program. The string "Read key input to change machining number" after " / / " is auxiliary information. The instruction "cnc_prog_no=read_keyinput();" described in the line following the auxiliary information is an instruction for reading keyboard input to change the machining program number, as described in the auxiliary information.
[0063] The extraction unit 22 extracts the character string described after " / / " and the shared variable "cnc_prog_no" described in the line following the preceding character string as additional information and as a program-forming element, respectively. Note that a shared variable denotes, for example, a memory area accessible by both the system program and the embedded program.
[0064] The reference work creation unit 23 creates a reference work in which a program-forming element and additional information extracted by the extraction unit 22 are associated with each other.
[0065] Fig. Figure 8 shows a diagram illustrating an example of information registered in a reference book. In the reference book, the element "cnc_prog_no," which constitutes a program retrieved by the extraction unit 22, is associated with the additional information "Read key input to change machining number."
[0066] The reference book storage unit 24 stores a reference book created by the reference book creation unit 23. In the reference book storage unit 24, in addition to the reference book created by the reference book creation unit 23, a reference book acquired from outside the information generation device 20 can be stored.
[0067] The image acquisition unit 25 acquires an image indicating the state of the machine tool 1. The image indicating the state of the machine tool 1 is, for example, an image acquired from a camera that captures the external appearance of the machine tool 1. The image includes at least one of a still image and a moving image. For example, the image acquisition unit 25 acquires image data from a camera that captures the machining area of a workpiece. The image acquisition unit 25 sequentially acquires images captured by the camera at a predetermined frame rate.
[0068] The image indicating the state of the machine tool 1 may be an image displayed on a display screen of the input / output device 3. That is, the image acquired by the image acquisition unit 25 may be a captured image in which an image displayed on the display screen of the input / output device 3 is captured. The image acquisition unit 25 acquires an image displayed on the input / output device 3 from an image acquisition device (not shown). For example, the image acquisition unit 25 starts acquiring an image displayed on the display screen of the input / output device 3 in response to the start of execution of a machining program in the machine tool 1.
[0069] The association unit 26 associates an image acquired by the image acquisition unit 25 with additional information associated with the program constituent element in a reference book when the control state related to a program constituent element is changed in the control device 2. The control state related to a program constituent element includes at least the state of a signal, the state of a macrovariable, and the state of a shared variable. That is, a change in the control state includes changes in the value of a signal, a change in the value of a macrovariable, and a change in the value of a shared variable.
[0070] If the control device 2 detects the Fig. When executing the machining program shown in Figure 3, the control state changes when the value of the macro variable "#2000" changes. Furthermore, the control state changes when a signal for executing a workpiece transfer based on the instruction "M200;" changes. Furthermore, the control state changes when a signal for executing a tool change based on the instruction "T8 M6;" changes.
[0071] The image acquired by the image acquisition unit 25 upon a change in the control state with respect to a program-forming element corresponds to a single image acquired by the image acquisition unit 25 at the same time as the time of the change in the control state with respect to the program-forming element. "Same" does not necessarily have to be the same in the strict sense, but can range from a few milliseconds to several seconds.
[0072] The association unit 26 associates an image obtained at the time of a change in the value of the macro variable “#2000” with the additional information “update machining passes” associated with the element “#2000” in the Fig. 4 are associated with the reference work shown.
[0073] The association unit 26 associates an image acquired at a time when a predetermined signal related to the transportation of a workpiece by a robot based on the instruction “M200;” changes with the additional information “work load of the robot” associated with the item “M200;” in the Fig. 4 is associated with the reference work shown.
[0074] The association unit 26 associates an image obtained at the time of a change of a predetermined signal relating to the tool change based on the instruction “T8 M6;” with the additional information “Step 1: machining the upper surface of a workpiece by tool 8” associated with the item “T8 M6;” in the Fig. 4 are associated with the reference work shown.
[0075] If the control device 2 detects the Fig. 5, the control state changes when the value of the signal for address “Y001,0” changes from 0 to 1.
[0076] The association unit 26 associates an image obtained at the time of the change from 0 to 1 of the signal value for the address “Y001,0” with the additional information “coolant pump on” assigned to the element “Y001,0” in the Fig. 6 is associated with the reference work shown.
[0077] If the control device 2 detects the Fig. 7, the control state changes when the common variable expressed by “cnc_prog_no” is changed to the number provided by key input.
[0078] The association unit 26 associates an image obtained at the time of changing the program number expressed by “cnc_prog_no” with the number provided by key input and the additional information “read key input to change machining number” assigned to the element “cnc_prog_no” in the Fig. 8 is associated with the reference work shown.
[0079] The state of the signal includes the state of a signal based on an instruction of a machining program and the state of a signal based on an instruction of a sequence program. The signal based on an instruction of the machining program changes when the instruction designated by the machining program is executed. For example, the instruction designated by the machining program is a tool change instruction "M6." A signal based on an instruction of a sequence program changes when the sequence program is executed. The signal that changes when the sequence program is executed is, for example, a signal for a specific function that is currently being executed.
[0080] The output unit 27 outputs an image acquired by the image acquisition unit 25. Furthermore, the output unit 27 outputs additional information associated with an image by the association unit 26. For example, the output unit 27 outputs the image and the additional information to the input / output device 3.
[0081] The output unit 27 can output additional information such that the additional information is displayed superimposed on an image associated with the additional information by the association unit 26 and an image corresponding to a predetermined number of image frames acquired subsequent to the previous image. Accordingly, the additional information is displayed on the display screen of the input / output device 3 for a predetermined period of time, superimposed on an image acquired by the image acquisition unit 25.
[0082] In response to the acceptance of an image and additional information associated with each other by the association unit 26, the input / output device 3 displays the image and the additional information on the display screen.
[0083] Fig. 9 shows a schematic diagram of an example of a display screen of the input / output device 3. The additional information "Step 1: Machining the upper surface of a workpiece by tool 8" is displayed on the display screen superimposed on an image acquired by the image acquisition unit 25. Note that the additional information may be displayed adjacent to the image acquired by the image acquisition unit 25.
[0084] Next, the process performed in the information generating device 20 will be described. First, the flow of the reference book generation process performed by the information generating device 20 will be described.
[0085] Fig. 10 is a flowchart showing an example of the flow of the reference book creation process performed by the information generation device 20. First, the program acquisition unit 21 acquires a program executed in the control device 2 that controls the machine tool 1 (step SA1).
[0086] Subsequently, the extraction unit 22 extracts a program constituting element and additional information added to the program constituting element from the program acquired by the program acquisition unit 21 (step SA2).
[0087] Subsequently, the reference work creation unit 23 creates a reference work in which the program-forming element and the additional information extracted by the extraction unit 22 are associated with each other (step SA3).
[0088] Subsequently, the reference book storage unit 24 stores the reference book created by the reference book creation unit 23 (step SA4) and terminates the operation. By performing the above-described process, the reference book is created in the information creation device 20.
[0089] The process performed in the information generating device 20 during the operation of the machine tool 1 will be described below.
[0090] Fig. 11 is a diagram illustrating an example of the process performed in the information generation device 20 during the operation of the machine tool 1. Once the execution of a machining program in the machine tool 1 begins, the image acquisition unit 25 begins acquiring an image of the machine tool 1 (step SB1).
[0091] Subsequently, the association unit 26 associates the image acquired by the acquisition unit 25 when the control state changes with respect to the item in the control device 2 with the additional information associated with the item in the lookup book (step SB2).
[0092] Subsequently, the output unit 27 outputs the image and the additional information associated with each other by the association unit 26 (step SB3). When the operation of the machine tool 1 ends, the information generation device 20 terminates this process.
[0093] As described above, the information generation device 20 includes the program acquisition unit 21 that acquires a program executed in the control device 2 configured to control an industrial machine, the extraction unit 22 that acquires a program constituting element and additional information added to the element from the program acquired by the program acquisition unit 21, and the reference work creation unit 23 that creates a reference work in which the element and the additional information extracted by the extraction unit 22 are associated with each other.
[0094] Therefore, the information generation device 20 can automatically create a reference book in which a program-constituting element and supplementary information are associated with each other. Thus, the operator does not need to create and store a reference book in a storage unit in advance. As a result, the operator's workload can be reduced.
[0095] Further, the information generation device 20 includes the image acquisition unit 25 that acquires an image of the industrial machine captured by the image sensor element 9, the association unit 26 that associates the image acquired by the image acquisition unit 25 with additional information associated with the item in the reference book when the control state changes with respect to the item in the control device 2, and the output unit 27 that outputs the image and the additional information associated with the association unit 26. Therefore, the information generation device 20 enables the operator to easily understand the control state of the control device 2.
[0096] Furthermore, the control state includes at least the state of the signal, the state of the macrovariable, and the state of the shared variables. Therefore, the information generation device 20 can display additional information along with an image associated with various changes in the control state in the control device 2.
[0097] Furthermore, the program includes at least a machining program, a sequence program, a system program, and an embedded program. Therefore, the information generation device 20 can display additional information along with an image associated with a change in the control state when various programs are executed.
[0098] Furthermore, the additional information includes at least a comment or a symbol name. Therefore, the information generating device 20 allows the operator to easily visually understand the control state of the control device 2.
[0099] The information generating device 20 in the above-described embodiment may further include a receiving unit that receives editing information used for editing additional information associated with a program-constituting element in a reference work.
[0100] Fig. Fig. 12 is a block diagram illustrating an example of the functions of the information generating device 20, including the receiving unit. A receiving unit 28 receives, for example, editing information from a touch panel of the input / output device 3, which is used to edit additional information.
[0101] Fig. 13A and Fig. 13B show diagrams illustrating the editing of reference works. In the Fig. In the reference book shown in Figure 13A, the additional information "Dial +A" is associated with an element "G100,3=1," which constitutes a program. Furthermore, the additional information "Direction Selection +A" is associated with an element "X010.3=1," which constitutes a program. In such a case, when the value of the signal for address "G100.3" changes from 0 to 1, the additional information "Direction Selection +A" is output. Likewise, when the value of the signal for address "X010,3" changes from 0 to 1, the additional information "Direction Selection +A" is output. Thus, the operator may not be able to determine whether the value of the signal for address "X010,3" or the value of the signal for address "G100,3" has changed simply by viewing the displayed additional information. In such a case, the operator can, for example, input editing information into the receiving unit 28 via the input / output device 3.
[0102] Fig. 13B shows an example of the lookup after editing. A character string "(CNC)" is added to the additional information "Direction Selection +A" associated with the element "G100,3=1." In this case, the receiving unit 28 receives the editing information used to change "Direction Selection +A" to "Direction Selection +A (CNC)." Furthermore, a character string "(Operation)" has been added to the additional information "Direction Selection +A" associated with the element "X010.3=1." In this case, the receiving unit 28 receives the editing information used to change "Direction Selection +A" to "Direction Selection +A (Operation)."In this way, the operator can easily know whether the value of the signal for address “G100,3” has been changed according to the processing of a computer numerical control (CNC) device or whether the value of the signal for address “X010,3” has been changed based on its operation.
[0103] The receiving unit 28 can receive deletion information used to delete information registered in a reference book. In such a case, the receiving unit 28 receives the deletion information used to delete additional information from the touch panel of the input / output device 3. By deleting some information registered in the reference book, it is possible to prevent similar pieces of additional information from being displayed simultaneously on the display screen.
[0104] Fig. Figure 14 shows a diagram showing an example of a ladder program. In the Fig. In the ladder program shown in Figure 14, a contact point specified by address "X010,3" to which the auxiliary information "Dial +A" has been added, and a cooling coil specified by address "G100,3" to which the auxiliary information "Dial +4th axis" has been added, are arranged on a single connecting line. In this ladder program, the value of the signal for address "X010,3" and the value of the signal for address "G100,3" change simultaneously. Therefore, if both the set of "X010,3" and "Dial +A" and the set of "G100,3" and "Dial +4th axis" are registered in the reference book, these similar auxiliary information can be displayed simultaneously on the display screen.
[0105] Therefore, the receiving unit 28 receives deletion information used to delete one of the sets registered in the reference book, and it is thus possible to prevent “Dial +A” and “Dial +4th axis” from being displayed simultaneously on the display screen.
[0106] In the above-described embodiment, the reference work creation unit 23 associates a single piece of additional information with a single item to create a reference work. However, the reference work creation unit 23 may also associate multiple pieces of additional information with a single item to create a reference work. When multiple pieces of additional information are associated with a single item in a reference work, the receiving unit 28 may receive selection information to select one of the multiple pieces of additional information registered in the reference work. In such a case, the receiving unit 28 receives selection information used to select additional information from the touch panel of the input / output device 3.
[0107] For example, if the additional information “coolant pump on” is associated with the address “Y001,0” in Japanese or English, the receiving unit 28 can receive additional information that is used to select additional information in one of these languages.
[0108] When the control state of an element constituting a program changes between at least a first state and a second state, the reference work creating unit 23 may create a reference work in which a single element is associated with two types of additional information, namely, additional information indicating the first state and additional information indicating the second state.
[0109] Fig.15 is a diagram illustrating an example of a lookup in which two types of additional information are associated with a single element. For example, in a ladder program, the signal for address "Y002,0" changes between "10" and "100," and the "feedrate" additional information is added to address "Y002,0." The lookup creating unit 23 associates the "feedrate" additional information with values that can be assumed by "Y002,0." Furthermore, if it is predetermined in a predetermined memory area that the signal for address "Y002,0" changes between "10" and "100," the lookup creating unit 23 appends the values that can be assumed by address "Y002,0" after the "feedrate" additional information. Accordingly, it is possible to associate the additional information “Feed rate 10” and “Feed rate 100” with the plurality of values “10” and “1000” respectively.“100” that can be assumed by a single element.
[0110] The present disclosure is not limited to the above-described embodiment and can be appropriately modified within the scope of the invention without departing from the spirit of the invention. In the present disclosure, any component of the embodiment may be changed or omitted. [List of reference symbols] 1 machine tool 2 Control device 20 Information generating device 21 Program Acquisition Unit 22 withdrawal unit 23 Reference work creation unit 24 Reference storage unit 25 Image Acquisition Unit 26 Association Unit 27 Output unit 28 Receiving unit 201 hardware processor 202 Bus 203 ROM 204 RAM 205 Non-volatile memory 206 first interface 207 Axis control circuit 208 spindle control circuit 209 PLC 210 I / O unit 211 second interface 3 Input / output device 4 servo amplifiers 5 Servo motor 6 spindle amplifiers 7 spindle motor 8 Auxiliary device 9 Image sensor element
Claims
[1] Information generating device comprising: a program acquisition unit that acquires a program executed in a control device configured to control an industrial machine; an extraction unit that extracts a program-forming element and additional information added to the element from the program acquired by the program acquisition unit; and a reference creation unit that creates a reference work in which the element and the additional information extracted by the extraction unit are associated with each other. [2] An information generating apparatus according to claim 1, further comprising: an image acquiring unit that acquires an image indicating a state of the industrial machine; an association unit that associates the image acquired by the image acquisition unit, when a control state related to the element changes in the control device, with the additional information associated with the element in the reference work; and an output unit that outputs the image and the additional information associated with each other by the association unit. [3] The information generating device according to claim 2, wherein the control state related to the item changes between at least a first state and a second state, and the reference work creating unit creates the reference work in which the item is associated with the additional information indicating the first state and the additional information indicating the second state. [4] The information generating apparatus according to claim 2 or 3, wherein the control state includes at least one of a state of a signal, a state of a macro variable, and a state of a shared variable. [5] The information generating apparatus according to any one of claims 1 to 4, wherein the program comprises at least one of a machining program, a sequence program, a system program, and an embedded program. [6] The information generating device according to any one of claims 1 to 5, wherein the additional information includes at least one of a comment and a symbol name. [7] The information generating apparatus according to any one of claims 1 to 6, further comprising a receiving unit that receives editing information used to edit the additional information associated with the item in the reference work. [8] Computer-readable storage medium that stores an instruction that causes a computer to perform: to obtain a program executed in a control device configured to control an industrial machine; a program-forming element, and additional information added to the element, from the obtained program; and to create a reference work in which the extracted element and the extracted additional information are associated with each other.
