Numerical control device
Patent Information
- Application Number
- CN202480085586.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2026-08-18
Smart Images

Figure CN122603027A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to numerical control devices. Background Technology
[0002] In the past, in order to use a turning tool to process complex shapes in machine tools, there are known machining methods that perform turning while automatically changing the relative posture of the tool and the workpiece.
[0003] In such machining, the numerical control device instructs the position and relative orientation of the cutting points of each program block of the program, and controls the linear axis, rotary axis, etc. of the machine tool according to these instructions and the preset tool offset (for example, see Patent Document 1).
[0004] Furthermore, in order to avoid interference between the tool and the workpiece simply by specifying the relative position of the tool and the workpiece, there are known techniques for automatically controlling the relative posture (rotation angle of rotation axis B) and the direction of change of the relative posture (rotation direction of rotation axis B) (for example, see Patent Document 2).
[0005] Existing technical documents
[0006] Patent documents
[0007] Patent Document 1: Japanese Patent Application Publication No. 5-100723
[0008] Patent Document 2: Japanese Patent No. 7032615 Summary of the Invention
[0009] The problem that the invention aims to solve
[0010] In numerical control devices like those described above, for example, during tool approach, tool retraction, and tool turning actions, it is sometimes desirable to keep the tool facing the direction specified by the operator and prevent the tool from rotating. In such cases, during tool approach and tool retraction actions, it is necessary to explicitly disable the automatic control of relative posture, while during turning actions, it is necessary to explicitly enable the relative posture control.
[0011] That is, in order to perform the relative attitude control described above, it is necessary to write explicit instructions in the machining program to enable or disable the relative attitude control.
[0012] However, when writing instructions like those described above in a machining program, the following problems arise (1)-(4): (1) Editing the machining program is time-consuming. (2) Programming errors are easily made during the editing of the machining program (forgetting to write instructions for relative attitude control to be effective / ineffective, etc.). (3) The machining program becomes complicated, resulting in reduced readability. (4) The number of program blocks in the machining program increases, leading to delays in cycle time.
[0013] Therefore, a numerical control device is desired that can simplify the machining program for turning and make the editing of the machining program easier.
[0014] Methods for solving problems
[0015] One aspect of this disclosure is a numerical control device comprising: a relative attitude control unit that executes relative attitude control according to a program, wherein the program is used to change the relative position and relative attitude of a machine tool and a workpiece for turning operations, the relative attitude control including automatically determining the direction of change of the relative position and the relative attitude; and a relative attitude control determination unit that determines the validity or invalidation of the relative attitude control based on corresponding information for determining the validity or invalidation of the relative attitude control, the relative attitude control unit executing the relative attitude control according to the validity or invalidation of the relative attitude control determined by the relative attitude control determination unit. Attached Figure Description
[0016] Figure 1 This is a functional block diagram showing the outline of the numerical control device in this embodiment.
[0017] Figure 2 This is a diagram illustrating an example of relative attitude control of a machine tool's tools.
[0018] Figure 3 It indicates that it is used for performing Figure 2 A diagram showing an example of machining program instructions for relative attitude control.
[0019] Figure 4 This is a diagram illustrating examples of enabling and disabling relative attitude control commands in a program.
[0020] Figure 5 It is used for performing Figure 4 The diagram illustrates the program instructions for relative attitude control.
[0021] Figure 6 It indicates a decision Figure 4 as well as Figure 5 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0022] Figure 7 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0023] Figure 8 It is used for performing Figure 7 The diagram illustrates the machining program instructions for relative attitude control.
[0024] Figure 9 It indicates a decision Figure 7 as well as Figure 8 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0025] Figure 10 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0026] Figure 11 This is a diagram showing an example of a ladder diagram circuit.
[0027] Figure 12 It is used for performing Figure 10 The diagram illustrates the machining program instructions for relative attitude control.
[0028] Figure 13 It indicates a decision Figures 10 to 12 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0029] Figure 14 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0030] Figure 15 It is used for performing Figure 14 The diagram illustrates the machining program instructions for relative attitude control.
[0031] Figure 16 It indicates a decision Figure 14 as well as Figure 15 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0032] Figure 17 This is a diagram representing an example of an existing processing procedure.
[0033] Figure 18 This is a diagram illustrating an example of the processing procedure in this embodiment.
[0034] Figure 19 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0035] Figure 20 It indicates that it is used for performing Figure 19 A diagram showing an example of a machining procedure for relative attitude control.
[0036] Figure 21 It is used for performing Figure 20 The diagram illustrates the machining program instructions for relative attitude control.
[0037] Figure 22 This is a diagram representing an existing program display example.
[0038] Figure 23 This is a diagram illustrating a program display example of this embodiment.
[0039] Figure 24 This is a diagram illustrating a program display example of this embodiment.
[0040] Figure 25 This is a diagram illustrating an example of a single-type fixed-cycle machining procedure.
[0041] Figure 26 This diagram is used to illustrate a single-type fixed cycle (linear cutting cycle).
[0042] Figure 27 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a single-type fixed-cycle machining program.
[0043] Figure 28 It is used for performing Figure 27 The diagram illustrates the machining program instructions for relative attitude control.
[0044] Figure 29 It indicates a decision Figure 27 as well as Figure 28 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0045] Figure 30 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0046] Figure 31 It is used for performing Figure 30 The diagram illustrates the action of a loop command for relative attitude control.
[0047] Figure 32 It indicates a decision Figure 30 as well as Figure 31 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0048] Figure 33 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0049] Figure 34 This is a diagram showing an example of a ladder diagram circuit.
[0050] Figure 35 It is used for performing Figure 33 The diagram illustrates the action of a loop command for relative attitude control.
[0051] Figure 36 It indicates a decision Figures 33 to 35 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0052] Figure 37 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process.
[0053] Figure 38 It is used for performing Figure 37 The diagram illustrates the machining program instructions for relative attitude control.
[0054] Figure 39 It indicates a decision Figure 37 as well as Figure 38 The flowchart shown illustrates the process of activating or deactivating relative attitude control. Detailed Implementation
[0055] Hereinafter, an example of an embodiment of the present disclosure will be described. Figure 1 This diagram illustrates a general outline of the numerical control device 1 according to this embodiment. The numerical control device 1 is a known numerical control device to those skilled in the art; it generates motion commands based on control information and sends the generated motion commands to the machine tool 2. Thus, the numerical control device 1 controls the operation of the machine tool 2.
[0056] Machine tool 2 is a machine that uses a turning tool to perform turning operations on the workpiece according to the action instructions from the numerical control device 1. The control axis 21 of machine tool 2 rotates the turning tool according to the instructions from the numerical control device 1.
[0057] like Figure 1 As shown, the numerical control device 1 includes: a relative attitude control determination unit 11, a relative attitude control unit 12, an axis control unit 13, a relative attitude control output unit 14, and a correspondence storage unit 15.
[0058] The relative attitude control determination unit 11 determines whether the relative attitude control is valid or invalid based on corresponding information used to determine whether the relative attitude control is valid or invalid. Furthermore, relative attitude control refers to the relative attitude and direction of change of the automatically controlled turning tool, and can be implemented, for example, using prior art such as Japanese Patent Application Publication No. 5-100723 and Japanese Patent No. 7032615.
[0059] As an example of relative attitude control, the numerical control device 1 acquires the geometry of a turning tool (e.g., a multi-edge tool), reads the machining shape information of the turning tool from machining program instructions that do not explicitly specify the relative attitude, and determines the relative attitude and rotation direction of the turning tool so that the cutting surface of the workpiece does not interfere with the turning tool based on the geometry and machining shape information of the turning tool. Thus, the numerical control device 1 can control the turning tool so that the relative attitude can be automatically determined even if it is not explicitly specified in the machining program instructions.
[0060] The relative attitude control unit 12 performs relative attitude control according to the machining program (hereinafter also simply referred to as the program), wherein the machining program is used to change the relative position and relative attitude of the tool and the workpiece of the machine tool 2 for turning machining, and the relative attitude control includes automatically determining the direction of change of relative position and relative attitude. Furthermore, the relative attitude control unit 12 performs relative attitude control according to the activation or deactivation of relative attitude control determined by the relative attitude control determination unit 11.
[0061] Here, the corresponding information includes at least one of the following: information that corresponds the types of positioning and cutting commands instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the types of positioning feed and cutting feed actions contained in a cycle command instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the relative position instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the signals input to the numerical control device 1 with the activation or deactivation of relative attitude control; and information that corresponds the feedback information from the axes of the machine tool 2 with the activation or deactivation of relative attitude control.
[0062] The axis control unit 13 outputs a signal for controlling the servo motor of the control axis 21 according to the instructions from the relative attitude control unit 12.
[0063] The relative attitude control output unit 14 outputs the decision result made by the relative attitude control decision unit 11 to a display device, external device, etc., thereby prompting the user with the decision result. In addition, the relative attitude control output unit 14 outputs at least one of the following: a log of the decision result made by the relative attitude control decision unit 11, and data that maps program blocks to decision results. The mapping relationship storage unit 15 stores the aforementioned mapping information.
[0064] The aforementioned relative attitude control decision unit 11, relative attitude control unit 12, axis control unit 13, and relative attitude control output unit 14 are composed of processors such as CPU (Central Processing Unit) and perform their functions by executing programs stored in storage devices.
[0065] The correspondence storage unit 15 is composed of storage devices such as a ROM (Read Only Memory) and a RAM (Random Access Memory) that store an OS (Operating System), application programs, etc., a hard disk drive, and an SSD (Solid State Drive) that store various other information.
[0066] Figure 2 It is a diagram showing an example of relative attitude control of the tool of the machine tool 2. Figure 3 It is for performing Figure 2 A diagram showing an example of a machining program instruction for the relative attitude control shown. As Figure 2 shown, the machine tool 2 performs turning of the workpiece 23 using a turning tool 22 (hereinafter, also simply referred to as the tool 22). In Figure 2 the example shown, turning is performed from the N1 block to the N4 block, and Figure 2 shows the rotation angle of the tool 22 around the rotation axis B in each block.
[0067] Generally, in turning, during approach movements, retraction movements, etc., for example, it is sometimes desired to keep the tool 22 facing the direction specified by the operator without rotating the tool 22. In such a case, in the approach movement of the tool 22 such as the N1 block and the retraction movement of the tool 22 such as the N4 block, the relative attitude control determination unit 11 determines the invalidation of the relative attitude control. And, as Figure 3 shown, the relative attitude control unit 12 performs control so that when the invalidation of the relative attitude control is determined, the invalidation instruction of the relative attitude control is omitted and the relative attitude control is not executed.
[0068] In addition, in the turning operations of the tool 22 such as the N2 block and the N3 block, the relative attitude control determination unit 11 determines the validation of the relative attitude control. And, as Figure 3 shown, the relative attitude control unit 12 performs control so that when the validation of the relative attitude control is determined, the validation instruction of the relative attitude control is omitted and the relative attitude control is executed. Next, Figure 4-16 is used to explain the control corresponding to the corresponding information.
[0069] Figure 4-6 It is a diagram showing an example when the corresponding information is information that correlates the types of positioning instructions and cutting instructions commanded by the program with the validation or invalidation of the relative attitude control.
[0070] Figure 4 It is a diagram showing examples of validation and invalidation instructions for relative attitude control in a machining program. Figure 5It is used for performing Figure 4 The diagram illustrates the machining program instructions for relative attitude control.
[0071] In this example, such as Figure 4 and Figure 5 As shown, turning operations are performed from program block N1 to program block N8. Figure 5 As shown, program block N1 (program: G00 X4.0 Z0.0;) contains a positioning instruction (G00), and the correspondence storage unit 15 stores the positioning instruction (G00) and the invalidation of relative attitude control as correspondence information.
[0072] Therefore, the relative attitude control decision unit 11 determines to disable relative attitude control based on the corresponding information. Similarly, program blocks N4 (program: G00 X12.0;), N5 (program: X8.0;), and N8 (program: G00 X8.0Z4.0;) contain positioning instructions, and the relative attitude control decision unit 11 determines to disable relative attitude control based on the corresponding information.
[0073] Program block N2 (program G01 Z-10.0;) contains cutting command (G01), and the correspondence storage unit 15 stores the cutting command (G01) and the activation of relative attitude control as correspondence information. Therefore, the relative attitude control determination unit 11 determines the activation of relative attitude control based on the correspondence information.
[0074] Similarly, program blocks N3 (program: X8.0;), N6 (program: G01 X4.0;), and N7 (program: Z0.0;) contain cutting instructions (G01), and the relative attitude control determination unit 11 determines the effectiveness of relative attitude control based on the corresponding information.
[0075] Figure 6 It indicates a decision Figure 4 as well as Figure 5 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0076] In step S1, the relative attitude control determination unit 11 reads the program block of the machining program for turning.
[0077] In step S2, the relative attitude control determination unit 11 determines whether an instruction type is specified in the read program block. If an instruction type is specified (yes), the process proceeds to step S3. Otherwise, if no instruction type is specified (no), the process proceeds to step S4.
[0078] In step S3, the relative attitude control decision unit 11 confirms the pre-specified command type, and then the process proceeds to step S5.
[0079] In step S4, the relative attitude control decision unit 11 confirms the instruction type of the program block based on the modal information, and then the process proceeds to step S5.
[0080] In step S5, the relative attitude control determination unit 11 determines whether the command is a positioning command (G00). If the command is a positioning command (G00) (Yes), the process proceeds to step S6. On the other hand, if the command is not a positioning command (G00) (No), the process proceeds to step S7.
[0081] In step S6, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process ends.
[0082] In step S7, the relative attitude control determination unit 11 determines whether the command is a cutting command (G01). If the command is a cutting command (G01) (Yes), the process proceeds to step S9. On the other hand, if the command is not a cutting command (G01) (No), the process proceeds to step S8.
[0083] In step S8, the relative attitude control decision unit 11 confirms that the command is other than the positioning command (G00) and the cutting command (G01), and proceeds to step S9.
[0084] In step S9, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process ends.
[0085] Figure 7-9 This is a diagram illustrating an example of how corresponding information corresponds to the activation or deactivation of relative position and relative attitude control as instructed by the program. Figure 7 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 8 It is used for performing Figure 7 The diagram illustrates the machining program instructions for relative attitude control.
[0086] In this example, such as Figure 7 as well as Figure 8 As shown, turning operations are performed from program block N1 to program block N8. Furthermore, as... Figure 7 As shown, a specified range T1 is defined by parameters. For example, regarding the specified range T1, -8.5≤X≤8.5 is specified for the X-axis, and Z≤0.5 is specified for the Z-axis. Furthermore, when the specified range T1 includes both the start and end points of the program block, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control.
[0087] Specifically, such as Figure 8As shown, program block N1 (program: G00 X4.0 Z0.0;) contains the relative position X4.0 Z0.0. The correspondence storage unit 15 stores the case where the starting point is outside the specified range T1 as corresponding information and associates it with the invalidation of the relative attitude control.
[0088] Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information. Similarly, the program block N5 (program: X8.0;) contains the relative position X8.0, and the correspondence storage unit 15 stores the case where the starting point is outside the specified range T1 as corresponding information to the invalidation of relative attitude control. Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information.
[0089] Program block N2 (program G01 Z-10.0;) contains the relative position (Z-10.0). The correspondence storage unit 15 stores the correspondence information by associating the start point and end point within the specified range T1 with the activation of relative attitude control. Therefore, the relative attitude control decision unit 11 determines the activation of relative attitude control based on the correspondence information.
[0090] Similarly, for program blocks N3 (program: X8.0;), N6 (program: G01 X4.0;), and N7 (program: Z0.0;), the start and end points are both within the specified range T1. Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information.
[0091] Program block N4 (program: G00 X12.0;) contains the relative position (X12.0). The correspondence storage unit 15 stores the case where the endpoint is outside the specified range T1 as correspondence information and associates it with the invalidation of relative attitude control. Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the correspondence information.
[0092] Similarly, program block N8 (program: G00 X8.0 Z4.0;) contains the relative position (X8.0 Z4.0), and the correspondence storage unit 15 stores the case where the endpoint is outside the specified range T1 as correspondence information and associates it with the invalidation of relative attitude control. Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the correspondence information.
[0093] Figure 9 It indicates a decision Figure 7 as well as Figure 8 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0094] In step S21, the relative attitude control determination unit 11 reads the program block of the machining program for turning.
[0095] In step S22, the relative attitude control decision unit 11 reads parameters for determining the range from the read program block.
[0096] In step S23, the relative attitude control determination unit 11 determines whether the starting point of the program block is within the specified range T1. If the starting point is within the specified range T1 (yes), the process proceeds to step S24. On the other hand, if the starting point is not within the specified range T1 (no), the process proceeds to step S26.
[0097] In step S24, the relative attitude control determination unit 11 determines whether the endpoint of the program block is within the specified range T1. If the endpoint is within the specified range T1 (yes), the process proceeds to step S25. On the other hand, if the endpoint is not within the specified range T1 (no), the process proceeds to step S26.
[0098] In step S25, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process ends.
[0099] In step S26, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process ends.
[0100] Figure 10-13 This is a diagram illustrating an example where the corresponding information is information that associates the signals input to the numerical control device with the activation or deactivation of relative attitude control. Figure 10 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 11 This is a diagram showing an example of a ladder diagram circuit. Figure 12 It is used for performing Figure 10 The diagram illustrates the machining program instructions for relative attitude control.
[0101] In this example, such as Figure 10 as well as Figure 12 As shown, turning operations are performed from program blocks N1 to N8. Within the specified travel range of each axis (X-axis, Z-axis), the attitude control determination unit 11 controls the signal input to the numerical control device 1 to turn it on or off. Additionally, as... Figure 10 As shown, in the middle of program blocks N1, N4, N5, and N8 ( Figure 10 The boundary R), changing the effectiveness and invalidation of relative attitude control.
[0102] Here, the following conditions are used to control the signals of each axis.
[0103] -8.5≤X≤8.5→Rnnnn.n=1
[0104] Z≤0.5→Rmmmm.m=1
[0105] And, as Figure 11 As shown, the relative attitude control decision unit 11 performs a ladder diagram bitwise AND operation and inputs it to Gxxxx.x. Furthermore, the relative attitude control decision unit 11 determines whether to enable or disable relative attitude control based on the value of the signal Gxxxx.x.
[0106] Specifically, such as Figure 13 As shown, program block N1 (program: G00 X4.0 Z0.0;) contains the relative position (X4.0 Z0.0). The correspondence storage unit 15 stores the correspondence information by associating Gxxxx.x=0 with the invalidation of relative attitude control, and stores the correspondence information by associating Gxxxx.x=1 with the validation of relative attitude control.
[0107] Therefore, at the beginning of program block N1, the relative attitude control decision unit 11 determines the invalidation of relative attitude control during the period when Gxxxx.x = 0, and determines the activation of relative attitude control during the period when Gxxxx.x = 1 from the middle.
[0108] Similarly, program block N5 (program: X8.0;) contains the relative position (X8.0). Therefore, at the beginning of program block N5, the relative attitude control decision unit 11 determines the invalidation of relative attitude control during the period when Gxxxx.x = 0, and in program block N6 (program: G01 X4.0;), it determines the activation of relative attitude control during the period when Gxxxx.x = 1 from the middle.
[0109] Here, in program blocks N1 and N5, relative attitude control switches from being disabled to being enabled midway through the program block. Specifically, before being enabled, relative attitude control is disabled, so the rotation axis (B-axis) of tool 22 moves without rotation while maintaining the angle at the instruction start point. And when relative attitude control is enabled, relative attitude control begins from the angle of the B-axis at the instruction start point before being enabled.
[0110] In addition, program block N2 (program G01 Z-10.0;) contains the relative position (Z-10.0), but the calculation result of the above ladder diagram is all Gxxxx.x = 1. Therefore, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information.
[0111] Similarly, program block N7 (program: Z0.0;) contains the relative position (Z0.0), but the calculation result of the above ladder diagram is all Gxxxx.x = 1. Therefore, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information.
[0112] Additionally, program block N4 (program: G00 X12.0;) contains the relative position (X12.0). As described above, the correspondence storage unit 15 stores the correspondence information as a pairing between Gxxxx.x = 0 and the invalidation of relative attitude control, and stores the correspondence between Gxxxx.x = 1 and the validation of relative attitude control.
[0113] Therefore, at the beginning of program block N4, the relative attitude control decision unit 11 determines the activation of relative attitude control during the period when Gxxxx.x = 1, and determines the deactivation of relative attitude control during the period when Gxxxx.x = 0 from the middle.
[0114] Similarly, program block N8 (program: G0X8.0 Z4.0;) contains the relative position (X8.0 Z4.0). Therefore, at the beginning of program block N8, the relative attitude control decision unit 11 determines the activation of relative attitude control during the period when Gxxxx.x = 1, and determines the deactivation of relative attitude control during the period when Gxxxx.x = 0 from the middle.
[0115] Here, in program blocks N4 and N8, relative attitude control switches from being enabled to being disabled midway through the program block. Specifically, before being disabled, relative attitude control is enabled, so the relative attitude control unit 12 moves the tool 22 using relative attitude control. Furthermore, if relative attitude control is disabled, the relative attitude control unit 12 moves the tool 22 to the end point of the program block using positioning feed. Moreover, regarding the end point of the program block, the end point of the program block when relative attitude control is enabled is used for the corresponding program block as a whole.
[0116] Figure 13 It indicates a decision Figures 10 to 12 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0117] In step S31, the relative attitude control determination unit 11 determines whether it is a communication cycle with the ladder diagram. If it is a communication cycle with the ladder diagram (yes), the process proceeds to step S32. On the other hand, if it is not a communication cycle with the ladder diagram (no), the process ends.
[0118] In step S32, the relative attitude control decision unit 11 performs the above ladder diagram calculation and reads in the signal Gxxxx.x.
[0119] In step S33, it is determined whether the signal Gxxxx.x is 1 or 0. If the signal Gxxxx.x is 1, the process proceeds to step S34. On the other hand, if the signal Gxxxx.x is 0, the process proceeds to step S35.
[0120] In step S34, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process returns to step S31.
[0121] In step S35, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process returns to step S31.
[0122] Figure 14-16 This is an example of how the corresponding information corresponds to feedback information from the servo motor that rotates the axis of machine tool 2 and the activation or deactivation of relative attitude control. Figure 14 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 15 It is used for performing Figure 14 The diagram illustrates the machining program instructions for relative attitude control. Furthermore, the position deviation of the servo motor in machine tool 2 is detected by an encoder (not shown), etc.
[0123] In this example, such as Figure 14 as well as Figure 15 As shown, turning is performed from program block N1 to program block N8. During cutting, tool 22 contacts the workpiece, generating a cutting load, thus increasing the positional deviation of the motor. Therefore, relative to each axis (X-axis, Z-axis), when the (positional deviation / feed rate) is above the cutting determination threshold, the relative attitude control determination unit 11 activates relative attitude control. Conversely, relative to each axis (X-axis, Z-axis), when the (positional deviation / feed rate) is below the cutting determination threshold, the relative attitude control determination unit 11 deactivates relative attitude control.
[0124] Specifically, such as Figure 15 As shown, program block N1 (program: G00 X4.0 Z0.0;) contains the relative position (X4.0 Z0.0). The correspondence storage unit 15 stores the case where the (X-axis and Z-axis position deviation / feed rate) is outside the cutting determination range (i.e., less than the cutting determination threshold) as corresponding information to the invalidation of relative attitude control. Therefore, since the (X-axis and Z-axis position deviation / feed rate) is outside the cutting determination range, the relative attitude control determination unit 11 determines the invalidation of relative attitude control.
[0125] Similarly, program blocks N4 (program: G00 X12.0;), N5 (program: X8.0;), and N8 (program: G00 X8.0 Z4.0;) each contain relative positions. For program blocks N4, N5, and N8, since the (X-axis and Z-axis position deviations / feed rates) are outside the cutting decision range, the relative attitude control determination unit 11 determines the invalidation of relative attitude control.
[0126] Additionally, program block N2 (program G01 Z-10.0;) includes the relative position (Z-10.0). The correspondence storage unit 15 stores correspondence information by associating the situation where (X-axis and Z-axis position deviation / feed rate) is outside the cutting decision range with the invalidation of relative attitude control. Furthermore, the correspondence storage unit 15 stores correspondence information by associating the situation where (X-axis and Z-axis position deviation / feed rate) is within the cutting decision range with the activation of relative attitude control.
[0127] Therefore, at the beginning of program block N2, the relative attitude control determination unit 11 determines the invalidation of relative attitude control during the period when (X-axis and Z-axis position deviation / feed speed) is outside the cutting determination range, and determines the activation of relative attitude control from the middle onwards during the period when (X-axis and Z-axis position deviation / feed speed) is within the cutting determination range.
[0128] Similarly, program block N6 (program: G01 X4.0;) contains the relative position (X4.0). Therefore, at the beginning of program block N6, the relative attitude control determination unit 11 determines the invalidation of relative attitude control while the (X-axis and Z-axis position deviation / feed rate) is outside the cutting determination range, and determines the activation of relative attitude control from the middle onwards while the (X-axis and Z-axis position deviation / feed rate) is within the cutting determination range.
[0129] Here, in program blocks N2 and N6, relative attitude control switches from being disabled to being enabled midway through the program block. Specifically, before being enabled, relative attitude control is disabled, so the rotation axis (B-axis) of tool 22 moves without rotation while maintaining the angle at the instruction start point. And when relative attitude control is enabled, relative attitude control begins from the angle of the B-axis at the instruction start point before being enabled.
[0130] Furthermore, for program block N3 (program: X8.0;), at the beginning of program block N3, the relative attitude control determination unit 11 determines the activation of relative attitude control while the (position deviation / feed rate of X-axis and Z-axis) is within the cutting determination range, and determines the deactivation of relative attitude control while the (position deviation / feed rate of X-axis and Z-axis) is outside the cutting determination range from the middle.
[0131] Similarly, for program block N7 (program: Z0.0;), at the beginning of program block N7, the relative attitude control determination unit 11 determines the activation of relative attitude control while the (position deviation / feed rate of X-axis and Z-axis) is within the cutting determination range, and determines the deactivation of relative attitude control while the (position deviation / feed rate of X-axis and Z-axis) is outside the cutting determination range from the middle.
[0132] Here, in program blocks N3 and N7, relative attitude control switches from being enabled to being disabled midway through the program block. Specifically, before being disabled, relative attitude control is enabled, therefore, the relative attitude control unit 12 moves the tool 22 using relative attitude control. Furthermore, if relative attitude control is disabled, the relative attitude control unit 12 moves the tool 22 to the end point of the program block using positioning feed. Moreover, regarding the end point of the program block, the end point of the program block when relative attitude control is enabled is used for the corresponding program block as a whole.
[0133] Figure 16 It indicates a decision Figure 14 as well as Figure 15 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0134] In step S41, the relative attitude control determination unit 11 determines whether it is a communication cycle with the motor. If it is a communication cycle with the motor (yes), the process proceeds to step S42. On the other hand, if it is not a communication cycle with the motor (no), the process ends.
[0135] In step S42, the relative attitude control determination unit 11 reads the cutting determination threshold Hx of the X-axis from the storage device of the machine tool 2.
[0136] In step S43, the relative attitude control determination unit 11 reads the position deviation Px of the X-axis motor of the machine tool 2.
[0137] In step S44, the relative attitude control determination unit 11 determines whether the (X-axis position deviation Px / feed speed Fx) is greater than or equal to the cutting determination threshold Hx. If (Px / Fx) ≥ Hx (yes), the process proceeds to step S45. On the other hand, if (Px / Fx) < Hx (no), the process proceeds to step S46.
[0138] In step S45, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and the process proceeds to step S46.
[0139] In step S46, the relative attitude control determination unit 11 reads the cutting determination threshold Hz of the Z-axis from the storage device of the machine tool 2.
[0140] In step S47, the relative attitude control determination unit 11 reads the position deviation Pz of the Z-axis motor of the machine tool 2.
[0141] In step S48, the relative attitude control determination unit 11 determines whether the (Z-axis position deviation Pz / feed speed Fz) is above the cutting determination threshold Hz. If (Pz / Fz) ≥ Hz (Yes), the process proceeds to step S49. On the other hand, if (Pz / Fz) < Hz (No), the process proceeds to step S50.
[0142] In step S49, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and the process proceeds to step S50.
[0143] In step S50, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and the process returns to step S41.
[0144] Furthermore, the relative attitude control decision unit 11 is not limited to the above example, and multiple corresponding information can be used in combination. For example, the relative attitude control decision unit 11 may also activate relative attitude control only when each program block contains a cutting command and the relative positions of the start and end points of the command are within a specified range.
[0145] Furthermore, the relative attitude control determination unit 11 can also activate relative attitude control only when each program block contains a cutting command and the input signal is 1 (Gxxxx.x = 1). Additionally, the relative attitude control determination unit 11 can also activate relative attitude control only when each program block contains a cutting command and the (X-axis and Z-axis position deviation / feed rate) is above the cutting determination threshold.
[0146] Figure 17 This is a diagram illustrating an example of an existing machining process. Figure 18 This is a diagram illustrating an example of the processing procedure in this embodiment. (Example) Figure 17 as well as Figure 18 As shown, the machining program of this embodiment does not require the instructions Gxx of program block N2, Gyy of program block N4, Gxx of program block N6, and Gyy of program block N8 in the existing machining program. Therefore, the machining program for turning can be simplified and the machining program can be easily edited.
[0147] Figure 19-21 This is a diagram illustrating examples of outputs for both effective and ineffective relative attitude control. Figure 19 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 20 It indicates that it is used for performing Figure 19A diagram showing an example of a machining procedure for relative attitude control. Figure 21 It is used for performing Figure 20 The diagram illustrates the machining program instructions for relative attitude control.
[0148] like Figure 19-21 As shown, when the relative attitude control is disabled by the relative attitude control decision unit 11, the relative attitude control output unit 14 sets the macro variable #nnnn=0, sets the output signal Fmmmm.m=0, and outputs the macro variable and the output signal.
[0149] Furthermore, when relative attitude control is activated by the relative attitude control determination unit 11, the relative attitude control output unit 14 sets the macro variable #nnnn=1, sets the output signal Fmmmm.m=1, and outputs the macro variable and the output signal. Moreover, the relative attitude control output unit 14 can set either the macro variable or the output signal, or both.
[0150] With this configuration, the numerical control device 1 can use macro variables to implement a machining program that changes behavior based on the effective or ineffective state of relative position control. Furthermore, when outputting output signals to external devices, it is possible to implement actions that change behavior based on the effective or ineffective state of relative attitude control from external devices.
[0151] Figure 22 This is a diagram representing an existing program display example. Figure 23 and Figure 24 This is a diagram illustrating a program display example of this embodiment. For example... Figure 22 As shown, in the existing program display example on the actual display device screen, the background is displayed in black and the text is displayed in white.
[0152] On the other hand, Figure 23 as well as Figure 24 In the program display example of this embodiment shown, the relative attitude control output unit 14 outputs at least one of the following: a log of the decision result and data that corresponds the program block to the decision result.
[0153] Figure 23 The example shown illustrates the log of the decision results. The relative attitude control output unit 14 highlights the log of the decision results made by the relative attitude control decision unit 11 in different ways: program blocks in the program where relative attitude control is invalid, and program blocks in the program where relative attitude control is valid.
[0154] Specifically, such as Figure 23As shown, the relative attitude control output unit 14 highlights the text of program blocks N1 and N4, which indicate invalid relative attitude control, in green. Conversely, the relative attitude control output unit 14 highlights the text of program blocks N2 and N3, which indicate valid relative attitude control, in blue. Additionally, Figure 23 The example shown is a log of the result; therefore, the text after program block N5 before execution is not emphasized but displayed in white. Furthermore, in Figure 23 In addition to the above, other texts are also included. Figure 22 It is displayed in white with a black background.
[0155] With this configuration, the numerical control device 1 can prompt the user on how to perform relative attitude control within each program block. Furthermore, in Figure 23 In the code, the text in program blocks N1 and N4 is represented in italics instead of green, and the text in program blocks N2 and N3 is represented in underline instead of blue.
[0156] Figure 24 This is a diagram showing other examples of the procedure in this embodiment. Figure 24 The example shown illustrates the data that maps program blocks to decision results. The relative attitude control output unit 14 highlights the data that maps program blocks to decision results from the relative attitude control decision unit 11 in different ways: program blocks in the program where relative attitude control is invalid, and program blocks in the program where relative attitude control is valid.
[0157] For example, when relative attitude control is automatically turned on / off based on the type of instruction in the program (a positioning instruction disables relative attitude control, while a cutting instruction enables relative attitude control), the numerical control device 1 can obtain the decision result of enabling or disabling relative attitude control through program data even before executing the program. In this case, the relative attitude control output unit 14 generates data that corresponds each program block to the decision result in each program block and displays the data.
[0158] Specifically, such as Figure 24 As shown, the relative attitude control output unit 14 highlights the text of program blocks N1, N4, N5, and N8, which indicate invalid relative attitude control, in green. Conversely, the relative attitude control output unit 14 highlights the text of program blocks N2, N3, N6, and N7, which indicate valid relative attitude control, in blue. Furthermore, in... Figure 24 In addition to the above, other texts are also included. Figure 22 as well as Figure 23 It is displayed in white with a black background.
[0159] With this configuration, the numerical control device 1 can prompt the user with the decision result before executing the program, making it easy for the user to edit the program. Additionally, the relative attitude control output unit 14 can also... Figure 24 In the example shown, if the activation / deactivation of relative attitude control changes during the execution of the block, the text of the block is displayed in a different color (e.g., yellow).
[0160] Next, we will illustrate with an example of a single fixed loop, which has the ability to instruct multiple actions with a single instruction. Figure 25 This is a diagram illustrating an example of a single-type fixed-cycle machining procedure. Figure 26 This diagram is used to illustrate a single-type fixed cycle (linear cutting cycle). Figure 27 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a single-type fixed-cycle machining program.
[0161] like Figure 25 As shown, as an example of a single-type fixed-cycle machining program, the machining program is represented as (G90 X4.0Z10.0 F1000;). The single-type fixed-cycle machining program can execute actions (1)-(4) through the above instruction. Here, actions (1) and (4) are positioning feeds, and actions (2) and (3) are cutting feeds.
[0162] (X4.0 Z10.0) Specification Figure 25 Point A shown (refer to) Figure 27 The coordinates of (X, Z) mean that the coordinates (X, Z) = (4.0, 10.0). (F1000) is the feed rate during the cutting action in action (2) and action (3), meaning that the feed rate = 1000 mm / min. In addition, in Figure 26 In the diagram, 1 (R) corresponds to action (1), 2 (F) corresponds to action (2), 3 (F) corresponds to action (3), and 4 (R) corresponds to action (4).
[0163] exist Figure 27 In the example shown, for action (4), tool 22 returns to its position at the beginning of the cycle by positioning action. In addition, in action (4), the relative attitude control of tool 22 is not performed, and tool 22 moves relative to the X-axis, Z-axis and B-axis by positioning action to the position at the beginning of the cycle and the tool attitude.
[0164] Figures 27-29 This is a diagram illustrating an example where the corresponding information corresponds to the types of positioning feed actions and cutting feed actions contained in a single loop instruction issued by the program, along with the activation or deactivation of relative attitude control. Figure 28 It is used for performing Figure 27 The diagram illustrates the machining program instructions for relative attitude control.
[0165] like Figure 28 As shown, the machining program instructions for a single-type fixed cycle include positioning actions (actions (1) and (4)) and cutting feed actions (actions (2) and (3)). The correspondence storage unit 15 stores the positioning actions (actions (1) and (4)) as correspondence information corresponding to the invalidation of relative attitude control, and stores the cutting feed actions (actions (2) and (3)) as correspondences corresponding to the validation of relative attitude control.
[0166] Therefore, in actions (1) and (4), the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information. Similarly, in actions (2) and (3), the relative attitude control decision unit 11 determines the activation of relative attitude control based on the corresponding information.
[0167] Figure 29 It indicates a decision Figure 27 as well as Figure 28 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0168] In step S61, the relative attitude control determination unit 11 reads in the machining program for turning.
[0169] In step S62, the relative attitude control determination unit 11 determines whether an action type is specified in an instruction of the read machining program. If an action type is specified (yes), the process proceeds to step S63. On the other hand, if no action type is specified (no), the process proceeds to step S64.
[0170] In step S63, the relative attitude control determination unit 11 confirms the pre-specified type of action, and then the process proceeds to step S65.
[0171] In step S64, the relative attitude control determination unit 11 confirms the type of action based on the modal information, and then the process proceeds to step S65.
[0172] In step S65, the relative attitude control determination unit 11 determines whether the action is a positioning feed action. If the action is a positioning feed action (yes), the process proceeds to step S66. On the other hand, if the action is not a positioning feed action (no), the process proceeds to step S67.
[0173] In step S66, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process ends.
[0174] In step S67, the relative attitude control determination unit 11 determines whether the action is a cutting feed action. If the action is a cutting feed action (yes), the process proceeds to step S69. On the other hand, if the action is not a cutting feed action (no), the process proceeds to step S68.
[0175] In step S68, the relative attitude control determination unit 11 confirms that the action is an action other than the positioning feed action and the cutting feed action, and proceeds to step S69.
[0176] In step S69, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process ends.
[0177] Figure 30-32 This is a diagram illustrating an example where the corresponding information corresponds to the activation or deactivation of relative position and relative attitude control contained in a loop instruction issued by the program.
[0178] Figure 30 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 31 It is used for performing Figure 30 The diagram illustrates the action of a loop command for relative attitude control.
[0179] In this example, such as Figure 30 and Figure 31 As shown, turning is performed from action (1) to action (4). Furthermore, as... Figure 30 As shown, a specified range T11 is defined by parameters. For example, regarding the specified range T11, -7.5≤X≤7.5 is specified for the X-axis, and Z≤0.5 is specified for the Z-axis. Furthermore, if both the start and end points of the action are outside the specified range T11, the relative attitude control determination unit 11 determines to disable relative attitude control.
[0180] Specifically, such as Figure 31 As shown, for action (1), the correspondence storage unit 15 stores the case where the start and end points of the action are outside the specified range T11 as correspondence information and associates them with the invalidation of relative attitude control. Therefore, the relative attitude control determination unit 11 determines the invalidation of relative attitude control based on the correspondence information. Similarly, for action (4), the relative attitude control determination unit 11 determines the invalidation of relative attitude control based on the correspondence information.
[0181] For action (2), the correspondence storage unit 15 stores the case where the end point of the action is within the specified range T11 as correspondence information and associates it with the activation of relative attitude control. Furthermore, for action (3), the correspondence storage unit 15 stores the case where the start point of the action is within the specified range T11 as correspondence information and associates it with the activation of relative attitude control. Therefore, for actions (2) and (3), the relative attitude control determination unit 11 determines the activation of relative attitude control based on the correspondence information.
[0182] Figure 32 It indicates a decision Figure 30 as well as Figure 31 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0183] In step S71, the relative attitude control determination unit 11 reads the machining program for performing turning.
[0184] In step S72, the relative attitude control determination unit 11 reads parameters for determining the range from the read machining program.
[0185] In step S73, the relative attitude control determination unit 11 determines whether the starting point of the action is outside the specified range T11. If the starting point is outside the specified range T11 (yes), the process proceeds to step S74. On the other hand, if the starting point is not outside the specified range T11 (no), the process proceeds to step S76.
[0186] In step S74, the relative attitude control determination unit 11 determines whether the endpoint of the action is outside the specified range T11. If the endpoint is outside the specified range T11 (yes), the process proceeds to step S75. On the other hand, if the endpoint is not outside the specified range T11 (no), the process proceeds to step S76.
[0187] In step S75, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process ends.
[0188] In step S76, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process ends.
[0189] Figure 33-36 This diagram illustrates an example of a machining process with a single fixed cycle where the corresponding information is the information that corresponds to the signal input to the numerical control device 1 and the activation or deactivation of relative attitude control. Figure 33 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 34 This is a diagram showing an example of a ladder diagram circuit. Figure 35 It is used for performing Figure 33 The diagram illustrates the action of a loop command for relative attitude control.
[0190] In this example, such as Figure 33 and Figure 35 As shown, turning is performed from action (1) to action (4). Within the specified travel range of each axis (X-axis, Z-axis), the attitude control determination unit 11 controls the signal input to the numerical control device 1 to turn on or off. Additionally, as... Figure 34 As shown, in the middle of actions (2) and (3) Figure 33 The boundary R1), changes the effectiveness and ineffectiveness of relative attitude control.
[0191] Here, the signals of each axis are controlled using the following conditions.
[0192] -7.5≤X≤7.5→Rnnnn.n=1
[0193] Z≤0.5→Rmmmm.m=1
[0194] And, as Figure 34 As shown, the relative attitude control decision unit 11 performs a ladder diagram bitwise AND operation and inputs it to Gxxxx.x. Furthermore, the relative attitude control decision unit 11 determines whether to enable or disable relative attitude control based on the value of the signal Gxxxx.x.
[0195] Specifically, such as Figure 35 As shown, the correspondence storage unit 15 stores the correspondence information by matching Gxxxx.x = 0 with the invalidation of relative attitude control, and stores the correspondence information by matching Gxxxx.x = 1 with the validation of relative attitude control.
[0196] In actions (1) and (4), the calculation results of the above ladder diagram are all Gxxxx.x=0. Therefore, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information.
[0197] For action (2), at the beginning of action (2), the relative attitude control decision unit 11 determines the invalidation of relative attitude control during the period when Gxxxx.x = 0, and determines the activation of relative attitude control during the period when Gxxxx.x = 1 from the middle.
[0198] For action (3), at the beginning of action (3), the relative attitude control decision unit 11 determines the activation of relative attitude control during the period when Gxxxx.x = 1, and determines the deactivation of relative attitude control during the period when Gxxxx.x = 0 from the middle.
[0199] Figure 36 It indicates a decision Figures 33 to 35 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0200] In step S81, the relative attitude control determination unit 11 determines whether it is a communication cycle with the ladder diagram. If it is a communication cycle with the ladder diagram (yes), the process proceeds to step S82. On the other hand, if it is not a communication cycle with the ladder diagram (no), the process ends.
[0201] In step S82, the relative attitude control decision unit 11 performs the ladder diagram operation described above and reads in the signal Gxxxx.x.
[0202] In step S83, it is determined whether the signal Gxxxx.x is 1 or 0. If the signal Gxxxx.x is 1, the process proceeds to step S84. On the other hand, if the signal Gxxxx.x is 0, the process proceeds to step S85.
[0203] In step S84, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and then the process returns to step S81.
[0204] In step S85, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and then the process returns to step S81.
[0205] Figures 37-39 This example illustrates a machining program with a single fixed cycle where the corresponding information corresponds to the feedback information from the servo motor that rotates the axis of machine tool 2, and the activation or deactivation of relative attitude control.
[0206] Figure 37 This is a diagram illustrating examples of activation and deactivation commands for relative attitude control in a machining process. Figure 38 It is used for performing Figure 37 The diagram illustrates the machining program instructions for relative attitude control.
[0207] In this example, such as Figure 37 and Figure 38 As shown, turning is performed from action (1) to action (4). During cutting, the tool 22 contacts the workpiece, generating a cutting load, thus increasing the positional deviation of the motor. Therefore, relative to each axis (X-axis, Z-axis), when the (positional deviation / feed rate) is above the cutting determination threshold, the relative attitude control determination unit 11 activates relative attitude control. Conversely, relative to each axis (X-axis, Z-axis), when the (positional deviation / feed rate) is below the cutting determination threshold, the relative attitude control determination unit 11 deactivates relative attitude control.
[0208] Specifically, such as Figure 38 As shown, the correspondence storage unit 15 stores correspondence information by associating the situation where (X-axis and Z-axis position deviation / feed rate) is outside the cutting determination range (i.e., less than the cutting determination threshold) with the invalidation of relative attitude control. Furthermore, the correspondence storage unit 15 stores correspondence information by associating the situation where (X-axis and Z-axis position deviation / feed rate) is within the cutting determination range with the effectiveization of relative attitude control.
[0209] Therefore, for actions (1) and (4), (position deviation / feed speed of X-axis and Z-axis) are outside the cutting determination range, so the relative attitude control determination unit 11 determines the invalidation of relative attitude control.
[0210] In addition, at the beginning of action (2), the relative attitude control determination unit 11 determines the invalidation of relative attitude control during the period when (X-axis and Z-axis position deviation / feed speed) is outside the cutting determination range, and determines the activation of relative attitude control during the period when (X-axis and Z-axis position deviation / feed speed) is within the cutting determination range from the middle of action (2).
[0211] In addition, at the beginning of action (3), the relative attitude control determination unit 11 determines the activation of relative attitude control while the (position deviation / feed speed of X-axis and Z-axis) is within the cutting determination range, and determines the deactivation of relative attitude control while the (position deviation / feed speed of X-axis and Z-axis) is outside the cutting determination range from the middle of action (2).
[0212] Figure 39 It indicates a decision Figure 37 as well as Figure 38 The flowchart shown illustrates the process of activating or deactivating relative attitude control.
[0213] In step S91, the relative attitude control determination unit 11 determines whether it is a communication cycle with the motor. If it is a communication cycle with the motor (yes), the process proceeds to step S92. On the other hand, if it is not a communication cycle with the motor (no), the process ends.
[0214] In step S92, the relative attitude control determination unit 11 reads the cutting determination threshold H1x of the X-axis from the storage device of the machine tool 2.
[0215] In step S93, the relative attitude control determination unit 11 reads the position deviation P1x of the X-axis motor of the machine tool 2.
[0216] In step S94, the relative attitude control determination unit 11 determines whether the (X-axis position deviation P1x / feed speed F1x) is greater than or equal to the cutting determination threshold H1x. If (P1x / F1x) ≥ H1x (yes), the process proceeds to step S95. On the other hand, if (P1x / F1x) < H1x (no), the process proceeds to step S96.
[0217] In step S95, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and the process proceeds to step S96.
[0218] In step S96, the relative attitude control determination unit 11 reads the cutting determination threshold H1z of the Z-axis from the storage device of the machine tool 2.
[0219] In step S97, the relative attitude control determination unit 11 reads the position deviation P1z of the motor of the Z-axis of the machine tool 2.
[0220] In step S98, the relative attitude control determination unit 11 determines whether the (Z-axis position deviation P1z / feed speed F1z) is greater than or equal to the cutting determination threshold H1z. If (P1z / F1z) ≥ H1z (yes), the process proceeds to step S99. On the other hand, if (P1z / F1z) < H1z (no), the process proceeds to step S100.
[0221] In step S99, the relative attitude control decision unit 11 determines the effectiveness of relative attitude control based on the corresponding information, and the process proceeds to step S100.
[0222] In step S100, the relative attitude control decision unit 11 determines the invalidation of relative attitude control based on the corresponding information, and the process returns to step S91.
[0223] In this way, even if the numerical control device 1 is a single-type fixed cycle with the function of instructing multiple actions through a single command, it can automatically determine the activation and deactivation of relative attitude control.
[0224] As explained above, according to this embodiment, the numerical control device 1 includes: a relative attitude control unit 12, which performs relative attitude control according to a program, wherein the program is used to change the relative position and relative attitude of the tool and the workpiece of the machine tool 2 to perform turning machining, and the relative attitude control includes automatically determining the direction of change of relative position and relative attitude; a relative attitude control determination unit 11, which determines the validity or invalidation of relative attitude control based on corresponding information for determining the validity or invalidation of relative attitude control, and the relative attitude control unit 12 performs relative attitude control according to the validity or invalidation of relative attitude control determined by the relative attitude control determination unit 11.
[0225] With such a structure, the numerical control device 1 of this embodiment does not require explicit instructions in the program to enable or disable relative attitude control. Therefore, the numerical control device 1 achieves, for example, the effects described in (1)-(4).
[0226] (1) Editing the processing program can reduce the burden on the operator.
[0227] Programming errors are easily generated during the editing of the machining program.
[0228] (2) It can prevent programming errors when editing the machining program (forgetting to write instructions for relative attitude control to be effective / ineffective, etc.).
[0229] The processing procedures become cumbersome, leading to reduced readability.
[0230] (3) It can write machining programs concisely and improve the readability of machining programs.
[0231] (4) The number of program blocks in the machining program is reduced, which can shorten the machining cycle time.
[0232] In addition, the corresponding information includes at least one of the following: information that corresponds the types of positioning and cutting commands instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the types of positioning feed and cutting feed actions contained in a command instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the relative position instructed by the program with the activation or deactivation of relative attitude control; information that corresponds the signals input to the numerical control device 1 with the activation or deactivation of relative attitude control; and information that corresponds the feedback information from the axes of the machine tool 2 with the activation or deactivation of relative attitude control.
[0233] With such a structure, the numerical control device 1 can automatically determine whether to enable or disable relative attitude control and execute relative attitude control without writing explicit instructions in the program to enable or disable relative attitude control.
[0234] In addition, the numerical control device 1 also includes a relative attitude control output unit 14, which outputs the decision result made by the relative attitude control decision unit 11. With such a structure, the numerical control device 1 can prompt the operator (user) with the decision result, making it easy for the operator to edit the program.
[0235] In addition, the relative attitude control output unit 14 outputs at least one of the following: a log of the decision result, and data that maps program blocks to the decision results. With this structure, the numerical control device 1 can prompt the user on how to perform relative attitude control in each program block. Furthermore, the numerical control device 1 can prompt the user on the decision results before executing the program, making it easier for the user to edit the program.
[0236] Furthermore, the relative attitude control output unit 14 highlights the decision results in different ways: program blocks that disable relative attitude control and program blocks that enable relative attitude control. The numerical control device 1 improves user visibility and makes program editing easier.
[0237] The embodiments of the present invention have been described above. The numerical control device 1 described above can be implemented by hardware, software, or a combination thereof. Furthermore, the control method performed by the numerical control device 1 can also be implemented by hardware, software, or a combination thereof. Here, implementation by software means implementation by reading and executing a program using a computer.
[0238] Programs can be stored and provided to a computer using various types of non-transitory computer-readable media. Non-transitory computer-readable media include various types of tangible storage media. Examples of non-transitory computer-readable media include magnetic storage media (e.g., hard disk drives), optical-magnetic storage media (e.g., optical discs), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs (random access memory)).
[0239] This disclosure has been described in detail, but it is not limited to the embodiments described above. Various additions, substitutions, modifications, and partial deletions can be made to these embodiments without departing from the core essence of this disclosure, or without departing from the core essence of this disclosure derived from the claims and their equivalents. Furthermore, these embodiments can also be implemented in combination. For example, in the above embodiments, the order of each action and the order of each process have been shown as an example, but this is not a limitation. Similarly, the use of numerical values or mathematical formulas in the description of the above embodiments is also relevant.
[0240] The following notes further disclose the above-described embodiments and variations.
[0241] (Note 1)
[0242] A numerical control device (1) has:
[0243] A relative attitude control unit (12) performs relative attitude control according to a program, wherein the program is used to change the relative position and relative attitude of the tool (22) and the workpiece (23) of the machine tool (2) for turning operations, and the relative attitude control includes automatically determining the relative position and the direction of change of the relative attitude; and
[0244] The relative attitude control decision unit (11) determines whether the relative attitude control is enabled or disabled based on corresponding information used to determine whether the relative attitude control is enabled or disabled.
[0245] The relative attitude control unit executes the relative attitude control according to whether the relative attitude control is enabled or disabled as determined by the relative attitude control decision unit.
[0246] (Note 2)
[0247] According to the numerical control device (1) described in Appendix 1, wherein,
[0248] The corresponding information includes at least one of the following:
[0249] Information that maps the types of positioning and cutting commands instructed by the program to the activation or deactivation of the relative attitude control;
[0250] Information that maps the types of positioning feed actions and cutting feed actions contained in a loop instruction given by the program to the activation or deactivation of the relative attitude control.
[0251] Information that maps the relative position instructed by the program to the activation or deactivation of the relative attitude control;
[0252] Information that maps the signals input to the numerical control device to the activation or deactivation of the relative attitude control; and
[0253] Information that correlates feedback information from the machine tool's axes with the activation or deactivation of the relative attitude control.
[0254] (Note 3)
[0255] According to the numerical control device (1) described in Appendix 1 or 2, wherein,
[0256] The numerical control device (1) further includes a relative attitude control output unit (14), which outputs the decision result made by the relative attitude control decision unit.
[0257] (Note 4)
[0258] According to the numerical control device (1) described in Appendix 3, wherein,
[0259] The relative attitude control output unit outputs at least one of the following: a log of the decision result, and data that maps the program block of the program to the decision result.
[0260] (Note 5)
[0261] According to the numerical control device (1) described in Appendix 4, wherein,
[0262] The relative attitude control output unit highlights the decision result in different ways: the program block that invalidates the relative attitude control and the program block that enables the relative attitude control.
[0263] Symbol Explanation
[0264] 1. Numerical control device
[0265] 2 Machine tools
[0266] 11 Relative Attitude Control Decision Unit
[0267] 12 Relative Attitude Control Unit
[0268] 13-axis control unit
[0269] 14 Relative Attitude Control Output Unit
[0270] 15. Correspondence storage department
[0271] 21 control axes
[0272] 22. Turning tools.
Claims
1. A numerical control device, characterized in that, have: A relative attitude control unit executes relative attitude control according to a program, wherein the program is used to change the relative position and relative attitude of the machine tool and the workpiece for turning operations, and the relative attitude control includes automatically determining the direction of change of the relative position and the relative attitude; and The relative attitude control decision unit determines whether the relative attitude control is enabled or disabled based on corresponding information used to determine whether the relative attitude control is enabled or disabled. The relative attitude control unit executes the relative attitude control according to whether the relative attitude control is enabled or disabled as determined by the relative attitude control decision unit.
2. The numerical control device according to claim 1, characterized in that, The corresponding information includes at least one of the following: Information that maps the types of positioning and cutting commands instructed by the program to the activation or deactivation of the relative attitude control; Information that maps the types of positioning feed actions and cutting feed actions contained in a loop instruction given by the program to the activation or deactivation of the relative attitude control. Information that maps the relative position instructed by the program to the activation or deactivation of the relative attitude control; Information that corresponds the signals input to the numerical control device with the activation or deactivation of the relative attitude control; as well as Information that correlates feedback information from the machine tool's axes with the activation or deactivation of the relative attitude control.
3. The numerical control device according to claim 1 or 2, characterized in that, The numerical control device further includes a relative attitude control output unit, which outputs the decision result made by the relative attitude control decision unit.
4. The numerical control device according to claim 3, characterized in that, The relative attitude control output unit outputs at least one of the following: a log of the decision result, and data that maps the program block of the program to the decision result.
5. The numerical control device according to claim 4, characterized in that, The relative attitude control output unit highlights the decision result in different ways: the program block that invalidates the relative attitude control and the program block that enables the relative attitude control.
Citation Information
Patent Citations
Tool length correcting system for machine tool
JP1993100723A