Numerical Control Device
The numerical control device simplifies machining program creation by analyzing and generating command information from first, second, and third commands, addressing readability and operational burden issues in conventional systems.
Patent Information
- Application Number
- JP2023531303
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-07-01
- Publication Date
- 2024-11-13
- Estimated Expiration
- 2041-07-01
AI Technical Summary
Conventional machining programs with multiple command values in one block reduce readability and impose a heavy burden on operators during program creation.
A numerical control device that includes a command analysis section to break down machining programs into first, second, and third commands, with the command information generation unit generating command information based on these commands to simplify program creation.
Reduces the burden on operators by simplifying the creation of machining programs with multiple command value sets in one block, enhancing program readability and execution efficiency.
Smart Images

Figure 0007583170000001 
Figure 0007583170000002 
Figure 0007583170000003
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a numerical control device for controlling a machine tool. [Background technology]
[0002] Conventionally, in a numerical control device, it has been proposed to use a machining program in which a set of multiple command values is arranged in one block (for example, Patent Document 1). Such a command-format machining program commands the execution of continuous operations in a machine tool by a set of multiple command values specified in one block. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-98428 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in such a command-based machining program, many numerical values are arranged in one block, which may reduce the readability of the program. In addition, each numerical value must be determined in advance, which places a heavy burden on the operator when creating the machining program.
[0005] An object of the present disclosure is to provide a numerical control device capable of reducing the burden of creating a machining program in which a plurality of sets of command values are arranged in one block. [Means for solving the problem]
[0006] The numerical control device includes a command analysis unit that analyzes a machining program including, in one block, a first command including a numerical value that specifies an axis operation, a second command including any one of a preparatory function command, a speed command, a spindle rotation command, a tool change command, and an auxiliary command, and a third command that specifies the execution timing of the second command, and a command information generation unit that generates command information for the second command based on the first command and the third command analyzed by the command analysis unit. Effect of the Invention
[0007] According to one aspect of the present disclosure, it is possible to reduce the burden of creating a machining program in which a plurality of sets of command values are arranged in one block. [Brief description of the drawings]
[0008] [Figure 1] FIG. 2 is a block diagram showing an example of a hardware configuration of a numerical control device. [Diagram 2] FIG. 2 is a block diagram showing an example of a function of a numerical control device. [Diagram 3] FIG. 4 is a diagram showing an example of a machining program. [Figure 4] FIG. 11 is a diagram illustrating an example of execution timing of a speed command. [Diagram 5] 4 is a flowchart showing an example of a flow of processing executed by a numerical control device. [Figure 6] FIG. 4 is a diagram showing an example of a machining program. [Figure 7] 7A to 7C are diagrams illustrating the operations of the control axes when the machining program shown in FIG. 6 is executed. [Figure 8] FIG. 4 is a diagram showing an example of a machining program. [Figure 9] FIG. 4 is a diagram showing an example of a machining program. [Figure 10] FIG. 4 is a diagram showing an example of a machining program. [Figure 11] FIG. 4 is a diagram showing an example of a machining program. [Figure 12]12 is a diagram illustrating the operations of the control axes and the coolant when the machining program shown in FIG. 11 is executed. FIG. [Figure 13] FIG. 4 is a diagram showing an example of a machining program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, an embodiment of the present disclosure will be described with reference to the drawings. Note that not all combinations of features described in the following embodiment are necessarily required to solve the problem. In addition, unnecessary detailed description may be omitted. In addition, the following description of the embodiment and the drawings are provided for those skilled in the art to fully understand the present disclosure, and are not intended to limit the scope of the claims.
[0010] 1 is a block diagram showing an example of a hardware configuration of a machine tool equipped with a numerical control device. The machine tool 1 includes a lathe, a machining center, and a multi-tasking machine. The machine tool 1 may also include a wire electric discharge machine.
[0011] The machine tool 1 includes a numerical control device 2, an input / output device 3, a servo amplifier 4 and a servo motor 5, a spindle amplifier 6 and a spindle motor 7, and auxiliary equipment 8.
[0012] The numerical control device 2 is a device that controls the entire machine tool 1. The numerical control device 2 includes a hardware processor 201, a bus 202, a ROM (Read Only Memory) 203, a RAM (Random Access Memory) 204, and a non-volatile memory 205.
[0013] The hardware processor 201 is a processor that controls the entire numerical control device 2 in accordance with a system program. The hardware processor 201 reads out the system program stored in the ROM 203 via the bus 202, and performs various processes based on the system program. The hardware processor 201 also controls the servo motor 5 and the spindle motor 7 based on the machining program. The hardware processor 201 is, for example, a CPU (Central Processing Unit) or an electronic circuit.
[0014] The hardware processor 201 performs, for example, analysis of a machining program and outputs control commands to the servo motor 5 and the spindle motor 7 for each control period.
[0015] The bus 202 is a communication path that connects each piece of hardware in the numerical control device 2 to each other. The pieces of hardware in the numerical control device 2 exchange data via the bus 202.
[0016] The ROM 203 is a storage device that stores a system program for controlling the entire numerical control device 2. The ROM 203 is a computer-readable storage medium.
[0017] The RAM 204 is a storage device that temporarily stores various data and functions as a working area for the hardware processor 201 to process various data.
[0018] The non-volatile memory 205 is a storage device that retains data even when the machine tool 1 is turned off and power is not being supplied to the numerical control device 2. The non-volatile memory 205 stores, for example, a machining program and various parameters. The non-volatile memory 205 is a computer-readable storage medium. The non-volatile memory 205 is formed, for example, of an SSD (Solid State Drive).
[0019] The numerical control device 2 further includes an interface 206 , an axis control circuit 207 , a spindle control circuit 208 , a PLC (Programmable Logic Controller) 209 , and an I / O unit 210 .
[0020] The interface 206 connects the bus 202 and the input / output device 3. The interface 206 sends, for example, various data processed by the hardware processor 201 to the input / output device 3.
[0021] The input / output device 3 is a device that receives various data via the interface 206 and displays the various data. The input / output device 3 also receives input of various data and sends the various data to the hardware processor 201 via the interface 206. The input / output device 3 is, for example, a touch panel. When the input / output device 3 is a touch panel, the touch panel is, for example, a capacitive touch panel. Note that the touch panel is not limited to a capacitive touch panel and may be a touch panel of another type. The input / output device 3 is attached, for example, to an operation panel (not shown) in which the numerical control device 2 is stored.
[0022] The axis control circuit 207 is a circuit that controls the servo motor 5. The axis control circuit 207 receives a control command from the hardware processor 201 and outputs a command to drive the servo motor 5 to the servo amplifier 4. The axis control circuit 207 sends, for example, a torque command to control the torque of the servo motor 5 to the servo amplifier 4.
[0023] The servo amplifier 4 receives a command from the axis control circuit 207 and supplies a current to the servo motor 5 .
[0024] The servo motor 5 is driven by receiving a current supply from the servo amplifier 4. The servo motor 5 is connected to, for example, a ball screw that drives a tool post. When the servo motor 5 is driven, a structure of the machine tool 1, such as the tool post, moves, for example, in the X-axis direction, Y-axis direction, or Z-axis direction. The servo motor 5 may include a built-in speed detector (not shown) that detects the feed speed of each feed axis.
[0025] The spindle control circuit 208 is a circuit for controlling the spindle motor 7. The spindle control circuit 208 receives a control command from the hardware processor 201 and outputs a command for driving the spindle motor 7 to the spindle amplifier 6. The spindle control circuit 208 sends, for example, a torque command for controlling the torque of the spindle motor 7 to the spindle amplifier 6.
[0026] The spindle amplifier 6 receives a command from the spindle control circuit 208 and supplies a current to the spindle motor 7 .
[0027] The spindle motor 7 is driven by receiving a current supply from the spindle amplifier 6. The spindle motor 7 is connected to a main shaft and rotates the main shaft.
[0028] The PLC 209 is a device that executes a ladder program to control the auxiliary device 8. The PLC 209 sends commands to the auxiliary device 8 via the I / O unit 210.
[0029] The I / O unit 210 is an interface that connects the PLC 209 and the auxiliary device 8. The I / O unit 210 transmits commands received from the PLC 209 to the auxiliary device 8.
[0030] The auxiliary device 8 is installed in the machine tool 1 and performs auxiliary operations in the machine tool 1. The auxiliary device 8 operates based on commands received from the I / O unit 210. The auxiliary device 8 may be a device installed in the periphery of the machine tool 1. The auxiliary device 8 is, for example, a tool changer, a cutting fluid ejection device, or an opening / closing door drive device.
[0031] Next, the function of the numerical control device 2 will be described.
[0032] 2 is a block diagram showing an example of functions of the numerical control device 2. The numerical control device 2 includes a machining program storage unit 21, a command analysis unit 22, a command information generation unit 23, and a control unit 24.
[0033] The machining program storage unit 21 is realized, for example, by storing a machining program input from the input / output device 3 in the RAM 204 or the non-volatile memory 205.
[0034] The command analysis unit 22, the command information generation unit 23, and the control unit 24 are realized, for example, by the hardware processor 201 performing arithmetic processing using a system program stored in the ROM 203 and various data stored in the non-volatile memory 205.
[0035] The machining program storage unit 21 stores the machining program used for machining the workpiece.
[0036] 3 is a diagram showing an example of a machining program, which includes, for example, one block including a plurality of commands.
[0037] One block means one line of a machining program. In other words, the line of sequence number N100 in the machining program shown in Figure 3 is one block. Also, the line of sequence number N101 is one block.
[0038] The plurality of commands includes a first command, a second command, and a third command.
[0039] The first command includes, for example, a numerical value that specifies an axis motion. An axis motion is a motion in which a controlled axis moves along an axis such as the X-axis or Y-axis, or stops. An axis motion includes a motion in which a controlled axis waits without moving, i.e., maintains a stopped state.
[0040] The numerical value that defines the axis movement is, for example, a coordinate value in a predetermined coordinate system. In the example shown in FIG. 3, the coordinate value "X150.Y140." in the predetermined coordinate system is specified as the first command in the block with sequence number N101. The predetermined coordinate system is, for example, the machine coordinate system of the machine tool 1 or the workpiece coordinate system. The numerical value that defines the axis movement may be the amount of movement of the axis in the predetermined coordinate system. The numerical value that defines the axis movement may also be the execution time. An example in which the numerical value that defines the axis movement is the execution time will be described in detail later.
[0041] The second command includes any one of a preparation function command, a speed command, a spindle rotation command, a tool change command, and an auxiliary command.
[0042] The preparatory function command is a command for setting the inside of the numerical control device 2 in preparation for machining. The preparatory function command is a command by G code such as G00, G01, G02, G03, and G04. Note that G00 is a positioning command, G01 is a linear interpolation command, G02 is a circular interpolation command for drawing a clockwise arc, G03 is a circular interpolation command for drawing a counterclockwise arc, and G04 is a dwell command.
[0043] A speed command is a command that specifies the feed speed when the control axis moves in cutting feed. The speed command is specified by the F code. In the example shown in Figure 3, the speed commands "600", "500", and "400" are specified by the F code.
[0044] The spindle rotation command is a command that specifies the rotation speed of the spindle. The spindle rotation command is specified by an S code.
[0045] The tool change command is a command for changing a tool. The tool change command is specified by a T code.
[0046] Auxiliary commands are commands for executing functions other than the movement of the controlled axis. Auxiliary commands are specified by M codes.
[0047] The third command is a command that specifies the execution timing of the second command. The execution timing is the time when the second command becomes effective or the period during which the second command is effective. The third command includes any one of a numerical value indicating a position, a numerical value indicating an operating distance, a numerical value indicating an operating time, a numerical value indicating a ratio of the operating distance, and a numerical value indicating a ratio of the operating time in the axis operation.
[0048] In the example shown in FIG. 3, the numerical values "1", "3", and "1" indicating the ratio of the operating distance are specified as the third command for the second commands "600", "500", and "400", respectively. In other words, the third command specifies the period during which the second command is valid by the numerical value indicating the ratio of the operating distance. "1", "3", and "1" may be the ratio of the operating time of the control axis instead of the ratio of the operating distance. In addition, whether the third command is the ratio of the operating distance or the ratio of the operating time may be set in advance by a predetermined parameter. Furthermore, in order to clearly specify that the second command is the ratio of the operating distance, a command such as "RATIO_LENGTH" may be specified in the machining program.
[0049] Also, the numerical value indicating the position, the numerical value indicating the operating distance, the numerical value indicating the operating time, and the numerical value indicating the ratio of the operating times may be specified by, for example, POS{X}, LENGTH{X}, TIME, and RATIO_TIME, respectively. Also, the third command may be specified by a composite distance LENGTH that does not specify an axial direction. Here, returning to FIG. 2, the description of the functions of the numerical control device 2 will be continued.
[0050] The command analysis unit 22 analyzes a machining program including, in one block, a first command including a numerical value that specifies an axis operation, a second command including any one of a preparatory function command, a speed command, a spindle rotation command, a tool change command, and an auxiliary command, and a third command that specifies the execution timing of the second command. The command analysis unit 22 reads the machining program stored in the machining program storage unit 21 and analyzes each command included in each block of the machining program.
[0051] The command analysis unit 22 reads and analyzes each command designated in the machining program for each block. The command analysis unit 22 may sequentially read ahead and analyze the commands in each block.
[0052] For example, "G00 X100. Y100." is specified in the block with sequence number N100 shown in Fig. 3. The command analysis unit 22 interprets the command in this block as a command to move the control axis at fast forward to the position of X100, Y100.
[0053] In addition, in the block with sequence number N101, "G01 X150. Y140. F=[1,600],[3,500],[1,400]" is specified. The command analyzer 22 interprets the command of this block as moving the control axis from the position of X100, Y100 to the position of X150, Y140 at the cutting feed. The command analyzer 22 also interprets the command as moving the control axis at a feed rate of 600 [mm / min] in the first 1 / 5 distance section between the position of X100, Y100 and the position of X150, Y140. The command analyzer 22 also interprets the command as moving the control axis at a feed rate of 500 [mm / min] in the next 3 / 5 distance section. The command analyzer 22 also interprets the command as moving the control axis at a feed rate of 400 [mm / min] in the last 1 / 5 distance section.
[0054] The command information generating unit 23 generates command information of the second command based on the first command and the third command analyzed by the command analyzing unit 22.
[0055] Fig. 4 is a diagram showing an example of the execution timing of a speed command, specifically, a graph showing the execution timing of a speed command when the machining program shown in Fig. 3 is executed.
[0056] 3, the command information generating unit 23 generates command information to move the control axis at a feed rate of 600 [mm / min] through the first 1 / 5 distance section between the position of X100, Y100 and the position of X150, Y140. In other words, the command information generating unit 23 generates command information to perform cutting feed by linear interpolation at a feed rate of 600 [mm / min] from the position of X100, Y100 toward the position of X110, Y108.
[0057] Furthermore, the command information generating unit 23 generates command information to move the control axis at a feed rate of 500 [mm / min] over the next 3 / 5 distance section between the position of X100, Y100 and the position of X150, Y140. In other words, the command information generating unit 23 generates command information to perform cutting feed by linear interpolation at a feed rate of 500 [mm / min] from the position of X110, Y108 toward the position of X140, Y132.
[0058] Furthermore, the command information generator 23 generates command information to move the control axis at a feed rate of 400 [mm / min] through the last 1 / 5 of the distance between the position X100, Y100 and the position X150, Y140. In other words, command information is generated to perform cutting feed by linear interpolation at a feed rate of 400 [mm / min] from the position X140, Y132 toward the position X150, Y140.
[0059] In other words, the command information generating unit 23 generates a control command so that, in the operation of the control axis according to the first command, the ratio of operating distances between the section where the feed speed is 600 [mm / min], the section where the feed speed is 500 [mm / min], and the section where the feed speed is 400 [mm / min] is 1:3:1.
[0060] Control unit 24 controls each part of machine tool 1 based on the command information generated by command information generating unit 23. Control unit 24 controls the operation of the spindle head, tool rest, etc., by controlling control axes such as the X-axis, Y-axis, and Z-axis, for example. This enables numerical control device 2 to cause machine tool 1 to machine a workpiece.
[0061] Next, the flow of processing executed by the numerical control device 2 will be described.
[0062] FIG. 5 is a flowchart showing an example of the flow of processing executed by the numerical control device 2.
[0063] First, the command analysis unit 22 reads the machining program stored in the machining program storage unit 21 (step S1).
[0064] Next, the command analysis unit 22 analyzes the commands of the read machining program and interprets each command (step S2).
[0065] Next, the command information generating unit 23 generates command information based on each command of the machining program interpreted by the command analyzing unit 22 (step S3).
[0066] Finally, control unit 24 controls each part of machine tool 1 based on the command information generated by command information generating unit 23 (step S4), and the process ends.
[0067] As described above, the numerical control device 2 includes a command analysis unit 22 that analyzes a machining program including, in one block, a first command including a numerical value that specifies an axis operation, a second command including any one of a preparatory function command, a speed command, a spindle rotation command, a tool change command, and an auxiliary command, and a third command that specifies the execution timing of the second command, and a command information generation unit 23 that generates command information for the second command based on the first command and the third command analyzed by the command analysis unit 22.
[0068] This allows the numerical control device 2 to generate command information based on a machining program that includes a first command, a second command, and a third command in one block. In other words, the numerical control device 2 can reduce the burden of creating a machining program in which a plurality of sets of command values are arranged in one block.
[0069] Moreover, the numerical value that specifies the axis operation includes any one of coordinate values, movement amount, and execution time. Furthermore, the third command includes any one of a numerical value indicating a position, a numerical value indicating an operation distance, a numerical value indicating an operation time, a numerical value indicating a ratio of the operation distance, and a numerical value indicating a ratio of the operation time in the axis operation. In other words, the numerical control device 2 can generate command information based on various types of third commands. As a result, the operator can create a machining program to be executed in the numerical control device 2 in accordance with the operation mode of the control axis. In other words, the numerical control device 2 can reduce the operator's burden in creating a program.
[0070] In the above embodiment, the second command is only a speed command, that is, the second command is one type of command. However, the second command may include multiple types of commands.
[0071] FIG. 6 is a diagram showing an example of a machining program. FIG. 7 is a diagram explaining the operation of the control axis when the machining program shown in FIG. 6 is executed. In the block of sequence number N200, "G90 G00 Z50." is specified. G90 is an absolute command. Under the absolute command, the axis operation is performed based on the coordinate value in the set coordinate system. Therefore, the command analysis unit 22 interprets the command specified in the block of sequence number N200 as a command to move the control axis at fast forward to the position of Z50.
[0072] Note that G00 is a modal command. A modal command is a command that is not disabled until another G code belonging to a group is commanded. G00, G01, G02, G03, and G04 are commands that belong to a single group. In other words, if G00 is specified in one block, G00 will remain valid until another command such as G01 is specified in another block following the first block.
[0073] In the block of sequence number N201, "X100. Y100." is specified. Also, no G code is specified in the block of sequence number N201, and G00 specified in the block of sequence number N200 is valid. Therefore, command analysis unit 22 interprets the command specified in the block of sequence number N201 as a command to move the control axis at fast forward to the position of X100, Y100.
[0074] In the block with sequence number N202, "Z-30.,G,F=[9, , ],[6,01,400],[1, ,200]" is specified. Of these, "Z-30." is the first command. Also, G00 is valid for "Z-30." specified in sequence number N202.
[0075] "G,F=[9, , ],[6,01,400],[1, ,200]" is a command that combines the second command and the third command. The address "G,F" and the numerical values shown in the center and right of each square bracket are the second command. In other words, the "400" and "200" specified in the center square bracket and the right square bracket are the second command, respectively. Note that the numerical value corresponding to address F is omitted because it is assumed that G00 is specified in the left square bracket.
[0076] As mentioned above, G codes such as G00, G01, etc. are modal commands, so the numerical values in the middle of the left and right brackets are omitted.
[0077] The "9", "6", and "1" specified in the left, center, and right brackets are the third command specified relative to the second command, respectively. The third command is a number indicating the ratio of the operating distances.
[0078] Therefore, the command analyzer 22 interprets the command specified by sequence number N202 as a command to move the control axis at fast forward through the first 9 / 16th distance section between the Z50 position and the Z-30 position. The command analyzer 22 also interprets the command as a command to move the control axis at a feed rate of 400 [mm / min] through the next 6 / 16th distance section between the Z50 position and the Z-30 position. The command analyzer 22 also interprets the command as a command to move the control axis at a feed rate of 200 [mm / min] through the last 1 / 16th distance section between the Z50 position and the Z-30 position.
[0079] When the command specified by sequence number N202 is analyzed, the command information generating unit 23 generates a command to move the control axis at rapid traverse from the Z50 position to the Z5 position. The command information generating unit 23 also generates command information to feed the control axis for cutting at a feed rate of 400 [mm / min] from the Z5 position to the Z-25 position. The command information generating unit 23 also generates command information to feed the control axis for cutting at a feed rate of 200 [mm / min] from the Z-25 position to the Z-30 position.
[0080] The block with sequence number N203 specifies "Z50.,G,F=[1, , ],[6, ,400],[9,00, ]". Of these, "Z50." is the first command.
[0081] Also, "G,F=[1, , ],[6, ,400],[9,00, ]" is a command that combines the second command and the third command. The address "G,F" and the numbers in the center and on the right side of each square bracket are the second commands. In other words, "400" and "00" specified in the left square bracket, the center square bracket, and the right square bracket are the second commands, respectively.
[0082] As mentioned above, G codes such as G00, G01, etc. are modal commands, so the center number in the left and center brackets, and the right number in the left bracket are omitted.
[0083] The "1", "6", and "9" specified in the left bracket, center bracket, and right bracket are the third command specified with respect to the second command, respectively. The third command is a number indicating the ratio of the operating distances.
[0084] Therefore, the command analyzer 22 interprets the command specified by sequence number N203 as a command to move the control axis at a feed rate of 200 [mm / min] for the first 1 / 16 distance section between the Z-30 position and the Z50 position. The command analyzer 22 also interprets the command as a command to move the control axis at a feed rate of 400 [mm / min] for the next 6 / 16 distance section between the Z-25 position and the Z5 position. The command analyzer 22 interprets the command as a command to move the control axis at rapid traverse for the last 9 / 16 distance section between the Z5 position and the Z50 position.
[0085] When the command specified by sequence number N203 is analyzed, the command information generating unit 23 generates command information to cause the control axis to perform cutting feed from position Z-30 to position Z-25 at a feed rate of 200 [mm / min]. The command information generating unit 23 also generates command information to cause the control axis to perform cutting feed from position Z-25 to position Z5 at a feed rate of 400 [mm / min]. The command information generating unit 23 also generates command information to move the control axis at rapid traverse from position Z5 to position Z50.
[0086] "X110." is specified in the block of sequence number N204. Therefore, command analysis unit 22 interprets the command specified by sequence number N204 as a command to fast-forward the control axis to the position of X110. Command information generation unit 23 generates command information to fast-forward the control axis from the position of X100 to the position of X110.
[0087] As described above, the command analysis unit 22 may analyze a machining program including multiple types of second commands in one block. In this case, the machining program is simplified, and the burden on the operator in creating the machining program can be reduced.
[0088] In the above embodiment, the third command is a numerical value indicating a ratio of the motion distance in the axial motion. The third command may be a numerical value indicating a position. The numerical value indicating a position is, for example, a coordinate value.
[0089] 8 is a diagram showing an example of a machining program. In the block of sequence number N300, "G90 G00 X100. Y100." is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N300 as a command to move the control axis at fast forward to the position of X100, Y100.
[0090] In the block with sequence number N301, "G01 X150., Y140., POS{X}, F=[110 ., 600],[140.,500],[ ,400]" are specified. Of these, "X150.,Y140." is the first command.
[0091] "POS{X},F=[110 ., "600],[140.,500],[ ,400]" is a command that combines a second command and a third command. The address "F" and the numbers shown on the right side of each square bracket are the second commands. In other words, "600", "500", and "400" specified in the left square bracket, the center square bracket, and the right square bracket are the second commands, respectively.
[0092] The "110." and "140." specified in the left and center square brackets are the third commands specified for the second command, respectively. The third command in the right square bracket is omitted because it is the same as the first command "X150.".
[0093] The command analysis unit 22 interprets the command specified by the sequence number N301 as a command to move the control axis at a feed rate of 600 [mm / min] in the first section between the position of X100, Y100 and the position of X150, Y140. 0 The section is up to the position X110. Also, at the position X110, it is Y108.
[0094] Furthermore, the command analysis unit 22 interprets the command specified by the sequence number N301 as a command to move the control axis at a feed rate of 500 [mm / min] in the next section between the position of X100, Y100 and the position of X150, Y140. Here, the next section is the section from the position of X110 to the position of X140. Also, at the position of X140, it is Y132.
[0095] Furthermore, the command analysis unit 22 interprets the command specified by the sequence number N301 as a command to move the control axis at a feed rate of 400 [mm / min] in the last section between the position of X100, Y100 and the position of X150, Y140. Here, the last section is the section from the position of X140 to the position of X150. Also, at the position of X150, it is Y140.
[0096] As described above, the command analysis unit 22 may analyze a machining program in which the third command is specified by a numerical value indicating a position. In this case, the machining program is simplified, and the burden on the operator in creating the machining program can be reduced. Furthermore, by specifying the third command by a numerical value indicating a position, the coordinates to be reached by the control axes become clear. Furthermore, it becomes possible to omit the specification of part of the third command. Furthermore, it becomes possible to specify the third command for some of the control axes.
[0097] In the above-described embodiment, the third command is a numerical value indicating a position in the axis operation. The third command may be a numerical value indicating a movement distance.
[0098] 9 is a diagram showing an example of a machining program. In the block of sequence number N400, "G90 G00 X100. Y100." is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N400 as a command to move the control axis at fast forward to the position of X100, Y100.
[0099] In the block with sequence number N401, "G01 X150.,Y140.,LENGTH{X},F=[10 ., 600],[30.,500],[ ,400]" are specified. Of these, "X150.,Y140." is the first command.
[0100] 「LENGTH{X},F=[10 ., "600],[30.,500],[ ,400]" is a command that combines a second command and a third command. The address "F" and the numbers shown on the right side of each square bracket are the second commands. In other words, "600", "500", and "400" specified in the left square bracket, the center square bracket, and the right square bracket are the second commands, respectively.
[0101] The "10." and "30." specified in the left and center square brackets are the third commands specified for the second command, respectively. Also, when the numerical values indicating the positions of the axis movements are specified in the left and center square brackets, the third commands in the brackets on the right are automatically determined. Therefore, the specification of the third command is omitted in the right square bracket.
[0102] Command analysis unit 22 interprets the command specified by sequence number N401 as a command to move the first section between the position X100, Y100 and the position X150, Y140 at a feed rate of 600 [mm / min]. Here, the first section is the section between the position X100 and a position 10 away from the position X100 in the X-axis direction. In other words, it is the section between the position X100 and the position X110. Note that at the position X110, it is Y108.
[0103] Furthermore, command analysis unit 22 interprets the command specified by sequence number N401 as a command to move the next section between the position of X100, Y100 and the position of X150, Y140 at a feed rate of 500 [mm / min]. Here, the next section is the section between the position of X110 and a position 30 away from the position of X110 in the X-axis direction. In other words, it is the section between the position of X110 and the position of X140. Note that at the position of X140, it is Y132.
[0104] Furthermore, the command analysis unit 22 interprets the command specified by the sequence number N401 as a command to move the last section between the position of X100, Y100 and the position of X150, Y140 at a feed rate of 400 [mm / min]. Here, the last section is the section between the position of X140 and the position of X150. Note that at the position of X150, it is Y140.
[0105] As described above, the command analysis unit 22 may analyze a machining program in which the third command is specified by a numerical value indicating the operating distance. In this case, the machining program is simplified, and the burden on the operator in creating the machining program can be reduced.
[0106] In the above-described embodiment, the third command is a numerical value indicating the operating distance. Alternatively, the second command may be a spindle rotation command, and the third command may be a numerical value indicating the operating time.
[0107] 10 is a diagram showing an example of a machining program. In the block of sequence number N500, "G90 G00 Z100." is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N500 as a command to move the control axis at rapid traverse to the position of Z100.
[0108] In the block with sequence number N501, "G00 Z0.,TIME,S=[ ,0],[100,1000]" is specified. Of these, "Z0." is the first command.
[0109] Also, "TIME,S=[ ,0],[100,1000]" is a command that combines the second command and the third command. The address "S" and the numbers shown on the right side of each square bracket are the second commands. In other words, the "0" and "1000" specified in the left square bracket and the right square bracket are the second commands.
[0110] The "100" specified in the right bracket is the third command specified for the second command "1000." Also, the third command specified in the left bracket is omitted.
[0111] The command analyzer 22 interprets the command specified by sequence number N501 as a command to rotate the spindle at a rotation speed of 0 [rev / min] from the Z100 position until 100 [ms] before the control axis reaches the Z0 position. In other words, the command analyzer 22 interprets this as a command to stop the rotation of the spindle during this period.
[0112] The command analysis unit 22 interprets the command specified by sequence number N501 as a command to rotate the spindle at a rotational speed of 1000 [rev / min] from 100 [ms] before the control axis reaches position Z0 from position Z100 to position Z0 until it reaches position Z0.
[0113] In the block of sequence number N502, "G01 Z-10. F300" is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N502 as a command to move the control axis to the position of Z-10 at a feed rate of 300 [mm / min].
[0114] In the block of sequence number N503, "Z0." is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N503 as a command to move the control axis to the position of Z0 at a feed rate of 300 [mm / min].
[0115] In the block with sequence number N504, "G00 Z50.,TIME,S=[100,0],[ ,1000]" is specified. Of these, "Z50." is the first command.
[0116] "TIME,S=[100,0],[ ,1000]" is a command that combines a second command and a third command. The address "S" and the numbers shown on the right side of each square bracket are the second commands. In other words, the "0" and "1000" specified in the left square bracket and the right square bracket are the second commands.
[0117] The "100" specified in the left square bracket is the third command specified for the second command "0." Also, the third command specified in the right square bracket is omitted.
[0118] The command analyzer 22 interprets the command specified by sequence number N504 as rotating the spindle at a rotation speed of 0 [rev / min] from the Z0 position until 100 [ms] before the control axis reaches the Z50 position. In other words, the command analyzer 22 interprets this as stopping the rotation of the spindle during this period.
[0119] In addition, the command analysis unit 22 interprets the command specified by sequence number N504 as a command to rotate the spindle at a rotational speed of 1000 [rev / min] from 100 [ms] before the control axis reaches position Z50 from position Z0 until it reaches position Z50.
[0120] As described above, the command analysis unit 22 may analyze a machining program in which the second command is a spindle rotation command and the third command is specified by a numerical value indicating an operation time. In this case, the machining program is simplified, and the burden of creating the machining program on the operator can be reduced.
[0121] In the above-described embodiment, the second command is a spindle rotation command. The second command may be an auxiliary command.
[0122] Fig. 11 is a diagram showing an example of a machining program. Fig. 12 is a diagram explaining the operation of the control axis and the coolant when the machining program shown in Fig. 11 is executed. "G00 X100. Y100." is specified in the block of sequence number N600. The command analysis unit 22 interprets the command specified in the block of sequence number N600 as a command to move the control axis at fast forward to the position of X100, Y100.
[0123] In the block with sequence number N601, "G01 X150.,Y140.,F=600,M,M=[1,8,19],[3,9,18],[1,8,19]" is specified. Of these, "X150.,Y140." is the first command.
[0124] Also, "M,M=[1,8,19],[3,9,18],[1,8,19]" is a command that combines the second command and the third command. The address "M", the numerical value shown in the center of each square bracket, and the numerical value shown on the right side are the second commands. In other words, "8,19", "9,18", and "8,19" specified in the left square bracket, the center square bracket, and the right square bracket are the second commands, respectively.
[0125] The "1", "3" and "1" specified in the left bracket, the center bracket and the right bracket are respectively the third command specified with respect to the second command. The third command is, for example, a numerical value indicating the ratio of the operating distances.
[0126] Therefore, the command analysis unit 22 interprets the command specified by sequence number N601 as meaning that the M8 and M19 commands are valid while the control axis moves through the first 1 / 5 of the distance between the position X100, Y100 and the position X150, Y140.
[0127] In addition, the command analysis unit 22 interprets the command specified by sequence number N601 as meaning that the M9 and M18 commands are valid while the control axis moves through the next 3 / 5 of the distance between the position X100, Y100 and the position X150, Y140.
[0128] In addition, the command analysis unit 22 interprets the command specified by sequence number N601 as meaning that the M8 and M19 commands are valid while the control axis moves through the last 1 / 5 of the distance between the position X100, Y100 and the position X150, Y140.
[0129] Note that M8 and M18 are commands to turn on the first and second coolant systems, respectively, in a machine tool 1 equipped with a dual coolant system, and M9 and M19 are commands to turn off the first and second coolant systems, respectively, in a machine tool 1 equipped with a dual coolant system.
[0130] Therefore, while the control shaft moves through the first section, for example, the coolant system of the first system is turned on and the coolant system of the second system is turned off. Also, while the control shaft moves through the next section, the coolant system of the first system is turned off and the coolant system of the second system is turned on. Also, while the control shaft moves through the last section, the coolant system of the first system is turned on and the coolant system of the second system is turned off.
[0131] As described above, the command analysis unit 22 determines whether the second command is an auxiliary command, in particular, a command to turn on the coolant or a command to turn off the coolant. directive In this case, the coolant can be turned on or off according to the contact position between the tool and the workpiece when the tool cuts the workpiece. In addition, the machining program can be simplified, reducing the burden on the operator in creating the machining program.
[0132] In the above-described embodiments, the first command is a coordinate value or a numerical value indicating a movement amount. The first command is not limited to these, and may include a numerical value indicating an execution time.
[0133] 13 is a diagram showing an example of a machining program. In the block of sequence number N700, "G00 Z100." is specified. The command analysis unit 22 interprets the command specified in the block of sequence number N700 as a command to move the control axis at fast forward to the position of Z100.
[0134] In the block with sequence number N701, "G04 X1000.,TIME,S=[500,1000],[,1500]" is specified. Of these, "X1000." is the first command that contains a value indicating the execution time. Note that this first command stops the X-axis operation for 1000 [ms].
[0135] Also, "TIME,S=[500,1000],[,1500]" is a command that combines the second command and the third command. The address "S" and the numbers shown on the right side of each square bracket are the second commands. In other words, the "1000" and "1500" specified in the left square bracket and the right square bracket are the second commands.
[0136] The "500" specified in the left square bracket is the third command specified for the second command "1000." Also, the third command specified in the left square bracket is omitted.
[0137] The command analyzer 22 interprets the command specified by sequence number N701 as rotating the spindle at 1000 rev / min for the first 500 ms of the 1000 ms during which the X-axis operation stops, and as rotating the spindle at 1500 rev / min for the remaining 500 ms.
[0138] As described above, the command analysis unit 22 may analyze a machining program including a first command specified by a numerical value indicating an execution time. In this case, the machining program is simplified, and the burden of creating the machining program on the operator can be reduced.
[0139] In addition, the present disclosure is not limited to the above-described embodiment, and can be appropriately modified without departing from the spirit and scope of the present disclosure. In the present disclosure, any of the components of the embodiment can be modified or omitted. [Explanation of symbols]
[0140] 1 Machine tools 2. Numerical control device 201 Hardware Processor 202 Bus 203 ROM 204 RAM 205 Non-volatile memory 206 Interface 207 Axis control circuit 208 Spindle control circuit 209 PLC 210 I / O Unit 21 Machining program storage section 22 Command analysis section 23 Command information generation section 24 Control Unit 3 Input / Output Devices 4 Servo Amplifier 5. Servo motor 6 Spindle Amplifier 7 Spindle motor 8 Auxiliary equipment
Claims
1. a command analysis unit that analyzes a machining program including, in one block, a first command including a numerical value that specifies an axis operation, a second command including any one of a preparatory function command, a speed command, a spindle rotation command, a tool change command, and an auxiliary command, and a third command that specifies the execution timing of the second command; a command information generating unit that generates command information of the second command based on the first command and the third command analyzed by the command analyzing unit; A numerical control device comprising:
2. The numerical control device according to claim 1 , wherein the numerical values that define the axial movements include any one of coordinate values, movement amounts, and execution times.
3. 3. The numerical control device according to claim 1 or 2, wherein the third command includes any one of a numerical value indicating a position, a numerical value indicating an operating distance, a numerical value indicating an operating time, a numerical value indicating a ratio of an operating distance, and a numerical value indicating a ratio of an operating time in the axis operation.
Citation Information
Patent Citations
Plural operation sequence generating system in numerical control device
JP1982201903A
Method for controlling numerical control machine tool
JP1993134722A
Method for processing NC program
JP1993204421A
Multi-system queuing method for cnc
JP1996161022A
Numerical value control device
JP2020098428A
