CN103885389A - Numerical control process program processing method - Google Patents
Numerical control process program processing method Download PDFInfo
- Publication number
- CN103885389A CN103885389A CN201310092662.1A CN201310092662A CN103885389A CN 103885389 A CN103885389 A CN 103885389A CN 201310092662 A CN201310092662 A CN 201310092662A CN 103885389 A CN103885389 A CN 103885389A
- Authority
- CN
- China
- Prior art keywords
- subroutine
- cutter
- control processing
- digital control
- instruction
- 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.)
- Pending
Links
Images
Landscapes
- Numerical Control (AREA)
Abstract
The invention discloses a numerical control process program processing method. The method comprises the steps of sub program preparation and program processing. The step of sub program preparation comprises the step that a number of sub programs which are sequentially executed are provided. The step of program processing comprises the steps that (1) a main program is provided, a number of sub programs are sequentially called in the main program; (2) whether two adjacent sub programs use different attachment heads is judged, and if so, an instruction of calling and changing a attachment head sub program is inserted between instructions of calling two adjacent sub programs; and (3) whether two adjacent sub programs use different cutters is judged, and if so, an instruction of calling and changing a cutter sub program is inserted between instructions of calling two adjacent sub programs. According to the method provided by the invention, a number of sub programs can be connected together, and automatic executing is realized; the degree of automation of numerical control process is greatly improved; and the process efficiency is improved.
Description
Technical field
The present invention relates to machine automatization processing technique field, particularly relate to a kind of nc program disposal route.
Background technology
At present, in mechanic factory workers, especially, in Mould Machining enterprise, numerically-controlled machine comparison of brands is assorted, and the operating system adopting is also varied.Therefore, in the time of machining programming, the lathe that the program of can not determine adopts.Like this, in the time carrying out CAM programming, will look after all lathes, the job sequence of establishment requires general, changes the instruction such as accessory head, replacing cutter thereby do not comprise in job sequence.Like this, often relate to multiple independently job sequences (can become digital control processing subroutine) for the processing of a profile, wherein a lot of job sequences can only be processed the very short time.
Therefore, in the prior art, although single job sequence can move automatically, whole NC Machining Process intermittently carries out, and automaticity is lower.Must Attended mode.Often process a program, just need duty personnel to call in next job sequence by the manual input of guidance panel instruction.If cutter or accessory head difference that next program is used, that will input instruction by hand, change accessory head, will change the operations such as cutter, and then carry out and newly call in program, proceed processing.This can not automatically carry out the processing of whole profile continuously, and machining tool must have staff on duty.And also easily there is mistake in manual input instruction, cause workpiece or device damage.
Therefore, wish a kind of new method and improve automaticity, improve working (machining) efficiency.
Summary of the invention
The object of the present invention is to provide a kind of nc program disposal route, improve the automaticity of digital control processing, improve working (machining) efficiency.
For achieving the above object, the invention provides a kind of nc program disposal route, the treating method comprises digital control processing subroutine preparation process and routine processes step, wherein
Described digital control processing subroutine preparation process comprises: multiple digital control processing subroutines of carrying out are in order provided;
Described routine processes step comprises: (1) provides a master routine, calls in order described multiple digital control processing subroutine in described master routine; (2) judge whether two adjacent digital control processing subroutines use different accessory heads, if so, calling between the instruction of adjacent described two digital control processing subroutines, insert and call the instruction of changing accessory head subroutine; And (3) judge whether two adjacent digital control processing subroutines use different cutters, if so, calling between the instruction of adjacent described two digital control processing subroutines, insert and call the instruction of changing cutter subroutine.
Use method of the present invention multiple digital control processing subroutines can be linked together and automatically carry out, thereby greatly improve the automaticity of digital control processing, improve working (machining) efficiency.For example, can realize in whole NC Machining Process that unmanned or a people are on duty keeps an eye on many lathes.
Preferably, described replacing accessory head subroutine comprises following step: (1) judges on current accessory head whether cutter is housed, if had, cutter is returned to tool magazine; (2) change current accessory head; (3) according to changing former and later two different accessory heads, calculate accessory head compensating length; And (4) upgrade current accessory head register number.
For further improving security, preferably, described replacing accessory head subroutine can also be set to comprise the steps:
(1) judge that Z axis, whether in the position of safety, if not on home, allows Z axis back to zero;
(2) allow X-axis back to zero;
(3) judge on current accessory head whether cutter is housed, if had, cutter is returned to tool magazine;
(4) change current accessory head;
(5) according to changing former and later two different accessory heads, calculate accessory head compensating length;
(6) judge whether safety of Z axis, if safety is carried out accessory head length compensation by beam lifting; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And
(7) upgrade current accessory head register number.
Preferably, described replacing cutter subroutine comprises following step: (1) changes current cutter; (2) judge whether safety of Z axis, if safety, crossbeam back to zero; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And (3) upgrade current cutter register number.
For further improving security, preferably, described replacing cutter subroutine can also be set to comprise the steps:
(1) judge that Z axis, whether in the position of safety, if not on home, allows Z axis back to zero;
(2) allow X-axis back to zero;
(3) change current cutter;
(4) judge whether safety of Z axis, if safety, crossbeam back to zero; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And
(5) upgrade current cutter register number.
Preferably, described routine processes step further comprises digital control processing subroutine treatment step.
Preferably, described digital control processing subroutine treatment step comprises: calling the ending of changing the instruction of accessory head subroutine or calling the last invoked digital control processing subroutine of the instruction of changing cutter subroutine, closing high-speed pattern.
Preferably, as digital control processing subroutine need to be used fast mode, at the beginning part of digital control processing subroutine, fast mode is set.
Preferably, described digital control processing subroutine treatment step comprises the steps:
(1) to rewriting with the incompatible instruction of master routine in each digital control processing subroutine;
(2) whether mate with used rotating speed according to each digital control processing accessory head that subroutine is used, if do not mate, rotating speed is modified;
(3) according to current cutter situation, according to corresponding register number, carry out altimetric compensation, instruction is write to master routine;
(4), if crossbeam compensated, write coordinate system skew instruction;
(5) analysis step: judge whether safety of Z axis, if dangerous, Z axis back to zero, then, on the basis of Z axis safety, moves to mold center top;
(6) judge in the invoked subroutine before the call instruction of digital control processing subroutine whether have the situation that need to carry out beam lifting and do not carry out lifting, if there is described situation, carry out beam lifting; And
(7) suitable cooked mode is set.
Preferably, change cutter subroutine as called,, after calling the instruction of changing cutter subroutine, insert and call the instruction of measuring cutter eldest son program.
Preferably, described measurement cutter eldest son program comprises the steps:
(1) inquire about current accessory head and current cutter, obtain the register number of accessory head code name, cutter code name and storing cutter length;
(2) according to accessory head code name and cutter code name, the long instruction of given measurement cutter, writes master routine by instruction, and long cutter measurement result is stored in tool length register, compensates for tool length.
Preferably, described nc program disposal route further comprises: an operation note file is provided, records all operations were and the parameter of described routine processes step.
Preferably, described nc program disposal route realizes automatically with computer software.
Method of the present invention is not subject to the restriction of machine tool system, can realize the corresponding use of different examples according to different lathes.And method of the present invention can be used computerese to realize example easily, thereby manual programming and calculating are converted into computer programming and calculating, avoid artificial error, and greatly increase work efficiency.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of nc program disposal route according to an embodiment of the invention.
Fig. 2 is the process flow diagram of the replacing accessory head subroutine of nc program disposal route according to an embodiment of the invention.
Fig. 3 is the process flow diagram of the measurement cutter eldest son program of nc program disposal route according to an embodiment of the invention.
Fig. 4 is the process flow diagram of the replacing cutter subroutine of nc program disposal route according to an embodiment of the invention.
Fig. 5 is the process flow diagram of the digital control processing subroutine treatment step (subroutine) of nc program disposal route according to an embodiment of the invention.
Embodiment
For making object of the invention process, technical scheme and advantage clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is further described in more detail.In the accompanying drawings, described embodiment is the present invention's part embodiment, rather than whole embodiment.Be exemplary below by the embodiment being described with reference to the drawings, be intended to for explaining the present invention, and can not be interpreted as limitation of the present invention.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention, below in conjunction with accompanying drawing, embodiments of the invention are elaborated.
Comprise digital control processing subroutine preparation process and routine processes step according to the nc program disposal route of first embodiment of the invention.
Described digital control processing subroutine preparation process comprises: multiple digital control processing subroutines of carrying out are in order provided.Described digital control processing subroutine is independent of concrete numerically-controlled machine brand and model, is to adopt the general job sequence of CAM programming establishment.In described digital control processing subroutine, do not comprise and change the instruction such as accessory head, replacing cutter.For example in following table, list the digital control processing subroutine inventory of the profile process of an external board of vehicle door drawing die.
Table 1 door skin drawing die digital control processing subroutine inventory
Sequence number | Program name | Cutter | Processing content and explanation | Robotization | Time |
1 | SMNLC63 | φ63R8 | The thick material of taking | √ | 11:56 |
2 | SMZC32 | Sφ32 | Roughing again | √ | 0:35 |
3 | SMBQ32 | Sφ32 | Half seminal plasma root | √ | 0:35 |
4 | SMB32A | Sφ32 | Half finish-milling | √ | 3:10 |
5 | SMB32B | Sφ32 | Half finish-milling | √ | 3:10 |
6 | SMB32C | Sφ32 | Half finish-milling | √ | 7:19 |
7 | SMBQ20 | Sφ20 | Multitool back chipping | √ | 0:46 |
8 | SMBQ12 | Sφ12 | Multitool back chipping | √ | 1:20 |
9 | SMBQ8 | Sφ8 | Multitool back chipping | √ | 1:04 |
10 | SMHHBQ20 | Sφ20 | Hilted broadsword back chipping | √ | 0:27 |
11 | SMHHB20A | Sφ20 | Half finish-milling | √ | 4:42 |
12 | SMHHB20B | Sφ20 | Half finish-milling | √ | 10:36 |
13 | SMHHB20C | Sφ20 | Half finish-milling | √ | 0:58 |
14 | SMHHJ20A | Sφ20 | Finish-milling | √ | 8:49 |
15 | SMHHJ20B | Sφ20 | Finish-milling | √ | 10:01 |
16 | SMHHJ20C | Sφ20 | Finish-milling | √ | 17:33 |
17 | SMHHJ20D | Sφ20 | Finish-milling | √ | 13:31 |
18 | SMHHJ20E | Sφ20 | Finish-milling | √ | 7:24 |
19 | SMHHJ20F | Sφ20 | Finish-milling | √ | 13:31 |
20 | SMHHJ20G | Sφ20 | Finish-milling | √ | 7:24 |
21 | SMHHJQ12 | Sφ12 | Multitool back chipping | √ | 7:24 |
22 | SMHHBQ8 | Sφ8 | Hilted broadsword back chipping | √ | 2:52 |
23 | SMHHJQ8 | Sφ8 | Multitool back chipping | √ | 3:29 |
24 | SMHHJQ6 | Sφ6 | Multitool back chipping | √ | 2:21 |
25 | SMHHJQ4 | Sφ4 | Multitool back chipping | √ | 0:21 |
In 25 digital control processing subroutines listing at table 1, a lot of digital control processing subroutines can only be processed the very short time.Therefore necessary Attended mode, often process a digital control processing subroutine, just need to call in next digital control processing subroutine by the manual input of guidance panel instruction, if cutter or accessory head difference that next digital control processing subroutine is used, that also needs manual input instruction, change accessory head, change cutter, survey cutter and grow and compensate, then could carry out and newly call in digital control processing subroutine and process.
For example, shown in table 1, first digital control processing subroutine is SMNLC63, and the cutter of its use is φ 63R8, and processing content is the thick material of taking, and processing duration is 11 points 56 seconds (11:56).Shown in table 1, second digital control processing subroutine is SMZC32, and the cutter of its use is S φ 32, and processing content is roughing again, and processing duration is 35 seconds (0:35).Be understandable that, in order to reduce follow-up work, advantageously, in the time that digital control processing subroutine is provided, provide the sequence number (showing the sequencing of processing) of each digital control processing subroutine, the accessory head adopting and the cutter of employing simultaneously.
Described routine processes step mainly comprises following three steps: steps A, step B and step C.
Steps A is subroutine call step, comprises following content: a master routine is provided, calls in order described multiple digital control processing subroutine in described master routine.The system that concrete call instruction can adopt according to concrete numerically-controlled machine is determined.As, the instruction of calling first digital control processing subroutine SMNLC63 is CALL SMNLC63; The instruction of calling second digital control processing subroutine SMZC32 is CALL SMZC32.The like.The master routine obtaining is thus as follows:
CALL SMNLC63 (calling the 1st digital control processing subroutine)
CALL SMZC32 (calling the 2nd digital control processing subroutine)
……
CALL SMHHJQ4 (calling the 25th, i.e. last digital control processing subroutine)
In order to increase intuitive and to reduce mistake, each digital control processing subroutine can also be named according to processing sequence.For example,, by first digital control processing subroutine SMNLC63 called after 0001(or 1,01,001,00001; Or the appropriate ways such as P1, P01, P001, P0001, P00001 even); By the instruction called after 0002(or 2,02,002,00002 of second digital control processing subroutine SMZC32; Or the appropriate ways such as P2, P02, P002, P0002, P00002 even).The like.The master routine obtaining is thus as follows:
CALL 0001 (calling the 1st digital control processing subroutine)
CALL 0002 (calling the 2nd digital control processing subroutine)
……
CALL 0025 (calling the 25th, i.e. last digital control processing subroutine)
Step B changes accessory head subroutine procedure for calling, comprise following content: judge whether two adjacent digital control processing subroutines use different accessory heads, if, calling between the instruction of adjacent described two digital control processing subroutines, inserting and call the instruction of changing accessory head subroutine.
Suppose that first digital control processing subroutine SMNLC63 and second digital control processing subroutine SMZC32 use maybe can be used same accessory head.In the case, call without insertion the instruction of changing accessory head subroutine.Next, can judge that whether second subroutine be identical with the 3rd accessory head that subroutine is used, the like.
It is pointed out that after judging whether first and second digital control processing subroutine use same accessory head, also can first judge whether both use same cutter, and then judge second whether identical with the 3rd accessory head that subroutine is used.That is to say, step B can intersect and carry out with step C below.
Also it is to be noted, judge whether first digital control processing subroutine SMNLC63 and second digital control processing subroutine SMZC32 use same accessory head, can after calling all 25 digital control processing subroutines, carry out, also can carry out calling after second digital control processing subroutine.That is to say, step B can intersect and carry out with steps A above.
Step C changes cutter subroutine procedure for calling, comprise following content: judge whether two adjacent digital control processing subroutines use different cutters, if so, calling between the instruction of adjacent described two digital control processing subroutines, inserting and call the instruction of changing cutter subroutine.
For example, from table 1, first digital control processing subroutine SMNLC63 and second digital control processing subroutine SMZC32 use different cutters, call thereby need to insert the instruction of changing cutter subroutine between the instruction of master routine " CALL0001 " and " CALL0002 ", for example, insert " CALL tool changing S φ 32 ".The master routine obtaining is thus as follows:
CALL 0001 (calling the 1st digital control processing subroutine) CALL tool changing S φ 32 (call and change cutter subroutine)
CALL 0002 (calling the 1st digital control processing subroutine)
……
CALL 0025 (calling the 25th, i.e. last digital control processing subroutine)
The like, after all digital control processing subroutines are processed, can obtain a master routine, all digital control processing subroutines are connected into a program by this master routine.Thereby, multiple digital control processing subroutines can be linked together and automatically carry out, thereby greatly improve the automaticity of digital control processing, improve working (machining) efficiency.For example, can realize in whole NC Machining Process that unmanned or a people are on duty keeps an eye on many lathes.
It is pointed out that steps A and step B, step C can also intersect carries out, within this is also included within protection scope of the present invention.For example, in an optional embodiment, first calling program 0001, then calling program 0002, then perform step B and step C, judge between program 0001 and 0002, whether to need to insert and change accessory head subroutine (or changing accessory head instruction) and whether need to insert replacing cutter subroutine (or changing cutter instruction); And then calling program 0003, then then perform step again B and step C, judge and between program 0002 and 0003, whether need to insert the instruction of changing accessory head or changing cutter.
In another optional embodiment, first calling program 0001, then calling program 0002, then calling program 0003, until called all digital control processing subroutines.Then judge and between program 0001 and 0002, whether need to insert the instruction of replacing accessory head; Judge and between program 0002 and 0003, whether need to insert the instruction of replacing accessory head; Until program 0025.Finally judge again and between program 0001 and 0002, whether need to insert the instruction of replacing cutter; Judge and between program 0002 and 0003, whether need to insert the instruction of replacing cutter; Until program 0025.In another optional embodiment, first calling program 0001, then calling program 0002, then calling program 0003, until called all digital control processing subroutines.Then judge and between program 0001 and 0002, whether need to insert the instruction of replacing accessory head; Then judge and between program 0001 and 0002, whether need to insert the instruction of replacing cutter.Then judge again and between program 0002 and 0003, whether need to insert the instruction of replacing accessory head; Judge and between program 0002 and 0003, whether need to insert the instruction of replacing cutter.Until program 0025.
In a preferred embodiment, described replacing accessory head subroutine comprises following step:
(1) judge that Z axis, whether in the position of safety, if not on home, allows Z axis back to zero;
(2) allow X-axis back to zero;
(3) judge on current accessory head whether cutter is housed, if had, cutter is returned to tool magazine;
(4) change current accessory head;
(5) according to changing former and later two different accessory heads, calculate accessory head compensating length;
(6) judge whether safety of Z axis, if safety is carried out accessory head length compensation by beam lifting; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And
(7) upgrade current accessory head register number.
In a preferred embodiment, described replacing cutter subroutine comprises following step:
(1) judge that Z axis, whether in the position of safety, if not on home, allows Z axis back to zero;
(2) allow X-axis back to zero;
(3) change current cutter;
(4) judge whether safety of Z axis, if safety, crossbeam back to zero; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And
(5) upgrade current cutter register number.
Advantageously, described routine processes step further comprises digital control processing subroutine treatment step.
In a preferred embodiment, described digital control processing subroutine treatment step comprises: calling the ending of changing the instruction of accessory head subroutine or calling the last invoked digital control processing subroutine of the instruction of changing cutter subroutine, closing high-speed pattern.
Alternatively, as digital control processing subroutine need to be used fast mode, at the beginning part of digital control processing subroutine, fast mode is set.
In a preferred embodiment, described digital control processing subroutine treatment step also comprises the steps:
(1) to rewriting with the incompatible instruction of master routine in each digital control processing subroutine;
(2) whether mate with used rotating speed according to each digital control processing accessory head that subroutine is used, if do not mate, rotating speed is modified;
(3) according to current cutter situation, according to corresponding register number, carry out altimetric compensation, instruction is write to master routine;
(4), if crossbeam compensated, write coordinate system skew instruction;
(5) analysis step: judge whether safety of Z axis, if dangerous, Z axis back to zero, then, on the basis of Z axis safety, moves to mold center top;
(6) judge in the invoked subroutine before the call instruction of digital control processing subroutine whether have the situation that need to carry out beam lifting and do not carry out lifting, if there is described situation, carry out beam lifting; And
(7) suitable cooked mode is set.
Advantageously, change cutter subroutine as called,, after calling the instruction of changing cutter subroutine, insert and call the instruction of measuring cutter eldest son program.In a preferred embodiment, described measurement cutter eldest son program comprises the steps:
(1) inquire about current accessory head and current cutter, obtain the register number of accessory head code name and storing cutter length;
(2) according to accessory head code name and cutter code name, the long instruction of given measurement cutter, writes master routine by instruction, and long cutter measurement result is stored in tool length register, compensates for tool length.
Preferably, described nc program disposal route further comprises: an operation note file is provided, records all operations were and the parameter of described routine processes step.
Method of the present invention is not subject to the restriction of machine tool system, can realize the corresponding use of different examples according to different lathes.And method of the present invention can be used computerese to realize example easily, thereby manual programming and calculating are converted into computer programming and calculating, avoid artificial error, and greatly increase work efficiency.
Fig. 1 is the process flow diagram of nc program disposal route according to an embodiment of the invention.Nc program disposal route shown in Fig. 1 comprises the steps: to provide multiple digital control processing subroutines; Steps A; Step B; Step C; Step D and step e.
Wherein, providing multiple digital control processing subroutines to refer to provides multiple digital control processing subroutines of carrying out in order, for example, can be multiple digital control processing subroutines of listing in table 1.Described digital control processing subroutine according to called after of processing sequence 0001,0002 ..., 0025.
Steps A is subroutine call step, comprises following content: a master routine is provided, calls in order described multiple digital control processing subroutine in described master routine.The system that concrete call instruction can adopt according to concrete numerically-controlled machine is determined.
Step B changes accessory head subroutine procedure for calling, comprise following content: judge successively whether two adjacent digital control processing subroutines use different accessory heads, if, calling between the instruction of adjacent described two digital control processing subroutines, inserting and call the instruction of changing accessory head subroutine.
Step C changes cutter subroutine procedure for calling, comprise following content: judge successively whether two adjacent digital control processing subroutines use different cutters, if so, calling between the instruction of adjacent described two digital control processing subroutines, inserting and call the instruction of changing cutter subroutine.
Step D measures cutter eldest son program step for calling, and comprises following content: (1) inquires about current accessory head register and current cutter register, obtains the register number of accessory head code name and storing cutter length; And (2) are according to accessory head code name and cutter code name, measure cutter long, just the long measurement result of cutter is stored in tool length register, compensates for tool length.
Step e is digital control processing subroutine treatment step, comprises one or more in following content:
(2) calling the ending of changing the instruction of accessory head subroutine or calling the last invoked digital control processing subroutine of the instruction of changing cutter subroutine, closing high-speed pattern;
(2) as digital control processing subroutine need to be used fast mode, at the beginning part of digital control processing subroutine, fast mode is set;
(3) to rewriting with the incompatible instruction of master routine in each digital control processing subroutine;
(4) whether mate with used rotating speed according to each digital control processing accessory head that subroutine is used, if do not mate, rotating speed is modified;
(5) according to current cutter situation, according to corresponding register number, carry out altimetric compensation, instruction is write to master routine;
(6), if crossbeam compensated, write coordinate system skew instruction;
(7) analysis step: judge whether safety of Z axis, if dangerous, Z axis back to zero, then, on the basis of Z axis safety, moves to mold center top;
(8) judge in the invoked subroutine before the call instruction of digital control processing subroutine whether need to carry out beam lifting, if desired carry out beam lifting and safety, carry out beam lifting; And
(9) suitable cooked mode is set.
Generally speaking, method shown in Fig. 1 can comprise following content: (1) is specified and changed accessory head, changes cutter, adds the instruction of subroutine; (2) corresponding parameter of specifying each instruction, as No.1 in annex, cutter number, program name etc.; (3) calculate respectively corresponding instruction by replacing accessory head, replacing cutter, measurement cutter length, four parts of interpolation subroutine, meet logic, correct format, writes instruction sequences in master routine, and in interpolation subroutine procedure, changes the form of subroutine; And after (4) calculate and finish, rationally correct master routine and subroutine of output, can directly carry out for lathe.
Fig. 2 is the process flow diagram of the replacing accessory head subroutine of nc program disposal route according to an embodiment of the invention.Shown in Fig. 2, change one or more in can comprising the steps of accessory head subroutine: (1) input is changed after accessory head instruction, first judge that Z axis is whether in the position of safety, if not on home, need to allow Z axis back to zero, mention the highest position, instruction is write to master routine; (2) guarantee Renewal process safety, can not interfere with workpiece, next allow lathe X-axis back to zero, this step is carried out while needing clamping workpiece, leaves the sufficient space of changing accessory head on X back to zero position; (3) change accessory head, guarantee not fill cutter on accessory head, if had, cutter need to be returned to tool magazine; (4) write and change accessory head instruction; (5) according to the compensating length of different accessory heads calculating accessory heads, compensate by beam lifting; (6) judge whether safety of Z axis, if safety writes instruction and carries out lifting, otherwise does movement indicia, until fall the opportunity of Z axis safety before executive routine.
Fig. 3 is the process flow diagram of the measurement cutter eldest son program of nc program disposal route according to an embodiment of the invention.Shown in Fig. 3, measure one or more in can comprising the steps of cutter eldest son program: (1) inquires about current accessory head register and cutter register, obtains the register number of accessory head code name and storing cutter length; (2) if do not fill cutter on current accessory head, cannot tool setting, point out wrong backed off after random; (3), if accessory head and cutter are normal, according to accessory head code name and cutter code name, the long instruction of computation and measurement cutter, writes master routine by instruction, and by measurement result storing cutter length register; (4) according to accessory head code name and tool length register, calculate the instruction of tool length compensation, instruction is write to master routine.
Fig. 4 is the process flow diagram of the replacing cutter subroutine of nc program disposal route according to an embodiment of the invention.Shown in Fig. 4, change one or more in can comprising the steps of cutter subroutine: (1) first judges that whether Z axis is in the position of safety, if not on home, first allow Z axis back to zero, mention the highest position, instruction is write to master routine; (2) for guaranteeing Renewal process safety, can not interfere with workpiece, next allow lathe X-axis back to zero, this step is carried out while needing clamping workpiece, reserves the sufficient space of changing accessory head on X back to zero position; (3) change cutter, write and change accessory head instruction; (4) according to the compensating length of different accessory heads calculating accessory heads, compensate by beam lifting; (5) judge whether safety of Z axis, if safety writes instruction and lands and put in place, otherwise does movement indicia, before executive routine until fall the opportunity of Z axis safety.
Fig. 5 is the process flow diagram of the digital control processing subroutine treatment step (subroutine) of nc program disposal route according to an embodiment of the invention.One or more during the subroutine of digital control processing shown in Fig. 4 treatment step (subroutine) can comprise the steps: (1) copy subroutine, name by sequence number, copy procedure scans, the instruction that subroutine is different from master routine is rewritten, and according to the situation of accessory head, examine rotating speed, rewrite if improper; (2) according to current cutter situation, according to corresponding register number, carry out altimetric compensation, instruction is write to master routine; (3), if crossbeam compensates, now write coordinate system skew instruction; (4) judge whether safety of Z axis, if dangerous, Z axis back to zero, mentions safe altitude.Then on the basis of Z axis safety, move to mold center top; (5) if the replacing cutter shown in the replacing accessory head shown in Fig. 2, Fig. 3 has because the dangerous situation that there is no return, because be safe at this moment, by crossbeam return; (6) suitable cooked mode is set, has roughing pattern, semi-finishing pattern, high-quality finishing pattern, high-speed cooked mode.
Beneficial effect:
Use the method; the rich experiences that can absorb senior programming slip-stick artist, are cured, and allow the slip-stick artist who lacks experience also can compile out high-quality program; thereby reach the pressure that reduces to programme, reduced the object that programming requires, prevented the accident that program error causes or report to the police and shut down.Have the slip-stick artist of numerical control programming experience easily to find out, this method is to suitable method for the problem of describing in background technology, solve one by one on suitable opportunity.The method has extendibility, and the problem that new discovery or prediction may occur, can improve and supplement the method, thereby reaches the object to new problem epidemic prevention.
The technician of familiar with computers language is easy to find out, the method realizes in the mode of computer software easily, reaches object reliable, convenient, fast processing.
According to the method, be that SNK lathe has been realized an example with VC++ language, the program that original the abundantest slip-stick artist of factory's experience need to need complete for 1 day, this example can complete at 3-5 minute; Originally often occurred to report to the police to shut down, even smashed import cutter, and use this example, in the several months, processed cover automatic processing programs up to a hundred, problem did not occur.
More than contrast, can see the method, reliability is very high, for by the routine processes of general non-automatic processing being the program of automatically processing, effect is remarkable, the program matching problem that has solved the non-automatic processing of lathe and automatically processed, can only be by the bottleneck of veteran slip-stick artist's manual programming before having got through.
Finally it is to be noted: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit.Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (11)
1. a nc program disposal route, is characterized in that, comprises digital control processing subroutine preparation process and routine processes step, wherein
Described digital control processing subroutine preparation process comprises: multiple digital control processing subroutines of carrying out are in order provided;
Described routine processes step comprises: (1) provides a master routine, calls in order described multiple digital control processing subroutine in described master routine; (2) judge whether two adjacent digital control processing subroutines use different accessory heads, if so, calling between the instruction of adjacent described two digital control processing subroutines, insert and call the instruction of changing accessory head subroutine; And (3) judge whether two adjacent digital control processing subroutines use different cutters, if so, calling between the instruction of adjacent described two digital control processing subroutines, insert and call the instruction of changing cutter subroutine.
2. nc program disposal route as claimed in claim 1, is characterized in that, described replacing accessory head subroutine comprises following step:
(1) judge on current accessory head whether cutter is housed, if had, cutter is returned to tool magazine;
(2) change current accessory head;
(3) according to changing former and later two different accessory heads, calculate accessory head compensating length;
And
(4) upgrade current accessory head register number.
3. nc program disposal route as claimed in claim 1, is characterized in that, described replacing cutter subroutine comprises following step:
(1) change current cutter;
(2) judge whether safety of Z axis, if safety, crossbeam back to zero; If dangerous, mark need to carry out beam lifting, to carry out beam lifting in the time calling follow-up subroutine; And
(3) upgrade current cutter register number.
4. nc program disposal route as claimed in claim 1, is characterized in that, described routine processes step further comprises digital control processing subroutine treatment step.
5. nc program disposal route as claimed in claim 4, it is characterized in that, described digital control processing subroutine treatment step comprises: calling the ending of changing the instruction of accessory head subroutine or calling the last invoked digital control processing subroutine of the instruction of changing cutter subroutine, closing high-speed pattern.
6. nc program disposal route as claimed in claim 4, is characterized in that, as digital control processing subroutine need to be used fast mode, at the beginning part of digital control processing subroutine, fast mode is set.
7. nc program disposal route as claimed in claim 4, is characterized in that, one or more during described digital control processing subroutine treatment step comprises the steps:
(1) to rewriting with the incompatible instruction of master routine in each digital control processing subroutine;
(2) whether mate with used rotating speed according to each digital control processing accessory head that subroutine is used, if do not mate, rotating speed is modified;
(3) according to current cutter situation, according to corresponding register number, carry out altimetric compensation, instruction is write to master routine;
(4), if crossbeam compensated, write coordinate system skew instruction;
(5) analysis step: judge whether safety of Z axis, if dangerous, Z axis back to zero, then, on the basis of Z axis safety, moves to mold center top;
(6) judge in the invoked subroutine before the call instruction of digital control processing subroutine whether need to carry out beam lifting, if desired carry out beam lifting and safety, carry out beam lifting; And
(7) suitable cooked mode is set.
8. nc program disposal route as claimed in claim 1, is characterized in that, changes cutter subroutine as called, and, after calling the instruction of changing cutter subroutine, inserts and calls the instruction of measuring cutter eldest son program.
9. nc program disposal route as claimed in claim 8, is characterized in that, described measurement cutter eldest son program comprises the steps:
(1) inquire about current accessory head register and current cutter register, obtain the register number of accessory head code name, cutter code name and storing cutter length; And
(2) according to accessory head code name and cutter code name, measure cutter long, just the long measurement result of cutter is stored in tool length register, compensates for tool length.
10. nc program disposal route as claimed in any one of claims 1-9 wherein, is characterized in that, further comprises: an operation note file is provided, records all operations were and the parameter of described routine processes step.
11. nc program disposal routes as claimed in any one of claims 1-9 wherein, is characterized in that, described nc program disposal route realizes automatically with computer software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310092662.1A CN103885389A (en) | 2012-12-20 | 2013-03-21 | Numerical control process program processing method |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210557440 | 2012-12-20 | ||
CN201210557440.8 | 2012-12-20 | ||
CN201310092662.1A CN103885389A (en) | 2012-12-20 | 2013-03-21 | Numerical control process program processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103885389A true CN103885389A (en) | 2014-06-25 |
Family
ID=50954340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310092662.1A Pending CN103885389A (en) | 2012-12-20 | 2013-03-21 | Numerical control process program processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103885389A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615079A (en) * | 2014-11-04 | 2015-05-13 | 江苏新瑞重工科技有限公司 | Numerically-controlled machine tool spindle multi-point directing method |
CN106647642A (en) * | 2016-12-08 | 2017-05-10 | 上海维宏电子科技股份有限公司 | Method for calling user-defined subprograms by extended M subprograms in numerical control system |
CN108818093A (en) * | 2018-06-28 | 2018-11-16 | 哈尔滨理工大学 | Intelligent knife-changing system in a kind of process based on decision Tree algorithms |
CN109725603A (en) * | 2017-10-30 | 2019-05-07 | 富鼎电子科技(嘉善)有限公司 | Numerical control processing apparatus, method and storage equipment |
CN110919866A (en) * | 2019-12-06 | 2020-03-27 | 深圳市山龙智控有限公司 | Multi-cutter machining structure and bathroom grinding and cutting method based on multi-cutter machining structure |
CN110977611A (en) * | 2019-12-06 | 2020-04-10 | 深圳市山龙智控有限公司 | Aluminum material processing method and device based on rotating table top of numerical control system |
CN112764392A (en) * | 2021-04-07 | 2021-05-07 | 成都飞机工业(集团)有限责任公司 | Method for preventing numerical control program calling error in numerical control machining |
CN113139716A (en) * | 2021-03-31 | 2021-07-20 | 成都飞机工业(集团)有限责任公司 | Remote automatic error-proof checking method for numerical control machining program package |
CN114063567A (en) * | 2021-11-15 | 2022-02-18 | 四川航天长征装备制造有限公司 | Method for optimizing numerical control program programming |
CN115755766A (en) * | 2022-11-16 | 2023-03-07 | 新代科技(苏州)有限公司 | Group cutter function for machining center |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920716A (en) * | 2005-08-26 | 2007-02-28 | 山崎马扎克公司 | Nc machine tool |
CN101708578A (en) * | 2009-08-12 | 2010-05-19 | 江苏齐航数控机床有限责任公司 | Tool changing manipulator of numerical control machine tool, and control method and tool changing method thereof |
CN101797699A (en) * | 2010-02-10 | 2010-08-11 | 中捷机床有限公司 | Automatic swap method of machine tool |
US20110008119A1 (en) * | 2009-07-03 | 2011-01-13 | Deckel Maho Pfronten Gmbh | Method and machine tool for machining a workpiece |
CN102717288A (en) * | 2011-03-28 | 2012-10-10 | 兄弟工业株式会社 | Machine tool and cutter changing method |
-
2013
- 2013-03-21 CN CN201310092662.1A patent/CN103885389A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1920716A (en) * | 2005-08-26 | 2007-02-28 | 山崎马扎克公司 | Nc machine tool |
US20110008119A1 (en) * | 2009-07-03 | 2011-01-13 | Deckel Maho Pfronten Gmbh | Method and machine tool for machining a workpiece |
CN101708578A (en) * | 2009-08-12 | 2010-05-19 | 江苏齐航数控机床有限责任公司 | Tool changing manipulator of numerical control machine tool, and control method and tool changing method thereof |
CN101797699A (en) * | 2010-02-10 | 2010-08-11 | 中捷机床有限公司 | Automatic swap method of machine tool |
CN102717288A (en) * | 2011-03-28 | 2012-10-10 | 兄弟工业株式会社 | Machine tool and cutter changing method |
Non-Patent Citations (4)
Title |
---|
刘志兵 等: "数控铣镗床头库附件头自动更换管理软件开发设计", 《制造技术与机床》 * |
曾毅: "SINUMERIK 840D数控系统在改造数控仿形铣中自动换刀程序的设计", 《伺服控制》 * |
舒志兵: "《机电一体化系统应用案例精解》", 1 August 2011 * |
龚杰: "龙门加工中心控制系统", 《中国优秀硕士学位论文全文数据库工程科技Ⅰ辑》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104615079A (en) * | 2014-11-04 | 2015-05-13 | 江苏新瑞重工科技有限公司 | Numerically-controlled machine tool spindle multi-point directing method |
CN104615079B (en) * | 2014-11-04 | 2017-11-24 | 江苏新瑞重工科技有限公司 | A kind of main shaft of numerical control machine tool multipoint directional method |
CN106647642A (en) * | 2016-12-08 | 2017-05-10 | 上海维宏电子科技股份有限公司 | Method for calling user-defined subprograms by extended M subprograms in numerical control system |
CN109725603A (en) * | 2017-10-30 | 2019-05-07 | 富鼎电子科技(嘉善)有限公司 | Numerical control processing apparatus, method and storage equipment |
CN108818093A (en) * | 2018-06-28 | 2018-11-16 | 哈尔滨理工大学 | Intelligent knife-changing system in a kind of process based on decision Tree algorithms |
CN110919866A (en) * | 2019-12-06 | 2020-03-27 | 深圳市山龙智控有限公司 | Multi-cutter machining structure and bathroom grinding and cutting method based on multi-cutter machining structure |
CN110977611A (en) * | 2019-12-06 | 2020-04-10 | 深圳市山龙智控有限公司 | Aluminum material processing method and device based on rotating table top of numerical control system |
CN113139716A (en) * | 2021-03-31 | 2021-07-20 | 成都飞机工业(集团)有限责任公司 | Remote automatic error-proof checking method for numerical control machining program package |
CN112764392A (en) * | 2021-04-07 | 2021-05-07 | 成都飞机工业(集团)有限责任公司 | Method for preventing numerical control program calling error in numerical control machining |
CN114063567A (en) * | 2021-11-15 | 2022-02-18 | 四川航天长征装备制造有限公司 | Method for optimizing numerical control program programming |
CN115755766A (en) * | 2022-11-16 | 2023-03-07 | 新代科技(苏州)有限公司 | Group cutter function for machining center |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103885389A (en) | Numerical control process program processing method | |
US10642251B2 (en) | Subtractive machining work center | |
EP2541355B1 (en) | Machine control program creating device | |
US9632493B2 (en) | Method of controlling a robotic work station, as a function of synchronization states, and a corresponding robotic work station | |
JPS62199338A (en) | Automatic prevention device for tool collision | |
US10216170B2 (en) | Numerical controller and program editing method having machining cycle generation function | |
US9523966B2 (en) | Automatic programming apparatus and control command generating method | |
CN103149877B (en) | A kind of guarantee the numerical-control processing method that Machining Instruction information is correct | |
KR20100068535A (en) | Experience-based nc-programming based on machining features | |
US11048234B2 (en) | Numerical control system of machine tool | |
WO2004074953A1 (en) | Numerically controlled device | |
US20230286169A1 (en) | Numerical control system and robot control method | |
US7570006B2 (en) | Method and means for using a control file with a control unit of a machine | |
US5940301A (en) | Process and device for controlling a machine tool in particular, and EDM machine | |
CN109015654A (en) | A kind of robot hole emulation and off-line programing method comprising automatic carriage | |
US20210268620A1 (en) | Automated drilling optimization method | |
EP0611459B1 (en) | A real time tool working system, in particular a grinding system | |
CN106843154B (en) | Handwheel trial run method and device under starting of RTCP (real-time transport control protocol) of five-axis numerical control machine tool | |
US10545483B2 (en) | Production system having additional functionality, and operating method | |
JPH06119031A (en) | Nc data generating method for working of cut remaining part | |
US6529795B1 (en) | Numerical control for machine-tools, robots or the like | |
CN108027602B (en) | Simulation method for simulating real controller of industrial process, facility or machine and simulation system for executing the simulation method | |
KR20200065933A (en) | Measurement and Management System for Mold Manufacture Machine | |
US10635090B2 (en) | Program generating apparatus and program generating method | |
JP2012048471A (en) | Numerical control device and macro program execution method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140625 |