The system of machine tool numerical control below microcomputer platform

  • Time:
  • Click:133
  • source:TRIANA CNC Machining
1 introductive Windows95 is a when Microsoft company rolls out 32 complete graphical environment operating system. Below Windows95 environment development controls a system to be able to use the rich resource of Windows95 not only in real time, realize the Windows95 interface with uniform standard, and what can use a PC is newest hard, software develops fruit, facilitating system function expands and upgrade, facilitating couplet net comprises FMC, FMS and CIMS to wait. Accordingly, control Windows95 application at industry, consider and develop the numerical control system below Windows95 platform, have principal academic port and applied value. Because module of this software of control of system of milling machine numerical control is more,system of numerical control of 2 milling machine is formed, undertake to reduce IPC chance mass data operation and processing work, a pace was designed to control card into electric machinery in hardware respect (contain 8031 sheet piece machine) , formed include to go up a machine, leave an opportunity advocate, from system of type numerical control. Systematic hardware is configured, contain dotted line part to be closed-loop control among them, do not contain dotted line part to be open loop control. Systematic hardware uses PC bus line and modular structural design, leave an opportunity (the pace controls card into electric machinery) insert in PC bus line on patulous chamfer, on, leave an opportunity between in order to inquire means has collateral news report. When systematic software is designed, considered the requirement of hardware structure characteristic and systematic function. Can see, whole system software includes to go up a machine software and play a machine software. Go up to program of government of the main system that finish, NC diagnoses a machine software and be compiled, the function such as compensation of cutting tool radius. Issue a machine software to basically realize interpolation operation and pace to take the function such as electric machinery position and speed control. When software is designed, use VisualC 5.

On 0 work outs machine software, and issue a machine software to use sheet piece machine assembly language will weave, make full use of the characteristic of advanced language and vulgar language, make software structure has open sex, modular advantage, safeguard easily. Software of system of numerical control of 3 milling machine forms the real time below Windows95 platform to control Windows95 is 32 first the operating system of type much job. Processing of Windows95 much task uses fictitious machine technology. Through fictitious machine administrative program attempers mediumly program, the first step of Cheng of Windows95 support line and the CPU that allocate line Cheng will attemper line Cheng. Because line Cheng sustains the much task mechanism of forcibly occupy type, real time answers speed tall, and be between each line Cheng be based on interrupt, accordingly, the line Cheng that can differ through giving every task allocation of numerical control system first step will achieve real time control. Because insert the real time such as complementary operation and positional speed control to control the job,be by what issue a machine to finish, and go up an engine is main the blame that finish the task with real time sex or real time not tall sex, task of NC program coding comes true through compiling a method, the job that because this goes up,place should finish a machine is completely OK will finish by Cheng of a line. Be based on afore-mentioned analysises, the method that we use single-track Cheng implements the numerical control system below Windows95 platform. Use the control when reality of this kind of method is actual, the problem that place should solve is the message alignment that how handles Windows95 in time. Of Windows95 application process attempering is based on a message, windows95 application process is read the message in cancelling breath alignment keeps abreast of and handle them. If apply a program to handle an information time too long or because of its itself mistake produces dead loop, will bring about other inside formulary time information to cannot get successful processing, real time system also cannot move correctly. Accordingly, the message that must carry real time system of drive of information of Windows95 application process namely constitutionally flows be in circular condition, be when a message when processing, another important information can be inserted, can get be responsed in time, such ability achieve real time pilot to ask. For example, when numerical control system is machined with automatic means, the system entered a very long computation in the loop. In this process, to make other message (like sends to stop to machine means automatically message) can get response, we used the code that be as follows in the program: ∥ of condition of MSGMessage;while(∥ loop) {if(: : PeekMessage(Message, NULL, 0, 0, PMREMOVE)) {: : TranslateMessage(Message); : : DispatchMessage(Message);} ... } joins above code through be in the program, when can realizing a message to be being handled, another message can get be responsed in time, satisfied requirement of real time pilot. 4 paces control the real time drive of card to be below Windows95 system into electric machinery, besides fictitious equipment driver (the control that VxD) can realize pair of hardware, standard equipment driver and the equipment driver that can install also can be used at realizing the control to hardware, they are 16 or 32 DLL.

In systematic design, did not use DDK of special development tool or VToolsD, undertake the pace controls the development of calorie of driver into electric machinery, however have the aid of at VC 5.

0 compile implement, wrote 32 DLL, came true to control the real time drive of card into electric machinery to the pace. Because the system is,be platform with Windows95, in because this enters electric machinery to control the driver of card in the pace,be being designed, in follow the handshake agreement that designs a decision by hardware circuit and the communication agreement that make on the foundation, still consider the following factor: (1) should consider numerical control system is system of control of real time sex already, should consider again on, issue a problem;(2) that communication has a time to coordinate between machine to issue a machine software to include interpolation and speed control module, workload is bigger, a machine goes up to receive the frequency that leaves a machine feedback message to be more than far in the meantime go up a machine the frequency that is down a machine to transmit data, accordingly, go up a machine receive when leaving a machine feedback message, operating system of much task of latency time;(3)Windows95 decided a task cannot molopolize for long systematic natural resources, otherwise, cause systematic natural resources extremely easily extinct, system breaks down. Accordingly, we are going up a machine receive leave an opportunity data and go up a machine in be down a machine to send data function, use frequency inquires handclasp signal for the circular statement of 500, go up in order to come true, issue a collateral news report between machine, at the same time unapt also make inquire the task molopolizes for long systematic natural resources, cause systematic natural resources thereby extinct. Go up for farther specification, play a communication significance between machine, go up a machine and issue a machine to control flow chart. 5 epilogue are controlled when solid on Windows95 platform reality and the real time driver of special hardware equipment is the key that implements numerical control system, better land solved the method that article place discusses two afore-mentioned problems. The experiment makes clear, go up a design of engine control software is correct and feasible, the pace blocks the driver below Windows95 environment to run stability into electric machinery control, mix by IPC machine 8031 sheet piece the open loop that the orgnaization becomes controls a system in real time, better land came true to take the control of electric machinery to the pace below Windows95 environment, achieved the requirement of system of milling machine numerical control. CNC Milling