Numerical control device
The numerical control device efficiently avoids tool and multiple axes interference by dynamically generating movement commands based on object shapes and positions, using graph-based interference avoidance and inverse kinematics, thus improving operational efficiency and reducing cycle time.
Patent Information
- Application Number
- PCT/JP2023/009072
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-12
AI Technical Summary
Existing numerical control devices face inefficiencies in generating avoidance movements to prevent tool and multiple axes interference, requiring pre-planned avoidance operations for all possible interference scenarios.
A numerical control device with a graph generation unit, control point coordinate system insertion, inter-element condition setting, and inter-element relationship output units that dynamically generate and control movement commands to avoid interference based on the shape and position of interfering objects, using inverse kinematics transformations and Lagrange's undetermined multiplier method to calculate optimal axis movement destinations.
Enables efficient and adaptive interference avoidance in real-time, reducing unnecessary movements and extending cycle time, even with complex-shaped interfering objects, by generating optimal movement paths without pre-planned commands.
Smart Images

Figure JP2023009072_12092024_PF_FP_ABST
Abstract
Description
Numerical Control Device
[0001] The present disclosure relates to a numerical control device.
[0002] A technique has been known in the past in which a machine configuration is stored in the form of a graph and the coordinate values of any node as viewed from the coordinate system of any node are specified. This type of technique is described, for example, in Japanese Patent Application Laid-Open No. 2003-222291.
[0003] Patent No. 6538761
[0004] When avoiding interference between tools, multiple axes, etc., any action that has not been prepared in advance cannot be executed. However, to generate an avoidance command that performs efficient movement, it is necessary to prepare avoidance actions in advance, taking into account all possible interference patterns. Conventional technology has room for improvement in terms of efficiently generating avoidance actions.
[0005] The present disclosure has been made in view of the above-mentioned problems, and aims to provide a technology that can efficiently avoid interference with interfering objects in a numerical control device that controls a machine.
[0006] The present disclosure provides a numerical control device that includes a graph generation unit that generates a mechanical configuration of a control object in graph form, a control point coordinate system insertion unit that inserts control points and a coordinate system into the mechanical configuration in graph form, an inter-element condition setting unit that sets the shape of an interfering object in an inter-element relationship as an inter-element condition that must be satisfied by the relationship between a first element that is a first control point and a second element that is a second control point, an inter-element relationship output unit that outputs an interference condition equation for preventing interference by the interfering object based on the inter-element condition set in the inter-element relationship, and an inter-element relationship control unit that controls the inter-element relationship based on the inter-element relationship and the interference condition equation.
[0007] According to the present disclosure, it is possible to provide a technology that can efficiently avoid interference with interfering objects in a numerical control device that controls a machine.
[0008] FIG. 1 is a diagram illustrating an example of the configuration of a numerical control device according to an embodiment of the present invention. It is a functional block diagram of a CPU (control unit) provided in the numerical control device according to the embodiment of the present invention. It is a schematic diagram illustrating an example of the relationship between a tool and a workpiece according to an embodiment of the present invention. It is a schematic diagram illustrating an example of interference by an interfering object according to an embodiment of the present invention. It is a flowchart showing interference avoidance control according to an embodiment of the present invention. It is a schematic diagram illustrating an example of the positional relationship of an interfering object based on a movement command. It is a schematic diagram illustrating the movement destination of each axis when interference is avoided in interpolation units. It is a schematic diagram illustrating an example of the positional relationship of an interfering object based on a movement command. It is a schematic diagram illustrating the movement destination of each axis when interference is avoided in block units. It is a schematic diagram illustrating an example of the relationship between a tool and a workpiece according to an embodiment of the present invention. It is a schematic diagram illustrating an example of interference by an interfering object according to an embodiment of the present invention. It is a schematic diagram illustrating a state in which interference is detected. It is a schematic diagram illustrating an operation to avoid interference. It is a schematic diagram illustrating a state in which interference is avoided. It is a schematic diagram illustrating a normal operation after interference is avoided. It is a schematic diagram illustrating an example of the relationship between a tool and a workpiece according to an embodiment of the present invention. It is a schematic diagram illustrating an example of interference between a tool and a workpiece. It is a schematic diagram illustrating the relationship between an interfering object avoidance movement and a mathematical expression. It is a schematic diagram illustrating an example of the relationship between a tool and a workpiece according to an embodiment of the present invention. It is a schematic diagram illustrating an example of interference by an interfering object according to an embodiment of the present invention. 1 is a schematic diagram showing the separation axis direction of an interfering object. FIG. 1 is a schematic diagram showing the positional relationship of an interfering object in the coordinate system of the root node. FIG. 1 is a schematic diagram showing the positional relationship of an interfering object in the motor coordinate system. FIG. 2 is a schematic diagram showing how interference is detected in an operation based on a command position. FIG. 3 is a schematic diagram showing how an avoidance movement is started. FIG. 4 is a schematic diagram showing the movement destination of each axis when interference is avoided. FIG. 5 is a schematic diagram showing the relationship between a command and an interfering object before interference avoidance by a separated axis. FIG. 6 is a schematic diagram showing interference avoidance by a separated axis 1. FIG. 7 is a schematic diagram showing interference avoidance by a separated axis 2. FIG. 8 is a schematic diagram showing interference avoidance by a separated axis 3. FIG. 9 is a schematic diagram showing a return to a command position. FIG. 10 is a schematic diagram showing the relationship between each axis and a movable range. FIG. 11 is a schematic diagram showing the relationship between a motor coordinate value and a movable range. FIG. 12 is a schematic diagram showing unnecessary movement that occurs in the relationship between a motor coordinate value and a movable range. FIG. 13 is a schematic diagram showing avoidance of unnecessary movement in the relationship between a motor coordinate value and a movable range.FIG. 1 is a schematic diagram showing an example of a relationship between a tool and a workpiece in an embodiment of the present invention. FIG. 2 is a schematic diagram showing an example of interference by an interfering object in an embodiment of the present invention. FIG. 3 is a schematic diagram showing a state in which interference between interfering object A and interfering object B1 is detected. FIG. 4 is a schematic diagram showing a state in which interference between interfering object A and interfering object B2 is detected. FIG. 5 is a schematic diagram showing the positional relationship of interfering objects in the coordinate system of the root node. FIG. 6 is a schematic diagram showing the positional relationship of interfering objects in the motor coordinate system. FIG. 7 is a schematic diagram showing a state in which interference of separation shaft 1 is detected. FIG. 8 is a schematic diagram showing a state in which interference of separation shaft 2 is detected during interference avoidance of separation shaft 1. FIG. 9 is a schematic diagram showing a state in which interference of separation shaft 1 is detected after interference detection of separation shaft 2 is no longer detected. FIG. 10 is a schematic diagram showing a state in which interference detection of separation shaft 3 is no longer detected after interference detection of separation shaft 1 is no longer detected. FIG. 11 is a schematic diagram showing a state in which actual movement matches a movement command. FIG. 12 is a functional block diagram of a CPU (control unit) provided in a numerical control device according to an embodiment of the present invention. FIG. 13 is a flowchart showing interference avoidance control in an embodiment of the present invention. FIG. 14 is a diagram showing examples of coordinates of movement destinations of each axis before and after correction. FIG. 1 is a schematic diagram showing the destinations of each axis before and after correction and the positional relationship between the tool and the workpiece. FIG. 2 is a functional block diagram of a CPU (control unit) provided in a numerical control device according to an embodiment of the present invention. FIG. 3 is a schematic diagram explaining a separation axis method for a polyhedron having a plurality of convex shapes. FIG. 4 is a schematic diagram showing an example of calculation of a separation axis based on the cross product of each side of convex polyhedron A and each side of convex polyhedron B. FIG. 5 is a schematic diagram showing an example of calculation of a separation axis based on the normal direction of each face. FIG. 6 is a schematic diagram showing an example of avoidance operation that differs depending on the shape of an interfering object. FIG. 7 is a schematic diagram showing an example of avoidance operation in a numerical control device of the prior art. FIG. 8 is a schematic diagram showing an example of avoidance operation in the numerical control device of the present embodiment.
[0009] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. In each embodiment and modified example, common components are denoted by the same reference numerals, and descriptions thereof will be omitted as appropriate.
[0010] 1 shows an example of the configuration of a numerical control device 100 according to an embodiment of the present invention. The numerical control device 100 mainly comprises a CPU 11, a ROM 12, a RAM 13, a CMOS memory 14, interfaces 15, 18, and 19, a PMC (programmable machine controller) 16, an I / O unit 17, axis control circuits 30 to 34, servo amplifiers 40 to 44, a spindle control circuit 60, and a spindle amplifier 61.
[0011] The CPU 11 is a processor that performs overall control of the numerical control device 100. The CPU 11 reads a system program stored in the ROM 12 via the bus 20, and controls the entire numerical control device 100 in accordance with the system program.
[0012] The RAM 13 stores temporary calculation data, display data, and various data input by the operator via the display / MDI unit 70 .
[0013] The CMOS memory 14 is backed up by a battery (not shown) and is configured as a non-volatile memory that retains its stored state even when the power supply to the numerical control device 100 is turned off. The CMOS memory 14 stores machining programs read via the interface 15, machining programs input via the display / MDI unit 70, etc.
[0014] The ROM 12 is pre-written with various system programs for executing edit mode processing required for creating and editing machining programs and processing for automatic operation.
[0015] Various machining programs, such as a machining program for implementing the present invention, can be input via the interface 15 or the display / MDI unit 70 and stored in the CMOS memory 14 .
[0016] The interface 15 enables connection between the numerical control device 100 and an external device 72 such as an adapter. Machining programs, various parameters, etc. are read from the external device 72. In addition, machining programs edited within the numerical control device 100 can be stored in external storage means via the external device 72.
[0017] A PMC (Programmable Machine Controller) 16 outputs signals to auxiliary devices of the machine tool (for example, actuators such as a robot hand for tool replacement) via an I / O unit 17 to control them using a sequence program stored in the numerical control device 100. The PMC also receives signals from various switches on an operation panel provided on the machine tool body, performs the necessary signal processing, and then passes the signals to the CPU 11.
[0018] The display / MDI unit 70 is a manual data input device equipped with a display, keyboard, etc. The interface 18 receives commands and data from the keyboard of the display / MDI unit 70 and passes them to the CPU 11. The interface 19 is connected to an operation panel 71 equipped with a manual pulse generator, etc.
[0019] The axis control circuits 30 to 34 of the respective axes receive the movement command amount for each axis from the CPU 11 and output the command for each axis to the servo amplifiers 40 to 44 .
[0020] The servo amplifiers 40 to 44 receive these commands and drive the servo motors 50 to 54 for each axis. The servo motors 50 to 54 for each axis have built-in position and speed detectors, and position and speed feedback signals from these position and speed detectors are fed back to the axis control circuits 30 to 34 to perform position and speed feedback control. Note that the position and speed feedback is omitted from the block diagram.
[0021] A spindle control circuit 60 receives a spindle rotation command for the machine tool and outputs a spindle speed signal to a spindle amplifier 61. Upon receiving this spindle speed signal, the spindle amplifier 61 rotates a spindle motor 62 of the machine tool at the commanded rotation speed to drive the tool.
[0022] A pulse encoder 63 is connected to the spindle motor 62 by a gear or a belt. The pulse encoder 63 outputs a feedback pulse in synchronization with the rotation of the spindle. The feedback pulse is read by the CPU 11 via the bus 20.
[0023] 1 shows five axis control circuits, ie, axis control circuits 30 to 34, and five command servo motors, ie, servo motors 50 to 54. However, the present invention is not limited to this, and any number of axis control circuits and servo motors can be provided.
[0024] FIG. 2 is a functional block diagram showing the functions that the CPU 11 (hereinafter also referred to as the "control unit 11") performs by reading the system program and application program stored in the ROM 12 via the bus 20 and implementing them in accordance with the system program and application program.
[0025] As shown in FIG. 2, the CPU 11 includes a graph generation unit 101, a control point coordinate system insertion unit 102, a command analysis unit 111, an inter-element condition setting unit 112, an inter-element relationship output unit 114, an inter-element relationship control unit 115, a movement execution unit 140, and an interference check unit 150.
[0026] The graph generation unit 101 generates the machine configuration of the controlled object in graph form. An example of machine configuration tree generation by the graph generation unit 101 will be described. The graph generation unit 101 first places an origin and multiple nodes. At this stage, there is no connection between the origin and multiple nodes, and names of the origin and nodes have not been set. Next, the graph generation unit 101 sets the axis name (axis type) of each axis of the machine configuration, the name of each tool, the name of each workpiece, the name of each origin, and the physical axis number (axis type) of each axis. Next, the graph generation unit 101 sets the parent node (axis type) of each axis, the parent node of each tool, and the parent node of each workpiece. Finally, the graph generation unit 101 sets the cross offset (axis type) of each axis, the cross offset of each tool, and the cross offset of each workpiece. Through this series of processes, a machine configuration tree such as the one shown in FIG. 3 is generated.
[0027] The control point coordinate system insertion unit 102 inserts control points and a coordinate system into the machine configuration graph. An example of control point insertion by the control point coordinate system insertion unit 102 will be described. The control point coordinate system insertion unit 102 specifies various positions on the machine configuration as control points and sets coordinate systems for various locations on the machine configuration. For example, it automatically inserts coordinate systems and control points for the machine origin, multiple axes, and workpiece. The control point coordinate system insertion unit 102 performs automatic insertion not only for the table but also for a series of nodes connecting each tool to the machine origin, i.e., for each axis and tool. As a result, corresponding control points and coordinate systems are automatically inserted for all nodes constituting the machine configuration tree. Typically, when performing machining, a coordinate system is specified for the workpiece and the tool as a control point. This makes it possible to accommodate various cases, such as specifying a control point for the workpiece to move the workpiece itself to a predetermined position, or setting a coordinate system for a tool itself to grind another tool with it.
[0028] Each control point and coordinate system may also have an offset. This allows a point away from the center of the node to be the control point or coordinate system origin. Furthermore, each control point and coordinate system has an attitude matrix. If this attitude matrix is the attitude matrix of a control point, it represents the attitude (direction, tilt) of the control point, and if it is the attitude matrix of a coordinate system, it represents the attitude of the coordinate system. The offset and attitude matrix are each expressed in a form linked to the corresponding node. Furthermore, each control point and coordinate system has information on whether or not to take into account the "movement" and "crossing offset" of nodes on the path to the root of the mechanical configuration tree, and these can be set.
[0029] The command analysis unit 111 reads out and analyzes the numerical control program stored in the CMOS memory 14 for each block, and generates movement command data that commands the movement of each control axis of the machine tool based on the analysis results. The command analysis unit 111 transmits the generated movement command data to the movement execution unit 140.
[0030] When the control point of the master is designated as a "first control point" and the control point of the slave is designated as a "second control point," the inter-element condition setting unit 112 sets the first control point as a first element and the second control point as a second element, and sets the inter-element relationship between the first element and the second element. Note that the "first element" and the "second element" are not limited to control points.
[0031] Furthermore, the inter-element condition setting unit 112 accepts the shape of the interfering object as a condition that must be satisfied by the relationship between the first element and the second element, and sets this in the inter-element relationship 113. The condition that must be satisfied by the relationship between the first element and the second element is the shape of the interfering object. Note that the interfering object is an element that constitutes a machine tool, and includes various items such as a jig, a tool holder, and a tool changer.
[0032] The inter-element relation output unit 114 calculates a relation output from the relationship between the first element and the second element. The inter-element relation output unit 114 of this embodiment includes a conditional inter-element relation output unit 121 that generates an interference condition formula for preventing interference between interfering objects based on the inter-element conditions set in the inter-element relations 113.
[0033] Based on the relation output, the inter-element relation control unit 115 outputs data for setting an interference condition equation to the movement execution unit 140. The inter-element relation control unit 115 of this embodiment includes a conditional inter-element relation control unit 131 that outputs the movement destination of each axis based on the inter-element relation 113 and a condition equation for preventing interference by an interfering object.
[0034] The movement execution unit 140 determines the movement command amount based on the analysis result and drives the servo motors 50 to 54 of each axis (X-axis servo, Y-axis servo, etc.). The movement execution unit 140 of this embodiment includes an interpolation unit 141 and a pulse generation unit 142.
[0035] The interpolation unit 141 executes an interpolation process to generate interpolated data by interpolating points on a command path at a predetermined interpolation period, based on the movement command data transmitted from the command analysis unit 111 and data setting each axis movement destination transmitted from the inter-element relation control unit 115. The interpolation unit 141 transmits the generated interpolated data to the pulse generation unit 142.
[0036] The pulse generating unit 142 generates movement commands for the machine tool, i.e., movement pulses for each of the servo motors 50 to 54 (X-axis servo, Y-axis servo, etc.) of the machine tool, for each interpolation period based on the interpolation data sent from the interpolating unit 141. The pulse generating unit 142 inputs the movement pulses generated as described above to the servo motors 50 to 54, thereby moving the multiple mechanical elements of the machine tool along the multiple control axes.
[0037] The interference check unit 150 executes a process to determine whether interference will occur between the multiple mechanical elements that make up the machine tool when movement pulses generated by the pulse generation unit 142 are continuously input to the servo motors 50-54. The interference check unit 150 determines the possibility of interference, for example, by performing an interference check calculation on multiple check target pairs. A check target pair is formed by combining two of the multiple mechanical elements that make up the machine tool. If the total number of mechanical elements that make up the machine tool is N, the total number of check target pairs is N(N-1) / 2. The interference check calculation is performed based on a known interference check algorithm (for example, a separate axis method).
[0038] [Interference Avoidance Control Example 1] An explanation will be given of interference avoidance control in the examples of Figures 3 and 4. Figure 3 is a schematic diagram showing an example of the relationship between a tool and a workpiece in an embodiment of the present invention. Figure 4 is a schematic diagram showing an example of interference by an interfering object in an embodiment of the present invention. Figures 3 and 4 show a spherical interfering object A linked to a node and a spherical interfering object B linked to a node in a machine configuration with three orthogonal axes, the X-axis, the Y-axis, and the Z-axis. In this example, interfering object A is linked to the root node, and interfering object B is linked to the Z-axis node.
[0039] 5 is a flowchart showing interference avoidance control in an embodiment of the present invention. In step S10, the inter-element condition setting unit 112 stores the shape of a sphere in the machine configuration tree of the inter-element relationships 113 along three orthogonal axes. In the examples of FIGS. 3 and 4, the inter-element condition setting unit 112 sets a spherical interfering object A with a radius Ra at the root node and a spherical interfering object B with a radius Rb at the Z node in the machine configuration tree of the inter-element relationships 113.
[0040] In step S11, the interference check unit 150 determines whether or not there is a high possibility of interference. If there is a high possibility of interference, the interference check unit 150 proceeds to step S12 (step S11; Yes). If there is a low possibility of interference, the interference check unit 150 proceeds to step S13 without going through step S12 (step S11; No).
[0041] In step S12, the conditional inter-element relation output unit 121 outputs the inter-element relation to the inter-element relation control unit 115 based on the inter-element condition set in the inter-element relation 113. In the examples of Figs. 3 and 4, the conditional inter-element relation output unit 121 outputs, for example, an equation representing an interference boundary between spheres as the inter-element relation output. The interference boundary is a condition for interfering objects to be in contact with each other, as shown in the following equation (1). r in equation 1 m indicates the motor coordinate value on the interference boundary, Ra indicates the radius of interfering object A, and Rb indicates the radius of interfering object B (see FIG. 4). In addition, the conditional inter-element relation output unit 121 assigns an interference boundary flag to the inter-element relation output, indicating that it is an interference boundary.
[0042]
[0043] In step S13, the conditional inter-element relation control unit 131 uses the inter-element relation output (interference boundary) whose interference boundary flag is ON as a constraint condition in calculating the destination of each axis. Specifically, the conditional inter-element relation control unit 131 executes inverse kinematics transformation with constraint conditions. In the inverse kinematics transformation, the destination of each axis is output based on the command coordinate value.
[0044] As an example of a method for calculating the destination of each axis with constraints based on command coordinate values, an inverse kinematic transformation with constraints applied using the Langrange's undetermined multiplier method will be described. The variables are defined as in the following equation (2). Vector r in equation 2 p is a variable indicating the command coordinate value (program coordinate system), and the vector r m is a variable indicating the destination of each axis (motor coordinate system) when avoiding the collision, and vector r mo is a variable indicating the destination of each axis (motor coordinate system) if no avoidance occurs.
[0045]
[0046] The above-mentioned constraint conditions are the inter-element relations (Equation 1) output by the conditional inter-element relation output unit 121. The value to be minimized is the square of the difference between the destination of each axis after avoidance and the destination of each axis before avoidance, and the value L to be minimized in the Lagrange multiplier method can be defined as in the following Equation (3).
[0047]
[0048] L in the Lagrange multiplier method is the usual inverse kinematic transformation K -1 Using the formula (4), the destination of each axis (motor coordinate system) when no avoidance occurs can be expressed in the following formula 4. The following formula (4) shows the normal inverse kinematics transformation process. Substituting formula (4) into formula (3) gives formula 5. Assuming a cartesian three-axis machine, formula (6) results. To find the minimum value of L in formula (6), (x m ,y m ,z m ), and λ are partially differentiated to obtain Equation (7).
[0049]
[0050]
[0051]
[0052]
[0053] Fig. 6A is a schematic diagram showing an example of the positional relationship of interfering objects based on a movement command. Fig. 6B is a schematic diagram showing the movement destination of each axis when interference is avoided in interpolation units. As shown in Fig. 6A, when a machine tool is operated based on a movement command, interference may occur. One method for avoiding this interference is to set the movement destination of each axis in interpolation units. Specifically, the movement destination of each axis is corrected in interpolation units using the following equation 8, which is obtained by solving equation 7. As shown in Fig. 6B, by correcting the movement destination of each axis in interpolation units, the movement direction changes stepwise, and interference is avoided.
[0054]
[0055] Fig. 7A is a schematic diagram showing an example of the positional relationship of interfering objects based on movement commands, and even in the example shown in Fig. 7A, interference will occur when the machine tool is operated based on the movement commands. One way to avoid this interference is to correct the destination of each axis in block units of commands from the command analysis unit 111. Specifically, the destination of each axis is corrected in block units using the following equation (9), which is obtained by solving equation 7.
[0056]
[0057] In the example of FIG. 3 , the inter-element relationship control unit 115 is configured to output information indicating the destination of each axis to the interpolation unit 141, but this configuration is not limited to this. For example, the inter-element relationship control unit 115 may output information indicating the destination of each axis to the command analysis unit 111, and a command to avoid interference may be generated in command block units. FIG. 7B is a schematic diagram showing the destination of each axis when interference is avoided in block units. As shown in FIG. 7B , by correcting the destination of each axis in block units, the movement direction is set to a direction in which interference will not occur at the start of movement, thereby avoiding interference.
[0058] In step S13, as described above, if the calculation of the destination of each axis is successful, the process proceeds to step S14 (step S13; Yes). In step S14, the servo motors 50 to 54 are driven based on the calculated destination of each axis. If the calculation of the destination of each axis is not successful, the conditional inter-element relation control unit 131 proceeds to step S15 for generating an interference detection alarm (step S13; No). In step S15, a process is executed to generate an interference detection alarm for reporting interference by the display / MDI unit 70, an external computer (not shown), a sound device, etc.
[0059] [Interference Avoidance Control Example 2] Next, an example of control for avoiding interference in another case will be described. Fig. 8 is a schematic diagram showing an example of the relationship between a tool and a workpiece in an embodiment of the present invention. Fig. 9 is a schematic diagram showing an example of interference by an interfering object in an embodiment of the present invention. Figs. 8 and 9 show a rectangular parallelepiped interfering object A that is linked to a node and a rectangular parallelepiped interfering object B that is linked to a node in a machine configuration with three orthogonal axes, the X-axis, the Y-axis, and the Z-axis. In this example, interfering object A is linked to the Y-axis node, and interfering object B is linked to the Z-axis node.
[0060] In the examples of FIGS. 8 and 9, the processing flow is the same as that in the flowchart of FIG. 5, and only the parts that differ from the processing in FIG. 5 will be described.
[0061] The inter-element condition setting unit 112 sets the center and length and width of rectangular parallelepiped interfering object A in the Y-axis node and the center and length and width of rectangular parallelepiped interfering object B in the Z-axis node as the shapes of the interfering objects in the inter-element relationship 113. In this example, since the only movable axis between interfering objects B and A is the Z-axis, interference only occurs along the Z-axis.
[0062] When interference between rectangular parallelepipeds is detected, the conditional inter-element relation output unit 121 outputs the following mathematical expression (10) that represents the interference boundary between the rectangular parallelepipeds. As described above, the interference axis is the z axis. The z axis in mathematical expression (10) m indicates the motor coordinate value on the Z axis that is the interference boundary, la indicates the length of interfering object A in the z axis direction, and lb indicates the length of interfering object B in the z axis direction (see FIG. 9). In addition, the conditional inter-element relation output unit 121 assigns an interference boundary flag to the inter-element relation output, indicating that it is an interference boundary.
[0063]
[0064] The conditional inter-element relation control unit 131 executes inverse kinematic transformation with constraint conditions using Lagrange's undetermined multiplier method, and outputs the destination of each axis. The variables are defined as in Equation 11. In Equation (11), (1) is a variable indicating the destination of the control point (program coordinate system), and (2) is a variable indicating the destination of each axis (motor coordinate system). L in Lagrange's undetermined multiplier method is the variable indicating the destination of the normal inverse kinematic transformation K -1Using the formula (12), the destination of each axis (motor coordinate system) can be expressed as the following formula 12. Since formula (12) is based on the assumption of a cartesian three-axis machine, it becomes formula 13.
[0065]
[0066]
[0067]
[0068] To find the minimum value of L in equation (13), (x m ,y m ,z m ), and λ, respectively, we obtain equation (14). Solving equation (14) gives equation (15). As shown in equation (15), z m But (l b +l a ) / 2.
[0069]
[0070]
[0071] 10A to 10D, the flow of normal operation from interference detection will be described. FIG. 10A is a schematic diagram showing how interference is detected. In FIG. 10A, the distance z in the z-axis direction between the center of interfering object A and the center of interfering object B is p 10B is a schematic diagram showing the operation of avoiding interference. p When the interference condition is satisfied, as shown in equation (15), the distance in the z-axis direction between the center of the interfering object A and the center of the interfering object B is (l b +l a 10C shows how the avoidance action is performed so that z p 10C is a schematic diagram showing a state in which interference is avoided when the state where the interference condition is satisfied changes to a state where the interference condition is not satisfied. In FIG. 10C, the distance in the z-axis direction between the center of the interfering object A and the center of the interfering object B is (l b +l a) / 2p. Fig. 10D is a schematic diagram showing normal operation after escaping from interference. Fig. 10D shows normal operation after escaping from interference.
[0072] [Interference Avoidance Control Example 3] Next, an example of control for avoiding interference in another case will be described. FIG. 11 is a schematic diagram showing an example of the relationship between the tool and the workpiece in an embodiment of the present invention. FIG. 12 is a schematic diagram showing an example of interference between the tool and the workpiece. FIG. 11 shows an example in which the workpiece is an interfering object A and the tool is an interfering object B in a machine configuration with three orthogonal axes, the X-axis, the Y-axis, and the Z-axis. The inter-element relationships that constrain the positional relationship between the workpiece element and the tool element are also shown. In this example, interfering object A is a free-form surface workpiece linked to the work node, and interfering object B is a tool tip point linked to the tool node. FIG. 13 shows how the tool tip of the tool comes into contact with the workpiece.
[0073] 11 and 12, the processing flow is the same as that in the flowchart of FIG. 5, and only the parts that differ from the processing in FIG. 5 will be described.
[0074] The inter-element condition setting unit 112 sets a free-form surface interfering object A at the work node and a point interfering object B at the tool node. The inter-element condition setting unit 112 sets the free-form surface as a function of the following equation (16).
[0075]
[0076] When interference between the workpiece and the tool is detected, the conditional inter-element relation output unit 121 outputs the following mathematical expression 17 which represents the interference boundary between the free curved surface of the workpiece and the tool tip center point of the tool.
[0077]
[0078] The conditional inter-element relation control unit 131 executes inverse kinematic transformation with constraint conditions imposed by the Lagrange's undetermined multiplier method, and outputs the destination of each axis. The variables are the same as those in the above-mentioned formula 11. L in the Lagrange's undetermined multiplier method is the normal inverse kinematic transformation K -1Using the formula, the following formula (18) can be expressed: Formula (18) is based on the assumption that the orthogonal three-axis machine is used, and therefore formula (19) is obtained.
[0079]
[0080]
[0081] r that minimizes L in equation (19) m Find L (x m ,y m ,z m ), partial differentiation with respect to λ gives equation (20). From equation (20), λ and z m For example, numerical analysis of the formula (21) using the steepest descent method or the like is performed to find the extreme value r of L. m The extreme value r where L is the smallest m is output as the destination of each axis.
[0082]
[0083]
[0084] FIG. 13 is a schematic diagram showing the relationship between the movement to avoid an obstacle and mathematical expressions. m , y m ) and r p The closest point r m It is shown that this can be avoided.
[0085] [Interference Avoidance Control Example 4] Next, an example of control for avoiding interference in another case will be described. Fig. 14 is a schematic diagram showing an example of the relationship between a tool and a workpiece in an embodiment of the present invention. Fig. 15 is a schematic diagram showing an example of interference by an interfering object in an embodiment of the present invention. Figs. 14 and 15 show a rectangular parallelepiped interfering object A that is linked to a node and a rectangular parallelepiped interfering object B that is linked to a node in an arbitrary machine configuration. In this example, interfering object A is linked to the C-axis, and interfering object B is linked to the A-axis node.
[0086] In the examples of FIGS. 14 and 15, the processing flow is the same as that in the flowchart of FIG. 5, and only the parts that differ from the processing in FIG. 5 will be described.
[0087] The inter-element condition setting unit 112 sets, for example, the position and shape of interfering object A (rectangular parallelepiped) linked to node C and the position and shape of interfering object B (rectangular parallelepiped) linked to node A in the mechanical configuration tree of the inter-element relationship 113.
[0088] Fig. 16 is a schematic diagram showing the separation axis direction of an interfering object. Fig. 16 shows interference detection using the separation axis method. When interference between rectangular parallelepipeds is detected, the conditional inter-element relation output unit 121 outputs the following formula (22) which represents the interference boundary between the rectangular parallelepipeds. The vector r in formula (22) ab indicates the vector (in the coordinate system of the root node) from the center of interference A to the center of interference B. Vector l indicates the separation axis direction (in the coordinate system of the root node), and R a indicates the radius of the interference A in the separation axis direction, and R b indicates the radius in the separation axis direction of the interfering object B. Furthermore, the conditional inter-element relation output unit 121 assigns an interference boundary flag indicating that it is an interference boundary to the inter-element relation control unit 115.
[0089]
[0090] The conditional inter-element relation control unit 131 executes inverse kinematic transformation with constraint conditions using Lagrange's undetermined multiplier method, and outputs the destination of each axis. The variables are the same as those in the above-mentioned formula 11. L in the Lagrange's undetermined multiplier method is the normal inverse kinematic transformation K -1 Using the above, it can be expressed as the following formula (23).
[0091]
[0092] 17A is a schematic diagram showing the positional relationship of an interfering object in the coordinate system of the root node, and FIG. 17B is a schematic diagram showing the positional relationship of an interfering object in the motor coordinate system. Vector r a indicates the center position of the interfering object. Vector r ab is calculated by using a known technique for machine configuration trees, and the transformation matrix F from the motor coordinate system to the coordinate system of the root node and the vector r m can be expressed as the following equation (24) using
[0093]
[0094] The conditional inter-element relation control unit 131 calculates the vector r based on the formula (24). ab Substituting the formula (23) into the formula (23), L is (x m ,y m ,z m ), and partial differentiation with respect to λ. Here, by using the operator defined in Equation (25) and considering that Equation (26) holds, Equation (27) and Equation (28) can be obtained.
[0095]
[0096]
[0097]
[0098]
[0099] Next, the conditional inter-element relation control unit 131 obtains λ based on formula (27) and formula (28). First, formula (27) is multiplied by matrix F from the left and vector l from the right to obtain formula (29). Formula (30) is obtained based on the obtained formula (29) and formula (28).
[0100]
[0101] Here, if we define a constant k = λ / 2, it can be expressed as in the following equation (31). From this equation, the movement destination of each axis is shifted to the interference boundary in the separation axis direction. In this equation (31), K -1 indicates kinematic transformation, matrix F indicates a transformation matrix from the coordinate system of the root node to the motor coordinate system, and vector l indicates the separation axis. Since the acquisition of the separation axis itself is a well-known technique, details thereof will be omitted. According to the formula (31), the destination vector r of each axis to be avoided is obtained. m is generated.
[0102] Examples of the destinations of each axis where avoidance is performed will be described with reference to Figures 18A to 18C. Figure 18A is a schematic diagram showing how interference is detected in an operation based on a command position. Figure 18B is a schematic diagram showing how an avoidance movement is started. Figure 18C is a schematic diagram showing the destinations of each axis when interference is avoided. When interference is detected at the command position as shown in Figure 18A, an avoidance movement is started as shown in Figure 18B, and the axes are positioned at the destinations of each axis where interference has been avoided as shown in Figure 18C.
[0103] Next, the avoidance operation by the separation shafts 1 to 3 will be described with reference to Figures 19A to 19E. Figure 19A is a schematic diagram showing the relationship between the command and the interfering object before the separation shafts avoid interference. Figure 19A shows how interference occurs when moving based on the command. Figure 19B is a schematic diagram showing interference avoidance by the separation shaft 1. As shown in Figure 19B, before the interference shown in Figure 19A occurs, the direction of the separation shaft 1 is set to be parallel to the opposing surface of the interfering object A, and the interfering object B is moved.
[0104] FIG. 19C is a schematic diagram showing interference avoidance using separation shaft 2. Next, as shown in FIG. 19C, separation shaft 2 is set to a direction offset from the command direction, and interfering object A is moved. FIG. 19D is a schematic diagram showing interference avoidance using separation shaft 3. Next, separation shaft 3 is set to a direction parallel to the side surface adjacent to the opposing surface of interfering object A, and interfering object B is moved in a direction returning to the movement trajectory of the command value. FIG. 19E is a schematic diagram showing a return to the commanded position. As shown in FIG. 19E, interfering object B avoids interfering object A and returns to the same position as the commanded position, and continues operation. As described above, by this series of avoidance operations, interference between interfering objects A and B can be avoided.
[0105] [Control Example 5 for Avoiding Interference] Next, an example of control for avoiding interference in another case will be described. FIG. 20 is a schematic diagram showing the relationship between each axis and its movable range. FIG. 21 is a schematic diagram showing the relationship between motor coordinate values and their movable ranges. In FIGS. 20 and 21, a movable range A1 for the X-axis, a movable range A2 for the Y-axis, and a movable range A3 for the Z-axis are set for an arbitrary mechanical configuration. In this example, an OT (Over Travel) area intrusion avoidance function is realized, in which when a command is received that causes the motor coordinate values to deviate from movable ranges 1 to 3, the movement of each motor axis is stopped, and when the commanded motor coordinate values return to the movable range, the motor axis is moved again.
[0106] In the examples of FIGS. 20 and 21, the processing flow is the same as that in the flowchart of FIG. 5, and only the parts that differ from the processing in FIG. 5 will be described.
[0107] The inter-element condition setting unit 112 sets the movable range of the points representing the coordinate values of each motor together with an arbitrary mechanical configuration as the shape of the interfering object for the mechanical configuration tree of the inter-element relationship 113 .
[0108] When interference caused by the motor coordinate value being outside the movable range is detected, the conditional inter-element relation output unit 121 outputs the following mathematical expression (32) that represents the interference boundary. ot is x m Indicates the limit of the axis's movable range.
[0109]
[0110] The conditional element-to-element relation control unit 131 executes inverse kinematic transformation with constraint conditions using Lagrange's undetermined multiplier method, and outputs the destination of each axis. The variables are the same as those in the above-mentioned formula (11). The vector r in formula 11 that defines the variables p indicates the destination of the control point (program coordinate system), and the vector r m indicates the destination of each axis (motor coordinate system). L in Lagrange's undetermined multiplier method is the usual inverse kinematics transformation K -1 Using the above formula, it can be expressed as the following formula (33).
[0111]
[0112] The conditional inter-element relation control unit 131 determines the vector r m To obtain L, we set (x m ,y m ,z m ), λ 1 , λ 2 By partially differentiating with , we obtain Equation (34). By solving Equation (34), we obtain Equation (35). Equation (35) realizes the OT area intrusion avoidance function in any machine configuration.
[0113]
[0114]
[0115] [Example 6 of Interference Avoidance Control] Next, an example of control for avoiding unnecessary movement during interference avoidance will be described in the above-described Example 5 of Interference Avoidance Control. Note that the basic configuration is the same as in Example 5 of Interference Avoidance Control.
[0116] 22 is a schematic diagram showing unnecessary movement that occurs in the relationship between the motor coordinate value and the movable range. In FIG. 22, in the avoidance operation when the motor coordinate value is outside the movable range, x p The figure shows that unnecessary movement occurred in the direction. Since moving only the orthogonal axis can be dangerous, it is preferable to fix the coordinate values of the orthogonal axis with command values.
[0117] When interference caused by the motor coordinate value being outside the movable range is detected, the conditional inter-element relation output unit 121 outputs the following equation (32) that represents the interference boundary. As shown in the following equation (36), by the avoidance operation, x p To prevent unintended movement in the direction, the actual movement is p In equation (36), K represents the normal forward kinematics transformation process.
[0118]
[0119] The conditional element relation control unit 131 executes inverse kinematic transformation with constraint conditions using Lagrange's undetermined multiplier method, and outputs the destination of each axis. The variables are the same as those in the above-mentioned formula 11. The vector r in formula 11 that defines the variablesp indicates the destination of the control point (program coordinate system), and the vector r m indicates the destination of each axis (motor coordinate system). L in Lagrange's undetermined multiplier method is the usual inverse kinematics transformation K -1 In this example, a tilting three-axis aircraft is assumed, so K -1 can be expressed by a matrix F as in Equation (38). Substituting Equation (38) into Equation (37) gives Equation (39).
[0120]
[0121]
[0122]
[0123] The vector r that minimizes L in equation (39) m To obtain the above, each element of the matrix F is expressed as (40), and L is expressed as (x m ,y m ,z m ), λ 1 , λ 2 , and obtain the formula (41). The formula (41) is transformed into a form that can be solved by the numerical control device 100, resulting in the formula (42).
[0124]
[0125]
[0126]
[0127] Fig. 23 is a schematic diagram showing the avoidance of unnecessary movement in the relationship between motor coordinate values and the movable range. By performing an inverse kinematic change using equation (42), the movement shown in Fig. 23 is obtained. In this movement, the x coordinate in the Cartesian coordinate system p Since the coordinate values are fixed, unnecessary and dangerous movements are not made.
[0128] [Interference Avoidance Control Example 7] Next, an example of control for avoiding interference in another case will be described. Fig. 24 is a schematic diagram showing an example of the relationship between a tool and a workpiece in an embodiment of the present invention. Fig. 25 is a schematic diagram showing an example of interference by an interfering object in an embodiment of the present invention. Figs. 24 and 25 show a rectangular parallelepiped interfering object A linked to a node, and multiple rectangular parallelepiped interfering objects B1 and B2 linked to the nodes, in an arbitrary machine configuration. In this example, interfering object A is linked to the C-axis node, and interfering objects B1 and B2 are both linked to the A-axis node.
[0129] In the examples of FIGS. 24 and 25, the processing flow is the same as that in the flowchart of FIG. 5, and only the parts that differ from the processing in FIG. 5 will be described.
[0130] The inter-element condition setting unit 112 sets the position and shape (rectangular parallelepiped) of interfering object A linked to the C-axis node, and the positions and shapes (rectangular parallelepipeds) of interfering objects B1 and B2 in the mechanical configuration tree of the inter-element relationship 113.
[0131] 26A is a schematic diagram showing how interference between an interfering object A and an interfering object B1 is detected. When a rectangular parallelepiped interfering object A and a rectangular parallelepiped interfering object B1 are detected, the conditional inter-element relation output unit 121 outputs the following formula (43) which represents the interference boundary between the interfering object A and the interfering object B1. The vector r in formula (43) ab1 indicates the vector (in the coordinate system of the root node) from the center of the interfering object A to the center of the interfering object B1. 1 indicates the separation axis direction (the coordinate system of the root node), and R a1 indicates the radius of the interference A in the separation axis direction, and R b1 indicates the radius of the interfering object B1 in the separation axis direction. The conditional inter-element relation output unit 121 also assigns an interference boundary flag to the inter-element relation control unit 115, indicating that the inter-element relation is an interference boundary.
[0132]
[0133] 26B is a schematic diagram showing how interference between interfering object A and interfering object B2 is detected. As shown in FIG. 26B, when the conditional inter-element relation output unit 121 detects interference with interfering object B2 during avoidance operation based on the interference boundary (inter-element output) of equation (43), it additionally outputs the interference boundary shown in equation (44). Vector r ab2 indicates the vector (in the coordinate system of the root node) from the center of the interfering object A to the center of the interfering object B2. 2 indicates the separation axis direction (the coordinate system of the root node), and R a2 indicates the radius of the interference A in the separation axis direction, and R b2 indicates the radius of the interfering object B2 in the direction of the separation axis.
[0134]
[0135] The conditional inter-element relation control unit 131 executes inverse kinematics transformation with constraint conditions using Lagrange's undetermined multipliers, and outputs the destination of each axis. The variables are the same as those in the above-mentioned formula (11). L in the Lagrange's undetermined multiplier method is the normal inverse kinematics transformation K -1 Using the above, it can be expressed as the following formula (45).
[0136]
[0137] 27A is a schematic diagram showing the positional relationship of an interfering object in the coordinate system of the root node. FIG. 27B is a schematic diagram showing the positional relationship of an interfering object in the motor coordinate system. Vector r b indicates the center position shift of the interfering object B, and the vector r m = 0. The vector r ab is calculated by using a known technique for machine configuration trees, and the transformation matrix F from the motor coordinate system to the coordinate system of the root node and the vector r m can be expressed as the following equation (46) using
[0138]
[0139] The conditional element relation control unit 131 calculates the vector r based on the formula (46). ab Substituting the formula (45) into the formula (45), L is (x m,y m ,z m ), and partial differentiation with respect to λ. Based on the above-described equations (25) and (26) in the fourth example of interference avoidance control, equations (47) and (48) can be obtained.
[0140]
[0141]
[0142] Next, the conditional inter-element relation control unit 131 calculates λ based on the formulas (47) and (48). i First, multiply the matrix F from the left side of equation (47) and obtain the vector l from the right side. i Multiplying by , we obtain the following formula (49): Formula (50) is obtained based on the obtained formula (49) and formula (48).
[0143]
[0144]
[0145] Here, the constant k i = λ i / 2, the destination vector r of each axis to be avoided is m can be expressed as in Equation (51). From this equation, the movement destination of each axis is shifted in the direction of the separation axis to the interference boundary.
[0146]
[0147] Next, the avoidance operation by separation shafts 1 to 3 will be described with reference to Figures 28A to 28F. Figure 28A is a schematic diagram showing how interference of separation shaft 1 is detected. Figure 28A shows a state in which interfering object A interferes with interfering object B1 when moved based on a movement command. When the interference in Figure 28A is detected, interference avoidance operation by separation shaft 1 is initiated.
[0148] Fig. 28B is a schematic diagram showing how interference of separation shaft 2 is detected while interference of separation shaft 1 is being avoided. Fig. 28B shows a state in which interfering object A interferes with interfering object B2 when moved based on a movement command. When the interference in Fig. 28B is detected, interference detection of separation shaft 1 is released, and interference avoidance operation by separation shaft 2 is initiated.
[0149] Fig. 28C is a schematic diagram showing how interference of separation shaft 1 is detected after interference detection of separation shaft 2 has been released. Fig. 28C shows a state in which interfering object A interferes with interfering object B2 when moved based on a movement command. When the interference in Fig. 28C is detected, interference detection of separation shaft 2 is released, and operation to avoid interference by separation shaft 1 is initiated.
[0150] Fig. 28D is a schematic diagram showing how interference of separation shaft 3 is detected after interference detection of separation shaft 1 is no longer detected. Fig. 28D shows a state in which interfering object A interferes with interfering object B2 when moved based on a movement command. When the interference in Fig. 28D is detected, interference detection of separation shaft 1 is no longer detected, and operation to avoid interference by separation shaft 3 is initiated.
[0151] Fig. 28E is a schematic diagram showing how interference detection of the separation shaft 3 is released. Fig. 28E shows a state in which interference detection of the separation shaft 3 is released by the avoidance operation after the interference detection in Fig. 28D, and the interfering object A is returned to the position of the movement command.
[0152] Fig. 28F is a schematic diagram showing how the actual movement coincides with the movement command. Fig. 28F shows the state of the interfering object A after it has returned to the position of the movement command. As described with reference to Figs. 28A to 28F, according to the configuration of this embodiment, even if there is a risk that interference will occur with both the interfering object B1 and the interfering object B2 in the movement according to the movement command, the vector r of the movement destination of each axis is set to prevent interference. m will be generated.
[0153] [Interference Avoidance Control Example 8] Next, an example of control for avoiding interference in another case will be described. Avoidance Control Example 8 is similar to the configuration of Avoidance Control Example 3 shown in Figs. 11 and 12. That is, in a machine configuration with three orthogonal axes, namely the X-axis, Y-axis, and Z-axis, the workpiece is interfering object A and the tool is interfering object B. In this example, interfering object A is a free-form surface workpiece linked to the work node, and interfering object B is the tool center point linked to the tool node.
[0154] Avoidance control example 8 differs from avoidance control example 3 in that the free-form surface is given by program coordinate values. The differences from the above-described configuration will be described below. Figure 29 is a functional block diagram of a CPU (control unit) provided in a numerical control device according to an embodiment of the present invention.
[0155] As shown in Figure 29, the conditional inter-element relation output unit 121 includes a conditional control point destination generation unit 122. The conditional control point destination generation unit 122 outputs the conditions that control points must satisfy as inter-element relation outputs. The conditional inter-element relation output unit 121 outputs the conditions that the control points output by the conditional control point destination generation unit 122 must satisfy as conditional expressions for preventing interference by interfering objects. In this example, the expression representing the interference boundary consists only of program coordinate values. Therefore, interference can be easily avoided at the control point stage.
[0156] The conditional inter-element relation control unit 131 includes a conditional axis destination generation unit 132. The conditional axis destination generation unit 132 executes a process of replacing the control point destination with a condition.
[0157] The conditional inter-element relation control unit 131 outputs data interpolation pulses indicating the conditional movement destinations of each axis to the interpolation unit 141. The interpolation unit 141 executes the interpolation process described above and also transmits feedback data to the inter-element relation output unit 114.
[0158] Next, the flow of avoidance control will be described with reference to Fig. 30. Fig. 30 is a flowchart showing the avoidance control of an obstacle in an embodiment of the present invention.
[0159] In step S20, the inter-element condition setting unit 112 stores the shape of the interfering object in the mechanical configuration tree of the three orthogonal axes of the inter-element relationship 113. The inter-element condition setting unit 112 stores, for example, a free-form surface in the work node of the mechanical configuration tree of the inter-element relationship 113, and stores the shape of the point of the inter-element relationship 113 in the tool node.
[0160] In step S21, the conditional inter-element relation output unit 121 outputs the inter-element relation to the inter-element relation control unit 115 based on the inter-element condition set in the inter-element relation 113.
[0161] In this example, the conditional control point destination generation unit 122 outputs a program coordinate system interference boundary based on the inter-element relationship 113 as the interference boundary. A program coordinate system interference boundary is an interference boundary that is composed only of elements in the program coordinate system. The conditional control point destination generation unit 122 then converts the inter-element relationship into a format (inter-element relationship output) that can be interpreted by the conditional inter-element relationship control unit 131. The free surface stored in the inter-element relationship 113 is converted into a format that can be interpreted, for example, as shown in Equation (52) below. The conditional inter-element relationship control unit 131 also assigns a program coordinate system interference boundary flag to the inter-element relationship output, indicating that it is a program coordinate system interference boundary. The conditional inter-element relationship output unit 121 outputs the inter-element relationship output generated by the conditional control point destination generation unit 122.
[0162]
[0163] In step S22, the conditional inter-element relation control unit 131 uses the inter-element relation output (program coordinate system interference boundary) whose interference boundary flag is ON as a replacement target for the control point movement destination.
[0164] 31 is a diagram showing an example of the coordinates of each axis destination before and after correction. In this example, if the control point destination does not satisfy the program coordinate system interference boundary condition of Equation (52), the conditional axis destination generation unit 132 generates each axis destination by replacing the control point destination element based on the inter-element relationship output. As shown in FIG. 31 , the conditional axis destination generation unit 132 performs a process of replacing, based on the inter-element relationship output, elements of the control point destination that match the left side of the interference boundary with the right side of the interference boundary, and outputs each axis destination.
[0165] 32 is a schematic diagram showing the positional relationship between the tool and the workpiece and the destination of each axis before and after the correction. As shown in FIG. 32, the original control point destination vector r p Whereas, z p Add the avoidance movement to the interference boundary of Equation 52 in the direction, and the corrected vector r' p is generated as the destination of each axis.
[0166] The conditional axis destination generation unit 132 performs normal inverse kinematics transformation on the destination generated by the conditional control point destination generation unit 122 to generate the destination vector r m Generate the destination vector r m can be expressed as in Equation (54) assuming Equation (53). p is the destination of the control point with constraint conditions (program coordinate system), and the vector r m is the destination of each axis (motor coordinate system). By using this formula (54), the destination of the control point is generated so that the point does not interfere with the free-form surface.
[0167]
[0168]
[0169] In step S23, the servo motors 50 to 54 operate based on the calculated destination of each axis so as to avoid collision of the tool center point with the free curved surface.
[0170] Although an example has been described above in which the conditional inter-element relation output unit 121 includes the conditional control point destination generation unit 122, the present invention is not limited to this configuration. FIG. 33 is a functional block diagram of a CPU (control unit) included in a numerical control device according to an embodiment of the present invention. As shown in FIG. 33 , the inter-element relation output unit 114 may be configured to include a control point destination generation unit 123 that outputs unconditional destination control points instead of the conditional control point destination generation unit 122. In this case, the conditional control point destination generation unit 122 can separately obtain control point conditions that the control points must satisfy and generate conditional destinations for each axis based on the destination control points and the control point conditions.
[0171] Next, interference avoidance for convex polyhedrons will be described. In the above description, a rectangular parallelepiped is used as an example of an interference object. However, using known technology, it is also possible to generate an avoidance command by decomposing the interference object shape into shapes to which the separated axis method can be applied. FIG. 34 is a schematic diagram illustrating the separated axis method for a polyhedron having multiple convex shapes. As shown in FIG. 34, in the case of interference object A' having two convex shapes, the separated axis method can be used in a method of processing a rectangular parallelepiped by dividing the interference object A' into three rectangular parallelepipeds: interference object A1, interference object A2, and interference object A3.
[0172] 35A is a schematic diagram showing an example of calculation of a separation axis based on the cross product of each side of convex polyhedron A and each side of convex polyhedron B. As shown in FIG. 35A, the separation axis is calculated based on the cross product of each side of convex polyhedron A and each side of convex polyhedron B. In this example, the vector v 1 , vector v 2 The direction of the arrow that is the cross product of these is the separation axis. Figure 35B is a schematic diagram showing an example of calculating the separation axis based on the normal direction of each surface. In Figure 35B, the direction of the arrow that is the normal direction of each surface is the separation axis.
[0173] As described above, the numerical control device 100 of this embodiment includes a graph generation unit 101 that generates the mechanical configuration of the control object in graph form, a control point coordinate system insertion unit 102 that inserts control points and a coordinate system into the mechanical configuration in graph form, an inter-element condition setting unit 112 that sets the shape of an interfering object in an inter-element relationship as an inter-element condition that must be satisfied by the relationship between a first element that is a first control point and a second element that is a second control point, an inter-element relationship output unit 114 that outputs an interference condition equation (interference boundary) for preventing interference by the interfering object based on the inter-element condition set in the inter-element relationship 113, and an inter-element relationship control unit 115 that controls the relationship between elements based on the inter-element relationship 113 and the condition equation.
[0174] 36 , in the prior art, it was necessary to prepare in advance arc-shaped movements, linear movements, movement directions, etc. depending on the shape and position of an interfering object. In this regard, the numerical control device 100 of the present embodiment is provided with the above-described configuration that utilizes a machine configuration in graph format, and is thereby able to handle various cases of interference without having to prepare in advance avoidance commands for avoiding interference from interfering objects of different shapes.
[0175] In this embodiment, the inter-element relationship output unit 114 includes a conditional control point destination generator 122 that outputs control point conditions that control points must satisfy as inter-element conditions, and the inter-element relationship control unit 115 includes a conditional axis destination generator 132 that conditionally replaces control point destinations based on the control point conditions. This allows the equation representing the interference boundary to consist solely of program coordinate values, making it easy to generate commands for avoidance operations at the control point stage. Furthermore, as shown in Figures 36A and 36B , there is no need to temporarily stop movement to reread the command block when interference is detected, which eliminates the need for extended cycle time when interference is detected. Even if the interfering object has a complex shape, optimal movement (e.g., spline-like movement) tailored to the shape can be performed without unnecessary movement in the specified direction. In the example of Figure 36B , the interference condition node stores the condition of Equation (55) below as the interference condition, and the Z-axis coordinate value z p The avoidance movement is automatically performed so that the constraint condition, formula (55), is satisfied.
[0176]
[0177] In this embodiment, the inter-element relationship output unit 114 includes a control point destination generator 123 that outputs control point destinations, and the inter-element relationship control unit 115 includes a conditional axis destination generator 132 that generates conditional axis destinations based on the control point destinations. This configuration also prevents the cycle time from being extended when interference is detected. Even if the interfering object has a complex shape, optimal movement (such as spline-like movement) can be performed to match the shape without unnecessary movement in the specified direction.
[0178] Furthermore, the numerical control device 100 of this embodiment further includes an interpolation unit 141 that performs interpolation processing on movement commands, and the inter-element relationship control unit 115 outputs information on the movement destination of each axis reflecting the avoidance operation to the interpolation unit 141, and the avoidance operation is executed for each interpolation pulse. With this configuration, since the movement is changed for each interpolation pulse, even if the interfering object has a complex shape, a smooth avoidance operation can be performed in accordance with the shape.
[0179] Furthermore, the numerical control device 100 of this embodiment further includes a command analysis unit 111 that analyzes the movement command, and the inter-element relationship control unit 115 outputs information regarding the movement destination of each axis on which the avoidance operation is reflected to the command analysis unit 111, and the avoidance operation is executed for each command block. With this configuration, the avoidance command can be incorporated into the movement command with a single correction, making it possible to generate an efficient movement path in cases where the avoidance operation only needs to be performed linearly.
[0180] In this embodiment, the interference condition formula is a condition formula that indicates an interference boundary where the interfering objects to be avoided interfere with each other. The interference boundary can be used to accurately and efficiently generate the avoidance operation without the need to prepare in advance a control for performing a complex avoidance operation.
[0181] In this embodiment, one of the interfering objects is a point, the other is a free-form surface, and the interference condition formula is a condition formula that indicates the interference boundary between the point and the free-form surface. This makes it possible to realize an efficient avoidance operation that matches the shape of an interfering object, such as a workpiece, even if the shape of the interfering object is complex.
[0182] In this embodiment, one of the interfering objects is a point representing a motor coordinate value, another of the interfering objects is a movable range of the point representing the motor coordinate value, and the interference condition formula is a condition formula that indicates an interference boundary between the point representing the motor coordinate value and the movable range. This makes it possible to realize the OT zone intrusion avoidance function without having to prepare in advance a control for performing a complex avoidance operation.
[0183] In this embodiment, the interference condition formula includes a condition for restricting movement in a predetermined direction, which fixes coordinate values and restricts movement in unnecessary directions, thereby achieving a safer OT zone intrusion avoidance function.
[0184] In the above description, for the sake of convenience, two sets of control points and coordinate systems have been described, but synchronous control may be performed for three or more sets of control points and coordinate systems.
[0185] The control method by the numerical control device 100 is realized by software. When realized by software, the programs constituting this software are installed on a computer (numerical control device 100). These programs may be recorded on removable media and distributed to users, or may be distributed by being downloaded to the user's computer via a network. Furthermore, these programs may be provided to the user's computer (numerical control device 100) as a web service via a network without being downloaded.
[0186] Although the present disclosure has been described in detail, the present disclosure is not limited to the individual embodiments described above. Various additions, substitutions, modifications, partial deletions, etc. are possible in these embodiments without departing from the gist of the present disclosure or the spirit of the present disclosure derived from the content of the claims and their equivalents. These embodiments can also be implemented in combination. For example, in the above-described embodiments, the order of each operation and the order of each process are shown as examples and are not limited to these. The same applies when numerical values or mathematical expressions are used in the description of the above-described embodiments.
[0187] The following supplementary note is further disclosed regarding the above embodiment and modified examples. (Supplementary note 1) A numerical control device (100) comprising: a graph generation unit (101) that generates a mechanical configuration of a controlled object in a graph format; a control point coordinate system insertion unit (102) that inserts control points and a coordinate system into the mechanical configuration in the graph format; an inter-element condition setting unit (112) that sets the shape of an interfering object in an inter-element relationship as an inter-element condition that must be satisfied by a relationship between a first element that is a first control point and a first element and a second element that are second control points; an inter-element relationship output unit (114) that outputs an interference condition equation for preventing interference between the interfering object based on the inter-element condition set in the inter-element relationship; and an inter-element relationship control unit (115) that controls the inter-element relationship based on the inter-element relationship and the interference condition equation.
[0188] (Supplementary Note 2) In the above-mentioned numerical control device (100), the inter-element relation output unit (114) has a control point destination generation unit (123) that outputs a control point destination, and the inter-element relation control unit (115) has a conditional axis destination generation unit (132) that generates a conditional axis destination based on the control point destination.
[0189] (Supplementary Note 3) In the above-mentioned numerical control device (100), the inter-element relationship output unit has a conditional control point destination generation unit (122) that outputs control point conditions that the control points must satisfy as the inter-element conditions, and the inter-element relationship control unit has a conditional each-axis destination generation unit (132) that conditionally replaces the control point destinations based on the control point conditions.
[0190] (Note 4) The above-mentioned numerical control device (100) further comprises an interpolation unit (141) that performs interpolation processing on a movement command, and the inter-element relationship control unit (115) outputs information on the movement destination of each axis, in which the avoidance operation is reflected, to the interpolation unit (141), and the avoidance operation is performed for each interpolation pulse.
[0191] (Supplementary Note 5) The above-mentioned numerical control device (100) further comprises a command analysis unit (111) that analyzes a movement command, and the inter-element relationship control unit (115) outputs information on each axis movement destination reflecting the avoidance operation to the command analysis unit (111), and the avoidance operation is executed for each command block.
[0192] (Supplementary Note 6) In the above-described numerical control device (100), the interference condition equation is a condition equation that indicates an interference boundary where the interfering objects to be avoided interfere with each other.
[0193] (Supplementary Note 7) In the above-mentioned numerical control device (100), the conditional axis destination generation unit generates the conditional axis destination that satisfies the interference condition equation and minimizes the square of the difference between the control point destination and the result of converting the control point destination into the axis destination using a normal inverse kinematics transformation.
[0194] (Supplementary Note 8) In the above-mentioned numerical control device (100), one of the interfering objects is a point, and another of the interfering objects is a free-form surface, and the interference condition equation is a condition equation that indicates an interference boundary between the point and the free-form surface.
[0195] (Supplementary Note 9) In the above-described numerical control device (100), the interfering object has a shape made up of one or more convex polyhedrons, and the interference condition expression is a condition expression that indicates an interference boundary between the convex polyhedrons.
[0196] (Supplementary Note 10) In the above-described numerical control device (100), one of the interfering objects is a point representing a motor coordinate value, and another of the interfering objects is a movable range of the point representing the motor coordinate value, and the interference condition equation is a condition equation indicating an interference boundary between the point representing the motor coordinate value and the movable range.
[0197] (Supplementary Note 11) In the above numerical control device (100), the interference condition formula includes a condition for restricting movement in a predetermined direction.
[0198] 11 CPU (control unit) 100 Numerical control device 101 Graph generation unit 102 Control point coordinate system insertion unit 111 Command analysis unit 112 Inter-element condition setting unit 113 Inter-element relationship 114 Inter-element relationship output unit 115 Inter-element relationship control unit 121 Conditional element relationship output unit 122 Conditional control point movement destination generation unit 131 Conditional element relationship control unit 132 Conditional each axis movement destination generation unit 140 Movement execution unit 141 Interpolation unit 142 Pulse generation unit
Claims
1. A numerical control device comprising: a graph generation unit which generates the mechanical configuration of the object to be controlled in graph form; a control point coordinate system insertion unit which inserts control points and a coordinate system into the mechanical configuration in graph form; an inter-element condition setting unit which sets the shape of an interfering object in an inter-element relationship as an inter-element condition that must be satisfied by the relationship between a first element which is a first control point and a second element which is a second control point; an inter-element relationship output unit which outputs an interference condition equation for preventing interference by the interfering object based on the inter-element condition set in the inter-element relationship; and an inter-element relationship control unit which controls the inter-element relationship based on the inter-element relationship and the interference condition equation.
2. The numerical control device according to claim 1, wherein the inter-element relationship output unit has a control point destination generation unit that outputs a control point destination, and the inter-element relationship control unit has a conditional axis destination generation unit that generates conditional axis destinations based on the control point destinations.
3. The numerical control device according to claim 1, wherein the inter-element relationship output unit has a conditional control point destination generation unit that outputs a control point condition that the control point must satisfy as the inter-element condition, and the inter-element relationship control unit has a conditional each-axis destination generation unit that conditionally replaces the control point destination based on the control point condition.
4. A numerical control device as claimed in any one of claims 1 to 3, further comprising an interpolation unit which performs an interpolation process on a movement command, wherein the inter-element relationship control unit outputs information relating to each axis movement destination reflecting the avoidance operation to the interpolation unit, and the avoidance operation is executed for each interpolation pulse.
5. A numerical control device as claimed in any one of claims 1 to 3, further comprising a command analysis unit that analyzes a movement command, wherein the inter-element relationship control unit outputs information regarding each axis movement destination reflecting the avoidance operation to the command analysis unit, and the avoidance operation is executed for each command block.
6. A numerical control device according to any one of claims 1 to 5, wherein the interference condition equation is a condition equation that indicates an interference boundary where objects to be avoided interfere with each other.
7. A numerical control device as described in any one of claims 1 to 5, wherein the conditional axis destination generation unit generates the conditional axis destination that satisfies the interference condition equation and minimizes the square of the difference between the control point destination and the result of converting the control point destination into each axis destination using a normal inverse kinematics transformation.
8. The numerical control device according to claim 6, wherein one of the interfering objects is a point, one of the interfering objects is a free-form surface, and the interference condition equation is a condition equation that indicates an interference boundary between the point and the free-form surface.
9. The numerical control device according to claim 6, wherein the interfering object has a shape consisting of one or more convex polyhedrons, and the interference condition equation is a condition equation that indicates an interference boundary between convex polyhedrons.
10. A numerical control device as described in claim 6, wherein one of the interfering objects is a point representing a motor coordinate value, another of the interfering objects is a movable range of the point representing the motor coordinate value, and the interference condition equation is a condition equation indicating an interference boundary between the point representing the motor coordinate value and the movable range.
11. The numerical control device according to claim 10, wherein the interference condition formula includes a condition for restricting movement in a predetermined direction.
Citation Information
Patent Citations
Collision detection system, collision detection data generation device, robot system, robot, collision detection data generation method and program
JP2014021810A
Numerical control device
JP2019008479A
Control system
JP2021089467A
