Numerical control device, control method, program and storage medium
The solution encrypts and authenticates user applications in numerical control devices to prevent unauthorized operation screens, ensuring secure and functional execution, and simplifies navigation among multiple operation screens.
Patent Information
- Application Number
- JP2023047058
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
AI Technical Summary
Numerical control devices face issues with user-customized operation screens causing operational problems due to unencrypted or improperly formatted configuration information, leading to potential malfunctions.
Implementing encryption and decryption mechanisms using predetermined key information to ensure only authorized and properly formatted configuration information is stored and displayed, preventing unauthorized or improperly formatted data from being used, and providing separate guidance for initial and additional operation screens.
Prevents operational issues by ensuring only authorized and correctly formatted user applications are executed, allowing easy identification and termination of problematic screens, and facilitating easy navigation among multiple operation screens.
Smart Images

Figure 2024136085000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a numerical control device, a control method, a program, and a storage medium. [Background technology]
[0002] The numerical control device disclosed in Patent Document 1 reads definition information of a user interface for operating a machine tool from a non-volatile memory, and displays a user interface screen based on the definition information. The numerical control device can write a definition file that stores the definition information to a memory card. After editing the definition information using an external device such as a personal computer, a user saves the definition file on a memory card and stores it in the non-volatile memory of the numerical control device. Thereafter, the numerical control device can display a user interface screen customized by the user based on the newly stored definition information. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2004-206550 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, if a user is allowed to freely edit definition information or store a definition file that he or she has created in the numerical control device, there is a problem in that if a malfunction occurs due to the operation of a customized user interface screen, it will be difficult for the numerical control device to resolve the malfunction.
[0005] An object of the present invention is to provide a numerical control device, a control method, a program, and a storage medium that can suppress the occurrence of problems caused by operations on an operation screen customized by a user. [Means for solving the problem]
[0006] According to a first aspect of the present invention, there is provided a numerical control device that controls the operation of a machine tool that machines a workpiece based on an NC program, comprising a control device and a storage device, wherein the control device comprises: a display control unit that controls the display of an operation screen on a display device based on screen configuration information, which is information composed of a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition unit that acquires encrypted configuration information in which the screen configuration information has been previously encrypted using encryption information, which is characteristic information indicating characteristics of information, and which is generated based on the characteristic information of the screen configuration information and predetermined key information; a decryption generation unit that generates decryption information for decrypting the encrypted configuration information based on the characteristic information and the key information of the encrypted configuration information; a judgment unit that judges whether the decryption information generated by the decryption generation unit matches the encryption information held by the encrypted configuration information; and a configuration information storage unit that stores the screen configuration information decrypted from the encrypted configuration information in the storage device when the judgment unit judges that the decryption information and the encryption information match.
[0007] The configuration information storage unit can store, in the storage device as screen configuration information, decrypted configuration information that is decrypted using the specified key information from encrypted configuration information that has been encrypted in advance using the same key information. That is, the configuration information storage unit does not store, in the storage device, information that cannot be decrypted using the specified key information. By having the provider of the numerical control device perform encryption using the specified key information, the numerical control device will not display an operation screen based on information that has not been encrypted by the provider. Therefore, the numerical control device can suppress the occurrence of malfunctions caused by the operation of an operation screen customized by the user.
[0008] In a first aspect, the display control unit may display an error on the display device when the determination unit determines that the decryption information does not match the encryption information. The display control unit can display an error on the display device when an operation is performed by a provider to store unencrypted information in a storage device. Therefore, the numerical control device can suppress the occurrence of malfunctions caused by operations on an operation screen customized by a user.
[0009] In a first aspect, the encryption configuration information is information obtained by changing a first file format, which is a file format of information encrypted in an external device, to a second file format different from the first file format, and the control device includes a change unit that changes the file format of the encryption configuration information acquired by the acquisition unit from the second file format to the first file format, and the acquisition unit may acquire the encryption configuration information in the second file format by excluding the encryption configuration information in the first file format from an acquisition target, and the configuration information storage unit may decrypt the encryption configuration information changed to the first file format by the change unit and store it in the storage device. The acquisition unit acquires only the encryption configuration information changed to the second file format. That is, encryption configuration information in an inappropriate file format is not acquired and is not decrypted. Thus, the numerical control device can suppress the occurrence of malfunctions caused by the operation of an operation screen customized by a user.
[0010] In a first aspect, the display control unit can display an initial guidance screen that guides the user to display an initial operation screen, which is the existing operation screen for operating the machine tool, and an additional guidance screen that guides the user to display an additional operation screen, which is a newly added operation screen, and the display control unit may display a transition instruction unit that accepts an operation to transition from displaying the initial guidance screen to displaying the additional guidance screen. The display control unit does not provide guidance for displaying the existing initial operation screen and guidance for displaying the newly added additional operation screen on a single guidance screen. This allows the user to easily find and display a desired operation screen.
[0011] In a first aspect, when the screen configuration information of a plurality of the additional operation screens is stored in the storage device, the display control unit may display the addition guidance screen that guides the display of each of the plurality of additional operation screens. When there are a plurality of additional operation screens created by an external device, an addition guidance screen is displayed for each of the plurality of additional operation screens. Thus, the user can easily display a desired additional operation screen from among the plurality of additional operation screens created by the external device on the display device.
[0012] In the first aspect, the file format of the screen configuration information created in the external device may be HTML format. An operation screen in HTML format does not require special tools and has high compatibility between devices, so it can be easily created regardless of the model of the external device.
[0013] In a first aspect, the control device may include a command generation unit that generates operation commands written in the same format as the control commands constituting the NC program based on the operation of the operation screen, and a command storage unit that stores the operation commands generated by the command generation unit, and may control the operation of the machine tool based on the operation commands stored in the command storage unit. The operation of the machine tool performed by the operation screen created by an external device is based on the operation commands, and is therefore a simple operation. Therefore, even if a problem occurs in the operation, it is easy to identify the location where the problem occurred.
[0014] In a first aspect, the control device may include a specific input unit that receives an input of a specific operation by an input device that receives operation input when an abnormality occurs in the display of the additional operation screen due to a malfunction in the execution of the operation command, and the display control unit may end the display of the additional operation screen and display the additional guidance screen when the specific input unit receives the specific operation. When an abnormality occurs in the display of the additional operation screen, a user can end only the display of the additional operation screen and display the additional guidance screen without rebooting the numerical control device.
[0015] According to a second aspect of the present invention, there is provided a control method for a numerical control device that controls the operation of a machine tool that processes a workpiece based on an NC program, the numerical control device includes a control device and a storage device, and the control method includes a display control step of controlling the display of an operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool, an acquisition step of acquiring encrypted configuration information obtained by previously encrypting the screen configuration information using encryption information that indicates characteristics of information and is generated based on the characteristic information of the screen configuration information and predetermined key information, a decryption generation step of generating decryption information for decrypting the encrypted configuration information based on the characteristic information and the key information of the encrypted configuration information, a judgment step of judging whether the decryption information generated by the decryption generation step matches the encryption information held by the encrypted configuration information, and a configuration information storage step of storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is judged by the judgment step that the decryption information matches the encryption information. Therefore, the second aspect has the same effect as the first aspect.
[0016] According to a third aspect of the present invention, there is provided a program for causing a numerical control device to function, which controls the operation of a machine tool for machining a workpiece based on an NC program, the numerical control device being provided with a control device and a storage device, and causing a computer to execute the following steps: a display control step for controlling the display of an operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition step for acquiring encrypted configuration information obtained by previously encrypting the screen configuration information using encrypted information that indicates characteristics of information and is generated based on the characteristic information of the screen configuration information and predetermined key information; a decryption / generation step for generating decryption information for decrypting the encrypted configuration information based on the characteristic information and the key information of the encrypted configuration information; a determination step for determining whether the decryption information generated by the decryption / generation step matches the encrypted information contained in the encrypted configuration information; and a configuration information storage step for storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is determined by the determination step that the decryption information matches the encrypted information. Thus, the third aspect has the same effect as the first aspect.
[0017] According to a fourth aspect of the present invention, there is provided a storage medium storing a program for causing a numerical control device to function, which controls the operation of a machine tool for machining a workpiece based on an NC program, the numerical control device being provided with a control device and a storage device, and for causing a computer to execute the following steps: a display control step for controlling the display of an operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition step for acquiring encrypted configuration information obtained by previously encrypting the screen configuration information using encrypted information that indicates characteristics of information and is generated based on the characteristic information of the screen configuration information and predetermined key information; a decryption / generation step for generating decryption information for decrypting the encrypted configuration information based on the characteristic information of the encrypted configuration information and the key information; a determination step for determining whether the decryption information generated by the decryption / generation step matches the encrypted information contained in the encrypted configuration information; and a configuration information storage step for storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is determined by the determination step that the decryption information matches the encrypted information. Thus, the fourth aspect has the same effect as the first aspect. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a perspective view of a machine tool 1. [Diagram 2] 2 is a block diagram showing the electrical configuration of the machine tool 1. FIG. [Diagram 3] FIG. 1 is a diagram showing a development process leading up to the provision of a user application. [Figure 4] 4 is a flowchart of an NC control process during MDI operation. [Diagram 5] 13 is a flowchart of a user application registration process. [Figure 6] 13 is a flowchart of a backup process. [Figure 7] 13 is a flowchart of a user application execution process. [Figure 8]13 is a flowchart of an interrupt process. [Figure 9] FIG. 2 is a front view of the operation panel 12 displaying a cryptographic application registration screen. [Figure 10] FIG. 2 is a front view of the operation panel 12 displaying a support application selection screen. [Figure 11] FIG. 2 is a front view of the operation panel 12 that displays a user application selection screen. [Figure 12] FIG. 11 is a front view of the operation panel 12 displaying the operation screen of the application K3. [Figure 13] FIG. 2 is a front view of the operation panel 12 displaying an editing screen for MDI operation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] An embodiment of the present invention will be described below. The left and right, front and rear, and up and down directions of the machine tool 1 will be described below with reference to the directions of the arrows shown in the drawing.
[0020] The configuration of machine tool 1 will be described with reference to Figure 1. Machine tool 1 comprises a machine section 10, a control panel 11, and an operation panel 12. Machine section 10 is roughly rectangular and has a space (not shown) inside. An operator places a workpiece (material to be machined) to be processed in the space inside machine section 10. Machine section 10 comprises a spindle (not shown) inside the space. Inside machine section 10, machining is performed on the workpiece using a tool attached to the spindle. Machining includes, for example, milling, drilling, tapping, cutting, etc.
[0021] The control panel 11 is provided on the back of the machine section 10, and controls each operation of the machine section 10 and the operation panel 12. The control panel 11 outputs image signals of various images to the operation panel 12. The image signals are pulsed electric signals that comply with standards such as HDMI (registered trademark) (High-Definition Multimedia Interface) and DVI (Digital Visual Interface). The images include images that prompt the operator to perform an operation, such as images showing setting values required for machining, as well as images showing the NC program during machining.
[0022] The operation panel 12 is provided on the front of the machine section 10. The operation panel 12 is equipped with a display section 20 and an operation section 21. The display section 20 is a liquid crystal display (LCD) with a built-in backlight, and displays an image based on the image signal output by the control panel 11. The operation section 21 is equipped with buttons, switches, a touch panel, etc. The touch panel is provided on the display section 20 of the operation panel 12. An operator operates the operation section 21 while looking at the image displayed by the display section 20. The operation panel 12 outputs an operation signal indicating the content of the operation performed by the operator on the operation section 21 to the control panel 11. Based on the content of the operation indicated by the operation signal, the control panel 11 generates a control command indicating the content of the machining, and outputs it to the machine section 10.
[0023] The electrical configuration of machine tool 1 will be described with reference to Figure 2. As described above, machine tool 1 comprises machine unit 10, control panel 11, and operation panel 12. Machine unit 10 comprises operating unit 15. Operating unit 15 comprises a motor and an encoder (not shown). The motor is, for example, the drive source for the spindle and the moving mechanism. A tool is attached to the spindle, which rotates at high speed. The moving mechanism moves the spindle and work table (not shown) relatively in three axial directions (X-axis, Y-axis, Z-axis). The work table supports the workpiece. The encoder detects the rotation angle of each corresponding motor.
[0024] The control panel 11 includes a numerical control device 30, and controls the operation of each of the machine section 10 and the operation panel 12. The numerical control device 30 includes a CPU 31, a ROM 32, a RAM 33, a non-volatile memory 34, and an input / output interface 35. The CPU 31 is connected to the ROM 32, the RAM 33, the non-volatile memory 34, and the input / output interface 35 via a bus 36. The CPU 31 controls the operation of the machine tool 1. The ROM 32 stores an NC control program and a support application. The NC control program is a program that executes NC control processing (see FIG. 4) during MDI (Manual Data Input) operation described later. The MDI operation is an operation mode in which NC control is executed manually. The ROM 32 also stores an NC control program that executes NC control processing (not shown) during memory operation. The memory operation is an operation mode in which an NC program registered in the non-volatile memory 34 is called up and automatically operated. The ROM 32 stores configuration information of various screens and key information described later. The RAM 33 temporarily stores various information. The non-volatile memory 34 stores various information including the NC program, as well as user applications, which will be described later.
[0025] The input / output interface 35 is electrically connected to the operating unit 15 of the mechanical unit 10, the FPGA 27 of the operation panel 12, and the memory card reader / writer 37. The CPU 31 outputs control commands to the operating unit 15 via the input / output interface 35. The control commands indicate the content of the operation, such as machining. The operating unit 15 operates based on the control commands. Therefore, the mechanical unit 10 performs machining on the workpiece in accordance with the content indicated by the control commands. The operating unit 15 outputs a detection signal from the encoder to the CPU 31 via the input / output interface 35. The CPU 31 estimates the positions of the spindle and the workpiece based on the detection signal, and performs feedback control of the operating unit 15.
[0026] The operation panel 12 includes a display unit 20, an operation unit 21, and an FPGA 27. The FPGA 27 controls the operation of the operation panel 12. The FPGA 27 is connected to the display unit 20 and the operation unit 21. The FPGA 27 receives an image signal output by the CPU 31 of the control panel 11 via an input / output interface 35, and outputs the image signal to the display unit 20. The FPGA 27 outputs an operation signal received by the operation unit 21 to the CPU 31 via the input / output interface 35.
[0027] A memory card 38, which is a readable and writable storage medium, is connected to the memory card reader 37. The memory card reader 37 reads data from the memory card 38 and writes data to the memory card 38. An encrypted application, which is an encrypted user application described later, is stored in the memory card 38.
[0028] The numerical control device 30 can execute an application (support application) created by the manufacturer that provides the machine tool 1. In the following description, the application may be abbreviated to "application". The support application is an application that is called from the NC control program and displays an operation screen for performing processing to assist the execution of the NC control program. The support application is stored in the ROM 32. The numerical control device 30 can further execute an application (user application) created by a third party or a user. The user application is an application that is called from the NC control program in the same way as the support application and displays an operation screen for performing processing to assist the execution of the NC control program. The user application is created in an external device (such as a PC) and stored in the non-volatile memory 34 via the memory card 38 or the like. The user application provides processing that cannot be realized by the support application alone, processing customized according to the user's request, and the like.
[0029] When a user application is called by a user operation during execution of the NC control program, the numerical control device 30 executes the corresponding user application from among multiple user applications stored in the non-volatile memory 34. The user application is, for example, data in HTML format. Therefore, a third party can create a user application using not only a PC as an external device but also various external devices capable of editing HTML, such as a smartphone or tablet. In addition, a third party can create a user application in HTML format with less impact on the development environment due to differences in the OS installed in the external device.
[0030] In order to prevent malfunctions in the operation of the machine tool 1 caused by the execution of a user application of unknown origin, the numerical control device 30 places restrictions on the registration of user applications (storage in the non-volatile memory 34). The development process up to the point where a user application executable on the numerical control device 30 is provided to a user will be described below.
[0031] As shown in FIG. 3, the third party 73 develops a user application using the PC 74 of the third party 73 (S201). In the course of development, the third party 73 can receive various kinds of support from the manufacturer 72 (S202). The support from the manufacturer includes, for example, explanations on how to create a user application, explanations of specifications that the user application must satisfy and prohibited operations, provision of a sample of the user application, and handling of various inquiries that arise in the development course. Once the user application has been completed through these processes (S203), the third party requests a password from the manufacturer (S204). At that time, the third party sends the user application whose development has been completed to the manufacturer.
[0032] The manufacturer 72 performs an operation test of the user application using a test application installed in the PC 71 of the manufacturer 72 (S211). The test application is, for example, an application that simulates the operation of the numerical control device 30 and the machine tool 1. If there is no problem with the operation of the user application on the test application, the test is passed (S212), and the manufacturer 72 generates a password using a password generation application installed in the PC 71 (S213). The password generation application is an application that generates a password using key information prepared in advance and property information of the user application. The property information is information that indicates the characteristics of the user application, such as the file name, file type, access right setting, creation date and time, update date and time, data size, and read attribute. The user application holds the property information, and various information other than the above can be added to the property information. The password generation application generates a password using at least a part of the information included in the property information of the user application. The manufacturer 72 notifies the third party 73 of the generated password (S214).
[0033] The third party 73 uses the encryption application installed in the PC 74 to encrypt the user application using the notified password (S221). The encryption application may be provided by the manufacturer 72, or may be a general-purpose encryption application published on a network or the like and designated by the manufacturer 72. The third party 73 changes the file format of the encryption application that has encrypted the user application (e.g., a known file format) to a file format designated by the manufacturer 72 (e.g., a file format independently developed by the manufacturer 72) (S222). Specifically, the third party 73 changes the extension of the encryption application to the extension given by the encryption application. The third party 73 may publish the encryption application with the changed extension, for example, on the network 76, or may directly provide it to the user 75 (S223).
[0034] The user 75 downloads and acquires the encrypted application published on the network 76. Alternatively, the user 75 acquires the encrypted application by being directly provided by the third party 73 (S231). The user 75 stores the acquired encrypted application in the memory card 38. The user 75 reads the encrypted application stored in the memory card 38 with the memory card reader 37 mounted on the machine tool 1, and registers it in the numerical control device 30 as a user application (S232). At that time, the numerical control device 30 generates a password using key information stored in the ROM 32 in advance and at least a part of information included in the property information of the encrypted application. The key information stored in the ROM 32 is the same key information as the key information of the password generating application installed in the PC 71. In addition, the part of information used as the property information of the encrypted application is information that is maintained after encryption, among the property information of the user application before encryption. Therefore, the numerical control device 30 generates a password used for decrypting the encrypted application to the user application, using the same algorithm as the password generating application of the PC 71. The user application thus decrypted from the encrypted application is stored in the non-volatile memory 34, and is called and executed in the NC control program.
[0035] Next, with reference to Figs. 4 to 13, a process related to the operation of a user application performed in NC control processing will be described. When the power supply of the machine tool 1 is turned on, the CPU 31 of the numerical control device 30 reads an NC control program from the ROM 32 and executes the NC control processing. For ease of explanation, the NC control processing described below is a process executed during MDI operation. As shown in Fig. 4, the CPU 31 reads configuration information of a home screen (not shown) from the ROM 32 and displays it on the display unit 20 of the operation panel 12 (S11). The home screen is the starting point for all operations on the machine tool 1.
[0036] The CPU 31 accepts key operations by the user through the buttons, switches, and touch panel of the operation unit 21 (S12). The touch panel can also accept operations on a virtual keyboard displayed on the display unit 20. The CPU 31 waits until a key operation is performed (S13: NO). If a key operation is performed (S13: YES), and the content of the operated key is not an operation to register a user application, an operation to back up a user application, an operation to execute a support application, or an operation to end execution of NC control processing (S16: NO, S18: NO, S21: NO, S26: NO), the CPU 31 executes an operation corresponding to the operated key (S27). After executing the operation, the CPU 31 returns to S12 and accepts a key operation by the user.
[0037] If the content of the operated key is an operation to register a user application (S16: YES), the CPU 31 executes a user application registration process (S17). The operation to register a user application is a series of operations to select a maintenance menu on the home screen, and then select a user application management menu on the maintenance menu, and then select a user application add button from a list displayed. As shown in FIG. 5, the CPU 31 reads data stored in a memory card 38 inserted in the memory card reader 37 (S31). It is assumed that a plurality of cryptographic applications acquired by a user 75 from a network 76 are stored in the memory card 38 in advance. The CPU 31 displays a selection screen for the cryptographic applications stored in the memory card 38 on the display unit 20 (S32). As shown in FIG. 9, for example, four cryptographic applications (applications K1, K2, K3, and K4) are stored in the memory card 38, and the four cryptographic applications are displayed in the form of selectable buttons on the cryptographic application selection screen. It is assumed that data whose extension is not in the specified file format is not displayed on the cryptographic application selection screen. Therefore, the CPU 31 can prevent erroneous registration of data whose extension is not in the specified file format as a user application.
[0038] As shown in Fig. 5, when the user operates the cancel button 202 (see Fig. 9) by key operation (S33: NO), the CPU 31 ends the execution of the user application registration process, returns to the NC control process, and displays the home screen (S11). When the user operates the key operation in S33 and operates the register button 201 (see Fig. 9) with the cryptographic application (e.g., application K4) to be registered selected, or when the icon of the cryptographic application to be registered is touched (S33: YES), the CPU 31 displays a disclaimer confirmation item, an agree button, and a disagree button (not shown) on the display unit 20 (S34). The disclaimer confirmation item is displayed to have the user confirm the disclaimer on the manufacturer 72 side, since the user application is not an application created by the manufacturer 72. When the user operates the disagree button (S36: NO), the CPU 31 ends the execution of the user application registration process, returns to the NC control process, and displays the home screen (S11). If the user operates the agree button (S36: YES), the CPU 31 reads the selected encrypted application from the memory card 38 into the RAM 33 (S37).
[0039] The CPU 31 changes the file format of the encrypted application to the original file format (S38). The original file format is the file format given by the encrypted application when encrypting the user application. The CPU 31 reads property information of the encrypted application and acquires some information required for generating a password. The CPU 31 then generates a password using the acquired property information and key information stored in the ROM 32 (S39). The CPU 31 determines whether the generated password matches the password of the encrypted application, and if they do not match (S41: NO), displays an error message on the display unit 20 indicating that the encrypted application cannot be decrypted (S46). The CPU 31 ends the execution of the user application registration process, returns to the NC control process, and displays the home screen (S11).
[0040] If the passwords match (S41: YES), the CPU 31 uses the password to decrypt the encrypted application (S42). If another error occurs when storing the decrypted user application in the non-volatile memory 34 (S43: YES), the CPU 31 displays an error on the display unit 20 (S46). Other errors are displayed, for example, when the upper limit of the number of user applications that can be registered is reached, when the capacity of the user application exceeds a set upper limit, or when the file format of the user application is not a format that can be used as an application. The CPU 31 ends the execution of the user application registration process, returns to the NC control process, and displays the home screen (S11).
[0041] If there is no error in the decrypted user application (S43: NO), the CPU 31 stores the user application in the non-volatile memory 34 (S44). As described above, the user application is an application that displays an operation screen for performing processing to assist the execution of the NC control program, and is written in HTML format. Data required for displaying the operation screen is stored in a hierarchical structure in folders. Thus, the registration of the user application is completed by storing the HTML format data stored in the folder in the area of the non-volatile memory 34 that stores the user application. Thus, although not shown, the deletion of the user application is completed by deleting the HTML format data stored in the folder from the area of the non-volatile memory 34 that stores the user application. The deleted user application can be restored by re-registering the encrypted application backed up in the backup processing described later. The CPU 31 ends the execution of the user application registration processing, returns to the NC control processing, and displays the home screen (S11).
[0042] In S18 of FIG. 4, if the content of the operated key is an operation to back up a user application (S18: YES), the CPU 31 executes a backup process (S19). Note that the operation to back up a user application is a series of operations in which a maintenance menu is selected on the home screen, and a user application management menu is selected on the maintenance menu, and then a user application add button is selected from a list that is displayed. As shown in FIG. 6, the CPU 31 reads data stored in an area of the non-volatile memory 34 that stores user applications (S51). The CPU 31 displays a selection screen for user applications stored in the non-volatile memory 34 on the display unit 20 (S52). Although not shown, the user application selection screen is displayed as a screen similar to the encryption application selection screen shown in FIG. 9.
[0043] When the user operates a cancel button (not shown) by key operation (S53: NO), the CPU 31 ends the execution of the backup process, returns to the NC control process, and displays the home screen (S11). When the user operates a key operation in S53 and operates a backup button (not shown) with a user application (e.g., application K4) to be backed up selected, or when the user touches an icon of the user application to be backed up (S53: YES), the CPU 31 displays a disclaimer confirmation item, an agreement button, and a non-agreement button (not shown) on the display unit 20 (S54). The disclaimer confirmation item is displayed to remind the user not to edit data after the backup, since there is a possibility that the property information is changed and the password becomes inconsistent, making it impossible to restore the data, and to have the user confirm the disclaimer on the manufacturer 72 side in the case where the user does edit the data. When the user operates the non-agreement button (S56: NO), the CPU 31 ends the execution of the user application registration process, returns to the NC control process, and displays the home screen (S11). If the user operates the agree button (S56: YES), the CPU 31 reads the selected user application from the non-volatile memory 34 into the RAM 33 (S57).
[0044] The CPU 31 reads the property information of the user application and acquires some information required for generating a password. The CPU 31 then generates a password using the acquired property information and key information stored in the ROM 32 (S58). The CPU 31 encrypts the user application using the password (S61). The CPU 31 changes the file format of the encrypted application that has encrypted the user application to a specified file format (S62). The CPU 31 writes the encrypted application to the memory card 38 using the memory card reader / writer 37 (S63). The CPU 31 then erases the backed up user application from the non-volatile memory 34 (S64). The CPU 31 ends the execution of the backup process, returns to the NC control process, and displays the home screen (S11).
[0045] 4, if the content of the operated key is an operation to execute a support application (S21: YES), the CPU 31 displays a support application selection screen (S22). As shown in Fig. 10, for example, ten types of support applications (applications A, B, C, D, E, F, G, H, I, and J) are stored in the non-volatile memory 34. In this case, the support application selection screen displays icons of the ten types of support applications and a transition button 205 for transitioning to a user application selection screen in the form of icons.
[0046] As shown in Fig. 4, when the user operates a key other than the transition button 205 (S23: NO), the CPU 31 executes an operation corresponding to the operated key (S27). That is, when the user operates the decision button 203 (see Fig. 10) with a support application selected, or when the user touches the icon of the support application to be executed, an operation (not shown) of executing the selected support application is performed. When the user operates the cancel button 204 (see Fig. 10), the display of the support application selection screen is terminated, and an operation (not shown) of returning to the home screen is performed. When the user operates a key and operates the transition button 205 (S23: YES), the CPU 31 executes a user application execution process (S24).
[0047] As shown in Fig. 7, CPU 31 executes interrupt processing (S71). As shown in Fig. 8, interrupt processing is processing executed in parallel with user application execution processing. CPU 31 waits unless release key 211 and 0 key 212 are input simultaneously (S91: NO). If there is simultaneous input (S91: YES), CPU 31 forcibly interrupts the user application execution processing and performs processing to forcibly terminate the user application being executed (S92). That is, even if the user application stops displaying due to a bug or the like, the interrupt processing terminates the execution of the user application where the abnormality occurred and returns the processing to the user application selection screen.
[0048] As shown in FIG. 7, when execution of the interrupt process starts, the CPU 31 reads data stored in an area of the non-volatile memory 34 that stores user applications (S72). The CPU 31 displays a selection screen for user applications stored in the non-volatile memory 34 on the display unit 20 (S73). As shown in FIG. 11, for example, four types of user applications (applications K1, K2, K3, and K4) are stored in the non-volatile memory 34. In this case, icons of four types of support applications are displayed on the support application selection screen. Icons of a maximum of 12 types of support applications can be displayed on the support application selection screen.
[0049] 7, when the user operates the cancel button 207 (see FIG. 11) by performing key operation (S76: NO), the CPU 31 ends the execution of the interrupt process (S88), and then ends the execution of the user application execution process, returns to the NC control process, and displays the home screen (S11). When the user operates the keys in S76 to select the user application (e.g., application K3) to be executed and operates the decision button 206 (see FIG. 11), or touches the icon of the user application (application K3) to be executed (S76: YES), the CPU 31 displays the operation screen of the user application to be executed on the display unit 20 (S77).
[0050] As shown in FIG. 12, the user application K3 generates a G-code for machining a workpiece based on the input results of five types of parameters. The display screen of the user application K3 is a screen that shows in a simplified diagram which of the five types of parameters indicates the size of which part, and it is possible to intuitively input the parameters. As shown in FIG. 7, when the five types of parameters are input on the operation screen of the user application K3 (S78) and the execute button 208 (see FIG. 12) is operated (S79: YES), an operation command (G-code) for machining the workpiece according to the parameters is generated (S81). The operation command is a control command generated on the MDI operation editing screen. The CPU 31 stores the generated operation command in the RAM 33 (S82). Note that when the cancel button 209 (see FIG. 12) is operated on the operation screen (S79: NO), the CPU 31 ends the execution of the interrupt process (S88), and then ends the execution of the user application execution process, returns to the NC control process, and displays the home screen (S11).
[0051] When the operation command is stored in the RAM 33 in S82, the CPU 31 displays an MDI operation edit screen on the display unit 20 (S83). As shown in Fig. 13, the MDI operation edit screen has an edit field 214 for the operation command. The edit field 214 accepts input of the operation command. The user can also paste the operation command generated by the user application or the support application into the edit field 214 by copy and paste.
[0052] As shown in Fig. 7, when the user performs key operation and operates the cancel button 217 (see Fig. 13) (S84: NO), the CPU 31 ends the execution of the interrupt process (S88), then ends the execution of the user application execution process, returns to the NC control process, and displays the home screen (S11). When the user performs key operation in S84 and operates the paste button 215 (see Fig. 13) (S84: YES), the CPU 31 pastes the operation command stored in the RAM 33 into the edit field 214 of the MDI operation edit screen (S86). After the CPU 31 ends the execution of the interrupt process (S87), then ends the execution of the user application execution process, returns to the NC control process, and waits for the user's key operation (S12, S13: NO). When the user operates the execute button 216 (see FIG. 13) by performing a key operation (S13: YES, S16: NO, S18: NO, S21: NO, S26: NO), the CPU 31 executes the operation corresponding to the operated key (S27). That is, the CPU 31 executes the operation command pasted in the edit field 214 and controls the operation unit 15. The machine unit 10 performs machining on the workpiece according to the contents indicated by the operation command. After the operation is executed, the CPU 31 returns to S12 and accepts a key operation by the user. If the contents of the operated key are an operation to end the execution of the NC control process (S26: YES), the CPU 31 ends the execution of the NC control program.
[0053] As described above, the CPU 31 can store in the non-volatile memory 34 a user application decrypted from an encrypted application that has been encrypted in advance using the predetermined key information, using the same key information. That is, the CPU 31 does not store in the non-volatile memory 34 a user application that cannot be decrypted with the predetermined key information. By having a provider such as a manufacturer or a third party encrypt a user application with the predetermined key information, the numerical control device 30 does not display, as an operation screen, a user application that is provided by a provider other than the provider and is not encrypted with the predetermined key information. Therefore, the numerical control device 30 can suppress the occurrence of a malfunction caused by the operation of an operation screen customized by a user.
[0054] When an operation is performed to store an unencrypted user application by a manufacturer or a third party provider in the non-volatile memory 34, the CPU 31 can display an error on the display unit 20. Therefore, the numerical control device 30 can suppress the occurrence of malfunctions caused by operations on an operation screen customized by the user.
[0055] The CPU 31 can read only the encrypted application whose file format has been changed to the manufacturer-specified file format from the memory card 38. That is, the encrypted application whose file format is not appropriate is not acquired and decrypted. Therefore, the numerical control device 30 can suppress the occurrence of problems caused by the operation of the operation screen customized by the user.
[0056] The CPU 31 does not display the support application selection screen for selecting a support application and the user application selection screen for selecting a user application together on a single selection screen, so that the user can easily find and execute a desired application.
[0057] When there are multiple user applications created by the external device, a user application selection screen is displayed that displays each of the user applications in a selectable manner, so that the user can easily find and display a desired user application from among the multiple user applications created by the external device.
[0058] When there are multiple user applications created by an external device, a user application selection screen is displayed for each of the user applications. Therefore, the user can easily display on the display unit 20 the operation screen of a desired user application among the multiple user applications created by the external device.
[0059] HTML format operation screens do not require special tools and are highly compatible between devices, so they can be easily created regardless of the model of the external device.
[0060] The operation of the machine tool 1 performed by the user application is based on an operation command and is therefore a simple operation. Therefore, even if a problem occurs in the operation, it is easy to identify the location where the problem occurred. When an abnormality occurs in the user application, the user can forcefully terminate only the user application and display the user application selection screen without rebooting the numerical control device 30.
[0061] In the above description, the CPU 31 is an example of a "control device" of the present invention. The user application is an example of a "screen configuration information" of the present invention. The display unit 20 is an example of a "display device" of the present invention. The non-volatile memory 34 is an example of a "storage device" of the present invention. The CPU 31 that executes the processes of S11, S22, S32, S34, S46, S52, S54, S73, S77, and S83 is an example of a "display control unit" of the present invention. The property information is an example of a "characteristic information" of the present invention. The password is an example of an "encryption information" and an "decryption information" of the present invention. The encryption application is an example of an "encryption configuration information" of the present invention. The CPU 31 that executes the process of S37 is an example of an "acquisition unit" of the present invention. The CPU 31 that executes the process of S39 is an example of a "decryption generation unit" of the present invention. The CPU 31 that executes the process of S41 is an example of a "determination unit" of the present invention. The CPU 31 that executes the process of S44 is an example of a "configuration information storage unit" of the present invention.
[0062] The PC 74 is an example of an "external device" of the present invention. A file format that is assigned when a user application is encrypted into an encryption application by an encryption application provided by the manufacturer 72, or a general-purpose encryption application that is published on a network or the like and specified by the manufacturer 72, is an example of a "first file format" of the present invention. A file format that needs to be changed when registering a user application in the numerical control device 30, such as a file format independently developed by the manufacturer 72, is an example of a "second file format" of the present invention. The CPU 31 that executes the process of S38 is an example of a "change unit" of the present invention. The operation screen of the support application is an example of an "initial operation screen" of the present invention. The support application selection screen is an example of an "initial guidance screen" of the present invention. The operation screen of the user application is an example of an "addition operation screen" of the present invention. The user application selection screen is an example of an "addition guidance screen" of the present invention. The transition button 205 is an example of a "transition instruction unit" of the present invention. The control command is an example of a "control command" of the present invention. The operation command is an example of an "operation command" of the present invention. The CPU 31 that executes the process of S81 is an example of the "command generating unit" of the present invention. The CPU 31 that executes the process of S82 is an example of the "command memory unit" of the present invention. The operation unit 21 is an example of the "input device" of the present invention. The simultaneous input of the release key 211 and the 0 key 212 is an example of the "specific operation" of the present invention. The CPU 31 that executes the process of S91 is an example of the "specific input unit" of the present invention.
[0063] The present invention is not limited to the above embodiment, and various modifications can be made. Instead of the CPU 31 of the numerical control device 30, a microcomputer, an ASIC (Application Specific Integrated Circuits), an FPGA (Field Programmable Gate Array), or the like may be used as a processor. Also, instead of the FPGA 27 of the operation panel 12, a CPU, a microcomputer, an ASIC, or the like may be used as a processor. The display unit 20 and the operation unit 21 are provided on the operation panel 12, but they may be provided on the numerical control device 30, and the operation screen may be displayed and the operation input may be received on the control panel 11. Also, without providing the FPGA 27, the display unit 20 and the operation unit 21 may be connected to the input / output interface 35, and the CPU 31 may perform the display process of the operation screen and the reception process of the operation input. The user application is not limited to an application in HTML format, and may be an application written in other markup languages such as XML and SGML, or may be an application compiled from source codes written in various programming languages such as PHP, JavaScript (registered trademark), and C++.
[0064] The operation test of S211 may not be performed. In this case, the third party 73 may notify the manufacturer 72 of property information of the user application instead of sending the user application to the manufacturer 72. In addition, the manufacturer 72 may encrypt the user application that has passed the operation test of S211 using a password generated in S213, and may release the encrypted application on the network 76 or the like on behalf of the third party 73. In this case, the manufacturer 72 may centrally manage the encrypted applications of various third parties 73, and provide the encrypted applications to the user 75 on the network 76 or the like as user applications whose operation has been confirmed.
[0065] The numerical control device 30 may be connected to the network 76, and the encrypted application published on the network 76 may be directly acquired by the numerical control device 30 and registered as a user application. The numerical control device 30 may output a voice when displaying an error. An operation command created by a user application is executed in MDI operation. Not limited to this, editing of an NC program in memory operation may be performed by a user application. [Explanation of symbols]
[0066] 1 Machine tools 20 Display section 21 Control section 30 Numerical Control Device 31 CPU 34 Non-volatile memory 74 PC 205 Transition button 211 Release Key
Claims
1. In a numerical control device that controls the operation of a machine tool that processes a workpiece based on an NC program, A control device; a storage device; The control device includes: a display control unit that controls display of the operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; and an acquisition unit that acquires encrypted configuration information obtained by encrypting the screen configuration information in advance using encryption information generated based on the characteristic information of the screen configuration information and predetermined key information, the encrypted information being characteristic information indicating characteristics of information; a decryption generation unit that generates decryption information for decrypting the encryption configuration information based on the characteristic information and the key information of the encryption configuration information; a determination unit that determines whether the decryption information generated by the decryption generation unit matches the encryption information included in the encryption configuration information; a configuration information storage unit that stores the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when the determination unit determines that the decryption information and the encryption information match; Equipped with A numerical control device characterized by:
2. The display control unit displays an error on the display device when the determination unit determines that the decryption information does not match the encryption information. The numerical control device according to claim 1 .
3. the encryption configuration information is information obtained by changing a first file format, which is a file format of information encrypted in an external device, to a second file format different from the first file format, The control device includes: a change unit that changes a file format of the encryption configuration information acquired by the acquisition unit from the second file format to the first file format, the acquisition unit acquires the encryption configuration information in the second file format by excluding the encryption configuration information in the first file format from an acquisition target, The configuration information storage unit decrypts the encrypted configuration information that has been changed to the first file format by the change unit, and stores the decrypted configuration information in the storage device. The numerical control device according to claim 2 .
4. The display control unit is an initial guidance screen that guides the user to display an initial operation screen, which is the existing operation screen for operating the machine tool; An additional guidance screen that guides the user to display the additional operation screen that is the newly added operation screen; and It is possible to display The display control unit displays a transition instruction unit that accepts an operation to transition from displaying the initial guidance screen to displaying the additional guidance screen. The numerical control device according to claim 3 .
5. When the screen configuration information of a plurality of the additional operation screens is stored in the storage device, The display control unit displays the addition guidance screen that guides the user to display each of the plurality of addition operation screens. The numerical control device according to claim 4 ,
6. The file format of the screen configuration information created in the external device is HTML format. The numerical control device according to claim 5 .
7. The control device includes: a command generating unit that generates, based on an operation on the operation screen, an operation command written in the same format as a control command constituting the NC program; a command storage unit that stores the operation command generated by the command generation unit; Equipped with Controlling the operation of the machine tool based on the operation command stored in the command storage unit. The numerical control device according to claim 6 .
8. the control device includes a specific input unit that receives an input of a specific operation by an input device that receives an input of an operation when an abnormality occurs in the display of the additional operation screen due to a malfunction occurring in the execution of the operation command, When the specific input unit receives the specific operation, the display control unit ends the display of the additional operation screen and displays the additional guide screen. The numerical control device according to claim 7 .
9. A method for controlling a numerical control device that controls an operation of a machine tool that processes a workpiece based on an NC program, comprising: The numerical control device includes a control device and a storage device, a display control step of controlling display of the operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition step of acquiring encrypted configuration information obtained by encrypting the screen configuration information in advance using encryption information generated based on the characteristic information of the screen configuration information and predetermined key information, the encrypted information being characteristic information indicating characteristics of information; a decryption generating step of generating decryption information for decrypting the encryption configuration information based on the characteristic information and the key information of the encryption configuration information; a determination step of determining whether the decryption information generated by the decryption generation step matches the encryption information included in the encryption configuration information; a configuration information storage step of storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is determined that the decrypted information and the encrypted information match in the determination step; Equipped with A control method comprising:
10. A program for causing a numerical control device to function, the program controlling the operation of a machine tool that processes a workpiece based on an NC program, The numerical control device includes a control device and a storage device, On the computer, a display control step of controlling display of the operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition step of acquiring encrypted configuration information obtained by encrypting the screen configuration information in advance using encryption information generated based on the characteristic information of the screen configuration information and predetermined key information, the encrypted information being characteristic information indicating characteristics of information; a decryption generating step of generating decryption information for decrypting the encryption configuration information based on the characteristic information and the key information of the encryption configuration information; a determination step of determining whether the decryption information generated by the decryption generation step matches the encryption information included in the encryption configuration information; a configuration information storage step of storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is determined that the decrypted information and the encrypted information match in the determination step; A program characterized by executing the above.
11. A program for causing a numerical control device to function, the program controlling the operation of a machine tool that processes a workpiece based on an NC program, The numerical control device includes a control device and a storage device, On the computer, a display control step of controlling display of the operation screen on a display device based on screen configuration information, which is information configured in a predetermined file format that can be displayed as an operation screen for operating the machine tool; an acquisition step of acquiring encrypted configuration information obtained by encrypting the screen configuration information in advance using encryption information generated based on the characteristic information of the screen configuration information and predetermined key information, the encrypted information being characteristic information indicating characteristics of information; a decryption generating step of generating decryption information for decrypting the encryption configuration information based on the characteristic information and the key information of the encryption configuration information; a determination step of determining whether the decryption information generated by the decryption generation step matches the encryption information included in the encryption configuration information; a configuration information storage step of storing the screen configuration information obtained by decrypting the encrypted configuration information in the storage device when it is determined that the decrypted information and the encrypted information match in the determination step; A program that executes A storage medium storing the above.
Citation Information
Patent Citations
Numerical control apparatus
JP2004206550A
Cited By
Remote support system and remote support method for machine tool
WO2026212424A1
