The invention relates to a method for determining a trajectory for a non-productive movement of a machine tool as well as to a program suitable therefor and to an associated control unit for the machine tool.
DE 103 43 611 A1 discloses a method for machine control in which a working envelope is divided into discrete elements. A binary collision parameter for a tool is provided for each discrete element. When a tool passes through a discrete element during a movement, a collision risk is identified by reference to a lookup table. The tool itself is furthermore also depicted by a discretized model.
One disadvantage of known machine control methods is that they are based on an extensive data record of the tool's surroundings, the provision and processing of which during machine operation requires considerable computing power. The prior art methods furthermore require the path for the desired movement to be provided in its entirety by an algorithm which approximates a merely apparent optimum by frequent iteration. This also increases demand for computing power in the known methods.
The object of the invention is that of providing a possible way of determining a trajectory of a non-productive movement which overcomes the disadvantages of the prior art. A method and means for carrying it out must also be provided which reliably enable an optimized non-productive movement to be performed using little computing power.
The stated object is achieved by the method according to the invention. In the method according to the invention, the non-productive movement of a tool proceeds from a starting position to an end position, both of which are user selectable or are specified by a CAM system. The method firstly provides a collision-free first trajectory for the non-productive movement. The collision-free first trajectory includes no optimization for a further parameter, such as for example a minimum time requirement or minimum energy requirement of the non-productive movement. In a further method step, an algorithm establishes a second trajectory which is improved over the first trajectory with regard to a selectable target parameter. The algorithm here makes use of the starting position, the target position and the existing first trajectory as inputs for establishing the second trajectory. The second trajectory is substantially a modification of the first trajectory.
A subsequent method step involves checking the second trajectory for absence of collisions. If the second trajectory is free of collisions, at least one instruction which corresponds to the second trajectory is established. The at least one instruction can be stored in a control unit of the machine tool and be relayed to tool drive means. The at least one instruction is suitable for causing the tool to follow the second trajectory. According to the invention, the second trajectory comprises at least one polynomial segment. The polynomial segment has a shape which is mathematically describable by a polynomial.
The method according to the invention allows an optimized second trajectory and a corresponding instruction set for an optimized non-productive movement to be established in reliable manner. The claimed method makes use of the starting position and the end position of the non-productive movement which are known in any event. The first trajectory likewise serves as an input for the algorithm and may for example be manually specified by a user. The first trajectory does not require optimization with regard to a target parameter and may accordingly be quickly established. Alternatively, a simple pathfinding method may be used which is designed always to seek an identical distance transversely of the direction of movement from the boundaries of the travel envelope. Overall, the algorithm in the method according to the invention is suitable for establishing an optimized second trajectory from a very largely imprecise, specified first trajectory. As a result, a non-productive movement is performed for example with a minimum time requirement. The method according to the invention places low requirements on the necessary computing power and can be performed on correspondingly simple hardware. The method according to the invention may likewise also be implemented in the context of a modification to an existing machine tool with little computing power. The low computing power requirements furthermore allow the method according to the invention to be executed in real time.
In a preferred embodiment of the invention, the first trajectory comprises a plurality of rectilinear segments. Assembled rectilinear segments which lead to a collision-free trajectory can be rapidly identified and established. Rectilinear segments can furthermore also be provided in memory-saving manner by a small number of machine tool control unit instructions.
In the method according to the invention, the above-described method steps can be repeated if, when checking the second trajectory, a collision is identified, i.e. the trajectory is not free of collisions. In the event of a rerun of the method step in which the improved second trajectory is established with regard to the at least one selectable target parameter, the algorithm is provided with a modified model of the travel envelope. The model of the travel envelope comprises the points and surfaces of the workpiece, workholder, tool table and walls of the machine tool which enclose and/or define the travel envelope reachable by the tool. The model also comprises purely geometric elements such as control planes and target corridors which have no physical counterpart. The model of the travel envelope is here modified by reducing the size of the reachable travel envelope.
In the method according to the invention, an iteration counter can be incremented by one each time that a second trajectory is established by means of the algorithm. The iteration counter records the number of runs of the algorithm calls and is a measure of the time which has elapsed during the functional sequence of the method according to the invention. The iteration counter takes the form of a variable in a program for operating a control unit of the machine tool. When the iteration counter exceeds a threshold value, it is identified that a maximum acceptable time for the method according to the invention has elapsed without a desired collision-free optimized second trajectory having yet successfully been established. In this case, at least one instruction which corresponds to the first trajectory is established and output to the machine tool. This makes it possible to ensure that the method according to the invention does not permanently remain in an endless loop if, for the current task for the algorithm, a desired optimized second trajectory does not exist in the available travel envelope. A control unit program which is in an endless loop typically no longer accepts any further user input. This can conventionally only be overcome by resetting the system. In an ongoing production process, such a reset brings the production process to a temporary standstill.
Equally, the iteration counter stops the algorithm from solving a task which requires excessive computing power. It is not straightforwardly possible to predict in advance the extent to which a task is efficiently solvable, only inefficiently solvable or entirely unsolvable by the algorithm. The method according to the invention thus ensures reliable machine tool operation which can robustly withstand unforeseen complications. There is accordingly no need for a laborious provisional estimate of task complexity. Overall, the method according to the invention makes it possible to avoid downtime in a production process and to boost the economic viability of the machine tool. The threshold value is furthermore adjustable. In the case of a control unit with elevated computing power, it is acceptable to run the method according to the invention more frequently, such that more complex tasks can also be solved by the algorithm.
In a further preferred embodiment of the invention, a tool collision is identified when a point of the second trajectory is located within an obstacle contour. The tool here also includes the toolholder and associated machine elements of the machine tool. The obstacle contour comprises surfaces of obstacles in the region of the workpiece which define a region inaccessible to the tool.
The second trajectory may furthermore be established taking account of a modification of a target corridor in, a selectable control plane. The control plane is substantially a station which must be traversed during the non-productive movement and be passed in the target corridor. The target corridor is a three- or two-dimensional portion in the control plane. The course of the second trajectory should be selected by the algorithm in such a manner that all the target corridors are passed through. In the event of a rerun of the method according to the invention, at least one target corridor may be modified by changing at least one parameter which defines the target corridor. This is for example the position of a corridor end point. The target corridor can consequently be changed in size and position. The requirement that the second trajectory has to pass through the target corridors means that, in the event of the method being rerun, the location of the second trajectory is changed. As a consequence, a collision present in the preceding run can be cleared in the later run. The target corridor is here modified as a function of the position of the present collision. The target corridor may furthermore take the form of a single contiguous surface or of a plurality of separate surfaces.
The algorithm can preferably furthermore take account of at least one dynamic property of the machine tool during establishment of the second trajectory. Such a dynamic property to be taken into account may be a maximum acceleration, a maximum jerk, a maximum angular acceleration or angular velocity at a joint. A corresponding dynamic property may furthermore also be a velocity range which is to be avoided along a tool movement axis in order to reduce vibration stresses on the machine tool. The method according to the invention is thus simply adaptable to the proper operating parameters of a machine tool, as a result of which excessive wear of the machine tool is, for example, avoided.
In a further preferred embodiment of the invention, the at least one instruction which corresponds to the second trajectory is of type G0 or G1. In the G code system typical of NC machines, a G0 instruction initiates a rapid traverse of the tool. G0 instructions can be straightforwardly interpreted and executed by today's machine tools. The method according to the invention thus provides for the optimized second trajectory at least one instruction in a machine-native format which requires no further conversion or emulation. The computing power required for the method according to the invention is further reduced as a consequence.
The method according to the invention can furthermore store the first trajectory in the form of at least one instruction of type G0 in the control unit of the machine tool. Type G0 or G1 instructions allow a user in a simple and logical manner to generate a first trajectory in which the starting position and the end position can simply be automatically identified by the algorithm. G0 instructions moreover allow a user quickly and clearly to generate a first collision-free trajectory. Handling of the method according to the invention is consequently simplified.
In one particularly preferred embodiment of the invention, the at least one selectable target parameter during establishment of the optimized second trajectory is a time requirement of the non-productive movement, the energy requirement necessary therefor, the power loss which occurs, or wear of the tool or of a drive means of the machine tool. Alternatively, a weighted combination of a plurality of individual target parameters may be used as the optimization specification. The method according to the invention may in this manner be adapted to a plurality of requirements or combinations of requirements. The claimed method is flexible overall and has a broad range of application.
The invention furthermore relates to a program which can be stored and executed with a processor. The claimed program is configured to implement at least one of the above-described methods in a control unit of a machine tool. The program according to the invention is platform-independent and can be played on a plurality of control units for machine tools. The program according to the invention requires only little computing power and is thus suitable for modifying an existing machine tool. The low computing power requirement means that the claimed program can be executed substantially in real time on powerful control units.
The invention furthermore relates to a control unit for a machine tool which comprises a storage device and a processor. The latter are configured to store and execute the above-described program. The control unit according to the invention is constructed to be compatible with a plurality of existing machine tools and is particularly suitable for modification or retrofit purposes.
The invention is described below in greater detail on the basis of individual embodiments in various figures in which:
The second trajectory 40 comprises a polynomial segment 42 which has a substantially continuous shape, i.e. has no angles. The second trajectory 40 is established by the algorithm 48 on the basis of the first trajectory 30, the specified starting position 12 and the end position 14. The claimed method 100 furthermore checks for absence of collisions at all points of the second trajectory 40. Furthermore, the location of the second trajectory 40 is optimized in the region of the points 55, which are each located in the control planes 36. The control planes 36 are located substantially perpendicular to the main direction of movement 18 of the non-productive movement 16 and in each case extend from an edge 23 of the obstacles 26 outward from the obstacle contour 28 into the travel envelope 22. Furthermore, in the region of the starting position 12, i.e. the recess 24, the second trajectory 40 extends substantially tangentially to the first trajectory 30. In the same way, in the region of the end position 14, where there is likewise a recess 24, the second trajectory 40 extends substantially tangentially to the first trajectory 30. Overall, the non-productive movement 16 guides the tool 10 quickly and without collisions from the starting position 12 to the end position 14 with a minimum of acceleration forces which act transversely of the polynomial segment 42. In addition to the time saving in comparison with the first trajectory 30, wear of the bearings and drives of the tool 10 are reduced thanks to the rapid changes of direction at the transition points 34 of the first trajectory 30 being avoided.
The method 100 in
In a subsequent second run 46, a modified model 29 of the travel envelope 22 and its control planes 36 and target corridors 37, 57 is used as the basis for the algorithm 48. The modified second target corridor 57 comprises two corridor end points 58, 59 which are located outside the target corridor 53 which is based on the model 27 of the travel envelope 22 from the first run 44. As a consequence, in the second run 46 a second trajectory 40 is established, the location of which differs from the second trajectory 40 from the first run 44. In the second run 46 as well, point 55 of the second trajectory 40 is located within the first target corridor 37. Furthermore, point 55 of the second trajectory 40 from the second run 46 is located in the associated control plane 36 within the modified second target corridor 57. The first and second target corridors 37, 53 are based on the model 27 which reflects the location of the control planes 36 and the target corridors 37, 53.
If, in contrast, a collision for at least one point 55 of the second trajectory 40 is established in the collision checking step 130, it is checked whether the iteration counter 52 has exceeded a threshold value. The method sequence branches further as a function of the result of the check. This branch is shown in
If the iteration counter has not yet exceeded the threshold value at branch point 145, a modification step 150 follows, in which a modified model 29 of the travel envelope 22 and the obstacles 26 located therein is generated. The iteration counter 52 is furthermore incremented by one. In a subsequent feedback step 165, the modified model 29 is provided to the algorithm 48 for a rerun of the optimization step 120. Overall, the method 100 according to the invention implements the principle of a finite state machine in which the occurrence of an endless loop is ruled out. As a consequence, the method according to the invention 100 offers a high level of reliability and avoids downtime of machine tools 50.
Number | Date | Country | Kind |
---|---|---|---|
15176105.3 | Jul 2015 | EP | regional |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2016/063177 | 6/9/2016 | WO | 00 |