Summary of the invention
In view of this, the invention provides a kind of automatic numerical control machining code generating system, technical merit to operating personnel is less demanding, the code formation speed is fast and can adapt to the processing object variation, and the code that generates is the code that digital control system can be identified, and not needing operating personnel to revise directly can be identified by digital control system.
This system comprises: load module, analysis module, database, output module, display module and correcting module; Wherein load module links to each other with analysis module, and analysis module links to each other with output module, and output module links to each other respectively with database, display module, correcting module, digital control system; Display module links to each other with correcting module;
Load module comprises turning sub-function module, milling sub-function module, the compound sub-function module of turnning and milling, keyseat sub-function module and expansion sub-function module;
Analysis module comprises turning algoritic module, milling algoritic module, turnning and milling algoritic module, keyseat algoritic module;
At first according to the sub-function module in the part artificial selection load module to be processed, then input parameter in the sub-function module of choosing sends corresponding algoritic module in the analysis module to;
Analysis module selects corresponding algoritic module to analyze according to the parameter that receives:
(1) turning algoritic module: the framework of the turning of prefabricated standard processing numerical control code in the turning algoritic module, the turning algoritic module can be filled up to the input parameter that receives in the framework of turning processing numerical control code of described standard: if when the turning consumption is the integral multiple of the lathe tool single cutting output preset, then generate the control lathe tool at the circulate numerical control code of feed of diametric(al), cycle index is the merchant that the turning consumption is divided exactly default lathe tool single cutting output, when if the lathe tool single cutting output that the turning consumption is not preset divides exactly, then at first generate the control lathe tool carries out integral multiple circulation feed in diametric(al) numerical control code, cycle index is the turning consumption divided by the merchant of default lathe tool single cutting output, and then adds turning consumption and the default lathe tool single cutting output numerical control code of gained remainder as feed that be divided by; Last turning algoritic module adds each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(2) milling algoritic module: the framework of the Milling Process numerical control code of prefabricated standard in the milling algoritic module, the milling algoritic module can be filled up to the input parameter that receives in the framework of Milling Process numerical control code of described standard: at first the milling algoritic module carries out the calculating on the milling Width, if the milling width is the integral multiple of milling cutter diameter, then be created on the numerical control code of Width cocycle feed, cycle index is the merchant that the milling width is divided exactly milling cutter diameter; If the milling width is not divided exactly by milling cutter diameter, then be created on the numerical control code of integral multiple circulation feed on the Width, cycle index is the merchant that the milling width is divided exactly milling cutter diameter, at last adds milling width and the milling cutter diameter numerical control code of gained remainder as last cutter feed that be divided by at Width; After the calculating of finishing on the milling Width, the milling algoritic module carries out the calculating on the milling thickness direction, if milling thickness is that milling cutter is when the integral multiple of the default single amount of feeding of thickness direction, then be created on the numerical control code of the circulation feed on the thickness direction, cycle index is the merchant that milling thickness is divided exactly the default milling cutter single amount of feeding; If milling thickness is not divided exactly at the default single amount of feeding of thickness direction by milling cutter, then be created on the numerical control code of the integral multiple circulation feed on the thickness direction, cycle index is milling thickness divided by the merchant of the default milling cutter single amount of feeding, forms the single amount of feeding that milling thickness and milling cutter preset at the thickness direction numerical control code of gained remainder as last cutter feed that be divided by at thickness direction at last; After the calculating of finishing the circulation feed on the both direction, the milling algoritic module forms take Width cocycle feed as interior circulation, and thickness direction cocycle feed is the numerical control code of outer circulation; Last milling algoritic module adds corresponding each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(3) turnning and milling algoritic module: the framework of the turnning and milling of prefabricated standard processing numerical control code in the turnning and milling algoritic module, the turnning and milling algoritic module can be filled up to the input parameter that receives in the framework of turnning and milling processing numerical control code of standard: if during the cutting data single cutting output integral multiple that to be turnning and milling default, then generate the numerical control code of diameter of work direction cocycle feed, cycle index is the merchant that cutting data divides exactly the default single cutting output of turnning and milling; When if the single cutting output that cutting data is not preset by turnning and milling divides exactly, then generate first the numerical control code of integral multiple circulation feed, cycle index is cutting data divided by the merchant of the default single cutting output of turnning and milling, adds at last single cutting output that cutting data and turnning and milling the are preset numerical control code of gained remainder as last cutter feed that be divided by; Last turnning and milling algoritic module adds corresponding each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(4) keyseat algoritic module: the framework of the keyseat of prefabricated standard processing numerical control code in the keyseat algoritic module, the keyseat algoritic module can be inserted the input parameter that receives the keyseat of described standard and process in the framework of numerical control code; At first carry out the calculating on the width of keyway, if width of keyway is the integral multiple of milling cutter diameter, then be created on the numerical control code of the circulation feed on the width of keyway direction, cycle index is the merchant that width of keyway is divided exactly milling cutter diameter; If width of keyway is not divided exactly by milling cutter diameter, then generate first the numerical control code of integral multiple circulation feed, cycle index is that width of keyway is divided by the merchant of milling cutter diameter, and then add upper width of keyway and the milling cutter diameter numerical control code of gained remainder as last cutter feed that be divided by, after the calculating of finishing on the width of keyway direction, the keyseat algoritic module carries out calculating on the keyway depth direction, if the keyway degree of depth is that milling cutter is when the integral multiple of the default single amount of feeding of keyway depth direction, then generate the numerical control code of keyway depth direction cocycle feed, cycle index is the merchant that the keyway degree of depth divides exactly the default milling cutter single amount of feeding, when if the single amount of feeding that the keyway degree of depth is not preset at the keyway depth direction by milling cutter is divided exactly, then generate first the numerical control code of integral multiple circulation feed on the keyway depth direction, cycle index is the keyway degree of depth divided by the merchant of the milling cutter single amount of feeding default on the keyway depth direction, and then adds the milling cutter single amount of feeding of presetting on the keyway degree of depth and the keyway depth direction numerical control code of gained remainder as last cutter feed that be divided by; The keyseat algoritic module is finished after the calculating of width of keyway and the keyway degree of depth, formation is take width of keyway direction circulation feed as interior circulation, keyway depth direction circulation feed is the numerical control machining code of outer circulation, and last keyseat algoritic module adds each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
After numerical control code generated, the input parameter of this part to be processed that analysis module will receive and the numerical control code of generation sent output module to, send to digital control system by output module, send simultaneously database to and store; Output module can also send to display module with the input parameter of described part to be processed and numerical control code and show checking, if do not meet with anticipation, sends output module to after then revising by correcting module and exports;
Prefabricated numerical control code and the various data codes of interpolation are the code that described digital control system can be identified in each algoritic module.
Beneficial effect of the present invention:
1. by this kind automatic numerical control machining code generating system, only need to input corresponding machined parameters and just can obtain machining code by clicking several buttons, change former operating personnel and only had through behind the necessary numerical control programming knowledge and skills of numerical control programming training acquisition, just can carry out the situation of numerical control programming.
2. this rate of accurateness is high, avoided in the common manual programming because the mistake that operating personnel's carelessness or other reasons occur, it is flexible that simultaneously relative CAM software has block configuration, program speed is fast, the characteristics such as strong adaptability, be particularly suitable in rapid-maintenance and processing, especially be fit to be applied to weaponry war and decrease in the battlefield rapid-maintenance processing of parts.
3. the various codes of the framework of the numerical control code of prefabricated standard and interpolation are that digital control system can identify in the algoritic module of each in analysis module, so the numerical control code that automatically generates can be consistent with digital control system at form, not needing operating personnel to revise directly can be identified by digital control system.
Embodiment
Below in conjunction with accompanying drawing 1 embodiment that develops simultaneously, describe the present invention.
The invention provides a kind of automatic numerical control machining code generating system, comprising: load module, analysis module, database, output module, display module and correcting module; Wherein load module links to each other with analysis module, and analysis module links to each other with output module, and output module links to each other respectively with database, display module, correcting module, digital control system; Display module links to each other with correcting module;
Load module comprises turning sub-function module, milling sub-function module, the compound sub-function module of turnning and milling, keyseat sub-function module and expansion sub-function module;
Analysis module comprises turning algoritic module, milling algoritic module, turnning and milling algoritic module, mills the key algoritic module;
At first according to the sub-function module in the part artificial selection load module to be processed, then input parameter in the sub-function module of choosing sends corresponding algoritic module in the analysis module to;
Analysis module selects corresponding algoritic module to analyze according to the parameter that receives:
(1) turning algoritic module: the framework of the turning of prefabricated standard processing numerical control code in the turning algoritic module, the turning algoritic module can be filled up to the input parameter that receives in the framework of turning processing numerical control code of described standard: if when the turning consumption is the integral multiple of the lathe tool single cutting output preset, then generate the control lathe tool at the circulate numerical control code of feed of diametric(al), cycle index is the merchant that the turning consumption is divided exactly default lathe tool single cutting output, when if the lathe tool single cutting output that the turning consumption is not preset divides exactly, then at first generate the control lathe tool carries out integral multiple circulation feed in diametric(al) numerical control code, cycle index is the turning consumption divided by the merchant of default lathe tool single cutting output, and then adds turning consumption and the default lathe tool single cutting output numerical control code of gained remainder as feed that be divided by; Last turning algoritic module adds each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(2) milling algoritic module: the framework of the Milling Process numerical control code of prefabricated standard in the milling algoritic module, the milling algoritic module can be filled up to the input parameter that receives in the framework of Milling Process numerical control code of described standard: at first the milling algoritic module carries out the calculating on the milling Width, if the milling width is the integral multiple of milling cutter diameter, then be created on the numerical control code of Width cocycle feed, cycle index is the merchant that the milling width is divided exactly milling cutter diameter; If the milling width is not divided exactly by milling cutter diameter, then be created on the numerical control code of integral multiple circulation feed on the Width, cycle index is the merchant that the milling width is divided exactly milling cutter diameter, at last adds milling width and the milling cutter diameter numerical control code of gained remainder as last cutter feed that be divided by at Width; After the calculating of finishing on the milling Width, the milling algoritic module carries out the calculating on the milling thickness direction, if milling thickness is that milling cutter is when the integral multiple of the default single amount of feeding of thickness direction, then be created on the numerical control code of the circulation feed on the thickness direction, cycle index is the merchant that milling thickness is divided exactly the default milling cutter single amount of feeding; If milling thickness is not divided exactly at the default single amount of feeding of thickness direction by milling cutter, then be created on the numerical control code of the integral multiple circulation feed on the thickness direction, cycle index is milling thickness divided by the merchant of the default milling cutter single amount of feeding, forms the single amount of feeding that milling thickness and milling cutter preset at the thickness direction numerical control code of gained remainder as last cutter feed that be divided by at thickness direction at last; After the calculating of finishing the circulation feed on the both direction, the milling algoritic module forms take Width cocycle feed as interior circulation, and thickness direction cocycle feed is the numerical control code of outer circulation; Last milling algoritic module adds corresponding each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(3) turnning and milling algoritic module: the framework of the turnning and milling of prefabricated standard processing numerical control code in the turnning and milling algoritic module, the turnning and milling algoritic module can be filled up to the input parameter that receives in the framework of turnning and milling processing numerical control code of standard: if during the cutting data single cutting output integral multiple that to be turnning and milling default, then generate the numerical control code of diameter of work direction cocycle feed, cycle index is the merchant that cutting data divides exactly the default single cutting output of turnning and milling; When if the single cutting output that cutting data is not preset by turnning and milling divides exactly, then generate first the numerical control code of integral multiple circulation feed, cycle index is cutting data divided by the merchant of the default single cutting output of turnning and milling, adds at last single cutting output that cutting data and turnning and milling the are preset numerical control code of gained remainder as last cutter feed that be divided by; Last turnning and milling algoritic module adds corresponding each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
(4) keyseat algoritic module: the framework of the keyseat of prefabricated standard processing numerical control code in the keyseat algoritic module, the keyseat algoritic module can be inserted the input parameter that receives the keyseat of described standard and process in the framework of numerical control code; At first carry out the calculating on the width of keyway, if width of keyway is the integral multiple of milling cutter diameter, then be created on the numerical control code of the circulation feed on the width of keyway direction, cycle index is the merchant that width of keyway is divided exactly milling cutter diameter; If width of keyway is not divided exactly by milling cutter diameter, then generate first the numerical control code of integral multiple circulation feed, cycle index is that width of keyway is divided by the merchant of milling cutter diameter, and then add upper width of keyway and the milling cutter diameter numerical control code of gained remainder as last cutter feed that be divided by, after the calculating of finishing on the width of keyway direction, the keyseat algoritic module carries out calculating on the keyway depth direction, if the keyway degree of depth is that milling cutter is when the integral multiple of the default single amount of feeding of keyway depth direction, then generate the numerical control code of keyway depth direction cocycle feed, cycle index is the merchant that the keyway degree of depth divides exactly the default milling cutter single amount of feeding, when if the single amount of feeding that the keyway degree of depth is not preset at the keyway depth direction by milling cutter is divided exactly, then generate first the numerical control code of integral multiple circulation feed on the keyway depth direction, cycle index is the keyway degree of depth divided by the merchant of the milling cutter single amount of feeding default on the keyway depth direction, and then adds the milling cutter single amount of feeding of presetting on the keyway degree of depth and the keyway depth direction numerical control code of gained remainder as last cutter feed that be divided by; The keyseat algoritic module is finished after the calculating of width of keyway and the keyway degree of depth, formation is take width of keyway direction circulation feed as interior circulation, keyway depth direction circulation feed is the numerical control machining code of outer circulation, and last keyseat algoritic module adds each linear axis of control and withdraws from the numerical control code that cut and turning axle stop operating;
After numerical control code generated, the input parameter of this part to be processed that analysis module will receive and the numerical control code of generation sent output module to, send to digital control system by output module, send simultaneously database to and store; Output module can also send to display module with the input parameter of described part to be processed and numerical control code and show checking, if do not meet with anticipation, sends output module to after then revising by correcting module and exports;
Prefabricated numerical control code and the various data codes of interpolation are the code that described digital control system can be identified in each algoritic module.
The input parameter of turning sub-function module comprises that the turning program is No.1, lathe tool to cutter position, initial diameter, final diameter, cutting-in, feed length, cutter mend, cutter number, the speed of mainshaft, amount of feeding F;
The input parameter of milling sub-function module comprises that the milling program is No.1, material thickness, single feed, milling width, tool diameter, feed length are removed in milling tool setting X coordinate, milling tool setting Y coordinate, milling tool setting Z coordinate, milling cutter number, milling spindle rotating speed S, milling feed amount F, milling single cutting-in, milling;
The input parameter of the compound sub-function module of turnning and milling comprises that the turnning and milling recombination process is No.1, turnning and milling tool setting X coordinate figure, turnning and milling tool setting Y coordinate figure, turnning and milling blank initial diameter, turnning and milling part final diameter, the turnning and milling excision degree of depth, turnning and milling cutting feed length, turnning and milling cutter are mended, turnning and milling cutter number, the turnning and milling turning speed of mainshaft, turnning and milling milling spindle rotating speed, amount of feeding F;
The input parameter of keyseat sub-function module comprises that the keyseat program is No.1, milling cutter tool setting Y value and Z value, milling spindle rotating speed S, amount of feeding F, single cutting-in, the keyway degree of depth, keyway length;
In display module, operating personnel can carry out preliminary inspection to numerical control code in the viewing area, also can lead to the correctness that graphical simulation or other methods of inspection are come Validation Code.
The sub-function module that need to increase being set or increasing corresponding input parameter setting in each sub-function module by the expansion sub-function module increases corresponding processing type.
The turning sub-function module, the processing type that obtains according to the input parameter that arranges comprises turning processing, recessing processing, cut-out processing, face work processing, chamfer machining.
Milling sub-function module, the processing type that obtains according to the input parameter that arranges comprise milling flat processing, mill step surface processing, keyseat processing, mill groove processing, ruled surface processing, Drilling operation, reaming processing, fraising processing, Boring, the processing of mill endoporus, tapping processing, cylindrical grinding processing and flat surface grinding processing.
The compound sub-function module of turnning and milling, the processing type that obtains according to the input parameter that arranges comprises turnning and milling Excircle machining and the processing of car cylindrical grinding.
In sum, above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.