CN100343770C - Intelligent control system for digital control machine tool and control method thereof - Google Patents

Intelligent control system for digital control machine tool and control method thereof Download PDF

Info

Publication number
CN100343770C
CN100343770C CNB2005100446009A CN200510044600A CN100343770C CN 100343770 C CN100343770 C CN 100343770C CN B2005100446009 A CNB2005100446009 A CN B2005100446009A CN 200510044600 A CN200510044600 A CN 200510044600A CN 100343770 C CN100343770 C CN 100343770C
Authority
CN
China
Prior art keywords
workpiece
host computer
numerical control
lathe
slave computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100446009A
Other languages
Chinese (zh)
Other versions
CN1740932A (en
Inventor
张承瑞
徐晓东
邵峰
王金江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University
Original Assignee
Shandong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University filed Critical Shandong University
Priority to CNB2005100446009A priority Critical patent/CN100343770C/en
Publication of CN1740932A publication Critical patent/CN1740932A/en
Application granted granted Critical
Publication of CN100343770C publication Critical patent/CN100343770C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an intelligent control system of numerical control lathes and a control method of numerical control lathes. The present invention solves the problems that the existing numerical control lathe as a contact type measuring device can only statically measure workpieces but can not be combined with a numerical control system for providing on-line measurement, and processing and technology are separated to be respectively completed by different workers so that technological design periods can be prolonged. Therefore, the present invention has the advantages of reasonable arrangement, high automatization degree, low cost, easy combination with the existing lathes, capability of effectively shortening technological design periods, etc. The present invention has the technical scheme that the intelligent control system of numerical control lathes is composed of a numerical control lathe, an upper position machine, a lower position machine, etc., wherein an open type control system is formed from the upper position machine and the lower position machine, and the upper position machine and the lower position machine are contacted through a USB in the mode of serial communication; the numerical control lathe is also provided with a photoelectric detection device which is connected with the lower position machine, and the photoelectric detection device can position and measure workpieces under the condition without contacting the workpieces on a revolving body and then feeds the measurement information back to the upper position machine in order to realize on-line detection.

Description

A kind of intelligence control system of numerically controlled lathe and control method thereof
Technical field
The present invention relates to a kind of numerically controlled lathe, relate in particular to a kind of intelligence control system and control method thereof of numerically controlled lathe.
Background technology
Since digital control system was invented from the fifties, experienced the process to computer based CNC development by hardwire numerical control device NC, the computer based open architecture makes digital control system that better generality, flexibility, adaptability, extendability be arranged, and develops to intelligent, networked direction.High-end numerically-controlled machine has the function that integrates processing and measure, mainly contain the non-contact laser measuring system that is used for boring and milling machine contact type probe gauge head or costliness at present, the measurement sensor-based system that adopts in car mill revolution class machining tool mostly is contact measuring apparatus greatly.And these measurement mechanisms only are used for the location of workpiece or cutter usually, and fixed functions such as dimensional measurement do not have to realize and the intellectuality of process is finished in the combination of digital control system.Popular at present simultaneously following numerically-controlled machine does not all have measurement mechanism usually.
Summary of the invention
Purpose of the present invention is a contact measuring apparatus in order to solve existing numerically-controlled machine exactly, measuring workpieces statically, can't combine with digital control system on-line measurement is provided, processing is separated with technology, is finished respectively by different staff, the problem that causes the technological design cycle stretch-out, provide a kind of and have configuration rationally, the automaticity height, cost is lower, be easy to effectively to shorten the numerically controlled lathe intelligence control system and the control method thereof of advantages such as technological design cycle with existing lathe combination.
For achieving the above object, the present invention has adopted following technical scheme: a kind of intelligence control system of numerically controlled lathe, it is made up of numerically controlled lathe, host computer, slave computer, its adopts host computer and the open control system of slave computer composition, is finished by host computer promptly that the extraction of CAD graphical information, cutter path intelligent planning, technological parameter data base optimization, numerical control code generate automatically, the task of machining simulation;
Slave computer is installed on the numerically controlled lathe, carries out on-line measurement, Electric Machine Control, and the processing of workpiece is finished in straight line, circular interpolation computing;
Get in touch by the USB serial communication between host computer and slave computer;
Also have photoelectric detection system on numerically controlled lathe, this photoelectric detection system is connected with slave computer, and can workpiece be positioned and dimensional measurement not contacting under the revolving body workpieces condition, then metrical information is fed back to host computer, realizes online detection.
Described host computer is the PC computing machine, and described slave computer is that model is the dsp chip of TMS320LF2407A, and described USB serial communication is the high speed USB chip that has parallel bus and local DMA transmittability, and its model is PDIUSBD12.
Described photoelectric detection system comprises handle of a knife on the lathe saddle that is installed in numerically controlled lathe for it, and the cutter head that is connected with handle of a knife, and at the photoelectric detector that inboard, cutter head two opposite end has at least one pair of to match, photoelectric detector is connected with slave computer.
Described cutter head is the U type, and photoelectric detector is a pair of laser diode and photodiode, is installed in the relevant position of two parallel relatively end inboards of cutter head respectively.
A kind of intelligence control method of numerically controlled lathe, its step is:
The a host computer extracts the CAD graphical information;
The b slave computer is waited for the numerically controlled lathe initialization order of host computer;
The c host computer sends measuring command by the USB serial communication to slave computer, and obtains the metrical information of feedback; Slave computer starts original dimension and the locating information that measurement function obtains workpiece, and feeds back to host computer;
The d host computer based on the gained metrical information to cutter path carry out intelligent planning, based on intelligent technological data bank select working process parameter, generate numerical control code, machining simulation and numerical control code inspection automatically, the numerical control code that will check sends slave computer to and controls and monitor the slave computer duty;
The e slave computer receives numerical control code, and the control motor is by the numerical control instruction operation, finishes the status information of digital control processing in will processing simultaneously and feeds back to host computer;
After f machined, host computer started measurement function once more, and workpiece size and shape are detected automatically, realized the ACTIVE CONTROL of crudy;
The g slave computer is accepted to start once more after the host computer order measurement function quality states such as the critical size of workpiece and shape is carried out online detection, and the feedback host computer.
Host computer reads the Drawing Interchange File DXF in the CAD drawing in described step a, judges whether to be entity section when reading, and promptly constitutes the coordinate of each entity of profile, if entity section judges that then entity type is straight line, circle or circular arc; If straight line then will extract the starting point and the terminal point coordinate of straight line; If circular arc then will extract the coordinate in the center of circle and the radian value of radius and start, end; Because the order of entity information is the series arrangement when drawing in the DXF file, therefore need sort, and reformulates the profile of part;
In described steps d,, promptly set up the outline description chain of part to be processed to the cutter path intelligent planning; Friendship is asked in skew piecemeal then, carries out topology and checks to eliminate the selfing of skew profile; Adopt parallel merging and equal space line cutting optimization method to get final machining locus at last, generate cutter location file;
Select working process parameter based on intelligent technological data bank, after it contrasts according to the data in processing conditions parameter and the technological data bank, choose reasonable cutting technology parameter and corresponding cutter parameters;
Numerical control code generates automatically, host computer reads in cutter location file line by line, judgement is a technological parameter, or processing entity, if technological parameter is then noted its numerical value, if processing entity then writes down its type, parameters such as starting point and terminal point, according to the call format of used digital control system, write in the numerical control code file;
Machining simulation and numerical control code inspection, it is tested to whole numerical control program correctness, is the inverse process that generates the processing instruction, is about to numerical control program and is converted into graphic file, and it is showed.
In described step c, slave computer control photoelectric detection system carries out the surveying work process and is, at first, numerically-controlled machine starts back tool rest and returns lathe zero point earlier, and make measurement mechanism be in the working position by the tool changing order, be measurement mechanism towards to be processed, promptly set up the position of measurement mechanism in lathe coordinate system this moment; X for workpiece revolution class machining tool workpiece coordinate system is that the centre of gyration overlaps with the lathe coordinate system initial point to initial point usually;
Secondly, determine the position of workpiece coordinate system initial point in lathe coordinate system, it comprises that workpiece coordinate system X is to true origin determining in the lathe coordinate system position, measurement mechanism with knife rest along Z to moving to the most close spindle chuck position, this position control system can be provided with, Z is to stop motion, then knife rest along X to close to workpiece, in this process, because blocking of workpiece, optical signals will inevitably take place at the optical pickup apparatus place has to nothing, the process of growing out of nothing again, and then be converted into voltage from low to high, process from high to low again, be that change in voltage exists one to go up jumping edge and a negative edge, this variation can cause the capture interrupt of slave computer, in this way, system can survey the position of level saltus step place, and the outline position place of workpiece just, the position of level saltus step place, the saltus step of twice level, two coordinate figure X1 that can make that two profiles of system log (SYSLOG) workpiece make progress at lathe coordinate system X and X2, workpiece coordinate system initial point X0=(X1+X2)/2 then, the diameter D=(X2-X1)/2 of workpiece;
Workpiece coordinate system Z is to true origin determining in the lathe coordinate system position, in previous step is rapid, owing to determined X0, then knife rest along X to laser beam emitting device being adjusted to the X0 position, this moment, X was to stopping, then knife rest along Z to moving to its positive dirction, when the measuring position is in the end face of workpiece, the optical signals at optical pickup apparatus place does not have to having, when electric signal changes from high to low, system detects the Z of saltus step place of level to the position, its be workpiece coordinate system Z to true origin in the lathe coordinate system position;
Once more, the mensuration of workpiece size, the mensuration process of workpiece size, the process of setting up of identical workpiece coordinate system can be determined the overall size information of any position workpiece;
At last, after measurement finished, knife rest returned the tool changing point, makes the knife rest transposition by the tool changing order, and the cutter that subsequent processing is used is in the place, working position, carries out normal cut then and gets final product.
In described step e, the slave computer pre-service finishes and calculates its call parameter, optimizes the path according to host computer then and carries out interpolation calculating, calculates interpolation data in real time, and sends into output module, moves with drive motor.
Described interpolation is calculated and is adopted the data sampling interpolation, comprises linear interpolation and circular interpolation method.
The present invention adopts host computer+slave computer (PC+NC) to constitute open architecture, select for use high-speed dsp to finish the slave computer kernel task of real-time as CPU, realize motor control and online detection in real time, and finish the task of non real-time by host computer, extract such as the graphical information in the programming module, realize the mutual of upper and lower machine information by the USB serial communication.A kind of contactless optical electrical measurement of the creationary design of system has realized the automatic foundation of workpiece coordinate system; And, realize that tool dimension compensates automatically by the process dimension to workpiece in the process is carried out online detection; And after process finishing to the automatic detection of workpiece size and shape, realize the ACTIVE CONTROL of crudy; Employing makes full use of the geological information of the AUTOCAD figure of extraction based on the automatic programming system of figure, and in conjunction with the real profile information of obtaining by measurement, plans the turning machining path automatically, realizes automatic programming function.By introducing measuring system, improved precision, production efficiency and the automaticity of numerically controlled lathe, make that based on the machining path planning function of measuring the process operation of numerically controlled lathe is easier simultaneously, it is intelligent that numerically controlled lathe has been had.By enforcement of the present invention, can improve the production efficiency of numerically controlled lathe, promote the level of intelligent and robotization, reduce requirement to operating personnel, help realizing intelligent control.Advantage of the present invention also has, and contactless fast on-line measurement device has easy for installationly, uses flexibly, makes easily, and is with low cost; Metrical information directly feeds back to host computer, by its intelligent planning of realizing the cutter machining path, can reduce the intervention of workman to the numerical control process; Technology and processing are combined, and the intelligence learning function by interactively technological parameter selection or technological data bank can add technological design in the digital control processing process easily, has greatly shortened the technological design cycle; CAD graphical information abstraction function and automatic programming function, exempted the programming of traditional G code, can reduce numerically controlled lathe operating personnel's labor capacity, make numerical control turning processing easier.
Description of drawings
Fig. 1 is a system chart of the present invention;
Fig. 2 is a photoelectric detection system structural representation of the present invention;
Fig. 3 is a control flow chart of the present invention;
Fig. 4 determines the Z axle structural representation at zero point of coordinate system for photoelectric detection system of the present invention;
Fig. 5 determines the X-axis structural representation at zero point of coordinate system for photoelectric detection system of the present invention.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
Fig. 1 has provided the composition of control system of the present invention.It has host computer 1, and host computer 1 is a computing machine; Slave computer 2 is the control device on the numerically controlled lathe, and it is the dsp chip of TMS320LF2407A for model; It is to have adopted the high speed USB that has parallel bus and local DMA transmittability that 2 of host computer 1 and slave computers are got in touch it by USB serial communication 3, and its model is PDIUSBD12.Host computer 1 can carry out intelligent planning, the technological parameter data base optimization of extraction, the cutter path of CAD graphical information, the generation and the machining simulation of numerical control code by corresponding software.Operation, Straight Line and Arc interpolation that slave computer 2 is realized on-line measurements by photoelectric detection system 3 and controlled motor compensate the processing capacity of cutter.Total system constitutes open system with host computer 1 and slave computer 2, and photoelectric detection system 3 can arrive host computer 1 with the information online feedback that detects, and carries out intelligent planning by 1 pair of cutter machining path of host computer.
Fig. 2, photoelectric detection system 3 have a handle of a knife 4, and it can be installed on the lathe saddle of numerically controlled lathe, and cutter head 5 is arranged on the handle of a knife 4, and two parallel end inboards of cutter head 5 are the photoelectric detector 6 that a pair of laser diode and photodiode are formed.This photoelectric detection system can move with lathe saddle, finishes the measurement to the bad part of changing a job.Measurement result can be by directly feeding back to host computer 1 after the corresponding processing of circuit.
Fig. 3 is for having provided control flow chart of the present invention.Its course of work is:
A host computer 1 extracts the CAD graphical information, each CAD system all has the data file of oneself, data file divides graph data file, geometric model file and product model file several, DXF is the Graphics Data File of AutoCAD system, ASCII character text with special form, it is easy to by other routine processes, be mainly used in the program of high level language and being connected of AutoCAD system of realizing, or other CAD system and AutoCAD systems exchange graphic file, the DXF file is formed by paired code with the value of associated codes in essence.These codes (being group code) have not only been pointed out the type of related number (class value) thereafter, and class value pairing therewith, by group code and the class value that uses these pairings, the DXF file is organized into the zone, in the DXF file, each group code and each class value all respectively account for delegation, group code is the positive integer of a non-zero, be equivalent to the data type code, the implication of each group code is appointed by the AutoCAD system, the second behavior class value of group, the value that is equivalent to data, the form that adopts depends on the type of the group of group code appointment, group code and class value are represented the implication of data and its value altogether, and each zone all is group code 0 beginning of following character string SECTION thereafter with, then is the character string of group code 2 and expression zone name, each zone all is made up of the group code and the class value of its element of definition, and and then finish in group code 0 this zone of expression of character string ENDSEC thereafter.Analyze the geological information of turning processing parts, the i.e. figure that from CAD software, obtains, can think from DXF read the geological information of part mainly form by straight line and circular arc, for the surface profile section of forming by other curve, requirement according to machining precision, can adopt interpolation algorithm that it is scaled straight line or circular arc, straight line is described, the method of circular arc and screw thread is a lot, data description according to the DXF file, straight line is described with starting point coordinate and terminal point coordinate, circular arc then adopts central coordinate of circle, radius, the circular arc start angle, the circular arc termination point is described, automated programming for the turning processing parts, the part of most critical is exactly to constitute the coordinate of each entity of profile in the DXF file, all entities all illustrate in " ENTITIES " zone, according to LINE in " ENTITIES ", the explanation form of entities such as ARC, can read its inscape, as: starting point, terminal point, the center of circle, start angle, termination point, radius etc., press machine direction and arrange the entity that constitutes profile, as straight line, circular arc, screw thread, supplementary structure, when extracting graphical information, open the dxf file, read in a line item, judge whether to be entity section, if entity section, judge that then entity type is a straight line, circle or circular arc, if straight line, then to extract the starting point and the terminal point coordinate of straight line, if circle then will extract the coordinate and the radius in the center of circle, if circular arc, also need extract initial, the radian value of terminal point, because the order of entity information is the series arrangement when drawing in the dxf file, therefore need sort, and reformulates the profile of part;
B slave computer 2 is waited for the numerically controlled lathe initialization order of host computer 1;
C host computer 1 sends measuring command by USB serial communication 3 to slave computer 2, slave computer 2 obtains original dimension and locating information after by photoelectric detection system workpiece being detected, and send into host computer 1 by the USB serial communication, at first, numerically-controlled machine starts back tool rest and returns lathe zero point earlier, and make measurement mechanism be in the working position by the tool changing order, promptly measurement mechanism is towards to be processed;
Secondly, determine the position of workpiece coordinate system initial point in lathe coordinate system, it comprises that workpiece coordinate system X is to true origin determining in the lathe coordinate system position, measurement mechanism with knife rest along Z to moving to the most close spindle chuck position, this position control system can be provided with, Z is to stop motion, then knife rest along X to close to workpiece, in this process, because blocking of workpiece, optical signals will inevitably take place at the optical pickup apparatus place has to nothing, the process of growing out of nothing again, and then be converted into voltage from low to high, process is from high to low jumped edge and a negative edge on promptly there is one in change in voltage again, and this variation can cause the capture interrupt of slave computer (2), in this way, system can survey the position of level saltus step place, and the outline position place of workpiece just, the position of level saltus step place, the saltus step of twice level, two coordinate figure X1 that can make that two profiles of system log (SYSLOG) workpiece make progress at lathe coordinate system X and X2, then workpiece coordinate system initial point X0=(X1+X2)/2;
Workpiece coordinate system Z is to true origin determining in the lathe coordinate system position, in previous step is rapid, owing to determined X0, then knife rest along X to laser beam emitting device being adjusted to the X0 position, this moment, X was to stopping, then knife rest along Z to moving to its positive dirction, when the measuring position is in the end face of workpiece, the optical signals at optical pickup apparatus place does not have to having, when electric signal changes from high to low, system detects the Z of saltus step place of level to the position, its be workpiece coordinate system Z to true origin in the lathe coordinate system position;
Once more, the mensuration of workpiece size, the mensuration process of workpiece size, the process of setting up of identical workpiece coordinate system can be determined the overall size information of any position workpiece;
At last, after measurement finished, knife rest returned the tool changing point, makes the knife rest transposition by the tool changing order, and the cutter that subsequent processing is used is in the place, working position, carries out normal cut then and gets final product;
D host computer 1 according to gained information to the cutter path intelligent planning, based on intelligent technological data bank select working process parameter, numerical control code generation automatically, machining simulation and numerical control code inspection, the numerical control code that will check sends slave computer 2 to and controls and monitor slave computer 2 duties;
When the establishment nc program, determine technological parameters such as the speed of mainshaft and speed of feed, and the speed of mainshaft is by cutting speed, tool radius is determined, cutting speed is again by tool life, workpiece material, tool type and material and cutting depth, cutting width, factors such as cutter tooth number are determined, these parameters influence each other to each other, concern very complicated, when program is drawn, in order to determine these parameters, the programming personnel need consult the form of large amount of complex, and carry out complicated calculating, not only waste time and energy, and make mistakes easily, therefore set up a convenient and practical technological data bank, its accumulates and has stored the production and the experimental data of a large amount of metal cuttings, can handle by theoretical and empirical mode according to user's requirement, calculate required fast and cutting data that process is optimized, each successful processing instance is stored, when the processing instance of the success of new workpiece processing condition and database storing is similar, just can call original similar machined parameters, suitably modification just can be used as the machined parameters of new workpiece, if cutting effect pretty good can store again, thus abundant cutting database.The cutter parameters database comprises cutter name, cutter number, cutter compensation number, handle of a knife length, handle of a knife width, nose angle length, nose radius, tool orthogonal rake, tool clearance, cutter auxiliary angle, lathe tool type, biased direction etc.Cutting parameter comprises Selection of Cutting, the speed of mainshaft, cutting depth and width etc.At first the processing conditions parameter is passed to the metal cutting data of database input table by the window of interface from automatic programming system, behind the cutting parameter that obtains reasonably optimizing, transfer back in the automatic programming system, realized selecting working process parameter based on intelligent technological data bank;
Combining with digital control turning machining characteristics is set up the outline description chain of part to be processed; Friendship is asked in skew piecemeal, carries out topology and checks to eliminate the selfing of skew profile; Adopt parallel merging and equal space line cutting optimization method to get final machining locus, finish, generate cutter location file the cutter intelligent planning; It disperses surface profile and is a series of straight line and circular arc, set up unified expression way to the piece surface profile, by these straight lines and circular arc are offset the equidistant profile of asking after friendship obtains being offset piecemeal, after the contour surface employing frontier point description with part, just obtained the whole profile boundary chain, its be through just can forming a skew boundary chain that only is made of straight line and circular arc after discrete processes, the skew of parts profile all relative with cutting it operate; In this process, adopted the contour offset algorithm, it was divided into for three steps, (1) skew piecemeal, in order to handle conveniently, we have stipulated an offset direction, each contour segment all needs promptly to be offset towards right outwardly, this direction is the unified offset direction of each contour segment, concerning circular arc, considers its directivity, branch along circle and contrary circle is arranged, and the outside skew of contrary circle is a kind of long trend is a kind of contraction along the outside skew of circle trend that expands; (2) ask friendship piecemeal, in the boundary chain each section profile is after being offset piecemeal, can obtain a new boundary chain, traversal this edge circle chain, with the adjacent profile find intersection of each section profile in the chain with the last period, the starting point of each contour segment and end point values are revised as the intersection value of being asked successively, just obtain a preliminary skew profile.For some the profile of cusp is arranged, do not having intersection point behind the contour offset and between adjacent profile, then need between this, to insert a transition arc; (3) paragraph by paragraph examination, for some depression profiles, less as himself size, in constantly being offset, can progressively shrink, to the selfing that forms profile the most at last, so will check, find that this variation will delete the contour segment of correspondence from boundary chain, use hypomere profile and profile the last period find intersection again then.
Each row in the cutter location file has been represented one section entity, therefore, when handling, only need read in cutter location file line by line, judge it is technological parameter according to identifier, or processing entity, if technological parameter is then noted its numerical value, if processing entity then writes down its type, parameter such as starting point and terminal point according to the call format of used digital control system, is written in the numerical control code file;
Simulation process is actually the inverse process that generates the processing instruction, is about to numerical control program and is converted into graphic file, and it is showed, and the code of checking is sent into slave computer 2; In digital control processing, digital control system is by reading nc program, convert thereof into gating pulse, the processing of workpiece is carried out in the feed motion of rotation of control main shaft of numerical control machine tool and all directions, the correctness of numerical control program, determined process tool can process qualified part safely and effectively, therefore, concerning automated programming, carry out first being processed numerical control program being sent to digital control system, the correctness of check program is an extremely important ring; Along with computer technology, the development of aspect such as computer graphics and cad technique, at present existing many methods can be used for the computing machine checking of job sequence, method commonly used is to adopt the wire frame agent approach to carry out program verification, be used in and show cutter path on the video screen, during actual verification, cutter path can be simulated with the vector between the demonstration cutter location, process for two-dimensional silhouette, when carrying out machining simulation, only need verify cutter path, and do not consider the cutter over-cutting, whole simulation process is actually the inverse process that generates the processing instruction, is about to numerical control program and is converted into graphic file, and it is showed; Correctly reading and discerning of numerical control code file is the prerequisite and the basis of carrying out machining simulation, and this process is almost opposite with the described cutter location file processing procedure of last joint, and its concrete steps are as follows:
1), each continuous instruction initial value of imitating is set;
2), read in delegation's numerical control code file because each row NC file is represented a procedure of processing, promptly represent a processing entity, analyze G code, can draw entity type; Except that the X, the Y that occur for the first time, Z command value presentation-entity starting point coordinate, this type of command value is thereafter all represented its terminal point coordinate, and at this, the continuous command processing method of imitating is identical with the continuous effect command processing method of cutter location file processing procedure,
In processing procedure, if what adopt when program composition is the absolute coordinates programming, what obtain is the absolute coordinates of programming track, if numerical control code adopts relative coordinate to represent when output, then must carry out coordinate transform, since second, every bit a bit converted for basic point in the past, obtain its absolute coordinates, the figure of gained is cutter heart track like this;
E slave computer 2 receives numerical control codes,, finishes the status information of digital control processing in will processing simultaneously and feeds back to host computer 1 by the numerical control instruction operation by program controlled motor; Slave computer 2 adopts relatively interpolation of pointwise, and the running of control step motor makes stepper motor have synchronizing apart from working method, half step pitch working method and 1/4th step pitch working methods, finishes the processing to workpiece.
Wherein for stepper motor, slave computer 2 control CPLD output pulse square waves are input to stepper motor driver, and are for servomotor, identical with stepper motor when controlling with impulse form; Adopt the PCM56U chip when controlling with the analog quantity form; Slave computer 2 has also been transplanted uc/os--II operating system; Adopt data sampling interpolation linear interpolation and circular interpolation mode, the drive motor operation;
After f machined, host computer 1 started measurement function once more, and workpiece size and shape are detected automatically, realized the ACTIVE CONTROL of crudy;
G slave computer 2 is accepted to start once more after host computer 1 order measurement function quality states such as the critical size of workpiece and shape is carried out online detection, and feedback host computer 1, after host computer 1 is optimized, beams back 2 pairs of tool lengths of slave computer and radius and make corresponding compensation, to improve machining precision.

Claims (9)

1, a kind of intelligence control system of numerically controlled lathe, it is made up of numerically controlled lathe, host computer (1), slave computer (2), it is characterized in that: its adopts host computer (1) and slave computer (2) to form open control system, is finished by host computer (1) promptly that the extraction of CAD graphical information, cutter path intelligent planning, technological parameter data base optimization, numerical control code generate automatically, the task of machining simulation;
Slave computer (2) is installed on the numerically controlled lathe, carries out on-line measurement, Electric Machine Control, and the processing of workpiece is finished in straight line, circular interpolation computing;
Get in touch by USB serial communication (3) between host computer (1) and slave computer (2);
Also have photoelectric detection system on numerically controlled lathe, this photoelectric detection system is connected with slave computer (2), and can workpiece be positioned and dimensional measurement not contacting under the revolving body workpieces condition, then metrical information is fed back to host computer, realizes online detection.
2, the intelligence control system of numerically controlled lathe according to claim 1, it is characterized in that: described host computer (1) is a computing machine, described slave computer (2) is the dsp chip of TMS320LF2407A for model, described USB serial communication is the high speed USB that has parallel bus and local DMA transmittability, and its model is PDIUSBD12.
3, the intelligence control system of numerically controlled lathe according to claim 1, it is characterized in that: described photoelectric detection system comprises the handle of a knife (4) on the lathe saddle that is installed in numerically controlled lathe, and the cutter head (5) that is connected with handle of a knife (4), in inboard, cutter head (5) two opposite end at least one pair of photoelectric detector that matches (6) is arranged, photoelectric detector (6) is connected with slave computer (2).
4, the intelligence control system of numerically controlled lathe according to claim 3, it is characterized in that: described cutter head (5) is the U type, photoelectric detector (6) is a pair of laser diode and photodiode, is installed in the relevant position of two parallel relatively end inboards of cutter head (5) respectively.
5, a kind of intelligence control method of numerically controlled lathe, it is characterized in that: it has the following steps
A host computer (1) extracts the CAD graphical information;
B slave computer (2) is waited for the numerically controlled lathe initialization order of host computer;
C host computer (1) sends measuring command by USB serial communication (3) to slave computer (2), and obtains the metrical information of feedback; Slave computer (2) starts original dimension and the locating information that measurement function obtains workpiece, and feeds back to host computer (1);
D host computer (1) based on the gained metrical information to cutter path carry out intelligent planning, based on intelligent technological data bank select working process parameter, generate numerical control code, machining simulation and numerical control code inspection automatically, the numerical control code that will check sends slave computer (2) to and controls and monitor slave computer (2) duty;
E slave computer (2) receives numerical control code, and the control motor is by the numerical control instruction operation, finishes the status information of digital control processing in will processing simultaneously and feeds back to host computer;
After f machined, host computer (1) started measurement function once more, and workpiece size and shape are detected automatically, realized the ACTIVE CONTROL of crudy;
G slave computer (2) is accepted to start once more after host computer (1) order measurement function quality states such as the critical size of workpiece and shape is carried out online detection, and feedback host computer (1).
6, the intelligence control method of numerically controlled lathe according to claim 5 is characterized in that:
Host computer in described step a (1) reads the Drawing Interchange File DXF in the CAD drawing, judges whether to be entity section when reading, and promptly constitutes the coordinate of each entity of profile, if entity section judges that then entity type is straight line, circle or circular arc; If straight line then will extract the starting point and the terminal point coordinate of straight line; If circle then will extract the coordinate and the radius in the center of circle; If circular arc also need extract radian value initial, terminal point; Because the order of entity information is the series arrangement when drawing in the DXF file, therefore need sort, and reformulates the profile of part;
In described steps d,, promptly set up the outline description chain of part to be processed to the cutter path intelligent planning; Friendship is asked in skew piecemeal then, carries out topology and checks to eliminate the selfing of skew profile; Adopt parallel merging and equal space line cutting optimization method to get final machining locus at last, generate cutter location file;
Select working process parameter based on intelligent technological data bank, after it contrasts according to the data in processing conditions parameter and the technological data bank, choose reasonable cutting technology parameter and corresponding cutter parameters;
Numerical control code generates automatically, host computer (1) reads in cutter location file line by line, judgement is a technological parameter, or processing entity, if technological parameter is then noted its numerical value, if processing entity then writes down its type, parameters such as starting point and terminal point, according to the call format of used digital control system, write in the numerical control code file;
Machining simulation and numerical control code inspection, it is tested to whole numerical control program correctness, is the inverse process that generates the processing instruction, is about to numerical control program and is converted into graphic file, and it is showed.
7, the intelligence control method of numerically controlled lathe according to claim 5 is characterized in that: in described step c, slave computer (2) control photoelectric detection system carries out the surveying work process and is,
At first, numerically-controlled machine starts back tool rest and returns lathe zero point earlier, and makes measurement mechanism be in the working position by the tool changing order, and promptly measurement mechanism has promptly been set up the position of measurement mechanism in lathe coordinate system this moment towards to be processed; For workpiece revolution class machining tool, the X of workpiece coordinate system is that the centre of gyration overlaps with the lathe coordinate system initial point to initial point usually;
Secondly, determine the position of workpiece coordinate system initial point in lathe coordinate system, it comprises that workpiece coordinate system X is to true origin determining in the lathe coordinate system position, measurement mechanism with knife rest along Z to moving to the most close spindle chuck position, this position control system can be provided with, Z is to stop motion, then knife rest along X to close to workpiece, in this process, because blocking of workpiece, optical signals will inevitably take place at the optical pickup apparatus place has to nothing, the process of growing out of nothing again, and then be converted into voltage from low to high, process from high to low again, be that change in voltage exists one to go up jumping edge and a negative edge, this variation can cause the capture interrupt of slave computer (2), in this way, system can survey the position of level saltus step place, and the outline position place of workpiece just, the position of level saltus step place, the saltus step of twice level, two coordinate figure X1 that can make that two profiles of system log (SYSLOG) workpiece make progress at lathe coordinate system X and X2, workpiece coordinate system initial point X0=(X1+X2)/2 then, the diameter D=(X2-X1)/2 of workpiece;
Workpiece coordinate system Z is to true origin determining in the lathe coordinate system position, in previous step is rapid, owing to determined X0, then knife rest along X to laser beam emitting device being adjusted to the X0 position, this moment, X was to stopping, then knife rest along Z to moving to its positive dirction, when the measuring position is in the end face of workpiece, the optical signals at optical pickup apparatus place does not have to having, when electric signal changes from high to low, system detects the Z of saltus step place of level to the position, its be workpiece coordinate system Z to true origin in the lathe coordinate system position;
Once more, the mensuration of workpiece size, the mensuration process of workpiece size, the process of setting up of identical workpiece coordinate system can be determined the overall size information of any position workpiece;
At last, after measurement finished, knife rest returned the tool changing point, makes the knife rest transposition by the tool changing order, and the cutter that subsequent processing is used is in the place, working position, carries out normal cut then and gets final product.
8, the intelligence control method of numerically controlled lathe according to claim 5, it is characterized in that: in described step e, slave computer (2) pre-service finishes and calculates its call parameter, optimize the path according to host computer (1) then and carry out interpolation calculating, calculate interpolation data in real time, and send into output module, move with drive motor.
9, the intelligence control method of numerically controlled lathe according to claim 8 is characterized in that: described interpolation is calculated and is adopted the data sampling interpolation, comprises linear interpolation and circular interpolation method.
CNB2005100446009A 2005-09-14 2005-09-14 Intelligent control system for digital control machine tool and control method thereof Expired - Fee Related CN100343770C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100446009A CN100343770C (en) 2005-09-14 2005-09-14 Intelligent control system for digital control machine tool and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100446009A CN100343770C (en) 2005-09-14 2005-09-14 Intelligent control system for digital control machine tool and control method thereof

Publications (2)

Publication Number Publication Date
CN1740932A CN1740932A (en) 2006-03-01
CN100343770C true CN100343770C (en) 2007-10-17

Family

ID=36093348

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100446009A Expired - Fee Related CN100343770C (en) 2005-09-14 2005-09-14 Intelligent control system for digital control machine tool and control method thereof

Country Status (1)

Country Link
CN (1) CN100343770C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923335A (en) * 2010-08-10 2010-12-22 济南大学 Open type numerical control system directly facing to machining path points based on kernel platform
CN101733678B (en) * 2009-12-04 2013-04-24 北京数码大方科技股份有限公司 Graphical cutter position tracking and controlling system and method
CN112355711A (en) * 2020-10-20 2021-02-12 苏州浩智工业控制技术有限公司 Workpiece machining method and system based on CNC machine tool

Families Citing this family (56)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100435055C (en) * 2007-08-23 2008-11-19 上海交通大学 Method for planning smooth and non-interference tool route of 5-axis numerical control machining
DE102009024101A1 (en) * 2009-04-17 2010-10-21 Robert Bosch Gmbh Method for processing process state data and / or machine state data of a machine tool
CN101882225B (en) * 2009-12-29 2013-09-18 北京中科辅龙计算机技术股份有限公司 Engineering drawing material information extraction method and system based on template
CN101776882B (en) * 2010-01-19 2012-05-30 广东大族粤铭激光科技股份有限公司 Method for generating laser cutting program
CN102279587A (en) * 2010-06-12 2011-12-14 沈阳鼓风机集团股份有限公司 Two-dimensional digital control processing method for metal workpiece
JP2012053509A (en) * 2010-08-31 2012-03-15 Mitsubishi Heavy Ind Ltd Numerically controlled machine tool
CN102059635A (en) * 2010-11-22 2011-05-18 湖南大学 Typical part optimized grinding process integrated numerically controlled grinding system
CN102538696A (en) * 2010-12-17 2012-07-04 尖点科技股份有限公司 Machining tool detection method
CN102789198B (en) * 2011-05-18 2016-05-25 科德数控股份有限公司 Lathe and the On-line Measuring Method thereof of mixing with manual measurement are measured in sequencing automatically
CN102331745B (en) * 2011-09-20 2013-01-09 中达电通股份有限公司 Bag making machine control system using bus-type motion controller and control method thereof
CN102385344A (en) * 2011-09-23 2012-03-21 成都焊研威达科技股份有限公司 Automatic welding method based on reading of DXF-format file of Visual C#
CN102501139A (en) * 2011-11-02 2012-06-20 厦门大学 Online monitoring device for state of cutting tools
CN102541109B (en) * 2011-12-14 2014-08-13 北京卫星环境工程研究所 Method for manufacturing satellite star surface temperature-control multilayer
CN102707668A (en) * 2012-06-14 2012-10-03 苏州忠辉蜂窝陶瓷有限公司 Wear compensation method for tool processing honeycomb ceramic extrusion die
CN102855325A (en) * 2012-09-12 2013-01-02 四川九洲电器集团有限责任公司 Method and system for opening DXF (drawing exchange format) files
CN103116313B (en) * 2012-12-31 2018-07-31 深圳市配天智造装备股份有限公司 The method and numerically-controlled machine tool that workpiece surface is processed applied to numerically-controlled machine tool
EP2796952B1 (en) * 2013-04-25 2016-01-20 Siemens Aktiengesellschaft Numerical controller capable of changing the part program
CN103294010A (en) * 2013-05-13 2013-09-11 深圳众为兴技术股份有限公司 Control method and control device of digital control system and digital controller
CN103543690B (en) * 2013-09-12 2015-12-02 安徽省捷甬达智能机器有限公司 A kind of graphic interaction numerical-control processing method and device
WO2015181912A1 (en) * 2014-05-28 2015-12-03 三菱電機株式会社 Tool path generation device and method
CN104551341B (en) * 2014-11-25 2019-10-29 苏州谷夫道自动化科技有限公司 Numerical control ring welder and its interpolation control method
CN104570925B (en) * 2014-12-25 2017-11-14 北京数码大方科技股份有限公司 Identify teeth processing route generating method and device
CN106325215A (en) * 2015-06-30 2017-01-11 遵义林棣科技发展有限公司 Additional type numerically controlled lathe intelligent coding control system
CN106557065B (en) * 2015-09-29 2019-04-09 上海电气电站设备有限公司 A kind of method of calibration and system of the cutter compensation parameter based on numerically-controlled machine tool
CN106802633A (en) * 2015-11-26 2017-06-06 珠海市研泰电子科技有限公司 A kind of complex milling machine tool digital control system
CN106141447B (en) * 2016-07-14 2017-12-29 昆山嘉斯特自动化技术有限公司 Figure import feature is bound to the method for laser cutting machine
CN106272430B (en) * 2016-09-18 2018-12-07 珠海格力电器股份有限公司 Manipulator origin apparatus resetting method and device
CN107144272A (en) * 2017-04-07 2017-09-08 广东工业大学 A kind of method of workpiece sensing path planning
CN106950920A (en) * 2017-04-18 2017-07-14 大连奥托股份有限公司 Space circular arc interpolation method based on numerical control kind equipment
CN107225609B (en) * 2017-07-27 2019-07-09 拓卡奔马机电科技有限公司 A kind of cutting and its entangle knife control system and method
CN107807610A (en) * 2017-09-04 2018-03-16 昆明理工大学 The complex curved surface parts mechanical arm system of processing and method in a kind of feature based storehouse
CN107942929B (en) * 2017-12-13 2020-08-28 深圳普菲特信息科技股份有限公司 Control method of numerical control lathe based on neural network computing technology
CN108405696B (en) * 2018-02-06 2020-04-03 王玉国 Intelligent spinning system and spinning processing method
CN108459558B (en) * 2018-03-21 2024-04-19 苏州大学 Positioning measurement device and positioning measurement method
CN108710343B (en) * 2018-04-02 2021-01-29 厦门大学深圳研究院 Intelligent control method, device, equipment and system for manufacturing unit of state monitoring
CN109324575B (en) * 2018-09-13 2019-12-03 蒂森克虏伯弹簧稳定杆(平湖)有限公司 The balancing pole processing technology of balancing pole intelligent compensating method and application this method
CN109227388A (en) * 2018-09-19 2019-01-18 大连理工大学 A kind of glass polishing machine disk conditioning system and its working method
CN109827535A (en) * 2019-01-11 2019-05-31 湖南山力泰机电科技有限公司 Adhesive tape shape detection system
CN109884987A (en) * 2019-03-14 2019-06-14 上海傲垦机电设备有限公司 A kind of spinning machine Record-Return Control System
CN110049110B (en) * 2019-03-27 2022-02-11 苏州艾米妮娜工业智能技术有限公司 Cloud intelligent system
CN110109420B (en) * 2019-03-27 2021-07-23 苏州艾米妮娜工业智能技术有限公司 Cloud intelligence processing equipment
CN110064765B (en) * 2019-04-19 2020-03-31 济南民昌新能源有限公司 Intelligent heavy-cutting numerical control lathe
CN110187671B (en) * 2019-05-05 2021-07-09 一汽解放汽车有限公司 Method for on-line automatic measurement of outer diameter and tool compensation
CN110232052A (en) * 2019-06-11 2019-09-13 天津大学 A kind of cutter vector method and device based on DXF file format
CN110286643A (en) * 2019-07-11 2019-09-27 珠海格力智能装备有限公司 The control method and device of machine tool motion track, storage medium, processor
CN110806722A (en) * 2019-10-23 2020-02-18 成都飞机工业(集团)有限责任公司 On-machine detection method for machining part of numerical control machine tool
CN110543146A (en) * 2019-10-30 2019-12-06 苏州市伯太数字科技有限公司 circular machining method based on edge calculation and numerical control machine tool machining system
CN111399444A (en) * 2020-03-10 2020-07-10 凌伽智能科技(上海)有限公司 Intelligent control system for machining process
CN112571139A (en) * 2020-12-11 2021-03-30 王长安 Accurate positioning system for high-precision numerical control lathe
CN112650146B (en) * 2020-12-18 2021-11-19 国家机床质量监督检验中心 Fault diagnosis optimization method, system and equipment of numerical control machine tool under multiple working conditions
CN113341882B (en) * 2021-06-28 2022-06-14 成都飞机工业(集团)有限责任公司 Numerical control process design and optimization method based on processing knowledge
CN113552846B (en) * 2021-07-27 2022-06-21 深圳市玄羽科技有限公司 Motor rotating speed detection system and use method thereof
CN113848817A (en) * 2021-10-11 2021-12-28 东北大学 Intelligent five-axis control system and method
CN114035511A (en) * 2021-10-14 2022-02-11 扬州市创信科技有限公司 Intelligent control system and control method for graphical numerical control lathe
CN115268370A (en) * 2022-07-19 2022-11-01 中航沈飞民用飞机有限责任公司 Method for automatically drilling and riveting simulation process by numerical control code reduction
CN115629569B (en) * 2022-12-23 2023-04-04 赫比(成都)精密塑胶制品有限公司 Machine tool control method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4928221A (en) * 1988-04-11 1990-05-22 Westinghouse Electric Corp. Part program generating system
CN1122018A (en) * 1994-03-11 1996-05-08 松下电器产业株式会社 NC controlled finishing method with computer imitation and used apparatus
JPH0962328A (en) * 1995-08-29 1997-03-07 Fujitsu Ltd Nc data preparation method
JP2003136368A (en) * 2001-10-30 2003-05-14 Mitsubishi Heavy Ind Ltd Lathe machining system
CN2618141Y (en) * 2002-04-12 2004-05-26 钱志伟 Automatic dynamic external diameter measuring devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4928221A (en) * 1988-04-11 1990-05-22 Westinghouse Electric Corp. Part program generating system
CN1122018A (en) * 1994-03-11 1996-05-08 松下电器产业株式会社 NC controlled finishing method with computer imitation and used apparatus
JPH0962328A (en) * 1995-08-29 1997-03-07 Fujitsu Ltd Nc data preparation method
JP2003136368A (en) * 2001-10-30 2003-05-14 Mitsubishi Heavy Ind Ltd Lathe machining system
CN2618141Y (en) * 2002-04-12 2004-05-26 钱志伟 Automatic dynamic external diameter measuring devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于DSP-USB的运动控制器的开发与应用 张承瑞 王恒 武洪恩,山东大学学报(工学版),第33卷第4期 2003 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101733678B (en) * 2009-12-04 2013-04-24 北京数码大方科技股份有限公司 Graphical cutter position tracking and controlling system and method
CN101923335A (en) * 2010-08-10 2010-12-22 济南大学 Open type numerical control system directly facing to machining path points based on kernel platform
CN112355711A (en) * 2020-10-20 2021-02-12 苏州浩智工业控制技术有限公司 Workpiece machining method and system based on CNC machine tool
CN112355711B (en) * 2020-10-20 2021-12-17 苏州浩智工业控制技术有限公司 Workpiece machining method and system based on CNC machine tool

Also Published As

Publication number Publication date
CN1740932A (en) 2006-03-01

Similar Documents

Publication Publication Date Title
CN100343770C (en) Intelligent control system for digital control machine tool and control method thereof
CN100435055C (en) Method for planning smooth and non-interference tool route of 5-axis numerical control machining
CN102929210B (en) Control and optimization system for feature-based numerical control machining process and control and optimization method therefor
CN101968344A (en) On-line three-dimensional shape-surface detection system for numerical control machining centre
CN104460515B (en) One kind is based on the axle tool length compensation method of postpositive disposal five
CN1967423A (en) A helix guidance surfaces numerical control processing method
CN105302070A (en) Post-processing method for non-orthogonal swing head rotary table type five-axis machine tool
Zhang et al. Automatic sweep scan path planning for five-axis free-form surface inspection based on hybrid swept area potential field
CN106886197B (en) Method for controlling machine to implement machining, device and application thereof
CN104794272A (en) Machining method of airplane component
CN112558550B (en) Method for machining special-shaped threads by CAM software
CN101791810A (en) Polar coordinate numerical control woodworking basket milling machine
CN115562159A (en) Tool path planning method, device and computer readable storage medium
CN210848792U (en) Three-dimensional five-axis laser cutting machine tool
CN103676785A (en) Intelligent fan blade manufacturing method
CN102081373B (en) Numerical control system for roll grinder and control method thereof
Li et al. Off-line optimization on NC machining based on virtual machining
CN101211174A (en) Method for processing normal direction hole using three axis numerically controlled machine
CN106886195B (en) Machining control method, device and application thereof
CN110955934A (en) Cutting simulation implementation method for real-time processing monitoring
CN111598364B (en) Digital process arrangement system for mechanical parts
US4961041A (en) Method of creating numerical control data for rough machining
JP4165404B2 (en) Optimization device, control program generation device, program
CN110658784B (en) Universal method and system for processing three-dimensional special-shaped stone by industrial robot
Shyu et al. A mini CIM system for turning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Assignee: Guangzhou Keshenglong Carton Packing Machine Co., Ltd.

Assignor: Shandong University

Contract fulfillment period: 2007.12.4 to 2012.12.3 contract change

Contract record no.: 2009440001417

Denomination of invention: Intelligent control system for digital control machine tool and control method thereof

Granted publication date: 20071017

License type: Exclusive license

Record date: 2009.9.11

LIC Patent licence contract for exploitation submitted for record

Free format text: EXCLUSIVE LICENSE; TIME LIMIT OF IMPLEMENTING CONTACT: 2007.12.4 TO 2012.12.3; CHANGE OF CONTRACT

Name of requester: GUANGZHOU KESHENGLONG CARTON PACKING MACHINE CO.,

Effective date: 20090911

C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071017

Termination date: 20120914