Digit Control Machine Tool and the positioning and processing method using its implementation
Technical field
A kind of positioning and processing method the present invention relates to Digit Control Machine Tool and using its implementation.
Background technology
At present, need to carry out clamping before known work pieces process, but clamping is inaccurate, causes error.Prior art is
Calibration centering manually is carried out, it is necessary to which experienced master craftsman could complete using amesdial, labor intensive, cycle length, behaviour be present
Make the shortcomings that cumbersome.
The content of the invention
The technical problem to be solved in the present invention is that cycle length, cumbersome lacks in order to overcome prior art labor intensive
Fall into, there is provided a kind of Digit Control Machine Tool and the positioning and processing method using its implementation.
The present invention is that solve above-mentioned technical problem by following technical proposals:
A kind of Digit Control Machine Tool, including a clamping device, a control centre, a workbench, one first driver, one second drive
Dynamic device, one the 3rd driver, the first motor electrically connected with first driver, electrically connected with second driver the
Two motors and the 3rd motor electrically connected with the 3rd driver, its feature are that the Digit Control Machine Tool also includes a peace
Probe on the clamping device, the control centre include a motion-control module, a measurement module and a vector meter
Module is calculated, wherein,
The probe includes a detection sensor, and the detection sensor is when with the touching of the edge of workpiece, to the survey
Amount module sends a trigger signal;
The motion-control module is used to drive the workbench, first driver, second driver and institute
State the 3rd driver;
The measurement module is used to call the motion-control module so that the edge diverse location of the probe and workpiece
Repeatedly touching, and respectively while the trigger signal is received every time, record the two dimension of the location point of the probe occurs
Coordinate parameters;
The vectors calculation module is used for according to multiple two-dimensional coordinate parameters, calculates a rotating center and one
Workpiece rotates angle correction, and the rotating center and workpiece rotation angle correction are compiled into rotation instruction,
Send the rotation instruction to the motion-control module.
It is preferred that the measurement module is used to cause probe to occur to touch twice with four edges of workpiece, and record
The two-dimensional coordinate parameter of this eight location points, wherein,
Touched at workpiece first edge two location points are recorded as A11, A12 by the measurement module;
Two location points touched at the workpiece second edge adjacent with workpiece first edge are recorded as A21, A22;
Two location points touched in workpiece threeth edge relative with workpiece first edge are recorded as A31, A32;
Two location points touched in workpiece fourth edge relative with workpiece second edge are recorded as A41, A42;
It is reference vector point P1 that the vectors calculation module, which is used for location point A11 and location point A31 mid point recordings,;
It is reference vector point P2 by location point A21 and location point A41 mid point recordings
It is reference vector point P3 by location point A12 and location point A32 mid point recordings;
It is reference vector point P4 by location point A22 and location point A42 mid point recordings;
The vectors calculation module is additionally operable to according to reference vector point P1, reference vector point P2, reference vector point P3 and ginseng
Examine vector point P4 and calculate rotating center and workpiece the rotation angle correction.
It is preferred that the Digit Control Machine Tool includes a correction module, the correction module be used for reference vector point P1, P2,
When any two in P3 and P4 is equal, described reference vector point P1, P2, P3 and P4 are removed, and call the measurement module.
It is preferred that the vectors calculation module is used to calculate the line and reference vector point between reference vector point P1, P3
Intersection point P0 caused by line between P2, P4, and the intersection point P0 is defined as the rotating center.
It is preferred that the vectors calculation module is according to the line between reference vector point P1, P3 and horizontal direction
The size of angle, calculate the workpiece rotation angle correction.
A kind of positioning and processing method, its feature are that it uses described Digit Control Machine Tool, and it comprises the following steps:
Step 1, the measurement module call the motion-control module so that the edge difference position of the probe and workpiece
Put generation repeatedly touching;
Step 2, while the trigger signal that the probe is sent is received every time, record the position of the probe
The two-dimensional coordinate parameter of point;
Step 3, the vectors calculation module calculate workpiece rotation according to the two-dimensional coordinate parameter of multiple location points
Turn center and workpiece rotation angle correction, and the rotating center and workpiece rotation angle correction are compiled into one
Rotation instruction;
Step 4, by it is described rotation instruction pass to the motion-control module so that the workbench carries out rotation and repaiied
Just.
It is preferred that in step 1 so that probe occurs to touch twice with four edges of workpiece, and records this eight
The two-dimensional coordinate parameter of location point, wherein, two location points touched at workpiece first edge are recorded as A11, A12;Will be
Two location points touched at the workpiece second edge adjacent with workpiece first edge are recorded as A21, A22;Will with workpiece
Two location points that the relative edge of workpiece the 3rd in one edge is touched are recorded as A31, A32;Will with workpiece second edge phase
To two location points touching of the edge of workpiece the 4th be recorded as A41, A42;By location point A11 and location point A31 midpoint
It is recorded as reference vector point P1;It is reference vector point P2 by location point A12 by location point A21 and location point A41 mid point recordings
Mid point recordings with location point A32 are reference vector point P3;It is with reference to arrow by location point A22 and location point A42 mid point recordings
Measure point P4.
It is preferred that the Digit Control Machine Tool includes a correction module, the correction module be used for reference vector point P1, P2,
When any two in P3 and P4 is equal, described reference vector point P1, P2, P3 and P4 are removed, and calls the measurement module, is walked
Rapid 3 include:
Step 3.1, by location point A11 and location point A31 mid point recordings it is reference vector point P1;
It is reference vector point P2 by location point A21 and location point A41 mid point recordings
It is reference vector point P3 by location point A12 and location point A32 mid point recordings;
It is reference vector point P4 by location point A22 and location point A42 mid point recordings;
When step 3.2, any two in reference vector point P1, P2, P3 and P4 are equal, the reference vector point is removed
P1, P2, P3 and P4, and enter step 1, it is on the contrary then enter step 3.3.
Step 3.3, according to reference vector point P1, reference vector point P2, reference vector point P3 and reference vector point P4 calculate
Go out rotating center and workpiece the rotation angle correction.
It is preferred that in step 3, the company between line and reference vector point P2, P4 between reference vector point P1, P3 is calculated
Intersection point P0 caused by line, and the intersection point P0 is defined as the rotating center.
It is preferred that in step 3, according to the big of the line between reference vector point P1, P3 and the angle of horizontal direction
It is small, calculate the workpiece rotation angle correction.
In the present invention, above-mentioned optimum condition can be combined on the basis of common sense in the field is met, and produce the present invention's
Each preferred embodiment.
The positive effect of the present invention is:By the utilization of the present invention, automation centering is realized, avoids manpower
Operation, improves accuracy.
Brief description of the drawings
Fig. 1 is the overall structure diagram of the Digit Control Machine Tool of the present invention.
Fig. 2 is the numer centre structured flowchart of the Digit Control Machine Tool of the present invention.
Fig. 3 is the reference vector point location schematic diagram of the present invention.
Fig. 4 is the positioning and processing method flow chart of the present invention.
Embodiment
Enumerate preferred embodiment below, and become apparent from intactly illustrating the present invention with reference to accompanying drawing.
As Figure 1-4, kind Digit Control Machine Tool of the invention, including a clamping device 22, one for being used for clamping cutter 25 are controlled
Center 1, a workbench, one first driver 231, one second driver 232, one the 3rd driver 233 and the described first drive processed
The first motor 241 that dynamic device 231 electrically connects, the second motor 242 electrically connected with second driver 232 and with it is described
3rd motor 243 of the 3rd driver 233 electrical connection, the Digit Control Machine Tool also may be mounted at the clamping device 25 including one
On probe 21, the control centre includes a motion-control module 12, a measurement module 13 and a vectors calculation module 11, its
In,
The probe 21 includes a detection sensor, and the detection sensor is when with the touching of the edge of workpiece 3, to described
Measurement module sends a trigger signal;
The motion-control module 12 is used to drive the workbench, first driver 231, second driver
232 and the 3rd driver 233;
The measurement module 13 is used to call the motion-control module 12 so that the edge of the probe 21 and workpiece is not
Repeatedly touching, and respectively while the trigger signal is received every time, record the location point of the probe occurs with position
Two-dimensional coordinate parameter;
The vectors calculation module 11 is used for according to multiple two-dimensional coordinate parameters, calculate a rotating center and
One workpiece rotates angle correction, and the rotating center and workpiece rotation angle correction are compiled into a rotation and referred to
Order, send the rotation instruction to the motion-control module 12.
The measurement module 13 be used for cause probe 21 occur to touch twice with four edges of workpiece, and record this eight
The two-dimensional coordinate parameter of individual location point, wherein,
As shown in figure 3, the measurement module 13 by touched at workpiece first edge two location points be recorded as A11,
A12;
Two location points touched at the workpiece second edge adjacent with workpiece first edge are recorded as A21, A22;
Two location points touched in workpiece threeth edge relative with workpiece first edge are recorded as A31, A32;
Two location points touched in workpiece fourth edge relative with workpiece second edge are recorded as A41, A42;
It is reference vector point P1 that the vectors calculation module, which is used for location point A11 and location point A31 mid point recordings,;
It is reference vector point P2 by location point A21 and location point A41 mid point recordings
It is reference vector point P3 by location point A12 and location point A32 mid point recordings;
It is reference vector point P4 by location point A22 and location point A42 mid point recordings;
The vectors calculation module is additionally operable to according to reference vector point P1, reference vector point P2, reference vector point P3 and ginseng
Examine vector point P4 and calculate rotating center and workpiece the rotation angle correction.
Digit Control Machine Tool includes a correction module 14, and the correction module is used in reference vector point P1, P2, P3 and P4
When any two is equal, described reference vector point P1, P2, P3 and P4 are removed, and call the measurement module.
Vectors calculation module 11 is for calculating between line and reference vector point P2, P4 between reference vector point P1, P3
Line caused by intersection point P0, and the intersection point P0 is defined as the rotating center.
The vectors calculation module 11 is according to the line between reference vector point P1, P3 and the angle of horizontal direction
Size, calculate the workpiece rotation angle correction.
Present invention additionally comprises a kind of positioning and processing method, and it uses described Digit Control Machine Tool, and it comprises the following steps:
Step 1, the measurement module call the motion-control module so that the edge difference position of the probe and workpiece
Put generation repeatedly touching;
Step 2, while the trigger signal that the probe is sent is received every time, record the position of the probe
The two-dimensional coordinate parameter of point;
Step 3, the vectors calculation module calculate workpiece rotation according to the two-dimensional coordinate parameter of multiple location points
Turn center and workpiece rotation angle correction, and the rotating center and workpiece rotation angle correction are compiled into one
Rotation instruction;
Step 4, by it is described rotation instruction pass to the motion-control module so that the workbench carries out rotation and repaiied
Just.
In step 1 so that probe occurs to touch twice with four edges of workpiece, and records this eight location points
Two-dimensional coordinate parameter, wherein, two location points touched at workpiece first edge are recorded as A11, A12;Will with workpiece
Two location points touched at the adjacent workpiece second edge in one edge are recorded as A21, A22;Will with workpiece first edge phase
To two location points touching of the edge of workpiece the 3rd be recorded as A31, A32;By in the workpiece relative with workpiece second edge
Two location points that 4th edge is touched are recorded as A41, A42;It is ginseng by location point A11 and location point A31 mid point recordings
Examine vector point P1;It is reference vector point P2 by location point A12 and location point by location point A21 and location point A41 mid point recordings
A32 mid point recordings are reference vector point P3;It is reference vector point P4 by location point A22 and location point A42 mid point recordings.
Step 3 includes:
Step 3.1, by location point A11 and location point A31 mid point recordings it is reference vector point P1;
It is reference vector point P2 by location point A21 and location point A41 mid point recordings
It is reference vector point P3 by location point A12 and location point A32 mid point recordings;
It is reference vector point P4 by location point A22 and location point A42 mid point recordings;
When step 3.2, any two in reference vector point P1, P2, P3 and P4 are equal, the reference vector point is removed
P1, P2, P3 and P4, and enter step 1, it is on the contrary then enter step 3.3.
Step 3.3, according to reference vector point P1, reference vector point P2, reference vector point P3 and reference vector point P4 calculate
Go out rotating center and workpiece the rotation angle correction.
In step 3, the line calculated between line and reference vector point P3, P4 between reference vector point P1, P3 produces
Intersection point P0, and the intersection point P0 is defined as the rotating center.
In step 3, according to the line and the size of the angle of horizontal direction between reference vector point P1, P3, calculate
Go out the workpiece rotation angle correction.
Although the foregoing describing the embodiment of the present invention, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
On the premise of principle and essence from the present invention, various changes or modifications can be made to these embodiments, but these are changed
Protection scope of the present invention is each fallen within modification.