Numerical control and machine tool

The numerical control device enhances program clarity by displaying execution block information and call counts, enabling users to easily understand and manage complex NC program configurations.

JP2025006943APending Publication Date: 2025-01-17BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023108000
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2025-01-17

AI Technical Summary

Technical Problem

In existing numerical control devices, users cannot easily determine from which main program a subprogram was called and how many times it was called, leading to confusion in understanding the configuration of the NC program.

Method used

The numerical control device displays information about the execution block, the calling block, and the number of times the program has been called, allowing users to easily grasp the configuration of the NC program by showing multiple layers of program calls and their relationships.

Benefits of technology

Users can clearly understand the structure and history of NC program execution, including call counts and dates, facilitating easier program comprehension and resumption after interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025006943000001_ABST
    Figure 2025006943000001_ABST
Patent Text Reader

Abstract

To provide a numerical control allowing a user to easily grasp a configuration of an NC program and a machine tool.SOLUTION: A numerical control executes an NC program including Nth and Nth-1 programs. The Nth program is to be invoked by a calling block of the Nth-1 program. The numerical control executes Nth-1 screen processing to display a display screen 42 on a display unit 21. The display screen 42 includes a matrix screen 42A to display thereon basic information 62K as information about an execution block of the Nth program, block information 62Q indicative of a calling block that invoked the Nth program, program information 62 P indicative of the Nth-1 program including a calling block and number-of-calls information 62R indicative of the number of times of calls of the calling block.SELECTED DRAWING: Figure 8
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 machine tool. [Background technology]

[0002] The numerical control device in Patent Document 1 operates equipment according to a program composed of multiple blocks. The numerical control device has a program editing means and an execution block search means. The program editing means edits the program while the equipment is in operation. The execution block search means searches for a block that is being executed while the equipment is in operation, out of the multiple blocks that make up the program. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2003-248507 Summary of the Invention [Problem to be solved by the invention]

[0004] In the above-mentioned numerical control device, the program may be composed of a main program and a subprogram. The main program has a call block for calling the subprogram. The call blocks of a plurality of main programs may call a common subprogram. Furthermore, a call block of one main program may repeatedly call the same subprogram. Here, the numerical control device may display the program on a display screen. If a subprogram is displayed on the display screen, the user may not know from which call block of a main program the displayed subprogram has been called and how many times.

[0005] An object of the present invention is to provide a numerical control device and a machine tool that allow a user to easily understand the configuration of an NC program. [Means for solving the problem]

[0006] The numerical control device of claim 1 is a numerical control device capable of controlling a machine tool based on an NC program having an Nth program (N is a natural number equal to or greater than 2) composed of a plurality of blocks each including a control command and an N-1st program including an N-1st call block that calls the NC program, and is characterized in that it comprises an N-1st display means for displaying on a display unit an N-1th screen having execution block information indicating an execution block executed in the NC program, N-1st block information indicating the N-1st call block that called the N program when the execution block is included in the N program, N-1st program information indicating the N-1 program including the N-1 call block indicated by the N-1 block information, and N-1st call count information indicating the number of times the N-1 call block indicated by the N-1 block information called the N program during execution of the NC program.

[0007] In the numerical control device, the user can check the display unit to grasp the execution blocks included in the Nth program, the N-1th call block that called the Nth program including the execution block, the N-1th program including the N-1th call block, and the number of times the N-1th call block called the Nth program. In this way, in the numerical control device, the user can easily grasp the configuration of the NC program.

[0008] The numerical control device of claim 2 includes an Nth display means for displaying an Nth screen on the display unit, the Nth screen including the execution block information and the Nth program information indicating the Nth program including the execution block, an N-1th receiving means for receiving an Nth switching instruction for switching the display of the display unit to the N-1th screen, and an Nth receiving means for receiving an Nth switching instruction for switching the display of the display unit to the Nth screen, and when the N-1 receiving means receives the N-1 switching instruction, the N-1 display means displays the N-1th screen on the display unit, and when the N receiving means receives the Nth switching instruction, the N display means displays the Nth screen on the display unit. In this case, the numerical control device switches between the Nth screen on which information of the Nth program can be grasped and the N-1th screen on which information of the N-1st program can be grasped and displays them on the display unit. This allows a user to easily grasp the configuration of the NC program.

[0009] The numerical control device of claim 3 may include an NM-1 display means for displaying on the display unit an NM-1 screen having the execution block information, NM-1 block information indicating the NM-1 call block that called the NM program (M is a natural number and NM is a natural number of 2 or more), NM-1 program information indicating the NM-1 program including the NM-1 call block indicated by the NM-1 block information, and NM-1 call count information indicating the number of times the NM-1 call block indicated by the NM-1 block information called the NM program during execution of the NC program. In this case, even if N is a natural number of 3 or more, the numerical control device displays on the display unit an NM-1 screen relating to the NM-1 program that directly or indirectly calls the N program and the N-1 program. This allows the user to easily understand the configuration of the NC program.

[0010] The numerical control device of claim 4 may display the Nth screen, the N-1th screen, ..., and the N-th screen (L is a natural number and NL is a natural number equal to or greater than 2) on the display unit. In this case, the numerical control device displays information on the programs that constitute the NC program within a displayable range on the display unit. This allows the user to easily understand the configuration of the NC program.

[0011] The numerical control device of claim 5 may display the Nth screen, the N-1th screen, ..., and the 1st screen on the display unit. In this case, the numerical control device displays information on the Nth program being executed and the NC programs of all hierarchical levels executed up until the execution of the Nth program on the display unit. This allows the user to easily understand the configuration of the NC programs.

[0012] The numerical control device of claim 6 may include an acquisition means for acquiring the date and time when the execution block is executed in the NC program, and a storage means for storing the date and time acquired by the acquisition means in association with the execution block, and the execution block information includes the date and time stored in the storage means, and the N-1 display means may display the execution block information, the N-1 block information corresponding to the execution block information, the N-1 program information, and the N-1 call count information in a chronological order based on the date and time stored in the storage means on the N-1 screen. In this case, the numerical control device acquires the date and time when the execution block is executed in the NC program, and stores the acquired date and time in association with the execution block. The numerical control device displays the combination of the execution block information, the N-1 block information, the N-1 program information, and the N-1 call count information in a chronological order on the display unit. This allows a user to easily grasp the date and time when the execution block is executed in the NC program based on the acquisition order.

[0013] In the numerical control device of claim 7, the acquiring means may acquire the date and time when the execution of the NC program is interrupted. In the numerical control device, the execution of the NC program may be interrupted. Even in such a case, the user can easily understand the configuration of the NC program and resume the execution of the NC program.

[0014] The numerical control device of claim 8 may further include a determination means for determining whether the execution block is included in the Nth program, and the N-1 display means may display the N-1th block information, the N-1th program information, and the N-1th call count information on the N-1th screen as blanks or as predetermined characters or symbols when the determination means determines that the execution block is not included in the Nth program. In this case, a user can understand by checking the N-1th screen that the execution block is not included in the Nth program called by the N-1th program.

[0015] The numerical control device of claim 9 includes an Nth display means for displaying an Nth screen having the execution block information and Nth program information indicating the Nth program including the execution block on the display unit, and the display unit displays a part of at least one of the Nth screen or the N-1th screen, and the part displayed on the display unit may be switchable by a scroll operation. In this case, the numerical control device switches between the Nth screen and the N-1th screen by scrolling and displays them on the display unit. This allows a user to understand the configuration of the NC program with a simple operation.

[0016] The numerical control device of claim 10 includes an Nth display means for displaying an Nth screen having the execution block information and Nth program information indicating the Nth program including the execution block on the display unit, and an N-1st display receiving means for receiving an N-1st display instruction for executing the N-1st display means, and when the N-1st display instruction is received by the N-1st display receiving means, the N-1st display means may pop up the N-1st screen on the Nth screen displayed on the display unit by the Nth display means. In this case, the numerical control device pops up the N-1st screen on the Nth screen. This allows a user to understand the configuration of the NC program with a simple operation.

[0017] The machine tool of claim 11 includes a machine section for machining a workpiece, a display section, and a numerical control device capable of controlling the machine section and the display section based on an NC program including an Nth program (N is a natural number of 2 or more) and an N-1th program including an N-1th call block that calls the N program, the numerical control device including an N-1th display means for displaying on the display section an N-1th screen including execution block information indicating an execution block executed in the NC program, N-1th block information indicating the N-1st call block that called the N program when the execution block is included in the N program, N-1th program information indicating the N-1st program including the N-1st call block indicated by the N-1st block information, and N-1th call count information indicating the number of times the N-1st call block indicated by the N-1st block information called the N program during execution of the NC program. The machine tool of claim 11 has the same effect as the numerical control device of claim 1. [Brief description of the drawings]

[0018] [Figure 1] 2 is a block diagram showing the electrical configuration of the machine tool 1. FIG. [Diagram 2] FIG. 1 is a conceptual diagram showing an NC program 1000. [Diagram 3] FIG. 2 is a conceptual diagram showing an NC program 2000. [Figure 4] FIG. 1 is a conceptual diagram showing an NC program 0100. [Diagram 5] FIG. 2 is a conceptual diagram showing an NC program 0010. [Figure 6] FIG. 13 is a conceptual diagram showing a table 91. [Figure 7] FIG. 4 is an explanatory diagram of a display screen 41. [Figure 8] FIG. 4 is an explanatory diagram of a display screen 42. [Figure 9] FIG. 4 is an explanatory diagram of a display screen 43. [Figure 10] 13 is a flowchart of an interruption process. [Figure 11] 13 is a flowchart of a display process. [Figure 12] 13 is a flowchart of an N-th image process executed in the display process. [Figure 13] 13 is a flowchart of an (N-1)th screen process executed in the display process. [Figure 14] 13 is a flowchart of an (N-2)th screen process executed in the display process. [Figure 15] FIG. 4 is an explanatory diagram of a display screen 44. [Figure 16] FIG. 4 is an explanatory diagram of a display screen 45. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] <Machine tool 1> An embodiment of the present invention will be described with reference to the drawings. As shown in Fig. 1, a machine tool 1 has a machine section 10, a machine cover (not shown), an operation panel 20, and a numerical control device 30. The machine section 10 uses a tool to machine a workpiece. The machine section 10 has a main spindle (not shown), a movement mechanism (not shown), and a drive section 11. A tool is attached to the main spindle. The movement mechanism moves the main spindle relative to the workpiece. The drive section 11 is a drive source for the main spindle and the movement mechanism, and is, for example, a servo motor.

[0020] The machine cover covers the periphery of the machine unit 10. The operation panel 20 is provided on the outside of the machine cover. The operation panel 20 has a display unit 21 and an input unit 22. The display unit 21 is a liquid crystal display (LCD). The display unit 21 displays display screens 41 (see FIG. 7), 42 (see FIG. 8), and 43 (see FIG. 9) which will be described later. The input unit 22 is a touch panel provided on the surface of the display unit 21. The input unit 22 accepts pressing operations by the user.

[0021] <Numerical control device 30> The numerical control device 30 has a CPU 31, a ROM 32, a RAM 33, a storage device 34, a clock unit 35, an input / output interface 36, and a bus 37. The CPU 31 is electrically connected to the ROM 32, the RAM 33, the storage device 34, and the input / output interface 36 via the bus 37. The CPU 31 performs overall control of the machine tool 1.

[0022] The ROM 32 stores a plurality of NC programs (see Figs. 2 to 5), interruption processing (see Fig. 10), and display processing (see Fig. 11), which will be described later, and other programs for executing the various programs. The RAM 33 stores various parameters required when executing the various programs. The storage device 34 is non-volatile, and stores various information such as a table 91, which will be described later. The clock unit 35 outputs date and time information relating to the current date and time. The input / output interface 36 is electrically connected to the drive unit 11, the display unit 21, the input unit 22, and the bus 37.

[0023] <NCプログラム> The NC program is a program for controlling the drive unit 11. The numerical control device 30 processes the workpiece based on the NC program. As shown in Figs. 2 to 5, the NC program is composed of a number of blocks including control commands for the drive unit 11. The numerical control device 30 controls the drive of the drive unit 11 in block units. Each block of the NC program is associated with a block number and a code. In Figs. 2 to 5, the block numbers are shown as four-digit numbers enclosed in square brackets. When the NC program is executed, the drive of the drive unit 11 is controlled in the order of the block numbers.

[0024] 2 to 5, block number 0001 is annotated with the program number. The NC program shown in FIG. 2 has program number 1000. The NC program shown in FIG. 3 has program number 2000. The NC program shown in FIG. 4 has program number 0100. The NC program shown in FIG. 5 has program number 0010. Below, each of the NC programs shown in FIG. 2 to 5 will be indicated by its program number. For example, the NC program shown in FIG. 2 is NC program 1000. As will be described in detail later, NC programs 1000 and 2000 are main programs, and NC programs 0100 and 0010 are sub-programs.

[0025] G0 shown in block numbers 0002 and the like of NC program 1000 shown in Fig. 2 is a positioning command in the NC program. G0 positions the spindle at the position specified after G0. In block number 0002, the spindle is positioned at X=20. Here, X is the X-axis coordinate of the spindle in machine tool 1.

[0026] M98 shown in block numbers 0003 and so on in NC program 1000 is a subprogram call command in the NC program. M98 calls a subprogram by specifying the program number placed after the P. Block number 0003 calls NC program 0100 (see Figure 4). Hereinafter, a block that calls a subprogram will be referred to as a call block.

[0027] M98 calls a subprogram the number of times indicated by the number placed after L. Block number 0003 of NC program 2000 shown in Fig. 3 repeatedly calls NC program 0100 twice. When M98 calls a subprogram once, the L specifying the number of repetitions is omitted, as in block number 0014 of NC program 2000. Hereinafter, the number of times a call block calls a subprogram is referred to as the number of calls.

[0028] M30 shown in block number N2 of the NC program 2000 is a program end command in the NC program.

[0029] 4 is a subprogram called by the NC program 1000 or the NC program 2000. Block number 0007 of the NC program 0100 repeatedly calls the NC program 0010 three times. In this way, in an NC program, the NC program 0100 called by another NC program (the NC program 1000 or the NC program 2000) may call a subprogram.

[0030] G1 shown in block number 0008 of NC program 0100 is a linear interpolation command. G1 moves the spindle at the feed speed specified by the number after F. In block number 0008, linear interpolation of the spindle to X=30 is performed at a feed speed of 500 mm / min.

[0031] M99 shown in block number N3 of NC program 0100 is a subprogram end command. NC program 0100 ends at block number N3 and returns to NC program 1000 or NC program 2000, which is the caller.

[0032] 5 is a subprogram called by the NC program 0100. The NC program 0010 ends at block number 0005 and returns to the NC program 0100 that called it.

[0033] As shown in Fig. 6, table 91 stores information indicating the date and time, and information indicating the NC program and block number. For example, the input unit 22 (see Fig. 1) may accept a user operation while an NC program is being executed, and the execution of the NC program may be interrupted. Table 91 stores the date and time when the executing NC program was interrupted, and the program number and block number of the interrupted NC program, in association with each other. The interrupted NC program and block are referred to as the Nth program and execution block, respectively.

[0034] Table 91 stores the 10 most recent correspondences between date, time, program number of the Nth program, and block number of the execution block. An identification number is assigned to each correspondence in table 91. The identification numbers are assigned to the correspondences in order of date and time (date, time) from the most recent.

[0035] When the Nth program is NC program 0100, the NC program 0100 is called by either NC program 1000 or NC program 2000. Hereinafter, an NC program that calls a target NC program by a call block, such as NC programs 1000 and 2000 that call NC program 0100, and NC program 0100 that calls NC program 0010, will be referred to as the N-1th program.

[0036] When the Nth program is NC program 0100, table 91 stores the program number of the N-1th program (NC program 1000 or NC program 2000) for NC program 0100, the block number of the call block that called the Nth program, and the number of calls that called the Nth program, in association with each other.

[0037] When the Nth program is NC program 0010, NC program 0100, which is the N-1th program of NC program 0010, is called by either NC program 1000 or 2000. Hereinafter, an NC program that calls the N-1th program for the Nth program by a call block, such as NC programs 1000 and 2000 for NC program 0010, will be referred to as the N-2th program. In this embodiment, the maximum number of NC program hierarchies is 3, and the maximum value of N is also 3.

[0038] When the Nth program is NC program 0010, table 91 stores, in association with each other, the program number of the N-1th program (NC program 100) for NC program 0010, the block number of the call block that called the Nth program, and the number of calls that called the Nth program, as well as the program number of the N-2th program (NC program 1000 or NC program 2000), the block number of the call block that called the N-1th program, and the number of calls that called the N-1st program.

[0039] For example, in table 91, identification number 3 is associated with date, time, program number "0010" of the Nth program, block number "0004" of the execution block, program number "0100" of the N-1th program, block number "0007" of the call block, call count "1," program number "2000" of the N-2th program, block number "0014" of the call block, and call count "1." Hereinafter, information related to NC programs stored in table 91 will be collectively referred to as interruption information. In other words, identification numbers, date and time information, and interruption information are stored in association with each other in table 91.

[0040] <Display section 21> 7 to 9, the numerical control device 30 displays one of a display screen 41, a display screen 42, and a display screen 43 on the display unit 21. In Figs. 7 to 9, 15, and 16, the up-down direction and the left-right direction of the paper correspond to the up-down direction and the left-right direction of the display unit 21, respectively.

[0041] The display screens 41 to 43 display the identification number, date and time information, and interruption information based on a table 91. The display screens 41 to 43 each have a first area 50, a second area 60, and a third area 70. The second area 60 is disposed below the first area 50. The third area 70 is disposed below the second area 60.

[0042] 7 displays information related to the Nth program on the display screen 41. An item display 51 is displayed in a first area 50 on the display screen 41. The item display 51 indicates that the display screen 41 is displaying information related to the Nth program.

[0043] A matrix screen 41A showing an identification number, date and time information, and interruption information related to program N is displayed in the second area 60. The matrix screen 41A has information displays 61A, 61B, 61C, 61D, 61E, 61F, 61G, 61H, 61I, 61J, and an item display 610. The information displays 61A, 61B, 61C, 61D, 61E, 61F, 61G, 61H, 61I, 61J are arranged downward in the second area 60 in the following order: information displays 61A, 61B, 61C, 61D, 61E, 61F, 61G, 61H, 61I, 61J.

[0044] Each of the information displays 61A to 61J displays a combination of an identification number, date, time, program number of the Nth program, and block number of the execution block. The identification number, date, and time displayed by the information displays 61A to 61J are referred to as basic information 61K. The program number of the Nth program displayed by the information displays 61A to 61J are referred to as program information 61P. The block numbers of the execution blocks displayed by the information displays 61A to 61J are referred to as block information 61Q. In table 91, the identification number, date, and time correspond to the execution blocks. That is, the basic information 61K displays information related to the execution blocks in the same way as the block information 61Q.

[0045] Information display 61A corresponds to identification number 1 in table 91. Information display 61B corresponds to identification number 2 in table 91. Information display 61C corresponds to identification number 3 in table 91. Information display 61D corresponds to identification number 4 in table 91. Information display 61E corresponds to identification number 5 in table 91. Information display 61F corresponds to identification number 6 in table 91. Information display 61G corresponds to identification number 7 in table 91. Information display 61H corresponds to identification number 8 in table 91. Information display 61I corresponds to identification number 9 in table 91. Information display 61J corresponds to identification number 10 in table 91. Item display 610 is positioned above information display 61A and displays the items of information displayed by information displays 61A to 61J.

[0046] Reception areas 71A, 71B, and 71C are arranged in third area 70. Reception areas 71A, 71B, and 71C are arranged in this order from right to left. Reception areas 71A, 71B, and 71C are areas that accept an operation to switch from display screen 41 to display screen 42 and display screen 43.

[0047] The reception area 71A accepts an operation to switch to the display screen 41. The display screen 41 is already displayed on the display unit 21, and a state in which one of the display screens 41 to 43 to be switched to is already displayed on the display unit 21 is called a display state. The reception area 71A is displayed in the third area 70 in the display state. In Figs. 7 to 9, when it is in the display state, the inside of an area such as the reception area 71A is filled in black and white characters are displayed.

[0048] Reception area 71B accepts an operation to switch to display screen 42. It is possible to switch from display screen 41 to display screen 42, and such a state in which it is possible to switch to a target among display screens 41 to 43 is called an active state. Reception area 71B is displayed in the third area 70 in the active state. In Figs. 7 to 9, the inside of reception area 71B is filled in white and black characters are displayed when it is in the active state.

[0049] Reception area 71C accepts an operation to switch to display screen 43. It is not possible to switch from display screen 41 to display screen 43, and such a state in which it is not possible to switch to a target among display screens 41 to 43 is called an inactive state. Reception area 71C is displayed in the third area 70 in the inactive state. In Figs. 7 to 9, when it is in the inactive state, the inside of reception area 71C is filled with diagonal hatching and displayed in black text.

[0050] 8, information relating to the (N-1)th program that called the Nth program displayed on display screen 41 is displayed on display screen 42. Item display 52 is displayed in first area 50 on display screen 42. Item display 52 indicates that display screen 42 is displaying information relating to the (N-1)th program.

[0051] A matrix screen 42A showing an identification number, date and time information, and interruption information related to the N-1 program is displayed in the second area 60. The matrix screen 42A has information displays 62A, 62B, 62C, 62D, 62E, 62F, 62G, 62H, 62I, 62J, and an item display 620. The information displays 62A, 62B, 62C, 62D, 62E, 62F, 62G, 62H, 62I, 62J are arranged downward in the second area 60 in the following order: information displays 62A, 62B, 62C, 62D, 62E, 62F, 62G, 62H, 62I, 62J.

[0052] Each of the information displays 62A to 62J displays a combination of an identification number, date, time, program number of the (N-1)th program, block number of the call block that called the (N)th program, and the number of calls of the call block. The identification number, date, and time displayed by the information displays 62A to 62J are referred to as basic information 62K. The basic information 62K has the same configuration as the basic information 61K (see FIG. 7). The program number of the (N-1)th program displayed by the information displays 62A to 62J is referred to as program information 62P. The block number of the call block displayed by the information displays 62A to 62J is referred to as block information 62Q. The number of calls of the call block displayed by the information displays 62A to 62J is referred to as call count information 62R.

[0053] Information display 62A corresponds to identification number 1 in table 91. Information display 62B corresponds to identification number 2 in table 91. Information display 62C corresponds to identification number 3 in table 91. Information display 62D corresponds to identification number 4 in table 91. Information display 62E corresponds to identification number 5 in table 91. Information display 62F corresponds to identification number 6 in table 91. Information display 62G corresponds to identification number 7 in table 91. Information display 62H corresponds to identification number 8 in table 91. Information display 62I corresponds to identification number 9 in table 91. Information display 62J corresponds to identification number 10 in table 91. That is, information displays 62A to 62J are arranged downwards in order of date and time (date, time) from most recent to oldest.

[0054] In information displays 62A to 62J, when information relating to the N-1th program is not stored in table 91, such as identification number 6 in table 91 (see FIG. 6), the information displays are displayed blank. In FIG. 8, the program number of the N-1th program, the block number of the called block, and the number of calls to the called block in information displays 62F and 62G are displayed blank. Item display 620 is disposed above information display 62A, and displays the items of information displayed by information displays 62A to 62J.

[0055] Reception areas 72A, 72B, and 72C are arranged in the third area 70. The reception areas 72A, 72B, and 72C correspond to the reception areas 71A, 71B, and 71C, respectively. On the display screen 42, the reception areas 72A and 72C are in an active state, and the reception area 72B is in a displayed state.

[0056] 9, display screen 43 displays information about an NC program that called the NC program displayed on display screen 42, i.e., an N-2th program with respect to the Nth program displayed on display screen 41. An item display 53 is displayed in a first area 50 on display screen 43. The item display 53 indicates that display screen 43 is displaying information about the N-2th program.

[0057] A matrix screen 43A showing the identification number, date and time information, and interruption information related to the N-2 program is displayed in the second area 60. The matrix screen 43A has information displays 63A, 63B, 63C, 63D, 63E, 63F, 63G, 63H, 63I, 63J, and an item display 630.

[0058] Each of the information displays 63A to 63J displays a combination of an identification number, date, time, program number of the N-2th program, block number of the call block that called the N-1th program, and the number of calls of the call block. The identification number, date, and time displayed by the information displays 63A to 63J are referred to as basic information 63K. The basic information 63K has the same configuration as the basic information 61K. The program number of the N-2th program displayed by the information displays 63A to 63J is referred to as program information 63P. The block number of the call block displayed by the information displays 63A to 63J is referred to as block information 63Q. The number of calls of the call block displayed by the information displays 63A to 63J is referred to as call count information 63R.

[0059] Information display 63A corresponds to identification number 1 in table 91. Information display 63B corresponds to identification number 2 in table 91. Information display 63C corresponds to identification number 3 in table 91. Information display 63D corresponds to identification number 4 in table 91. Information display 63E corresponds to identification number 5 in table 91. Information display 63F corresponds to identification number 6 in table 91. Information display 63G corresponds to identification number 7 in table 91. Information display 63H corresponds to identification number 8 in table 91. Information display 63I corresponds to identification number 9 in table 91. Information display 63J corresponds to identification number 10 in table 91.

[0060] In the information displays 63A to 63J, when information on the N-2th program is not stored in the table 91, such as the identification number 2 in the table 91, a blank is displayed. In Fig. 9, the program number of the N-1th program, the block number of the called block, and the number of calls of the called block are displayed blank in the information displays 63B, 63F, 63G, and 63J.

[0061] Reception areas 73A, 73B, and 73C are arranged in the third area 70. Reception areas 73A, 73B, and 73C correspond to reception areas 71A, 71B, and 71C, respectively. On the display screen 43, reception areas 73A and 73B are in an active state, and reception area 73C is in a displayed state.

[0062] As shown in Fig. 7, display screen 41 displays information about the Nth program, but does not display information about the N-1th program and the N-2th program. As shown in Fig. 8, display screen 42 displays information about the N-1th program, but does not display information about the N-2th program. As shown in Fig. 9, display screen 43 displays information about the N-2th program, but does not display information about the N-1th program. In this way, display screens 41, 42, and 43 display information about the Nth program, the N-1th program, and the N-2th program, respectively.

[0063] <Interruption processing> The interruption process executed by the CPU 31 of the numerical control device 30 will be described with reference to Fig. 10. When a user inputs an instruction to interrupt the NC program via the input unit 22 during execution of the NC program, the CPU 31 starts the interruption process by executing a program called from the ROM 32.

[0064] When the interruption process is started, the CPU 31 stops driving the drive unit 11 (S1). This stops the operation of the mechanical unit 10. The CPU 31 acquires date and time information indicating the date and time when the NC program was interrupted from the clock unit 35 (S2). The CPU 31 acquires interruption information related to the NC program (S3). The CPU 31 stores the identification number, the date and time information, and the interruption information in table 91 in association with each other (S4). In the process of S4, the CPU 31 increments the identification number by 1 for the date and time information and interruption information stored in table 91 before executing the process of S4, and stores the date and time information acquired in the process of S2 and the interruption information acquired in the process of S3 in table 91 in association with the identification number 1. The CPU 31 ends the interruption process.

[0065] <Display processing> The display process executed by the CPU 31 of the numerical control device 30 will be described with reference to Fig. 11. The display process is a process for displaying any one of the display screens 41, 42, and 43 on the display unit 21. When a display instruction is input by the user via the input unit 22, the CPU 31 starts the display process by executing a program called from the ROM 32.

[0066] When the display process is started, CPU 31 executes the Nth screen process (S11). The Nth screen process is a process for displaying display screen 41 on display unit 21. In the Nth screen process, a variable S corresponding to an identification number in table 91 (see FIG. 6) is used.

[0067] 12, when the Nth screen process is started, CPU 31 sets reception area 71A in the third area 70 to a display state, and sets reception area 71C to an inactive state (S31). CPU 31 sets the value of variable S to 1 (S32).

[0068] The CPU 31 refers to the table 91 and determines whether or not interruption information is stored for the identification number corresponding to the variable S (S33). When the CPU 31 determines that interruption information is not stored in the table 91 for the identification number indicated by the variable S (S33: NO), the CPU 31 shifts the process to S42.

[0069] When the CPU 31 determines that interruption information is stored in the table 91 for the identification number indicated by the variable S (S33: YES), the CPU 31 acquires the date and time information and the interruption information corresponding to the identification number indicated by the variable S from the table 91 (S34). The CPU 31 refers to the interruption information acquired in S34, and determines whether the interruption information acquired in S34 includes information related to the N-1th program (S36).

[0070] When the CPU 31 determines that the interruption information acquired in S34 does not include information related to the N-1th program (S36: NO), the CPU 31 shifts the process to S38. When the CPU 31 determines that the interruption information acquired in S34 includes information related to the N-1th program (S36: YES), the CPU 31 sets the reception area 71B to an active state (S37). The CPU 31 sets one of the information displays 61A-61J corresponding to the identification number indicated by the variable S so that the date and time information and interruption information of the Nth program are displayed on the display unit 21 (S38).

[0071] The CPU 31 determines whether or not the value of the variable S is 10 (S40). If the CPU 31 determines that the value of the variable S is not 10 (S40: NO), it adds 1 to the value of the variable S (S41) and returns the process to S33.

[0072] When the CPU 31 determines that the value of the variable S is 10 (S40: YES), it causes the display unit 21 to display the display screen 41 including the date and time information and interruption information set in S38, and the reception areas 71A, 71B, and 71C set in S31 and S37 (S42). The CPU 31 returns the process to the display process (see FIG. 11).

[0073] 11, after executing the Nth screen process (S11), CPU 31 determines whether or not an N-1th switching instruction for displaying display screen 42 on display unit 21 has been received (S12). When display screen 42 is to be displayed on display unit 21, a pressing operation is performed by the user on reception area 71B (see FIG. 7). When CPU 31 determines that a pressing operation has not been performed on reception area 71B and that an N-1th switching instruction has not been received (S12: NO), the process returns to S12.

[0074] When the CPU 31 determines that a pressing operation has been performed on the reception area 71B and that an N-1th switching instruction has been received (S12: YES), the CPU 31 erases the display of the display screen 41 from the display unit 21 (S13). The CPU 31 executes the N-1th screen process (S14). The N-1th screen process is a process for displaying the display screen 42 on the display unit 21. In the N-1th screen process, a variable T corresponding to the identification number of the table 91 is used.

[0075] 13, when the (N-1)th screen process is started, CPU 31 sets reception area 72A in the third area 70 to the active state, and sets reception area 72B to the display state (S51). CPU 31 sets the value of variable T to 1 (S52).

[0076] The CPU 31 refers to the table 91 and determines whether or not interruption information is stored for the identification number corresponding to the variable T (S53). When the CPU 31 determines that interruption information is not stored in the table 91 for the identification number indicated by the variable T (S53: NO), the CPU 31 shifts the process to S62.

[0077] When the CPU 31 determines that interruption information is stored in the table 91 for the identification number indicated by the variable T (S53: YES), the CPU 31 acquires the date and time information and the interruption information corresponding to the identification number indicated by the variable T from the table 91 (S54). The CPU 31 refers to the interruption information acquired in S54, and determines whether or not the interruption information acquired in S54 includes information related to the N-1th program (S55).

[0078] When the CPU 31 determines that the interruption information acquired in S54 does not include information related to the (N-1)th program (S55: NO), it determines that the execution block is not included in a subprogram, and performs a setting to display on the display unit 21 a blank display regarding the interruption information for one of the information displays 62A-62J corresponding to the identification number indicated by the variable T (S59). The CPU 31 shifts the process to S60.

[0079] When the CPU 31 determines that the interruption information acquired in S54 includes information about the N-1th program (S55: YES), it determines whether or not the interruption information acquired in S54 includes information about the N-2th program (S56).When the CPU 31 determines that the interruption information acquired in S54 does not include information about the N-2th program (S56: NO), it shifts the process to S58.

[0080] When the CPU 31 determines that the interruption information acquired in S54 includes information related to the N-2th program (S56: YES), the CPU 31 sets the reception area 72C to an active state (S37). The CPU 31 performs a setting to display date and time information and interruption information on the display unit 21 for one of the information displays 62A to 62J corresponding to the identification number indicated by the variable T (S58).

[0081] The CPU 31 determines whether or not the value of the variable T is 10 (S60). If the CPU 31 determines that the value of the variable T is not 10 (S60: NO), it adds 1 to the value of the variable T (S61) and returns the process to S53.

[0082] When the CPU 31 determines that the value of the variable T is 10 (S60: YES), it causes the display unit 21 to display the display screen 42 including the date and time information set in S58, the interruption information, the blank display set in S59, and the reception areas 72A, 72B, and 72C set in S51 and S57 (S62). The CPU 31 returns the process to the display process (see FIG. 11).

[0083] 11, after executing the N-1th screen process (S14), the CPU 31 determines whether or not an N-2th switching instruction for displaying the display screen 43 on the display unit 21 has been received (S15). When display screen 43 is to be displayed on the display unit 21, a pressing operation is performed by the user on reception area 72C (see FIG. 8).

[0084] When the CPU 31 determines that a pressing operation has not been performed on the reception area 72C and that an N-2th switching instruction has not been received (S15: NO), the CPU 31 determines whether or not an Nth switching instruction for displaying the display screen 41 on the display unit 21 has been received (S16). When displaying the display screen 41 on the display unit 21, a pressing operation is performed by the user on the reception area 72A (see FIG. 8).

[0085] When the CPU 31 determines that a pressing operation has not been performed on the reception area 72A and that an Nth switching instruction has not been received (S16: NO), the CPU 31 returns the process to S15. When the CPU 31 determines that a pressing operation has been performed on the reception area 72A and that an Nth switching instruction has been received (S16: YES), the CPU 31 erases the display of the display screen 42 from the display unit 21 (S17). The CPU 31 returns the process to S11 and displays the display screen 41 on the display unit 21 by the Nth screen process.

[0086] When the CPU 31 determines that a pressing operation has been performed on the reception area 72C and that an N-2th switching instruction has been received (S15: YES), the CPU 31 erases the display of the display screen 42 from the display unit 21 (S18). The CPU 31 executes the N-2th screen process (S19). The N-2th screen process is a process for displaying the display screen 43 on the display unit 21. In the N-2th screen process, a variable U corresponding to the identification number of the table 91 is used.

[0087] 14, when the (N-2)th screen process is started, CPU 31 sets reception areas 73A and 73B in the third area 70 to the active state, and sets reception area 73C to the display state (S71). CPU 31 sets the value of variable U to 1 (S72).

[0088] The CPU 31 refers to the table 91 and determines whether or not interruption information is stored for the identification number corresponding to the variable U (S73). When the CPU 31 determines that interruption information is not stored in the table 91 for the identification number indicated by the variable U (S73: NO), the CPU 31 shifts the process to S82.

[0089] When the CPU 31 determines that interruption information is stored in the table 91 for the identification number indicated by the variable U (S73: YES), the CPU 31 acquires, from the table 91, the date and time information and the interruption information corresponding to the identification number indicated by the variable U (S74). The CPU 31 refers to the interruption information acquired in S74, and determines whether or not the interruption information acquired in S74 includes information related to the N-2th program (S75).

[0090] When the CPU 31 determines that the interruption information acquired in S74 does not include information related to the N-2th program (S75: NO), it performs a setting to display on the display unit 21 a blank display regarding the interruption information for one of the information displays 63A to 63J corresponding to the identification number indicated by the variable U (S79). The CPU 31 shifts the process to S80.

[0091] If the CPU 31 determines that the interruption information acquired in S74 includes information regarding the N-2nd program (S75: YES), it sets the display unit 21 to display the date and time information and interruption information for one of the information displays 63A to 63J corresponding to the identification number indicated by the variable U (S78).

[0092] The CPU 31 determines whether or not the value of the variable U is 10 (S80). If the CPU 31 determines that the value of the variable U is not 10 (S80: NO), it adds 1 to the value of the variable U (S81) and returns the process to S73.

[0093] When the CPU 31 determines that the value of the variable U is 10 (S80: YES), it causes the display unit 21 to display the display screen 43 including the date and time information set in S78, the interruption information, the blank display set in S79, and the reception areas 73A, 73B, and 73C set in S71 (S82). The CPU 31 returns the process to the display process (see FIG. 11).

[0094] 11, after executing the N-2th screen process (S19), CPU 31 determines whether or not an N-1th switching instruction for displaying display screen 42 on display unit 21 has been received (S20). To display display screen 42 on display unit 21, a user presses reception area 73B (see FIG. 9). When CPU 31 determines that a press operation has been performed on reception area 73B and that an N-1th switching instruction has been received (S20: YES), CPU 31 erases the display of display screen 43 from display unit 21 (S21). CPU 31 returns the process to S15.

[0095] When the CPU 31 determines that a pressing operation has not been performed on the reception area 73B and that an N-1th switching instruction has not been received (S20: NO), it determines whether or not an Nth switching instruction for displaying the display screen 41 on the display unit 21 has been received (S22). When displaying the display screen 41 on the display unit 21, a pressing operation is performed by the user on the reception area 73A (see FIG. 9).

[0096] When the CPU 31 determines that a pressing operation has not been performed on the reception area 73A and that an Nth switching instruction has not been received (S22: NO), the CPU 31 returns the process to S20. When the CPU 31 determines that a pressing operation has been performed on the reception area 73A and that an Nth switching instruction has been received (S22: YES), the CPU 31 erases the display on the display screen 43 from the display unit 21 (S23). The CPU 31 returns the process to S11.

[0097] <Actions and Effects of the Present Embodiment> As described above, the CPU 31 of the numerical control device 30 executes an NC program including the Nth program and the N-1st program. The Nth program is called by the call block of the N-1st program. The CPU 31 executes the N-1st screen process (S14) and displays the display screen 42 on the display unit 21. The matrix screen 42A of the display screen 42 displays basic information 62K, which is information about the execution block of the Nth program, block information 62Q indicating the call block that called the Nth program, program information 62P indicating the N-1st program including the call block, and call count information 62R indicating the number of calls of the call block. According to this, the user can grasp the call block that called the Nth program, the N-1st program including the call block, and the number of calls by the call block by checking the matrix screen 42A displayed on the display unit 21. In this way, in the numerical control device 30, the user can grasp the information of the N-1st program even if the Nth program is a subprogram, and can easily grasp the configuration of the NC program.

[0098] The CPU 31 executes the Nth screen process (S11) and displays the display screen 41 on the display unit 21. The matrix screen 41A of the display screen 41 displays basic information 61K and block information 61Q, which are information about the execution block of the Nth program, and program information 61P, which is information about the Nth program. The CPU 31 judges whether or not an N-1th switching instruction for displaying the display screen 42 on the display unit 21 has been received (S12). If the CPU 31 judges that the N-1th switching instruction has been received, it executes the N-1th screen process (S14). The CPU 31 judges whether or not an Nth switching instruction for displaying the display screen 42 on the display unit 21 has been received (S16). If the CPU 31 judges that the Nth switching instruction has been received, it executes the Nth screen process (S11). In this way, the numerical control device 30 switches between the display screen 42 and the display screen 41 and displays them on the display unit 21. This allows the user to easily understand the configuration of the NC program.

[0099] The CPU 31 executes the N-2 screen process (S19) and displays the display screen 43 on the display unit 21. The matrix screen 43A of the display screen 43 displays basic information 63K, which is information about the execution block of the N-th program, block information 63Q indicating the call block that called the N-1 program, program information 63P indicating the N-2 program including the call block, and call count information 63R indicating the number of calls of the call block. According to this, by checking the matrix screen 43A displayed on the display unit 21, the user can grasp the call block that called the N-1 program in the NC program having a total of three layers, the N-2 program including the call block, and the number of calls by the call block. In this way, in the numerical control device 30, the user can grasp the information of the N-2 program even if the N-1 program is a subprogram, and can easily grasp the configuration of the NC program.

[0100] The CPU 31 switches between a display screen 41 corresponding to the Nth program, a display screen 42 corresponding to the N-1th program, and a display screen 43 corresponding to the N-2 program, and displays them on the display unit 21. This allows information on all three hierarchical levels of the NC program to be displayed on the display unit 21. This allows the user to easily understand the configuration of the NC program.

[0101] When an NC program being executed is interrupted, the CPU 31 acquires date and time information from the clock unit 35 (S2). In the table 91, the identification number, date and time information, and interruption information are stored in association with each other. In the matrix screen 42A of the display screen 42, the information displays 62A to 62J display combinations of the identification number, date and time information, and interruption information related to the N-1 program. The information displays 62A to 62J are arranged downward in order of date and time (date, time) from the most recent to the oldest. This allows the user to easily grasp the relationship between the date and time information acquired during the execution of the NC program and the execution block of the Nth program.

[0102] The CPU 31 acquires date and time information indicating the date and time when the NC program was interrupted from the clock unit 35 (S2). This allows the user to understand the configuration of the NC program by checking the display screen 42 even if the execution of the NC program is interrupted, and allows the user to easily resume the execution of the NC program.

[0103] The CPU 31 refers to the interruption information and determines whether the interruption information includes information about the N-1th program (S55). If the CPU 31 determines that the interruption information does not include information about the N-1th program, it determines that the execution block is not included in the subprogram, and sets the display unit 21 to display a blank display regarding the interruption information for one of the information displays 62A-62J that corresponds to the identification number indicated by the variable T (S59). This allows the user to confirm by checking the display screen 42 that the Nth program corresponding to the blank display is not called by the call block of the N-1th program.

[0104] Information relating to the N-1th program is displayed, and information relating to the N-2th program is not displayed, on the matrix screen 42A of the display screen 42. Therefore, by checking the display screen 42, the user can understand that the display is related to the N-1th program.

[0105] <Modification> The present invention can be modified in various ways from the above embodiment. The various modified examples described below can be combined with each other as long as no contradiction occurs. The numerical control device 30 may change the display mode of the display unit 21 as appropriate. In the following modified examples, the same components as those in the above embodiment are given the same reference numerals, and the description will be omitted or simplified.

[0106] 15 shows a first modified example of the display mode of the display unit 21. The CPU 31 of the numerical control device 30 causes the second area 60 of the display screen 44 to display at least a part of the matrix screens 41A, 42A, 43A on the display unit 21. The item display 54 of the first area 50 has a configuration corresponding to the item displays 51 to 53, and indicates that the display screen 44 shows information relating to the Nth program, the N-1th program, and the N-2th program.

[0107] The display range of the second area 60 of the display screen 44 can be changed by a slider 74, which will be described later. In the second area 60 of FIG. 15, a part of the matrix screen 41B, a part of the matrix screen 42B, and an item display 640 are displayed. The matrix screen 41B has a configuration corresponding to the matrix screen 41A. The matrix screen 42B has a configuration corresponding to the matrix screen 42A. Although not shown, the second area 60 can also display a configuration corresponding to the matrix screen 43A by using the slider 74. The item display 640 has a configuration corresponding to the item displays 610, 620, and 630, and displays items of information displayed by the configuration corresponding to the matrix screens 41B and 42B and the matrix screen 43A (not shown).

[0108] A slider 74 is displayed in the third area 70. The slider 74 has a knob 74A and a bar 74B. The knob 74A is a generally rectangular shape extending in the left-right direction. The bar 74B is a generally rectangular shape that is longer in the left-right direction than the knob 74A. The bar 74B houses the knob 74A inside. The knob 74A accepts a scroll operation by the user and moves in the left-right direction along the bar 74B. When the knob 74A accepts a scroll operation, the CPU 31 switches the display range of the second area 60 in the left-right direction in response to the scroll operation.

[0109] Thus, while in the above embodiment, the matrix screens 41A to 43A are switched by pressing the reception area 71B etc., in Fig. 15 they are switched by a scroll operation. This allows the user to easily understand the configuration of the NC program. Note that it is sufficient for the numerical control device 30 to receive a scroll operation and to be able to switch the display range of the second area 60 in response to the scroll operation, and the configuration of the slider 74 may be changed as appropriate, and the slider 74 need not be displayed on the display unit 21.

[0110] 16 shows a second modified example of the display mode of the display unit 21. The display screen 45 has a configuration corresponding to the display screen 41. The second area 60A has a configuration corresponding to the second area 60. The item display 611 has a configuration corresponding to the item display 610.

[0111] The second area 60A has a reception area 69. The reception area 69 is an area that overlaps with the matrix screen 41A. The reception area 69 is an area that receives a pressing operation by a user. When the reception area 69 receives a pressing operation, the CPU 31 displays interruption information of the N-1th program in a pop-up display according to the position in the reception area 69 where the pressing operation was performed.

[0112] Fig. 16 shows the case where a pressing operation is performed at the position where information display 61B is displayed. CPU 31 pops up pop-up area 80 on matrix screen 41A. Pop-up area 80 is an area for pop-up display of interruption information of the N-1th program. In Fig. 16, pop-up area 80 displays interruption information of the N-1th program at identification number 2 in table 91. Matrix screen 81 is displayed in pop-up area 80.

[0113] Matrix screen 81 displays basic information 82K, program information 82P, block information 82Q, and call count information 82R. Basic information 82K corresponds to basic information 62K and displays an identification number. Program information 82P corresponds to program information 62P and displays the program number of the N-1th program. Block information 82Q corresponds to block information 62Q and displays the block number of the call block that called the Nth program. Call count information 82R corresponds to call count information 62R and displays the number of calls to the call block.

[0114] Other display modes of the display unit 21 will be described. In the above embodiment, the NC program is composed of a total of three hierarchical layers (N=3), and information on the NC programs of all hierarchical layers is displayed on the display unit 21. In contrast to this, for example, the NC program may be composed of a total of four hierarchical layers (N=4), and the display screen 41 related to the Nth program, the display screen 42 related to the N-1th program, and the display screen 43 related to the N-2th program may be displayed on the display unit 21. In this way, in the Nth program composed of a total of N hierarchical layers, the display screen 41 related to the Nth program, the display screen 42 related to the N-1th program, ..., the display screen related to the N-Lth program (L is a natural number and NL is a natural number of 2 or more) showing information on some hierarchical layers may be displayed on the display unit 21. In the above embodiment, information on the NC programs of all hierarchical layers is displayed on the display unit 21, but the display screen 43 related to the N-2th program does not have to be displayed. That is, it is sufficient that the display screen 41 related to the Nth program, which is the NC program being executed, and the display screen 42 related to the N-1th program that called the Nth program are displayed. Furthermore, when the NC programs are configured in a total of N hierarchical layers, information on the NC programs in all hierarchical layers, i.e., display screen 41 relating to the Nth program, display screen 42 relating to the N-1th program, ..., display screen relating to the first program, may be displayed on display unit 21 as in the above embodiment. At this time, for example, display screens 41, 42, ..., and display screen relating to the first program may all be displayed in second area 60. Furthermore, it is sufficient that display screen 42 relating to the N-1th program that called the Nth program is displayed, and display screen 41 does not have to be displayed on display unit 21.

[0115] Other modified examples will be described. The configuration of machine tool 1 may be modified as appropriate. For example, machine tool 1 does not need to include display unit 21. In this case, numerical control device 30 may display display screens 41, 42, and 43 on an external monitor.

[0116] The numerical control device 30 is not limited to being provided in the machine tool 1, but may be provided separately from the machine tool 1. For example, the numerical control device 30 may be a device (such as a PC or a dedicated machine) connected to the machine tool 1. Instead of the CPU 31, for example, a microcomputer, an ASIC (Application Specific Integrated Circuits), an FPGA (Field Programmable Gate Array), or the like may be used as a processor. The interruption process and the display process may each be distributed among a plurality of processors.

[0117] A non-transient storage medium such as ROM 32 or storage device 34 may be a storage medium capable of retaining information regardless of the period for which the information is stored. A non-transient storage medium may not include a temporary storage medium (e.g., a transmitted signal). For example, various programs may be downloaded (i.e., transmitted as a transmission signal) from a server connected to a network not shown, and stored in ROM 32 or storage device 34. In this case, the programs may be stored in a non-transient storage medium such as an HDD provided in the server. The correspondence between the identification number, date and time information, and interruption information stored in the process of S4 may be stored, for example, in a server connected to a network not shown.

[0118] In the above embodiment, the relationship between the Nth program including the execution block and the N-1th program that called the Nth program is shown by the identification number and date and time information on the display screen 42. However, the block number of the execution block and the program number of the Nth program may be displayed on the display screen 42, and the relationship with the N-1th program may be shown by the block number of the execution block and the program number of the Nth program.

[0119] In the above embodiment, the CPU 31 obtains the date and time when the NC program is interrupted and displays it on the display screens 41, 42, and 43. In contrast, the CPU 31 may obtain the date and time when the NC program is executed other than when the NC program is interrupted. For example, the CPU 31 may check the driving state of the drive unit 11 during the execution of the NC program and obtain the date and time when an abnormality occurs in the drive unit 11. The driving state of the drive unit 11 is, for example, the output of a servo motor. In this case, the user can check the display screen 42 or the like after the NC program is finished without stopping the machine unit 10 and check the driving state of the drive unit 11.

[0120] The numerical control device 30 may not have the clock unit 35. In this case, the process of S2 can be omitted in the interruption process, and the date and time are not displayed in the basic information 61K to 63K of the matrix screens 41A to 43A. In the process of S2, the CPU 31 may obtain the date and time from an external device that indicates the date and time. In the process of S2, the CPU 31 may obtain either the date or the time.

[0121] In the above embodiment, when the CPU 31 determines that the information related to the N-1th program is not included in the interruption information, the CPU 31 displays the corresponding information displays 62A-62J as blank on the display screen 42. In contrast, the CPU 31 may display a predetermined character or symbol indicating that the information related to the N-1th program is not included in the interruption information instead of the blank. The predetermined character is, for example, "Null", and the predetermined symbol is, for example, "-". Similarly, when the CPU 31 determines that the information related to the N-2th program is not included in the interruption information, the CPU 31 may display a predetermined character or symbol indicating that the information related to the N-1th program is not included in the interruption information instead of the blank on the display screen 43.

[0122] In the above embodiment, interruption information regarding the N-1th program was displayed on the display screen 42. However, interruption information regarding the N-2th program may be displayed on the display screen 42.

[0123] The NC program in the above embodiment is an example and may be changed as appropriate. The NC program may include the N-3 program that calls the N-2 program. The NC program may not include the N-2 program.

[0124] <Other> Basic information 61K, 62K, 63K and block information 61Q are examples of "execution block information" of the present invention. Block information 62Q is an example of "N-1th block information" of the present invention. Program information 62P is an example of "N-1th program information" of the present invention. Call count information 62R is an example of "N-1th call count information" of the present invention. Matrix screens 42A, 42B, 81 are examples of "N-1th screen" of the present invention. The processing of S14 executed by CPU 31 is an example of "N-1th display means" of the present invention.

[0125] Program information 61P is an example of the "Nth program information" of the present invention. Matrix screens 41A and 42B are examples of the "Nth screen" of the present invention. The processing of S11 executed by CPU 31 is an example of the "Nth display means" of the present invention. The processing of S12 executed by CPU 31 is an example of the "N-1th reception means" of the present invention. The processing of S16 executed by CPU 31 is an example of the "Nth reception means" of the present invention. The processing of S2 executed by CPU 31 is an example of the "acquisition means" of the present invention. The processing of S4 executed by CPU 31 is an example of the "storage means" of the present invention. The processing of S55 executed by CPU 31 is an example of the "determination means" of the present invention. Reception area 69 is an example of the "N-1th display reception means" of the present invention. [Explanation of symbols]

[0126] 1 Machine tools 10 Mechanical Department 21 Mechanical Department 30 Numerical Control Device 31 CPU 41~43 Display screen 41A~43A Matrix screen 61K, 62K, 63K basic information 61P, 62P, 63P Program Information 61Q, 62Q, 63Q Block Information 62R, 63R Call count information 91 Table

Claims

1. A numerical control device capable of controlling a machine tool based on an NC program including an N-th program (N is a natural number of 2 or more) and an N-1-th program including an N-1-th call block that calls the N-th program, the N-1-th program being composed of a plurality of blocks each including a control command, Execution block information indicating an execution block to be executed in the NC program; N-1th block information indicating the N-1st calling block that called the Nth program when the execution block is included in the Nth program; N-1 program information indicating the N-1 program including the N-1 call block indicated by the N-1 block information; N-1th call count information indicating the number of times that the N-1th call block indicated by the N-1th block information called the N program during execution of the NC program; The N-1th display means displays the N-1th screen on the display unit. A numerical control device characterized by:

2. The execution block information; N-th program information indicating the N-th program including the execution block; an N-th display means for displaying an N-th screen on the display unit, an (N-1)th receiving means for receiving an (N-1)th switching instruction for switching the display of the display unit to the (N-1)th screen; an Nth reception means for receiving an Nth switching instruction for switching the display of the display unit to the Nth screen, When the N-1 reception means receives the N-1 switching instruction, the N-1 display means displays the N-1 screen on the display unit; When the N-th reception means receives the N-th switching instruction, the N-th display means displays the N-th screen on the display unit. The numerical control device according to claim 1 .

3. The execution block information; N-M-1-th block information indicating the N-M-1-th call block that called the N-M program (M is a natural number and N-M is a natural number equal to or greater than 2); N-M-1 program information indicating the N-M-1 program including the N-M-1 call block indicated by the N-M-1 block information; N-M-1 call count information indicating the number of times that the N-M-1 call block indicated by the N-M-1 block information called the N-M program during execution of the NC program; The N-M-1th display means displays the N-M-1th screen on the display unit. The numerical control device according to claim 2 .

4. The Nth screen, the N-1th screen, ..., the N-Lth screen (L is a natural number and N-L is a natural number of 2 or more) are displayed on the display unit. The numerical control device according to claim 3 .

5. Displaying the Nth screen, the N-1th screen, ..., the first screen on the display unit The numerical control device according to claim 3 .

6. an acquisition means for acquiring a date and time when the execution block is executed in the NC program; a storage unit that stores the date and time acquired by the acquisition unit in association with the execution block, the execution block information includes the date and time stored in the storage means, The N-1 display means displays, on the N-1 screen, a combination of the execution block information, the N-1 block information corresponding to the execution block information, the N-1 program information, and the N-1 call count information in a chronological order based on the date and time stored in the storage means. The numerical control device according to claim 1 .

7. 7. The numerical control device according to claim 6, wherein the acquiring means acquires the date and time when the execution of the NC program was interrupted.

8. a determination means for determining whether the execution block is included in the Nth program, The N-1 display means displays, on the display unit, the N-1 block information, the N-1 program information, and the N-1 call count information on the N-1 screen as blanks or as predetermined characters or symbols when the determination means determines that the execution block is not included in the N program. The numerical control device according to claim 1 .

9. The execution block information; N-th program information indicating the N-th program including the execution block; an N-th display means for displaying an N-th screen on the display unit, a part of at least one of the Nth screen or the N-1th screen is displayed on the display unit; The part displayed on the display unit can be switched by a scroll operation. The numerical control device according to claim 1 .

10. The execution block information; N-th program information indicating the N-th program including the execution block; an N-th display means for displaying an N-th screen on the display unit, an (N-1)th display receiving means for receiving an (N-1)th display instruction for executing the (N-1)th display means; The N-1 display means, when the N-1 display instruction is accepted by the N-1 display accepting means, displays the N-1 screen as a pop-up on the N screen displayed on the display unit by the N display means. The numerical control device according to claim 1 .

11. A machine part for processing a workpiece; A display unit; a numerical control device capable of controlling the mechanical unit and the display unit based on an NC program including an Nth program (N is a natural number of 2 or more) and an N-1th program including an N-1th call block that calls the Nth program, the NC program being composed of a plurality of blocks each including a control command; The numerical control device includes: Execution block information indicating an execution block to be executed in the NC program; N-1th block information indicating the N-1st calling block that called the Nth program when the execution block is included in the Nth program; N-1 program information indicating the N-1 program including the N-1 call block indicated by the N-1 block information; N-1th call count information indicating the number of times that the N-1th call block indicated by the N-1th block information called the N program during execution of the NC program; (N-1)-th display means for displaying (N-1)-th screen on the display unit. A machine tool characterized by:

Citation Information

Patent Citations

  • Numerical controller and numerical control method

    JP2003248507A