This application is based on and claims the benefit of priority from Japanese Patent Application No. 2016-240446, filed on 12 Dec. 2016, Japanese Patent Application No. 2017-195303, filed on 5 Oct. 2017, and Japanese Patent Application No. 2017-233786, filed on 5 Dec. 2017 and the content of which are incorporated herein by reference.
The present invention relates to a numerical controller which expresses the machine configuration of a control target in a graph form and which holds it and a data structure of the graph form.
Normally, in a controller which controls a machine tool or a robot, a control point which is included in the machine tool or the robot and which is a control target is controlled by use of a command value on a program. For example, in a machine tool, a tool root position is normally used as a control point. On the other hand, when a tool length offset function is used or when tool tip point control is performed, a tool tip position is used as a control point. Then control is performed such that these control points are moved to coordinate values specified by command values.
Patent Document 1: Japanese Unexamined Patent Application, Publication Nb. 2003-195917
There is a case where in a machine configuration having redundant flexibility, for example, in order to avoid interference, with the position and the posture of a tool tip or a tool root are being held or without the position and the posture being held, it is desired to move, as a control point, a point other than the tool tip and the tool root. For example, there is a case where as shown in
However, at present, a node other than the tool tip and the tool root such as the node 503 cannot be used as a control point Although in such a case, a command is directly issued to each rotary axis, it is difficult to determine the command value of each axis such that a desired control point comes to a desired position. Specifically, even when as shown in
In a machine tool or a robot, a control point position is commanded on a program, the coordinate system or a command value is specified and thus a numerical controller can move the specified control point to a desired command position on the specified coordinate system. For example, in 3-axes machining, a machine coordinate system on a machine zero point or a workpiece coordinate system on a table is often specified as a coordinate system. In simultaneous 4-axes machining or simultaneous 5-axes machining, as shown in
On a machine, coordinate systems other than these can be considered. For example, a “coordinate system (coordinate system which ignores only the rotation of a C axis) which is rotated to follow a B axis but is not rotated to follow the C axis and which adds the offsets of the B axis and the C axis” that is different from the coordinate system shown in
However, in general, in a numerical controller, on a series of axes which a workpiece is rotated to follow, coordinate system can be set at the end thereof but coordinate system cannot be set partway through it. When it is desired to set a coordinate system partway through it, since it is necessary to set a machine configuration again so as to form the end partway through it, it takes much time to do so.
In this point, Patent Document 1 discloses a technology related to a numerical controller whose tool length is easily changed in a machine tool laving a table rotary axis. However, although the technology of Patent Document 1 defines a coordinate system on a table it does not define a coordinate system under the table. Moreover, a control target is limited to a tool tip point.
Hence, the present invention has an object to provide a numerical controller which can freely and easily specify, as a control point, various positions on a machine configuration and which can easily set coordinate systems in various places on the machine configuration and a data structure in a graph form which expresses the machine configuration of the control target thereof.
(1) A numerical controller (for example, a numerical controller 100 which will be described later) according to the present invention expresses the machine configuration of a control target in a graph form where constituent elements are nodes and holds the machine configuration. The numerical controller includes: a control point coordinate system specification portion (for example, a control point coordinate system specification portion 114 which will be described later) that specifies, with an identifier, one or more groups of a control point and a coordinate system; a command value determination portion (for example, a command value determination portion 115 which will be described later) that uses the control point and the coordinate system specified by the control point coordinate system specification portion so as to determine for which control point and on which coordinate system one or more command values commanded in a program correspond to a coordinate value; and a movement command portion (for example, a movement command portion 116 which will be described later) that commands a move of the control point such that the coordinate value of the control point is the command value.
(2) The numerical controller described in (1) may include: a control point coordinate system insertion portion (for example, a control point coordinate system insertion portion which will be described later) that inserts the control point and the coordinate system into the graph of the machine configuration; and an identifier allocation portion (for example, an identifier allocation portion 113 which will be described later) that allocates the identifier to the control point and the coordinate system inserted.
(3) In the numerical controller described in (2), the control point coordinate system insertion portion (for example, the control point coordinate system insertion portion 112 which will be described later) may insert, as a node, the control point and the coordinate system into each of the nodes in the graph of the machine configuration.
(4) In the numerical controller described in (2), the control point coordinate system insertion portion (for example, the control point coordinate system insertion portion 112 which will be described later) may make each of the nodes in the graph of the machine configuration have the control point and the coordinate system as information.
(5) In the numerical controller described in (1) to (4), the graph or the machine configuration may include, as the constituent element, a unit in which a plurality of axes are integrated into one.
(6) In the numerical controller described in (5), a script described by a user may be analyzed so as to define the unit, and the defined unit may be included as the constituent element in the graph of the machine configuration.
In the numerical controller described in (1) to (6), the coordinate system may be able to be prevented from being affected by a specific node.
(8) In the numerical controller described in (1) to (7), the control point may be able to be prevented from being affected by a specific node.
(9) In the numerical controller described in (1) to (8), an arbitrary address which is allocated to an identifier previously defined for each meaning may be used as the command value regardless of an axis name included in the graph of the machine configuration.
(10) In the numerical controller described in the meaning may include the position of the control point, the posture of the control point and the angle position of rotary axis for determining the posture.
(11) In the numerical controller described in (1) to (10), the coordinate value of a specific node may be able to be directly specified as the command value.
(12) In the numerical controller described in (1) to (11), the movement command portion (for example, a movement command portion 116 which will be described later) may include: a simultaneous equation generation portion (for example, simultaneous equation generation portion 161 which will be described later) that generates a hypercomplex multidimensional simultaneous equation which determines a first coordinate transformation formula of the command value from the specified coordinate system and the graph of the machine configuration, which determines a second coordinate transformation formula of the control point from the specified control point and the graph of the machine configuration and which defines that the first coordinate transformation formula is equal to the second coordinate transformation formula; a simultaneous equation solving portion (for example, a simultaneous equation solving portion 162 which will be described later) that determines a solution of the hypercomplex multidimensional simultaneous equation; and a movement pulse generation portion (for example, a movement pulse generation portion 163 which will be described later) that uses the solution generated by the simultaneous equation solving portion so as to generate a movement pulse used for movement command
13) In the numerical controller described in (12), the simultaneous equation generation portion (for example, the simultaneous equation generation portion 161 which will be described later) may directly specify the coordinate value of a specific node so as to reduce the number of simultaneous equations.
(14) A data structure according to the present invention expresses the machine configuration of a control target of a numerical controller (for example, the numerical controller 100 which will be described later) and is in a graph form where constituent elements are nodes. A control point and a coordinate system are inserted as a node into a graph of the machine configuration, and an identifier is allocated to each of the control point and the coordinate system.
According to the present invention, it is possible to freely and easily specify, as a control point, various positions on a machine configuration, and it is also possible to easily set coordinate systems in various places on the machine configuration.
An embodiment of the present invention will be described in detail below with reference to
The CPU 11 is a processor which performs overall control on the numerical controller 100. The CPU 11 reads, through a bus 20, a system program stored in the ROM 12 so as to control the entire numerical controller 100 according to the system program.
In the RPM 13, temporary calculation data and display data and various types of data which are input by an operator through a display/MDI unit 70 are stored.
The CMOS memory 14 is configured as a non-volatile memory which is backed up by an unillustrated battery and in which even when the power supply of the numerical controller 100 is turned off, its memory state is held. In the CMOS memory 14, machining program which is read through the interface 15, a machining program which is input through the display/MDI unit 70 and the like are stored.
In the ROM 12, various types of system programs for performing processing on an edition mode necessary for the production and edition of a machining program and processing for an automatic operation are previously written.
Various types of machining programs such as a machining program for practicing the present invention are input through the interface 15 and the display/MDI unit 70 and can be stored in the CMOS memory 14.
The interface 15 makes possible to connect to ether the numerical controller 100 and external equipment 72 such as an adaptor. From the side of the external equipment 72, a machining program, various types of parameters and the like are read. The machining program edited within the numerical controller 100 can be stored through the external equipment 72 in an external storage means.
The PMC (Programmable Machine Controller) 16 uses a sequence program incorporated in the numerical controller 100 so as to output a signal to an auxiliary device of a machine tool (for example, an actuator such as a robot hand for tool replacement) through the I/O unit 17 and thereby perform control. The PMC (Programmable Machine Controller) 16 also receives signals of various types of switches and the like in an operation panel provided in the main body of the machine tool, performs necessary signal processing and then feeds the signals to the CPU 11.
The display/MDI unit 70 is a manual data input device which includes a display, a keyboard and the like. The interface 18 receives a command or data from the keyboard of the display/MDI unit 70 and feeds it to the CPU 11. The interface 19 is connected to an operation panel 71 which includes a manual pulse generator and the like.
The axis control circuits 30 to 34 of the individual axes receive, from the CPU 11, the movement command amounts of the individual axes, and output the commands of the individual axes to the servo amplifiers 40 to 44.
The servo amplifiers 40 to 44 receive the commands so as to hive the servo motors 50 to 54 of the individual axes. The servo motors 50 to 54 of the individual axes incorporate position/speed detectors, feed back position/speed feedback signals from the position/speed detectors to the axis control circuits 30 to 34 and thereby perform feedback control on the position and the speed. In the block diagram, the position speed feedback is omitted.
The spindle control circuit 60 receives a main axis rotation command to the machine tool so as to output a spindle speed signal to the spindle amplifier 61. The spindle amplifier 61 receives the spindle speed signal so as to rotate the spindle motor 62 of the machine tool at a commanded rotation speed and thereby drives a tool.
A pulse encoder 63 is coupled to the spindle motor 62 with a gear, a belt or the like. The pulse encoder 63 outputs a return pulse in synchronization with the rotation of the main axis. The return pulse is read via the bus 20 by the CPU 11.
In the example of the configuration of the numerical controller 100 shown in
The graph generation portion 111 generates the machine configuration of a control target in a graph form. The detailed operation thereof will be described in detail in “2. Generation of machine configuration tree” below.
The control point coordinate system insertion portion 112 inserts a control point and a coordinate system into the graph of the machine configuration. The identifier allocation portion 113 allocates an identifier to each of the control point and the coordinate system. The detailed operations of the control point coordinate system insertion portion 112 and the identifier allocation portion 113 will be described in detail in “3. Abstraction of command address” to “8. Derivation of coordinate system from machine configuration tree” below.
The control point coordinate system specification portion 114 specifies, with the identifiers, the control point and the coordinate system. Specifically, the control point coordinate system specification portion 114 uses, for example, any one or a command in a program, a parameter setting, a screen operation and an input value from an input means to the numerical controller 100 so as to specify the control point and the coordinate system. The command value determination portion 115 determines for which control point and on which coordinate system the command value in the program is a coordinate value. The detailed operations of the control point coordinate system specification portion 114 and the command value determination portion 115 will described in detail in “3. Abstraction or command address” to “8. Derivation of coordinate system from machine configuration tree” below.
The movement command portion 116 issues a command for the move of the control point such that the coordinate value of the control point is the command value in the program. The detailed operation of the movement command portion 116 will be described in detail “9. Movement pulse generation method” below. An example of the configuration of the movement command portion 116 will be shown in
As shown in
The simultaneous equation generation portion 161 uses the method described in “9. Movement pulse generation method” below so as to determine a first coordinate transformation formula of the coordinate value from the coordinate system and the graph of the machine configuration specified, to determine a second coordinate transformation formula of the control point from the control point and the graph of the machine configuration specified and to generate a hypercomplex multidimensional simultaneous equation for defining that the first coordinate transformation formula is equal to the second coordinate transformation formula.
The simultaneous equation solving portion 162 determines the solution of the hypercomplex multidimensional simultaneous equation. The movement pulse generation portion 163 uses the solution generated by the simultaneous equation solving portion 162 so as to generate a movement pulse used in a movement command
The numerical controller 100 according to the embodiment of the present invention first generates the graph showing the machine configuration. A method of generating a machine configuration tree as an example of the graph will be described in detail with reference to
As the example, the method of generating the machine configuration tree expressing the configuration of a machine shown in
First, as shown in
Then, the axis names (axis types) of the individual axes, the names of the individual tools, the names of the individual workpieces, the names of the individual zero points and the physical axis numbers (axis types) of the in axes are set. Then, the parent nodes (axis types) of the individual axes, the parent nodes of the individual tools and the parent nodes of the individual workpieces are set. Finally, the cross-offsets (axis types) of the individual axes, the cross-offsets of the individual tools and the cross-offsets of the individual workpieces are set. Consequently, the machine configuration tree shown in
Each node of the machine configuration tree is not limited to the pieces of information described above, and it may or may not have information related to, for example, the identifier (name), the identifier of the parent node of itself, the identifiers of all child nodes whose parents are itself, an relative offset (cross-offset) with respect to the parent node, a relative coordinate value with respect to the parent node, a relative movement direction (unit vector) with respect to the parent node, node types (linear axis/rotary axis/unit (which will be described later)/control point/coordinate system/zero point and the like) the physical axis number and the transformation formulas of an orthogonal coordinate system and a physical coordinate system.
Each node of the machine configuration tree may or may not have information necessary for the node itself being the control point or the coordinate system. The information necessary the node itself being the control point or the coordinate system is information as to whether or not, for example, an offset, a posture matrix, a move and an offset are considered though the details thereof will be described later, and they may be included or may not be included. Here, depending on whether or not each node has the information necessary for the node itself being the control point or the coordinate system, the embodiment of the control point coordinate system specification portion which will be described later differs. When each node does not have the necessary information, the necessary information can also be provided to the node by the control point coordinate system insertion portion and a control point coordinate system identifier allocation portion which will be described later.
As described above, values are set to the individual nodes, and thus data which has a data structure in the shape of a machine configuration tree is generated within the numerical controller 100. Furthermore, even when another machine (or robot) is added, a zero point is added, and thus is possible to further add nodes.
A flowchart obtained by generalizing the method of generating the machine configuration tree described above, in particular, the method of setting the values to the nodes shown in
In step S11, the graph generation portion 111 receives the value of a parameter set to the node. When in step 312, the item of the set parameter is “parent node of itself” (YES in S12), the processing is transferred to step S13. When the item of the set parameter is not “parent node of itself” (NO in S12), the processing is transferred to step S17.
When in step S13, a parent node has already set to the node to which the parameter is set (YES in S13), the processing is transferred to step S14. When a parent node has not been set (NO in S13), the processing is transferred to step S15.
In step S14 the graph generation portion 111 deletes the identifier of itself from the item of “child node” possessed by the current parent node of the node to which the parameter is set so as to update the machine configuration tree.
In step S15, the graph generation portion 111 sets the value to the corresponding item of the node to which the parameter is set.
In step S16, the graph generation portion 111 adds the identifier of itself to the item of “child node” in the parent node so as to update the machine configuration tree, and thereafter the flow is completed.
In step S17, the graph generation portion 111 sets the value to the corresponding item of the node to which the parameter is set, and thereafter the flow is completed.
The method of generating the data having the data structure in the shape of the machine configuration tree described above is used, and thus it, is possible to set a parent-child relationship of the constituent elements of the machine. Here, the parent-child relationship refers to a relationship in which, for example, when as shown in
As described above, a mechanism in which a variation in a certain node affects the other node is regarded as one unit in terms of convenience, this unit is inserted into the machine configuration tree and thus the entire machine configuration tree is generated. As shown in
The unit indicating this machine configuration has a homogeneous transformation matrix such as T in the mathematical formula of [Formula 1] described above. The homogeneous matrix refers to a 4×4 matrix which can collectively express the position and the posture as in the mathematical formula of [Formula 2] below.
Even when the parent-child relationship is not mutual, in order for calculation processing or a setting to be simplified, a unit which a plurality of nodes are previously integrated into one may be defined and configured into the machine configuration tree.
The unit described above may be previously defined in the numerical controller or a script which is described uniquely by a user may be read by the numerical controller.
In other words, a configuration may be adopted in which the script uniquely described by the user is read by the numerical controller and the details thereof are analyzed such that a unit is newly defined, and in which this unit is used so as to be able to be configured into the machine configuration tree.
As described above, in the present embodiment, the graph of the machine configuration can include, as a constituent element, a unit in which a plurality of axes is integrated into one.
As shown
Since a machine tool has various machine configurations, various parent-child relationships of constituent elements are provided whereas a numerical controller normally doe not have information on the parent-child relationship of constituent elements so that the numerical controller cannot perform control requiring such information. However, the numerical controller uses the method of generating data having the machine configuration tree described above or having the data structure in the shape of the machine configuration tree, and thereby can control a machine tool or a robot which has various machine configurations, with the result that convenience is enhanced. The user also uses a graphic user interface (GUI) so as to be intuitively set the machine configuration tree to the numerical controller.
As described above, when the machine configuration tree is generated, the axis names are added to the individual axes. Normally, in a machining program used in a numerical controller, a combination between the name and the coordinate value of a destination or a value meaning the amount of move is used so as to command a move.
However, even when the axis name can be arbitrarily set, if the axis configuration of the machine is different, as long as a command is issued with the in axis name, the program is inevitably different. For example, as shown in
Conventionally, a commandable address is determined for each G code modal, and when the modal is changed, a command address needs to be changed accordingly. For example, when the posture of a tool is indicated in tool tip point control, a commandable address is determined in each mode such that in a type 1 mode, a command is issued with each rotary axis address (for example, address A, B, and C) whereas in a type 2 mode, command is issued with a tool posture vector (address I, J, and K). Hence, for example in the type 1 mode, it is impossible to issue a command with the address I, J, and K whereas in the type 2 mode, it is impossible to issue a command with the rotary axis address A, B, and C.
Hence, in the present invention, instead of the axis name, an abstract address is used which defines the position, the posture and the like of a certain control point on a certain coordinate system. Specifically, first, in order to define an address, a command is issued as in 218 of
As described above, in the present embodiment, as the command value, regardless of the axis names included in the graph of the machine configuration, an arbitrary address which is allocated to an identifier previously defined for each meaning can be used. The “meanings” described above include the position of the control point, the posture of the control point and the position of the angle of the rotary axis for determining the posture.
Although as described in “2. Generation of machine configuration tree”, each node of the machine configuration can have information necessary for the node itself being the control point or the coordinate system, each node can be formed such that it doesn't have the necessary information. When the node does not have the information necessary for the node itself being the control point or the coordinate system, in order to specify, as the control points, various positions on the machine configuration and set coordinate systems in various places on the machine configuration, the following method is performed by use of the machine configuration tree generated in “2. Generation of machine configuration tree” described above.
For example, in a rotary index machine 300 shown in
In an example of a series of nodes leading from individual workpieces to the machine zero point, as shown in
As shown in
A flowchart obtained by generalizing the method of automatically inserting the control point and the coordinate system described above is shown in
The chart A will first be described. In step S31, the graph generation portion 111 sets a machine configuration tree. In step S32, the chart B is performed, and the flow of the chart A is completed.
The chart B will then be described. In step S41 of the chart B, when the node has been inserted the control point and the coordinate system (YES in S41), the flow is completed. When the node has not been inserted the control point and the coordinate system (NO in S41), the processing is transferred to step S42.
In step S42, the control point coordinate system insertion portion 112 inserts the control point and the coordinate system into the node, and stacks a variable n by 1. A setting is made such that n=1.
In step S43, when the nth child node is present in the node (YES in S43), the processing is transferred to step S44. When the nth child node is not present in the node (NO S43), the processing is transferred to step S46.
In step S44, on the nth child node, the chart B itself is performed in a recursive manner.
In step S45, n is incremented by 1. In other words, the increment is performed such that n=n+1, and the processing is returned to step S43.
In step S46, the variable n is popped by 1, and the flow of the chart B is completed.
By the method described above, the control point coordinate system insertion portion 112 inserts, as nodes, the control point and the coordinate system into the individual nodes of the graph in the machine configuration. Although in the above description, the example where the control point and the coordinate system are added as nodes is described, an embodiment is also possible in which as shown in
As shown in
First, nodes which are present between a certain node and a certain node in the machine configuration tree and which are aligned are defined as a path. For example, in
p1={Z1, X1, tool 1, control point [tool 1]}
It is assumed that a path p2 from a route in the machine configuration tree to a certain control point is as follows.
p2={x1, x2, . . . , xN, control point}
A start point x1 in the path is the route. The homogeneous matrix MC of a position and a posture with respect to the route in the control point represented by the path is calculated by Formula 5,
M
C={Πi=1NS(ax
where the meanings of symbols are as follows.
S: Homogeneous transformation matrix of each node;
N: Number of a series of nodes leading from the route of the machine configuration tree to the control point;
M[ctrl]. Homogeneous matrix of a relative offset and a posture with respect to the parent node of the control point which is defined, according to the mathematical formula of [Formula 2], from an offset vector and a posture matrix defined in the control point;
axi: The cross-offset of a node xi is added (1) or is not added (0); and
bxi: The move of the node x1 is added (1) or is not added (0). Here, axi and bxi are information which can also be specified when the control point is specified, and the details thereof will be described in “8. Customization of coordinate system derived from machine configuration tree” which will be described later.
The homogeneous transformation matrix S is changed depending on the type of node (linear axis/rotary axis/unit/control point/coordinate system and the like), and is represented as follows. In the case of the linear axis, the homogeneous transformation matrix S is calculated by Formula 6,
where the meanings of symbols are as follows.
xi: Coordinate value of node xi;
ofsxi: Relative offset vector with respect to parent node of node xi; and
vxi: Movement direction vector of node xi.
In the case of the rotary axis, the homogeneous transformation matrix S is calculated by Formula 7,
where the meanings of symbols are as follows.
v1: First component of rotary axis direction vector of node xi;
v2: Second component of rotary axis direction vector of node xi; and
v3: Third component of rotary axis direction vector of node xi;
In the case of the unit, the homogeneous transformation matrix S is calculated by Formula 8,
where the meanings of symbols are as follows.
T(0): Unit matrix (non-transformation matrix); and
T(1): Homogeneous transformation matrix from connection point 120 to connection point 110 defined in a unit node. The homogeneous transformation matrix of the unit is a homogeneous transformation matrix such as T in the mathematical formula of [Formula 1] described previously which is defined for each unit. When the homogeneous transformation matrix S is not particularly specified, the homogeneous transformation matrix S is assumed to be a unit matrix.
When as shown in
The homogeneous matrix MW of the command value is first defined as follow.
As in the case of the control point, it is assumed that a path p3 from a route in the machine configuration tree to a certain coordinate system is as follows.
p3={x1, x2, . . . , xL, coordinate system}
In this way, the homogeneous matrix is calculated by Formula 11,
M
m={Πi=1LS(ai
where the meanings of symbols are as follows.
S: Homogeneous transformation matrix of each node;
L: Number of a series of nodes leading from the route of the machine configuration tree to the coordinate system;
M[coord]: Homogeneous matrix of a relative offset and a posture with respect to the parent node of the coordinate system which is defined, according to the mathematical formula of [Formula 2], from an offset vector and a posture matrix defined in the coordinate system;
axi: The cross-offset of a node xi added (1) or is not added (0); and
bxi: The move of the node xi is added (1) or is not added (0). Here, axi and bxi are information which can be specified when the coordinate system is specified, and the details thereof will be described in “8. Customization of coordinate system derived from machine configuration tree” which will be described later. The homogeneous transformation matrix S is the same as that described by use of the mathematical formulas of [Formula 6] to [Formula 8].
An example of a method of specifying each node as the control point or the coordinate system within a program when in the “2. Generation of machine configuration tree” described above, the machine configuration tree is generated such that each node has the information necessary for each node being the control point or the coordinate system is first shown in
In a command illustrated in
By the first line “G54.9 P<workpiece 1>;”, a node [workpiece 1] is specified as the coordinate system. By the second line “G54.8 P<workpiece 1><WORK1>;”, another identifier of “WORK1” is set to the node [workpiece 1]. By the third line “G54.9 P<WORK1>;”, the node [workpiece 1] specified by another identifier of “WORK1” as the coordinate system. By the fourth line “G54.7 P<C1>X_Y_Z_”, the coordinate system cross-offset of a node [C1] is set fifth line “G54.6 P<C1> I_J_K_;” the coordinate system posture matrix of the node [C1] is set by Roll/Pitch/Yaw. By the sixth line “G54.9 P<C1>;”, the node [C1] is specified as the coordinate system, and the cross-offset and the posture matrix described above are added. By the seventh line “G43.9 <tool 1>;”, a node [tool 1] is specified as the control point. By the eighth line “G43.8 P<tool 1><TOOL1>;”, another identifier of “TOOL1” set to the node [tool 1]. By the ninth line “G43.9 P<TOOL1>;”, the node [tool 1] is specified by another identifier of “TOOL1” as the control point. By the tenth line “G43.7 P<B1> X_Y_Z_;”, the control point cross-offset of a node [B1] is set. By the eleventh line “G43.6 P<B1> I_J_K_;”, the control point posture matrix of the node [B1] is set by Roll/Pitch/Yaw. By the twelfth line “G43.9 P<B1>;”, the node [B1] is specified as the control point, and the cross-offset and the posture matrix described above are added.
An example of a method or specifying, within a program, the control point and the coordinate system inserted into the machine configuration tree by “4. Automatic insertion of control point and coordinate system” described above will be shown in
In a command illustrated in
By the first line “G54.9 <coordinate system [workpiece 1]>;”, the coordinate system [workpiece 1] is specified. By the second line “G54.8 P <coordinate system [workpiece 1]><WORK1>;”, an identifier of “WORK1” set to the coordinate system [workpiece 1]. By the third line “G54.9 P<WORK1>;”, the coordinate system [workpiece 1] is specified by another identifier of “WORK1”. By the fourth line “G54.7 P<coordinate system [C1]> X_Y_Z_;”, the cross-offset of the coordinate system [C1] is set. By the fifth line “G54.6 P<coordinate system [C1]> I_J_K_;”, the posture matrix of the coordinate system [C1] is set by Roll/Pitch/Yaw. By the sixth line “G54.9 P<coordinate system [C1]>;”, the coordinate system [C1] is set, and the cross-offset and the posture matrix described above are added. By the seventh line “G54.9 control point [tool 1]>;”, the control point [tool 1] is specified. By the eighth line “G54.8 P<control point [tool 1] <TOOL1>;”, an identifier of “TOOL1” is set to the control point [tool 1]. By the ninth line “G54.9 P<TOOL1>;”, the control point [tool 1] is specified by another identifier of “TOOL1”. By the tenth line “G54.7 P<control point [B1]> X—Y_Z_;”, the cross-offset of the control point [B1] is set. By the eleventh line “G54.6 P<control point [B1]> I_J_K_;”, the posture matrix of the control point [B1] is set by Roil/Pitch/Yaw. By the twelfth line “G54.9 P<control point [B1]>;”, the control point [B1] is specified, and the cross-offset and the posture matrix described above are added.
Whether each node has the information necessary for each node being the control point or the coordinate system or whether each node does not have the information as described above, it is possible to specify an appropriate place in the machine configuration tree as the control point or the coordinate system. Although in
As described above, the suitable coordinate system in the machine configuration tree can be selected by a program command, and a command value on the selected coordinate system can be transformed into a machine coordinate value with the mathematical formulas of [Formula 9] to [Formula 11] as described above. In this transformation, a series of axi and bxi corresponding to the individual nodes in the path p3 are basically calculated as follows so as to be all 1.
p3={x1, x2, . . . , xL, coordinate system}
ap
bp
In this case, all the cross-offsets and the moves of the series of nodes are added.
Here, ap3 and bp3 have elements corresponding to the individual elements of the path p3 so as to be able to be regarded as accompanying paths. Hence, they are referred to as the accompanying paths ap3 and bp3 of p3.
Incidentally, as described previously in “Problems to Solved by Invention”, it may be preferable that the coordinate system is not rotated to follow only a specific axis. For example, a case where in
p4={machine zero point, C, C1, work 1, coordinate system}
In this case, accompanying paths ap4 and bp4 are specified as described below, and thus it is possible to customize the coordinate system such that the coordinate system is not rotated to follow only the C1 axis.
ap
bp
As described above, the accompanying path is specified as necessary on the specified coordinate system, and thus it is possible to customize the coordinate system such that the coordinate system is suitable according to the usage. The accompanying path can be specified cy a program command as shown in
Moreover, by a command of G154. 9P<workpiece 1>Q<C1>0, bc1 on the coordinate system inserted into the work 1 can be specified so as to be 0.
Then, by a command of G54. 95<workpiece 1>, the coordinate systems [workpiece 1] which are customized so as to be ac1=0 and bc1=0 can be specified.
Since an accompanying path is likewise present in the control point in addition to the coordinate system, the accompanying path is likewise specified with a program, and thus the customized control point can be used.
As described above, in the present embodiment, the information for specifying the coordinate system and the control point is changed, and thus it is possible to arbitrarily customize the coordinate system and the control point. In particular, in the coordinate system and the control point, it is possible to remove the influence of a specific node, specifically, an influence caused by the move and offset of the specific node.
Then, the numerical controller 100 according to the embodiment of the present invention interprets a command value within a program commanded by the method of “3. Abstraction of command address” as a coordinate value on the coordinate system specified by the method of “7. Method of specifying control point and coordinate system within program” and “8. Customization of coordinate system derived from machine configuration tree”, and generates a movement pulse necessary for moving the control point such that the coordinate value of the specified control point is the command value.
Specifically, first, by the method of “6. Calculation method of command point position and command point posture”, the first coordinate transformation formula of the command value is determined from the coordinate system specified and the machine configuration tree. Then, the second coordinate transformation formula of the control point is determined from the control point specified and the machine configuration tree the method of “5. Calculation method of control point position and control point posture”. Then, a hypercomplex multidimensional simultaneous equation for defining that the first coordinate transformation formula is equal to the second coordinate transformation formula is determined. Finally, the solution of the hypercomplex multidimensional simultaneous equation which is calculated by use of, for example, a Gröbner basis is used, and thus a movement pulse used in a movement command is generated.
For example as shown in
As shown in
Here, a path pctrl of the control point from the machine configuration tree route specified here and a path pcoord of the coordinate system from the machine configuration tree route specified here are represented by [Formula 15] below.
pctrl={x0, x1, x2, . . . , xN, control point}
pcoord={y0, y1, y2, . . . , yL, coordinate system}
Since the accompanying paths of the control point and the coordinate system are not particularly specified by a program, the elements of the accompanying paths apctrl, bpctrl, apcoord and bpcoord or the individual paths are represented by [Formula 16] so as to be all 1.
ap
bp
ap
bp
Furthermore, it is assumed that the offset, the type of node (linear line/rotation/unit/control point/coordinate system), the axis direction, the posture matrix and the coordinate value shown in
Here, as shown in
M
C={Πi=1NS(ax
Here, the meanings of symbols are as described in “5. Calculation method of control point position and control point posture”, and thus they are omitted. A homogeneous matrix MCW indicating the current position and posture of the control point on the specified coordinate system is determined by a formula below by use of MC.
M
CW
=M
[coord]
−1{Πi=L1S−1(ay
Then, the current position vector posCW of the control point on the specified coordinate system is determined as follows.
posCW=MCW(0 0 0 1)T
Then, as shown in
where F represents a specified move speed per interpolation period. In this way, it is possible to determine the position per interpolation period on a linear line connecting the current position and the command point position in the specified coordinate system.
On the other hand, the current tool direction vector vecCW of the control point on the specified coordinate system is determined as follows with the assumption that the tool reference direction vector is (0, 0, 1, 0).
vecCW=MCW(0 0 1 0)T
The tool reference direction vector is not limited to the tool reference direction vector described above, and may be changed by a command, a parameter setting or the like.
Then, as shown in
where the description of a symbol is as follows. Rot (θ′,axis): Rotary matrix rotated in a vector axis direction by θ′ which is the same as in the description of a matrix R in [Formula 7].
As described above, the subsequent interpolation position vector pos′W and the subsequent interpolation tool direction vector vec′W are determined, and then the following simultaneous equation is set up for each of the position and the posture of the control point.
This simultaneous equation is solved with respect to each of xi and yi, and thus the subsequent interpolation position of each axis is determined.
When the simultaneous equation is solved, it is possible to calculate the solution by use of, for example, a Gröbner basis. Specifically, based on a lexicographic order x1>x2> . . . >xN>y1>y2> . . . yM, for example, a Buchburger algorithm or the like is used so as to determine the Gröbner basis of the simultaneous equation, and thus a unitary multidimensional equation with respect to the least significant order yM is determined. This equation is solved so as to determine the solution of yM, this solution is used so as to sequentially solve the equations with respect to other Gröbner bases and thus it is possible to determine the solution of the simultaneous equation described above with respect to each of xi and yi.
The solutions xi′ and yi′ determined in this way are used so as to output the amount of move of Δxi′=xi′−xi, Δyi′=yi′−yi to each axis, and thus it possible to realize a move at a specified speed on the specified coordinate system.
When the flexibility of the machine configuration is redundant, for example, it is possible cope with such a case by adding, in a simultaneous manner, to the mathematical formula of [Formula 23], a restraint condition in which some axes are not moved or which a command value is directly given to some axes. It is also possible to cope with it by a method of making some axes have the attribute of an auxiliary axis which is not normally moved and moving the axes only in the vicinity of a singular point only for an operation of avoiding the singular point. It is also possible to cope with it by adding an auxiliary control point and issuing a command to it.
Even when the flexibility of the machine configuration is not redundant, a command value is directly given to some axes, and thus it is possible to omit the simultaneous state of the simultaneous equation. For example, in order to distinguish a rotary axis in which as the coordinate value is varied, the tool direction of the control point with respect to the specified coordinate system is varied from a rotary axis which does not contribute to a variation in the tool direction, the rotary axis is referred to as a tool variation rotary axis, and it is assumed that information as to whether or not each node of the machine configuration tree is the tool variation rotary axis is possessed. It is also assumed that the individual paths from the route to the control point and from the route to the coordinate system are represented by the mathematical formula of [Formula 15], and that a list of tool variation rotary axis nodes included in the individual paths is the mathematical formula of [Formula 24].
{xn, ym}
Among the tool variation rotary axes on the side of the control point, sequentially from the farthest one from the route, the first and the second are provided, and thereafter among the tool variation rotary axes on the side of the coordinate system, sequentially from the farthest one from the route, the third and the fourth are provided, with the result that it is possible to strictly define the order of the tool variation rotary axes for any machine configuration tree. Hence, xn is referred to as the first tool variation rotary axis, and ym is referred to as the second tool variation rotary axis. Here, an identifier R1 representing the first tool variation rotary axis and an identifier R2 representing the second tool variation rotary axis are used, and thus a command is issued as shown in
In this case, the subsequent interpolation positions xn′ and yn′ of the first tool variation rotary axis and the second tool variation rotary axis can be determined by a formula below.
In this way, the node coordinate values of the first tool variation rotary axis and the second tool variation rotary axis are determined, and thus the tool dire vector is also determined. Hence, it is not necessary to solve the simultaneous equation with respect to the tool direction vector, and thus the following simultaneous equation with respect to the command position is only solved.
{Πi=1NS(ax
However, in the equation described above, as the coordinate values of nodes xn and yn, the values determined as described above are substituted, and thus the equation is solved while they are regarded as constants.
As described above, as the command value in the program, the coordinate value of the specific node can be directly specified. In this way, it is possible to reduce the number of simultaneous equations.
The numerical controller according to the present embodiment holds machine configuration information in, for example, a machine configuration graph form such as a machine configuration tree. The numerical controller according to the present embodiment makes, on the machine configuration graph, each node have the information necessary for each node being the control point or the coordinate system when the graph is produced or automatically inserts possible control points and coordinate systems into the machine configuration graph, and provides a uniquely identifiable identifier to each of the control points and the coordinate systems. Hence, the user of the numerical controller according to the present embodiment can specify, with the identifier, the desired control point and coordinate system on a NC program without changing the setting of the numerical controller, with the result that convenience is enhanced.
Furthermore, the numerical controller according to the present embodiment specifies a control point and a coordinate system in the machine configuration, then commands coordinate value and thereby can move the specified control point to the coordinate on the specified coordinate system. In this way, the user of the numerical controller can freely issue a movement command to a machine of a general machine configuration with the result that convenience is enhanced.
Although the embodiment of the present invention is described above, the present invention is not limited to the embodiment described above. The effects described in the present embodiment are obtained by simply listing preferred effects produced from the present invention, and the effects of the present invention is not limited to the effects described in the present embodiment.
The method of controlling the numerical controller 100 is realized by software. When it is realized by software, programs forming the software are installed into a computer (the numerical controller 100). These programs may be distributed to users by being recorded in removable media or may be distrusted by being downloaded into the computers of the users through a network. Furthermore, these programs may be provided to the computers (the numerical controllers 100) of the users as a Web service through a network without being downloaded.
100 numerical controller
111 graph generation portion
112 control point coordinate system insertion portion
113 identifier allocation portion
114 control point coordinate system specification portion
115 command value determination portion
116 movement command portion
161 simultaneous equation generation portion
162 simultaneous equation solving portion
163 movement pulse generation portion
Number | Date | Country | Kind |
---|---|---|---|
2016-240446 | Dec 2016 | JP | national |
2017-195303 | Oct 2017 | JP | national |
2017-233786 | Dec 2017 | JP | national |