Summary of the invention
The object of the embodiment of the present invention is to provide a kind of Z axis idle motion copying control method, is intended to solve the problem that laser head walking fluency under existing control mode is not good.
The embodiment of the present invention is achieved in that a kind of Z axis idle motion copying control method, for the laser head of positioning machine tool, said method comprising the steps of:
Calculate the span between described laser head current anchor point and next anchor point;
Carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to precalculated position.
Another object of the embodiment of the present invention is to provide a kind of Z axis idle motion contour control system, and for the laser head of positioning machine tool, described system comprises:
Computing module, for calculating the span between described laser head current anchor point and next anchor point;
Interpolation module, for carrying out X, Y, Z three-shaft linkage moving interpolation according to described span, makes described laser head move to precalculated position.
Another object of the embodiment of the present invention is to provide a kind of laser cutting machine being provided with above-mentioned Z axis idle motion contour control system.
The embodiment of the present invention first calculates the span between laser head current anchor point 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 precalculated position, and this process laser head walking fluency is good.The application of this Z axis idle motion copying control method and system is comparatively extensive, especially can be used for laser cutting machine.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, 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, be not intended to limit the present invention.
The embodiment of the present invention first calculates the span between laser head current anchor point 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 precalculated position, and this process laser head walking fluency is good.
The Z axis idle motion copying control method that the embodiment of the present invention provides comprises the following steps:
Calculate the span between described laser head current anchor point and next anchor point;
Carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to precalculated position.
The Z axis idle motion contour control system that the embodiment of the present invention provides comprises:
Computing module, for calculating the span between described laser head current anchor point and next anchor point;
Interpolation module, for carrying out X, Y, Z three-shaft linkage moving interpolation according to described span, makes described laser head move to precalculated position.
The laser cutting machine that the embodiment of the present invention provides is provided with above-mentioned Z axis idle motion contour control system.
For CNC machine cutting flat, realization of the present invention is described in detail below.
Fig. 1 shows the realization flow of the Z axis idle motion copying control method that the embodiment of the present invention provides, and details are as follows:
In step S101, calculate the span between described laser head current anchor point and next anchor point.
In the embodiment of the present invention, CNC machine has one in order to the laser head 2 of cutting flat 1, needs to position this laser head 2 before cutting.For the span L between laser head described in accurate Calculation 2 current anchor point 11 and next anchor point 12, the X/Y value of described laser head current anchor point 11 need be stored, and pre-read the X/Y value of next anchor point 12 of described laser head.
Aforementioned span L is after laser head current anchor point 11 is projected on XY plane with next anchor point 12, distance between the two.Wherein, the X/Y value of laser head current anchor point 11 is projected on the coordinate figure of XY plane for this anchor point; Similarly, the X/Y value of next anchor point 12 of laser head is projected on the coordinate figure of XY plane for this anchor point.
Certainly, in storing the X/Y value of described laser head current anchor point 11, and before pre-reading the X/Y value of next anchor point 12 of described laser head, obtaining and first judging whether to perform quick position instruction and G00 instruction.If user selects to perform, then call CC_JUMP.DLL, with laser head described in quick position, as shown in Figure 2,3.
In step s 102, carry out X, Y, Z three-shaft linkage moving interpolation according to described span, make described laser head move to precalculated position.
Moving interpolation described in the embodiment of the present invention is preferably SPL moving interpolation, and laser head 2 walking will be more smooth.When described span L is less than the first setpoint distance P139, Z axis is lifted maximum height and be set to the first height P135; When described span L is more than or equal to the first setpoint distance P139 and is less than or equal to the second setpoint distance P140, Z axis is lifted maximum height and be set to the second height P136; When described span L is greater than the second setpoint distance P140, Z axis is lifted maximum height and be set to third high degree P137.Correspondingly, described 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 flat board smooth not.In addition, each anchor point of laser head 2 is P105 to the distance on dull and stereotyped 1 surface, as shown in Figure 3,4.
Wherein, described first setpoint distance P139 is preferably 150 ~ 250mm, and the second setpoint distance P140 is preferably 450 ~ 550mm; 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, there is a decline before next anchor point 12 and follow height P134, described decline follow height P134 be greater than rising follow height P133, the projection near each anchor point can be avoided like this to touch laser head 2, and loss prevention effect is better.Because current anchor point 11 is through one-time positioning, described rising can be made to follow height P133 and comparatively to decline and follow height P134 little 6 ~ 10mm, with faster locating laser head 2.
Those having ordinary skill in the art will appreciate that, realize the hardware that all or part of step in above-described embodiment method can carry out instruction relevant by program to complete, 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 motion contour control system that the embodiment of the present invention provides, and for convenience of description, illustrate only the part relevant to the embodiment of the present invention.
The Z axis idle motion 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 computing module 13 for calculating the span L between described laser head 2 current anchor point 11 and next anchor point 12 and 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 principle of work of above-mentioned modules (unit) as mentioned before, is no longer repeated herein.The unit (module) of this Z axis idle motion contour control system can be the unit of software unit, hardware cell or software and hardware combining, software unit part can be stored in a computer read/write memory medium, as ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.