Process of CNC Milling treatment is fictitious the design of emulation system

  • Time:
  • Click:90
  • source:PURELIFE CNC Machining
Build a true CNC Milling to machine an environment, fall to undertake emulation to machining a process in this environment. Right fictitious the research that production architecture and relevant technology had development and analysis, emphasize those who elaborated machine tool of virtual numerical control to establish modular principle and the control related its technology, the athletic control of each axis, program shows machine tool of the implementation on the machine tool of virtual numerical control that building, NC is compiled, feedback information shows wait for a function, realized the function with fictitious the basiccest CNC Milling. The target of this system is to build a real CNC Machining environment. In this environment, need builds machine tool model and treatment process model. Machine tool model is the physical environment of whole treatment process, will true machine tool appears with the form of 3D picture in the computer; Machining process model is an animation process, imitate is true the machine tool, cutting tool, cutting motion that machines a process. This system should ask contentedly: 1) has distinct treatment environment; 2) can is opposite NC code undertake detecting, the NC program that has a machine tool namely compiles a function, what can discover NC program is wrong, make target file; 3) can show cutting tool contrail and cutting process; 4) can be adjusted, parameter of condition of modification machine tool, the athletic condition of machine tool of real time monitoring; 5) has friendly man-machine interface, can convenient user is operated. The characteristic that it has has: 1) environment is real, systematic environment and real machine tool environment as far as possible identical; 2) function is consistent, systematic function wants and the function of the machine tool is same; 3) is stronger correct wrong ability, can discover all sorts of mistakes give out at the same time call the police information; 4) completes emulation process quickly, the time that emulation treatment process needs cannot be mixed actual handling time is same, let a person be borne hard otherwise, when machining a process, ask can undertake modulatory according to the requirement of the user. Structural frame of whole of a system emulates a process to be: NC program edits on Control Panel or transfer into NC program, aim the machine program that has had to undertake checking next, orbit is emulated, affirm without by accident, prepare to machine. Necessary setting has to whole system before treatment, cutting tool parameter is installed, workpiece coordinate is the setting. When undertaking machining, animation of motion of indication machine tool reachs workpiece cutting animation, undertake monitoring to machine tool condition, show monitored information, if have illegal operation, jump over the information such as Cheng, issue corresponding warning. Systematic cent is 5 module: Module of man-machine interface, geometry, motion module, compile module and module of the feedback that monitor. If graph L place is shown,the module of whole system differentiates. Man-machine interface uses implementation interactive, namely the Control Panel of the machine tool; Geometrical module uses the physical environment that implements a system, cutting tool contrail reachs the geometrical put oneself in another's position such as workpiece model; Main function know exactly about sth accuses NC module program editor, knife fills, interpolation, compile generate file of drive of fictitious machine tool to wait; Athletic module uses implementation fictitious machine tool moves, cutting tool motion and cutting motion; Machine tool parameter establishs information of state of mane, machine tool feedback and monitor wait for a function to come true with module of the feedback that monitor. Each module relations are like whole system the graph is shown 2 times. The design of each 2 module 2. 1 man-machine interface (Control Panel) design this module to have two sides: Each interfacial elements that are pair of face plate undertake designing, one by one it is each fictitious objects such as pair of machine tools undertake controlling. The package amount on operation face plate is very much, but great majority has similar sex, because this is OK,the package design that will have same function accuses for ActiveX, use ActiveX to accuse the has same function package that encloses gender and dynamic join sex to realize fictitious operation face plate to go up. Interfacial element compose builds 3 kind of CRob, CMyButton, CMyEdilo CRob is rotary switch of the implementation that use rice. CMyEdit is used at coming true to display screen. CMyBunon will realize quadrate pushbutton. The operation that uses almost, control is on Control Panel, so all module are here assemble, can be pressing with a finger, hypostatic, with the control that will realize whole machine tool and treatment process. Design a NcPanel kind, this kind offer each control variable, use at NC file examination, machine tool parameter is installed, control of machine tool sport is waited a moment. 2. The design of 2 geometry module 2. 2. This peak model compares the intricate geometry model such as spray pipe of fluid of model of noumenon of 1 machine tool, cutting tool model, cutting complex, the method that uses plot process designing directly realizes so complex graph very hard, although came true to also need to spend huge time and energy, the effect that scale comes out also is achieved hard expect the result. This literary grace is like 3dsMax, UG, Pro/E to wait with application software of a few mature plot will realize these geometrical models. This system can not call the geometrical model that these software build directly, can obtain the descriptive sex document of these geometrical models only. Must undertake study to these files, find out the geometrical information of need, the geometry that in be being changed into the program next, can use is hypostatic. Have the file pattern of a kind of standard- - 3DS file format, almost all 3D plot software support form of this kind of file, can change into format of this kind of file. Accordingly, the job of this module is to write interface of a file, read in file of 3DS binary system changeover to become 0penGL geometry entity. Compose builds kind as follows: Class C3dsReader; / / 3DS file reads human Class8 CTriList; / / generate data catenary to express (with the small triangle that will approach 3DS graph piece / / gather) the machine tool each component geometry models comprise a machine tool kind Class Machine, this each kind of package that include a machine tool, wait like lathe bed, main shaft. 2. 2. This module uses contrail of 2 cutting tool and model of spare parts geometry at cutting tool contrail to emulate, program of NC of test and verify reachs model of geometry of contrail of the cutting tool after indication treatment whether correctly, can differentiate it is two: Ground floor: Layer of basic geometry element. Dot, line, circular arc, planar, the scale of the geometrical element such as area of straight grain area, dot, vector, all sorts of operation of matrix. In 0penGL environment, OK and similar construction gives an equipment environment kind, let its scale give a few main geometry elements: Linear, circular arc. The 2nd: The model builds a layer. The cutting tool contrail that whole NC file forms is formed by all sorts of geometry elements, building a model is all sorts of geometry the element makes a complete figure namely. If machine a word, font is form point-blank by many. From which can compose builds each geometrical models kind be like linear (CLine) , circular arc (CAre) , round (CCircIe) , straight grain curved surface (CLin_Are) . The scale that does not have element individually calls a GlCDC kind member function. If linear ego scale can write into: PDC->Line(start, end) ; PDC is GlCDC a finger of an example. 2. 2. Model of workpiece of 3 workpiece model is used at workpiece cutting motion. Use dimensional split plot design to undertake building a model to workpiece model. The article is workpiece only on plane of X, Y undertake breaking up, z direction expresses with Top value, of the model that compose builds as follows: Whole workpiece can show the model of small diamonds substance of Class PexSeL// disperse for: PexSel Box[x][y] ; / / X, y is workpiece resolution 2. The design sports model of 3 motion module has machine tool noumenon to move, cutting tool moves, treatment cutting moves, belong to animation to make a process. Animation can let the one picture related Zhang Zhang undertake switch with rapidder rate, can get successive athletic result. Similar, in the photograph that Zhang Xiang of N of the scale in fair land time passes, can get computer animation result. Set time of a system first, yield its ceaseless refresh picture, next the job is scale these relevant pictures. Graphical scale, enclose it into change formal scale by parameter, want to undertake its parameter modification can coming true animation is controlled only. For instance scale of body of a square can write into: Translated(m_x, m_y, m_z) ; / / DrawBox(length, width, high) ; Should be opposite only so M_x, m_y, 3 variable undertake M_z control, let draw module keep can realizing animation of square body shift by parameter scale next. Next the job needs to press variable of time counterpoint buy to undertake controlling, achieve the exercise of need. Design controller of a few positions, realize Class Movenne // of calculator of circular arc motion to realize sharp movement calculator like the CIass MoveCircle// such as controller of position of linear, circular arc... 2. The 4 designs that compile module compile module to basically differentiate for 4 parts: Code of lexical analyzer, parse, target is generated and give wrong processing. Compiling a process is program of input CNC Machining, output target code or wrong message. This system uses progressive scanning means, it is core with lexical analyzer program and parse program, give wrong processing to serve as an independent course, of target code generate fall for the circumstance of 0 in the mistake generate. The design compiles kind of Compile. Input: CString M_Nccode; / / function of function of code of a paragraph of NC: Accidence of Wo-check() // checks SyntaxCheck()// grammar to check output: The intermediate file that after operand of CString ErrInfo// wrong message is compiled according to object ProgramNode NcSegementStruct// , makes. CTypedPtrList<C0bList, CPart*>*m_curvelist; / / chain of generated cutting tool contrail is expressed 2. Of the system of parameter of design machine tool of module of the 5 feedback that monitor not plan: 1) designs CDaoDatabase M_db of database of a tiring-room, tiring-room database uses the ACCESS of Microsoft to make; All 2) variable design a MachineState kind will undertake administrative centrally. 3) condition is monitored, design kind of RunErrCheck, implementation function includes to call the police illegally, be operated workpiece and cutting tool interference, illegally and jump over Cheng to wait. Itself of process of CNC Machining of 3 brief summary is a very complex process, it is one when to component design, craft plans to wait for a lot of jobs examines. The system that the article builds has had the basic function of fictitious machine tool, still put in the following to need improved place: 1) workpiece model can undertake study further, find out a structure more outstanding, the model with indication rapidder rate, make cutting procedure more distinct, quick; 2) sports model needs further research, the athletic controller with more powerful construction, if advanced curve moves,motion of control, advanced curved surface is controlled, in order to satisfy requirement of position control of knife of system of more advanced CNC; This 3) system studied pure geometry is emulated only, do not have a consideration to a few mechanical elements in treatment, will emulate a model through building the mechanical physics that machines a process henceforth, undertake function and cutting effect are emulated machining process cutting. CNC Milling