Numerical control device and computer readable storage medium

The numerical control device addresses unintended machining risks by comparing editing dates and times of machining programs across internal and external storage devices, alerting operators to changes and enabling controlled program selection.

JP7587023B2Active Publication Date: 2024-11-19FANUC LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023515960
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-04-21
Publication Date
2024-11-19
Estimated Expiration
2041-04-21

AI Technical Summary

Technical Problem

Numerical control devices risk unintended machining due to the possibility of machining programs in external storage devices being changed without the operator's notice, as they can be edited on external devices like PCs, leading to potential unintended machining operations.

Method used

A numerical control device with a file information storage unit to store file identification information and editing dates, an external storage device recognition unit, and a file information comparison unit to determine if a machining program has been edited by comparing editing dates and times, and an edit notification unit to alert the operator if changes are detected.

Benefits of technology

The solution allows the device to identify if a machining program has been edited, preventing unintended machining by notifying the operator and allowing them to choose whether to reuse or select another program, thus ensuring safe and controlled machining operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007587023000001
    Figure 0007587023000001
  • Figure 0007587023000002
    Figure 0007587023000002
  • Figure 0007587023000003
    Figure 0007587023000003
Patent Text Reader

Abstract

The present invention stores file identification information and edit dates and times for processing programs, stores file identification information for a program to be run that is a processing program that has been set to be run, recognizes the attachment of an external storage device, and, when the program to be run is stored at the attached external device, determines that the program to be run has been edited when the edit date and time of the program to be run as stored at the external storage device and the edit date and time of the program to be run as stored at a file information storage unit are different.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a numerical control device and a computer-readable storage medium. [Background technology]

[0002] The programs of the numerical control device can be edited not only on the numerical control device itself, but also on external devices such as PCs and servers. Programs edited on external devices are recorded on external storage devices such as CF (Compact Flash (registered trademark)) cards.

[0003] Patent Document 1 states that "The memory of drive device 30 is a flash memory. The memory of control unit 10 is of the cassette type, and when updating the S / W, a servo memory 103A containing transfer S / W and S / W of 30 is attached. When the power is turned on in this state, the S / W update of drive device 30 is automatically performed." [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent No. 2862051 Summary of the Invention [Problem to be solved by the invention]

[0005] Some numerical control devices have a function of automatically selecting the last used machining program. Such numerical control devices store identification information of the last used machining program. When the power is turned on, the numerical control device automatically selects and reads out the last used machining program without the operator having to select a machining program. If the machining program exists in the storage device of the numerical control device, the machining program is read out from the numerical control device. If the machining program exists in an external storage device, the machining program is read out from the external storage device. The operator can continue the same machining by simply turning on the power or inserting the external storage device.

[0006] However, when a machining program from an external storage device is automatically selected, there is a risk of unintended machining occurring, because the machining program from the external storage device may have been changed using an external device such as a PC, and the operator may start machining without realizing that the machining program has been changed.

[0007] In the field of numerical control devices, a technique for identifying whether the contents of a file have been changed is desirable. [Means for solving the problem]

[0008] A numerical control device which is one aspect of the present disclosure includes a file information storage unit which stores file identification information and edit date and time of a machining program, an operation target program storage unit which stores file identification information of an operation target program which is a machining program set as an operation target, an external storage device recognition unit which recognizes the attachment of an external storage device, and a file information comparison unit which, when the operation target program is stored in the attached external storage device, determines that the operation target program has been edited if the edit date and time of the operation target program stored in the external storage device differs from the edit date and time of the operation target program stored in the file information storage unit. A computer-readable storage medium according to one embodiment of the present disclosure, when executed by one or more processors, causes file identification information and an edit date and time of a machining program to be stored in a numerical control device, causes file identification information of a target program to be operated, which is a machining program set as an operation target, to be stored in the numerical control device, recognizes attachment of an external storage device to the numerical control device, and, if the target program to be operated is stored in the attached external storage device, determines that the target program to be operated has been edited if the edit date and time of the target program stored in the external storage device differs from the edit date and time of the target program to be operated stored in the numerical control device. An editing device that is one aspect of the present disclosure includes a program editing unit that edits a machining program of a numerical control device, and when the machining program is edited, the editing date and time of the machining program is associated with file identification information that the numerical control device has assigned to the machining program, and stored in the numerical control device. Effect of the Invention

[0009] One aspect of the present invention allows for determining whether the contents of a file have been modified. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a conceptual diagram of a file management system. [Diagram 2] FIG. 2 is a block diagram of a file management system according to the first disclosure. [Diagram 3] 13 is a flowchart illustrating a procedure for an edit determination process. [Figure 4] 11 is a flowchart illustrating a procedure for updating an edit date and time and an operation target program. [Diagram 5] FIG. 11 is a block diagram of a file management system according to a second disclosure. [Figure 6] FIG. 2 is a hardware configuration diagram of a numerical control device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] [First Disclosure] The file management system of the first disclosure will be described with reference to the drawings. FIG. 1 is a conceptual diagram of a file management system 1000 according to the present disclosure. The file management system 1000 according to the present disclosure includes a numerical control device 100 for controlling a machine tool, and an external device having a function for creating / editing a machining program. In the present disclosure, the external device 200 is described as a PC (personal computer), but is not limited to a PC as long as it is an information processing device having a program editing function. The numerical control device 100 and the external device 200 are provided with connectors for attaching an external storage device 300 such as a CF card. In the external device 200, the machining program for the numerical control device 100 can be created / edited by the PC 200. The numerical control device 100 reads the machining program edited by the PC 200.

[0012] 2 is a block diagram of the file management system 1000. The numerical control device 100 includes an operation target program storage unit 10, a file system unit 11, a file identification information management unit 12, a file information storage unit 13, a file information update unit 14, an external device recognition unit 15, an operation target program confirmation unit 16, a file information reading unit 17, a file information comparison unit 18, an operation target program selection unit 19, and an edit notification unit 20. An editing device 21 is attached inside the numerical control device 100. The editing device 21 includes a program editing unit 22 and an edit date and time update unit 23.

[0013] The file system unit 11 is, for example, but not limited to, a FAT (File Allocation Table) file system. The file system unit 11 manages files and directories in the ROM and RAM (described later) of the numerical control device 100, and files and directories in the external storage device 300. When the attachment of the external storage device 300 to the numerical control device 100 is recognized, the file system unit 11 reads out management information of the file recorded in the external storage device 300. This management information includes the edit date and time of the machining program.

[0014] The file identification information management unit 12 assigns unique file identification information to unknown machining programs. The unknown machining programs include, for example, a program newly created in the numerical control device 100, and a machining program newly acquired via a network or an external storage device 300. The file identification information management unit 12 stores the file identification information and the edit date and time of the file in the file information storage unit 13. The file identification information is a unique value that is different from the file names managed by the file system unit 11. The file names managed by the file system unit 11 are names given to individual machining programs by programmers and may overlap with other files. The file identification information given to machining programs by the file identification information management unit 12 is unique to each file of a machining program and will not overlap.

[0015] The editing device 21 accepts editing of the machining program. The program editing unit 22 displays a machining program editing screen and the like and accepts editing instructions from an operator. When editing of the machining program is completed, the file system unit 11 updates the editing date and time in the external storage device 300, and the editing date and time update unit 23 updates the editing date and time in the file information storage unit 13. When a machining program is edited using the editing device 21 of the numerical control device 100, both the edit date and time in the file information storage unit 13 and the edit date and time in the external storage device 300 are updated, so that the edit dates and times on the two devices match.

[0016] The external device 200 includes a program editing unit 31 and a file system unit 32. The program editing unit 31 is, for example, a dedicated tool for editing a machining program for a machine tool. When editing of the machining program in the program editing unit 31 is completed, the file system unit 32 updates the editing date and time in the external storage device 300. When the machining program is edited by the external device 200, only the edit date and time in the external storage device 300 is updated, so that the edit date and time in the external storage device 300 and the edit date and time in the file information storage unit 13 do not match.

[0017] The external storage device recognition unit 15 recognizes that the external storage device 300 has been attached to the numerical control device 100. The timing for recognizing the attachment of the external storage device 300 includes, for example, when the numerical control device 100 is powered on. When the numerical control device 100 is started up, the external storage device 300 is checked, and the external storage device 300 recognizes the attachment. The external storage device 300 may be attached while the numerical control device 100 is started up. The external storage device 300 may be temporarily disconnected and reconnected due to vibrations in the factory, for example.

[0018] When the operator selects a machining program to be operated, the operation target program confirmation unit 16 updates the operation target program stored in the operation target program storage unit 10. As a result of the update, file identification information of the machining program last executed by the numerical control device 100 is stored in the operation target program storage unit 10.

[0019] The file information reading unit 17 reads the file identification information from the external storage device 300. In addition, the file information reading unit 17 obtains from the file system unit 11 the edit date and time of the machining program stored in the external storage device 300.

[0020] When the operation target program exists in the external storage device 300, the file information comparison unit 18 reads the edit date and time of the operation target program from the file information storage unit 13, and compares the edit date and time of the operation target program stored in the file information storage unit 13 with the edit date and time of the operation target program stored in the external storage device 300. When the edit date and time of the operation target program stored in the file information storage unit 13 differs from the edit date and time stored in the external storage device 300, it is determined that the operation target program has been edited.

[0021] The operation target program selection unit 19 judges whether the machining program has been edited based on the comparison result of the edit date and time. If the edit date and time of the machining program stored in the external storage device 300 is different from the edit date and time stored in the file information storage unit 13, it is judged that the machining program has been edited. If the edited machining program is played back as is, machining that the operator did not expect may be performed. The edit notification unit 20 notifies the operator that the machining program has been edited. The notification method may be, but is not limited to, displaying the information on the numerical control device 100 or the operator's mobile terminal.

[0022] The edit notification unit 20 may stop the automatic selection function of the operation target program. The edit notification unit 20 waits for an input from the operator with the automatic selection function of the operation target program stopped. When the operator approves the reuse of the operation target program, machining may be started with the preset operation target program. The edit notification unit 20 may display a list of machining programs stored in the external storage device 300 and the numerical control device 100, and may accept the selection of a new machining program from the operator. The edit notification unit 20 may present the edit date and time of the edited operation target program. For example, the edit date and time of the file information storage unit 13 and / or the edit date and time of the external storage device 300 may be displayed to assist the operator in making a decision.

[0023] The file information update unit 14 updates the edit date and time of the operation target program stored in the file information storage unit 13 and the file identification information of the operation target program stored in the operation target program storage unit 10 . The file information update unit 14 (1) updates the edit date and time of the file information storage unit 13 with the edit date and time of the edited operation target program when the operator selects to reuse the edited operation target program. This causes the edit date and time of the external storage device 300 to match the edit date and time of the file information storage unit 13. (2) When the operator selects to change the operation target program, it updates the operation target program storage unit 10 with the file identification information of the newly selected operation target program.

[0024] The numerical control device 100 disclosed herein determines whether the contents of the file have been changed based on the edit date and time of the program to be operated, and if the contents of the file have been changed, stops the automatic selection function of the machining program to avoid the start of unexpected machining.

[0025] The procedure of the edit determination process will be described with reference to the flowchart in Fig. 3. It is assumed that the editing program is provided with file identification information. When the numerical control device 100 is powered on (step S1), the numerical control device 100 judges whether or not an external storage device 300 is attached. If the external storage device 300 is attached (step S2; Yes), the numerical control device 100 reads file identification information of the program to be operated (step S3). If the program to be operated exists in the numerical control device 100 (step S4; No), the numerical control device 100 judges that the machining program has not been edited and proceeds to step S8. If operation is to be continued (step S8; Yes), the numerical control device 100 waits for a new external storage device 300 to be attached. If the machining program exists in the external storage device 300 (step S4; Yes), the numerical control device 100 reads the edit date and time of the machining program from the external storage device 300. Next, the numerical control device 100 reads the edit date and time of the machining program from the file information storage unit 13. The numerical control device 100 compares the edit date and time of the operation target program stored in the external storage device 300 with the edit date and time of the operation target program stored in the file information storage unit 13 (step S5).

[0026] If the edit date and time stored in the external storage device 300 is different from the edit date and time stored in the file information storage unit 13 (step S6; Yes), the numerical control device 100 determines that the machining program has been edited and notifies the operator of this fact (step S7). The operator determines whether to reselect the edited operation target program or select another machining program. When the edit date and time stored in the external storage device 300 and the edit date and time stored in the file information storage unit 13 match (step S6; No), the numerical control device 100 determines that the program to be operated has not been edited. The numerical control device 100 starts machining using the program to be operated.

[0027] When the operation of the numerical control device 100 is to be continued with the power turned on (step S8; Yes), the numerical control device 100 proceeds to step S2 and monitors the attachment of the external storage device 300. When the operation of the numerical control device 100 is to be ended (step S8; No), the numerical control device 100 ends this process.

[0028] Next, the update process of the edit date and time and the operation target program will be described with reference to FIG. When the numerical control device 100 notifies the operator that the operation target program has been edited and the operator selects to reuse the edited operation target program (step S11; Yes), the numerical control device 100 reads the edit date and time of the edited machining program from the external storage device 300 and updates the edit date and time in the file information storage unit 13 (step S12). The numerical control device 100 reads the edited operation target program from the external storage device 300 (step S13) and reuses it.

[0029] If the operator does not select to reuse the edited machining program (step S11; No), the numerical control device 100 presents a list of other machining programs to the operator (step S14). When the numerical control device 100 receives the selection of a new machining program (step S15), it updates the machining program to the operation target program (step S16).

[0030] As described above, when the numerical control device 100 of the present disclosure determines that a machining program has been edited, it prompts the operator to select whether to reuse the edited machining program or to use another machining program. If reuse is selected, the edit date and time of the file information storage unit is updated with the edit date and time of the external storage device. When the use of another machining program is selected, the selected machining program is set as the operation target program. When the other machining program is selected as the operation target program, it may be determined whether the selected machining program is edited.

[0031] [Second Disclosure] 5 shows a file management system 1000 according to the second disclosure. In the file management system 1000 according to the second disclosure, an edit date and time update unit 23 updates the edit date and time, instead of the file system unit 11. In the second disclosure, the external device 200 includes a program editing unit 31 and an edit date and time update unit 33. The edit date and time update unit 33 updates the edit date and time of the machining program stored in the external storage device 300. When the machining program is edited in the external device 200, the edit date and time of the machining program stored in the external storage device 300 and the edit date and time of the machining program stored in the file information storage unit 13 do not match because the edit date and time of the machining program is not updated.

[0032] When the machining program recorded in the external storage device 300 is edited by the numerical control device 100, the edit date and time update unit 23 of the numerical control device 100 updates not only the edit date and time of the machining program stored in the external storage device 300, but also the edit date and time of the file information storage unit 13. When the machining program is edited by the numerical control device 100, the edit date and time of the external storage device 300 and the edit date and time of the file information storage unit 13 match.

[0033] When the attachment of the external storage device 300 is recognized, the file information reading unit 17 reads out from the external storage device 300 the edit date and time of the operation target program and the file identification information. When a processing program having the same file identification information as the operation target program is stored in the external storage device 300, the file information comparison unit 18 compares the edit date and time of the operation target program read from the external storage device 300 with the edit date and time of the operation target program stored in the file information storage unit 13. When the edit dates and times of the two devices are different, it is determined that the operation target program has been edited.

[0034] The operation target program selection unit 19 notifies the operator that the machining program has been edited. The operator reselects the edited machining program or selects another machining program as the operation target program. When the edited machining program is reselected, the file information update unit 14 updates the edit date and time in the file information storage unit 13 with the edit date and time read from the external storage device 300. In the file management system 1000 of the second disclosure, management of edit dates and times is performed not by the file system unit 11 but by the edit date and time update unit 23 of the numerical control device 100 and the edit date and time update unit 33 of the external device 200 .

[0035] The hardware configuration of a numerical control device 100 that controls a machine tool will be described with reference to Fig. 6. The numerical control device 100 includes a CPU 111, which is a processor that controls the numerical control device 100 as a whole. The CPU 111 reads out a system program processed in a ROM 112 via a bus, and controls the entire numerical control device 100 in accordance with the system program. The RAM 113 temporarily stores temporary calculation data, display data, various data input by the user via the input unit 71, and the like.

[0036] The display unit 70 is a monitor or the like attached to the numerical control device 100. The display unit 70 displays an operation screen, a setting screen, and the like of the numerical control device 100.

[0037] The input unit 71 is a keyboard, a touch panel, or the like that is integrated with the display unit 70 or is separate from the display unit 70. A user operates the input unit 71 to input data to a screen displayed on the display unit 70. The display unit 70 and the input unit 71 may be a mobile terminal.

[0038] The non-volatile memory 114 is a memory that retains its stored state even when the power supply of the numerical control device 100 is turned off, for example, by being backed up by a battery (not shown). The non-volatile memory 114 stores programs read from an external device via an interface (not shown), programs input via the input unit 71, and various data acquired from each unit of the numerical control device 100, a machine tool, etc. (for example, setting parameters acquired from a machine tool, etc.). The programs and various data stored in the non-volatile memory 114 may be expanded in the RAM 113 when executed / used. In addition, various system programs are written in advance in the ROM 112.

[0039] A controller 40 that controls the tool of the machine tool converts an axis movement command from a CPU 111 into a pulse signal and outputs it to a driver 41. The driver 41 converts the pulse signal into a current to drive a servo motor of the machine tool. The servo motor moves the tool and the table according to the control of a numerical control device 100.

[0040] As described above, in the file management system 1000 according to the present disclosure, the edit date and time of the machining program is stored in the file information storage unit 13 of the numerical control device 100 and in the external storage device 300. When the machining program in the external storage device 300 is edited on the numerical control device 100, the numerical control device 100 updates both the edit date and time of the machining program stored in the file information storage unit 13 and the edit date and time of the machining program stored in the external storage device 300, so that the two edit dates and times match. When the external device 200 edits a machining program stored in the external storage device 300, only the edit date and time of the external storage device 300 is updated. Therefore, the edit date and time of the machining program stored in the external device 200 and the edit date and time of the machining program stored in the file information storage unit 13 do not match. The file information comparison unit 18 of the numerical control device 100 compares the edit date and time of the external storage device 300 with the edit date and time of the file information storage unit 13, and if the two edit dates and times are different, determines that the program to be operated has been edited. The file management system of the present disclosure can identify whether the contents of a file have been changed by using the edit date and time. Note that the reading and updating of the edit date and time is performed by the file system unit in the first disclosure, and by the file information reading unit in the second disclosure. [Explanation of symbols]

[0041] 100 Numerical control device 10 Operation target program memory section 11 File System Section 12 File Identification Information Management Unit 13 File information storage section 14 File information update section 15 External device recognition section 16 Operation target program confirmation section 17 File information reading unit 18 File Information Comparison Section 19 Operation program selection section 20 Editorial Notification Department 21 Editing Equipment 22 Program Editorial Department 23 Editing date and time update section 111 CPU 112 ROM 113 RAM 114 Non-volatile memory

Claims

1. a file information storage unit for storing file identification information and edit date and time of the processing program; an operation target program storage unit that stores file identification information of an operation target program, which is a machining program set as an operation target; an external storage device recognition unit that recognizes the attachment of an external storage device; a file information comparison unit that, when the operation target program is stored in the attached external storage device, determines that the operation target program has been edited when the edit date and time of the operation target program stored in the external storage device differs from the edit date and time of the operation target program stored in the file information storage unit; An editing unit that edits the machining program; an edit date and time update unit that updates, when the machining program stored in the external storage device is edited by the editing unit, the edit date and time of the machining program stored in the external storage device and the edit date and time of the machining program stored in the file information storage unit; A numerical control device comprising:

2. 2. The numerical control device according to claim 1, further comprising a file identification information management unit which assigns unique file identification information to each of the files storing the machining programs.

3. A numerical control device as described in claim 1, further comprising an operation target program selection unit which, when it is determined that the operation target program has not been edited, selects the operation target program as a machining program to be operated.

4. A numerical control device as described in claim 1, further comprising an edit notification unit that, when it is determined that the program to be operated has been edited, notifies an operator that the program to be operated has been edited.

5. A numerical control device as described in claim 4, wherein the editing notification unit waits to start processing until the operator approves it.

6. 2. The numerical control device according to claim 1, wherein the program to be operated is a machining program last executed by the numerical control device.

7. When executed by one or more processors, storing file identification information and edit date and time of the machining program in the numerical control device; storing file identification information of an operation target program, which is a machining program set as an operation target, in the numerical control device; Recognizing the attachment of an external storage device to the numerical control device; When the operation target program is stored in the attached external storage device, if an edit date and time of the operation target program stored in the external storage device differs from an edit date and time of the operation target program stored in the numerical control device, it is determined that the operation target program has been edited; Editing the machining program; When the machining program stored in the external storage device is edited, the edit date and time of the machining program stored in the external storage device and the edit date and time of the machining program stored in the numerical control device are updated. A storage medium that stores computer-readable instructions.

Citation Information

Patent Citations

  • Controller for numerically controlled machine tool

    JP1996249038A

  • Working program processing method in numerical controller and numerical controller

    JP1998055209A

  • Robot controller

    JP2001350509A

  • Numerical control equipment controlling machine tool having function of estimating weight of moving part

    JP2010211467A

  • Numerical control method and device therefor

    JP2011191852A