Summary of the invention
The purpose of the embodiment of the present invention is to provide a kind of Z axis idle stroke copying control method, is intended to solve the not good problem of laser head walking fluency under existing control mode.
The embodiment of the present invention is achieved in that a kind of Z axis idle stroke copying control method, is used for the laser head of positioning machine tool, said method comprising the steps of:
Calculate the span between the current anchor point of described laser head and next anchor point;
Carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to the precalculated position.
Another purpose of the embodiment of the present invention is to provide a kind of Z axis idle stroke contour control system, is used for the laser head of positioning machine tool, and described system comprises:
Computing module is used for calculating the span between the current anchor point of described laser head and next anchor point;
Interpolation module is used for carrying out X, Y, Z three-shaft linkage moving interpolation according to described span, makes described laser head move to the precalculated position.
Another purpose of the embodiment of the present invention is to provide a kind of laser cutting machine that above-mentioned Z axis idle stroke contour control system is installed.
The embodiment of the present invention is first calculated the span between the current anchor point of laser head and next anchor point, then carries out X, Y, Z three-shaft linkage moving interpolation according to this span, makes described laser head move to the precalculated position, and this process laser head walking fluency is good.This Z axis idle stroke copying control method and system are used comparatively extensive, especially can be used for laser cutting machine.
The specific embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The embodiment of the present invention is first calculated the span between the current anchor point of laser head and next anchor point, then carries out X, Y, Z three-shaft linkage moving interpolation according to this span, makes described laser head move to the precalculated position, and this process laser head walking fluency is good.
The Z axis idle stroke copying control method that the embodiment of the present invention provides comprises the following steps:
Calculate the span between the current anchor point of described laser head and next anchor point;
Carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to the precalculated position.
The Z axis idle stroke contour control system that the embodiment of the present invention provides comprises:
Computing module is used for calculating the span between the current anchor point of described laser head and next anchor point;
Interpolation module is used for carrying out X, Y, Z three-shaft linkage moving interpolation according to described span, makes described laser head move to the precalculated position.
The laser cutting machine that the embodiment of the present invention provides is equipped with above-mentioned Z axis idle stroke contour control system.
The below is described in detail realization of the present invention as an example of CNC lathe cutting flat example.
Fig. 1 shows the realization flow of the Z axis idle stroke copying control method that the embodiment of the present invention provides, and details are as follows:
In step S101, calculate the span between the current anchor point of described laser head and next anchor point.
In the embodiment of the present invention, the CNC lathe has a laser head 2 in order to cutting flat 1, needs before cutting this laser head 2 is positioned.Be the span L between the current anchor point 11 of the described laser head 2 of accurate Calculation and next anchor point 12, need the X/Y value of the current anchor point 11 of the described laser head of storage, and read in advance the X/Y value of next anchor point 12 of described laser head.
Aforementioned span L is the current anchor point of laser head 11 with next anchor point 12 projection behind the XY plane, distance between the two.Wherein, the X/Y value of the current anchor point 11 of laser head is that this anchor point projection is in the coordinate figure on XY plane; Similarly, the X/Y value of next anchor point 12 of laser head is that this anchor point projection is in the coordinate figure on XY plane.
Certainly, in the X/Y value of the current anchor point 11 of the described laser head of storage, and before reading in advance the X/Y value of next anchor point 12 of described laser head, getting and first judging whether to carry out quick positioning instruction is the G00 instruction.If the user selects to carry out, call CC_JUMP.DLL, with the described laser head in quick location, as shown in Fig. 2,3.
In step S102, carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to the precalculated position.
Moving interpolation described in the embodiment of the present invention is preferably the SPL moving interpolation, and laser head 2 walkings will be more smooth., Z axis is lifted maximum height be made as the first height P135 during less than the first setpoint distance P139 when described span L; , Z axis is lifted maximum height be made as the second height P136 during more than or equal to the first setpoint distance P139 and less than or equal to the second setpoint distance P140 when described span L; , Z axis is lifted maximum height be made as third high degree P137 during greater than the second setpoint distance P140 when described span L.Correspondingly, described the first height P135, the second height P136, third high degree P137 increase successively, in case damage laser head 2 when carrying out the location of large span on smooth not flat board.In addition, laser head 2 each anchor points to the distance on dull and stereotyped 1 surface is P105, as shown in Fig. 3,4.
Wherein, described the first setpoint distance P139 is preferably 150~250mm, and the second setpoint distance P140 is preferably 450~550mm; The first height P135 is preferably 5~15mm, and the second height P136 is preferably 15~25mm, and third high degree P137 is preferably 25~35mm.
Usually, described laser head 2 has a rising and follows height P133 after current anchor point 11, had a decline and follow height P134 before next anchor point 12, described decline is followed height P134 and is followed height P133 greater than rising, can avoid so near the projection of each anchor point to touch laser head 2, the loss prevention effect is better.Because current anchor point 11 has passed through one-time positioning, can make described rising follow height P133 and descend and follow height P134 little 6~10mm, with faster locating laser head 2.
Those having ordinary skill in the art will appreciate that, realize that all or part of step in above-described embodiment method can come the relevant hardware of instruction complete by program, this program can be stored in a computer read/write memory medium, as ROM/RAM, disk, CD etc.
Fig. 5 shows the structural principle of the Z axis idle stroke contour control system that the embodiment of the present invention provides, and for convenience of description, only shows the part relevant to the embodiment of the present invention.
The Z axis idle stroke contour control system that the embodiment of the present invention provides is in order to the laser head 2 of positioning machine tool, it comprises be used to the computing module 13 that calculates the span L between the current anchor point 11 of described laser head 2 and next anchor point 12 and is used for carrying out X, Y, Z three-shaft linkage moving interpolation according to described span L, makes described laser head 2 move to the interpolation module 14 in precalculated position.
The operation principle of above-mentioned modules (unit) is no longer given unnecessary details as mentioned before herein.The unit (module) of this Z axis idle stroke contour control system can be the unit of software unit, hardware cell or software and hardware combining, the software unit part can be stored in a computer read/write memory medium, as ROM/RAM, disk, CD etc.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.