CN103116315B - Control method for achieving cutting tool radius compensation overall interference in numerical control system - Google Patents

Control method for achieving cutting tool radius compensation overall interference in numerical control system Download PDF

Info

Publication number
CN103116315B
CN103116315B CN201310051619.0A CN201310051619A CN103116315B CN 103116315 B CN103116315 B CN 103116315B CN 201310051619 A CN201310051619 A CN 201310051619A CN 103116315 B CN103116315 B CN 103116315B
Authority
CN
China
Prior art keywords
control system
digital control
line segment
cutter
intersection point
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.)
Active
Application number
CN201310051619.0A
Other languages
Chinese (zh)
Other versions
CN103116315A (en
Inventor
陈文君
赵冬
牟凤林
汤同奎
郑之开
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Weihong Electronic Technology Ltd
Original Assignee
Shanghai Weihong Electronic Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Weihong Electronic Technology Ltd filed Critical Shanghai Weihong Electronic Technology Ltd
Priority to CN201310051619.0A priority Critical patent/CN103116315B/en
Publication of CN103116315A publication Critical patent/CN103116315A/en
Application granted granted Critical
Publication of CN103116315B publication Critical patent/CN103116315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a control method for achieving cutting tool radius compensation overall interference in a numerical control system and belongs to the technical field of data system control methods. The method comprises the steps of arranging end points of line segments formed by original workpiece paths and cutting tool outer side paths in sequence, and storing the end points into event queues in sequence; judging whether event points exist in the event queues or not, if so, utilizing a scanning line to order the event points and updating state queues; and reporting that overall interference exists if intersection points of line segments in the state queues are intersection points of the line segments formed by the original workpiece paths and the cutting tool outer side paths. The method perform quick overall interference judgment based on the scanning line, operation tine is only related to the number of the intersection points of the line segments, judging speed is high, and accuracy is high. In addition, over cutting possibility can be warned in real time, the control method is suitable for complicated workpiece processing, and is simple and convenient in achieving mode and low in achieving cost.

Description

The control method of cutter radius compensation global interference is realized in digital control system
Technical field
The present invention relates to Computerized Numerical Control technology field, particularly utilize method for controlling cutting tools technical field in the processing technology of digital control system, specifically refer to the control method realizing cutter radius compensation global interference in a kind of digital control system.
Background technology
In digital control system, often need to carry out cutter radius compensation to workpiece to be processed, there is the skew of a tool radius in the actual motion path of cutter relative to the program path of workpiece.In the G code instruction that digital control system is conventional, G41 and G42 indicates the left cutter setting up cutter to mend respectively and right cutter is mended.Cutter radius compensation is significant for accurate processing work: the cutter of client has some wearing and tearing after machined some instruments, utilizes radius compensation, original workpiece path can also be utilized to be that worn out cutter generates suitable machining path.
Cutter compensation control method of the prior art, after the coordinates measurement of cutter radius compensation, the region of the cutter operating path process after compensation can not be crossing with original workpiece path, if there is crossing appearance to cut bad workpiece, this is called interference, has the danger of cutting bad workpiece.Cutter is mended to the detection interfered, most of digital control system all only has local to interfere detection, and cutter benefit rear path direction vector and workpiece path direction vector can be utilized in process to compare to have determined whether that local is interfered.
But actual processed file may produce the situation of global interference.This situation cannot detect with detecting the method for interfering local.Once there is this interference, if do not have Timeliness coverage to cut bad workpiece.
As shown in Figure 1, if now press the path processing after cutter benefit, will workpiece be cut bad.In ellipse, workpiece corner angle has cut away by cutter.Interference for this type of cannot calculate in real time because following any line segment all may with current red line segment intersection.Can only carry out by off-line so detect global interference.
The workpiece of reality processing can complicated a lot of than shown in Fig. 1, and line segment quantity is many, if there is workpiece path have hundreds of thousands bar, the line segment of up to a million, so adopting general method off-line to carry out detection global interference speed can be slowly.Huge data volume may make Programmable detection speed extremely slow, cannot be applied in actual software product.Therefore, how to realize fast and effeciently detecting global interference, warn user may produce the situation of cutting with current workpiece processing tool in advance, become problem demanding prompt solution in the art.
Summary of the invention
The object of the invention is to overcome above-mentioned shortcoming of the prior art, there is provided a kind of and carry out global interference judgement fast based on sweep trace, its working time is only relevant to intersection point of line segments quantity, judgement speed is fast, accuracy rate is high, real-time alerting user can may produce the situation of cutting with current workpiece processing tool, is applicable to complicated work pieces process, and implementation is easy, realize the control method realizing cutter radius compensation global interference in digital control system with low cost.
In order to realize above-mentioned object, the control method realizing cutter radius compensation global interference in digital control system of the present invention comprises the following steps:
(1) digital control system generates the outer side path of cutter according to original workpiece path;
(2) end points of the composition line segment of outer to described original workpiece path and cutter side path arranges by order from left to right by digital control system, and by described end points according to top-down order stored in event queue;
(3) whether have case point in the event queue described in digital control system judgement, if do not have, then method ends, if having, then enters step (4);
(4) digital control system init state queue; Described state queue in order to store the current all line segments crossing with sweep trace, and specifies sequential storage;
(5) digital control system utilizes sweep trace from left to right to scan case point in described event queue, and the state queue described in upgrading according to scanning mode;
(6) whether the line segment in the state queue described in digital control system judgement produces intersection point, and no is enter step (7), if not, then returns step (5);
(7) digital control system is by the event queue described in intersection point insertion, and whether the line segment judging to form intersection point is respectively the composition line segment of original workpiece path and the composition line segment of the outer side path of cutter, if so, then enters step (8), if not, then step (5) is returned;
(8) there is global interference in digital control system report.
Realize in the control method of cutter radius compensation global interference in this digital control system, described case point is the intersection point of the composition line segment of the outer side path of described original workpiece path or cutter.
Realize in the control method of cutter radius compensation global interference in this digital control system, state queue described in described digital control system upgrades according to scanning mode, is specially: the line segment sequential update after described case point is entered described state queue by described digital control system.
Realize in the control method of cutter radius compensation global interference in this digital control system, whether the line segment in the state queue described in described digital control system judges produces intersection point, specifically comprises the following steps:
(61) whether the line segment order upgraded in the state queue described in the digital control system described in judges has new adjacent segments;
(62) whether the new adjacent segments described in the digital control system described in judges can produce intersection point.
Realize in the control method of cutter radius compensation global interference in this digital control system, described state queue is the state queue of balanced binary tree construction
Have employed the control method realizing cutter radius compensation global interference in the digital control system of this invention, the end points of the composition line segment of outer to original workpiece path and cutter side path first arranges by order from left to right by it, and by end points according to top-down order stored in event queue; Whether there is case point in then decision event queue, if do not have, then there is not global interference, if having, then utilize sweep trace from left to right to scan case point in described event queue, and upgrade state queue according to scanning mode; Then judge whether the line segment in state queue produces intersection point, no is that whether the line segment judging to form intersection point is further respectively the composition line segment of original workpiece path and the composition line segment of the outer side path of cutter, and if so, then report exists global interference.The method is carried out global interference fast based on sweep trace and is judged, its working time is only relevant to intersection point of line segments quantity, thus can ensure that judgement speed is fast, accuracy rate is high, and real-time alerting user can may produce the situation of cutting with current workpiece processing tool, be applicable to complicated work pieces process, and in digital control system of the present invention, realize the control method of cutter radius compensation global interference, its implementation is easy, realizes with low cost.
Accompanying drawing explanation
Fig. 1 is the machining path schematic diagram of the Tool Compensation generation global interference utilizing prior art.
Fig. 2 is the schematic flow sheet of the control method realizing cutter radius compensation global interference in digital control system of the present invention.
Fig. 3 is the schematic diagram utilizing sweep trace to carry out global interference fast in the control method realizing cutter radius compensation global interference in digital control system of the present invention to judge.
Embodiment
In order to more clearly understand technology contents of the present invention, describe in detail especially exemplified by following examples.
Refer to shown in Fig. 2, for realizing the schematic flow sheet of the control method of cutter radius compensation global interference in digital control system of the present invention.
In one embodiment, the method comprises the following steps:
(1) digital control system generates the outer side path of cutter according to original workpiece path;
(2) end points of the composition line segment of outer to described original workpiece path and cutter side path arranges by order from left to right by digital control system, and by described end points according to top-down order stored in event queue;
(3) whether have case point in the event queue described in digital control system judgement, if do not have, then method ends, if having, then enters step (4), and wherein, described case point is the intersection point of the composition line segment of the outer side path of described original workpiece path or cutter;
(4) digital control system init state queue; Described state queue in order to store the current all line segments crossing with sweep trace, and specifies sequential storage;
(5) digital control system utilizes sweep trace from left to right to scan case point in described event queue, and the state queue described in upgrading according to scanning mode;
(6) whether the line segment in the state queue described in digital control system judgement produces intersection point, and no is enter step (7), if not, then returns step (5);
(7) digital control system is by the event queue described in intersection point insertion, and whether the line segment judging to form intersection point is respectively the composition line segment of original workpiece path and the composition line segment of the outer side path of cutter, if so, then enters step (8), if not, then step (5) is returned;
(8) there is global interference in digital control system report.
In more preferably embodiment, in described step (5) digital control system upgrade according to scanning mode described in state queue, be specially: the line segment sequential update after described case point is entered described state queue by described digital control system.Whether the line segment in the state queue described in the digital control system described in its step (6) judges produces intersection point, specifically comprises the following steps:
(61) whether the line segment order upgraded in the state queue described in the digital control system described in judges has new adjacent segments;
(62) whether the new adjacent segments described in the digital control system described in judges can produce intersection point.
In preferred embodiment, described state queue is the state queue of balanced binary tree construction.
In the digital control system process of reality, after compensating, the opposite side of cutter defines a line segment parallel with original workpiece path, if do not have global interference, then this path should there will not be intersection point with the machining path of original workpiece.
So in practical application of the present invention, the first step, traditional method is utilized to generate the outer side path of cutter, the outer side path of this cutter is not the center cutter point running orbit after cutter compensation, but the path of the cutter other end corresponding with workpiece path, distance workpiece path is just in time tool diameter, the path that namely in Fig. 1, solid line line segment forms.The path of two types after generation is all the set of line segment in fact.
Suppose have a sweep trace to scan the right from the left side of figure.When occurring global interference somewhere, result can be warned user when scanning this by sweep trace.Once all interference points just can export by scanning from left to right.
The end points of outer to all workpiece paths and cutter side path is all stored in a queue, and by these points according to from left to right, order sequence from top to bottom.These node balanced binary trees store, and each node inserting new node new with deletion is all quite rapid.Represent this binary tree with Q, in fact Q is exactly a case point queue, along with the sweep trace from left to right Scanning Detction intersection point that may occur, if there is new intersection point to occur, then this intersection point is added Q.Define a balanced binary tree L in addition, L have recorded sweep trace state, i.e. all line segment aggregates crossing with current scan line.Certainly, some line segment comes from workpiece path, and some line segment comes from the outer side path of cutter.Line segment in L, according to the intersection point with sweep trace, arranges from small to large, sweep trace limit scanning from left to right, runs into the event that case point just processes present node appearance.Each case point can upgrade the record in L, and is inserted in Q by issuable new intersection point of line segments.
As shown in Figure 3, at case point (2,4 intersection point), green sweep trace and 1,2,3,4,5,6 crossing, so, before this case point of sweep trace process, the line segment order in L is (5,4,3,2,1), after case point process, make line segment order in L for (5,6,2,4,1), which produces new 1,4 adjacent and 5,6 adjacent.Due to the generation of new adjacent segments, can judge whether newly adjacent line segment has intersection point, if there is new intersection point to produce (5,6 producing new intersection point here), new intersection point is inserted in case point queue Q.
During a certain case point P of concrete process, there is following operation to L:
1, all line segment aggregate A that definition is crossing with P point, find out the line segment above A, if existed, represent, find out the line segment below A with u, if existed, represent with d.
2, all right endpoints are deleted in L at the line segment of P point.
3, line segment crossing with P point in L is deleted.
4, insert the line segment crossing with P point in L, insert the line segment of all left end points at P point.
Why to carry out step 3,4 operation, being to correctly upgrade L middle conductor order, finding the new the top line segment nu inserting line segment; New bottom line segment nd(nu and nd inserting line segment is found to only have a same line segment of line segment insertion interval scale).L is balanced binary tree, but has any different with general balanced binary tree, and the standard of each deletion and insertion judgement order of elements is different.
If 5 exist nu and u simultaneously, judge whether two line segments intersect, if produce new intersection point, and new intersection point is on the right of sweep trace, be then inserted in Q as new case point by new intersection point.If there is nd and d simultaneously, then carry out same operation.Certainly, if do not have nu and nd, if so there is u and d, just carry out the crossing detection of u and d, if produce new intersection point, and new intersection point is on the right of sweep trace, be then inserted in Q as new case point by new intersection point.
As long as also have the case point in Q, continue as above to operate other case point.New case point may be produced in process, be inserted into appropriate location in Q.
If when processing a certain case point, there is new intersection point, two line segments of this intersection point have been come from workpiece path and the outer side path of cutter respectively, so, have just occurred global interference.
In the cutter complementary modulus block of reality, efficient global interference module realizes very complicated.Relate to L middle conductor renewal rewards theory and be actually basis adopts complete idea slope judgement standard at sweep trace Left or right.Complete method of the present invention, needs can travel through in order from appointment line segment in state queue L, and this is to search out adjacent segments to be determined faster.
Have employed the control method realizing cutter radius compensation global interference in the digital control system of this invention, the end points of the composition line segment of outer to original workpiece path and cutter side path first arranges by order from left to right by it, and by end points according to top-down order stored in event queue; Whether there is case point in then decision event queue, if do not have, then there is not global interference, if having, then utilize sweep trace from left to right to scan case point in described event queue, and upgrade state queue according to scanning mode; Then judge whether the line segment in state queue produces intersection point, no is that whether the line segment judging to form intersection point is further respectively the composition line segment of original workpiece path and the composition line segment of the outer side path of cutter, and if so, then report exists global interference.The method is carried out global interference fast based on sweep trace and is judged, its working time is only relevant to intersection point of line segments quantity, thus can ensure that judgement speed is fast, accuracy rate is high, and real-time alerting user can may produce the situation of cutting with current workpiece processing tool, be applicable to complicated work pieces process, and in digital control system of the present invention, realize the control method of cutter radius compensation global interference, its implementation is easy, realizes with low cost.
In this description, the present invention is described with reference to its specific embodiment.But, still can make various amendment and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, instructions and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (4)

1. realize a control method for cutter radius compensation global interference in digital control system, it is characterized in that, case point is the intersection point of the composition line segment of the outer side path of original workpiece path or cutter, and described method comprises the following steps:
(1) digital control system generates the outer side path of cutter according to original workpiece path;
(2) end points of the composition line segment of outer to described original workpiece path and cutter side path arranges by order from left to right by digital control system, and by described end points according to top-down order stored in event queue;
(3) whether have case point in the event queue described in digital control system judgement, if do not have, then method ends, if having, then enters step (4);
(4) digital control system init state queue; Described state queue in order to store the current all line segments crossing with sweep trace, and specifies sequential storage;
(5) digital control system utilizes sweep trace from left to right to scan case point in described event queue, and the state queue described in upgrading according to scanning mode;
(6) whether the line segment in the state queue described in digital control system judgement produces intersection point, if so, then enters step (7), if not, then returns step (5);
(7) digital control system is by the event queue described in intersection point insertion, and whether the line segment judging to form intersection point is respectively the composition line segment of original workpiece path and the composition line segment of the outer side path of cutter, if so, then enters step (8), if not, then step (5) is returned;
(8) there is global interference in digital control system report.
2. realize the control method of cutter radius compensation global interference in digital control system according to claim 1, it is characterized in that, the state queue described in described digital control system upgrades according to scanning mode, is specially:
Line segment sequential update after described case point is entered described state queue by described digital control system.
3. realize the control method of cutter radius compensation global interference in digital control system according to claim 2, it is characterized in that, whether the line segment in the state queue described in described digital control system judges produces intersection point, specifically comprises the following steps:
(61) whether the line segment order upgraded in the state queue described in the digital control system described in judges has new adjacent segments;
(62) whether the new adjacent segments described in the digital control system described in judges can produce intersection point.
4. realize the control method of cutter radius compensation global interference in digital control system according to claim 2, it is characterized in that, described state queue is the state queue of balanced binary tree construction.
CN201310051619.0A 2013-02-17 2013-02-17 Control method for achieving cutting tool radius compensation overall interference in numerical control system Active CN103116315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310051619.0A CN103116315B (en) 2013-02-17 2013-02-17 Control method for achieving cutting tool radius compensation overall interference in numerical control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310051619.0A CN103116315B (en) 2013-02-17 2013-02-17 Control method for achieving cutting tool radius compensation overall interference in numerical control system

Publications (2)

Publication Number Publication Date
CN103116315A CN103116315A (en) 2013-05-22
CN103116315B true CN103116315B (en) 2015-03-11

Family

ID=48414727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310051619.0A Active CN103116315B (en) 2013-02-17 2013-02-17 Control method for achieving cutting tool radius compensation overall interference in numerical control system

Country Status (1)

Country Link
CN (1) CN103116315B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5813058B2 (en) 2013-07-02 2015-11-17 ファナック株式会社 Numerical controller with a function for shortening the starting point path of a complex fixed cycle
CN110799915B (en) * 2017-05-26 2022-07-12 深圳配天智能技术研究院有限公司 Tool path compensation method and numerical control machine tool
CN111771171B (en) * 2018-12-28 2022-10-11 深圳配天智能技术研究院有限公司 Interference detection method and device for cutter radius compensation and storage device
CN111684375B (en) * 2018-12-28 2022-10-11 深圳配天智能技术研究院有限公司 Interference detection method and device for cutter radius compensation and storage device
CN110908332B (en) * 2019-12-05 2023-06-23 上海维宏电子科技股份有限公司 Method for realizing cutter radius compensation control aiming at circular arc cutter path in numerical control system
CN111580456B (en) * 2020-04-08 2021-05-18 广州奇芯机器人技术有限公司 Method for realizing cutter radius compensation on small line segment continuous track

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109944A (en) * 2007-08-23 2008-01-23 上海交通大学 Method for planning smooth and non-interference tool route of 5-axis numerical control machining
CN101216706A (en) * 2007-12-28 2008-07-09 西安交通大学 Tool bit effective machining area calculation based on three scan line and cutter path creation method
CN101303583A (en) * 2008-06-19 2008-11-12 上海交通大学 Method for planning five-axis numerical control to process safety shortest cutting tool length
CN102117056A (en) * 2009-12-31 2011-07-06 新代科技股份有限公司 Numerically-controlled corner motion method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55110307A (en) * 1979-02-16 1980-08-25 Oki Electric Ind Co Ltd Correcting method for cutter diameter
WO2010142390A1 (en) * 2009-06-08 2010-12-16 Basell Polyolefine Gmbh Method to improve the barrier properties of ethylene polymer against permeation of hydrocarbons and plastic fuel tank having improved barrier properties

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101109944A (en) * 2007-08-23 2008-01-23 上海交通大学 Method for planning smooth and non-interference tool route of 5-axis numerical control machining
CN101216706A (en) * 2007-12-28 2008-07-09 西安交通大学 Tool bit effective machining area calculation based on three scan line and cutter path creation method
CN101303583A (en) * 2008-06-19 2008-11-12 上海交通大学 Method for planning five-axis numerical control to process safety shortest cutting tool length
CN102117056A (en) * 2009-12-31 2011-07-06 新代科技股份有限公司 Numerically-controlled corner motion method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
五轴数控加工干涉检查技术的研究;王忠;《浙江大学硕士学位论文》;20051231;正文第61页至69页 *

Also Published As

Publication number Publication date
CN103116315A (en) 2013-05-22

Similar Documents

Publication Publication Date Title
CN103116315B (en) Control method for achieving cutting tool radius compensation overall interference in numerical control system
CN107256005B (en) BIM technology-based steel bar numerical control machining method and equipment
CN109767242A (en) Tracing Material method, system, computer equipment and storage medium based on two dimensional code
CN102822754B (en) Operating simulation method and device thereof
CN102609501B (en) Data cleaning method based on real-time historical database
CN101968767A (en) Macroprogram-based code debugging and simulation method and device
CN101776879B (en) Method for returning to mechanical reference point in numerical control machine tool system
CN101395576A (en) A method for comparing, an automation system and a controller
EP3299968A1 (en) Big data calculation method and system
CN105005568A (en) Front-end processing device and method of web page on the basis of template
CN106156245B (en) Line element merging method and device in electronic map
US11869100B2 (en) Data consolidation analysis system and data consolidation analysis method
CN103744788B (en) The characteristic positioning method analyzed based on multi-source software data
CN111723441A (en) Plastic part pre-deformation part modeling method, system and device and storage medium
CN114428480A (en) Real-time tool anti-collision method in machining process of numerical control machine tool
KR101854269B1 (en) Apparatus and method for providing material information
CN113064674B (en) Method and device for expanding state machine logic, storage medium and electronic device
CN102609592A (en) Machining process model sequential modeling method based on characteristic identification removal
CN102663787A (en) Method and system for image path generation
Hussain et al. Automated fault tree generation and risk-based testing of networked automation systems
CN112560143A (en) Method and system for quickly layering and blocking mass concrete in hydraulic and hydroelectric engineering
CN103186365B (en) A kind of method and system generating steering order according to character contour change
CN105345447A (en) Screw locking method and system based on PLC
CN114394418B (en) Intelligent control method and equipment for manufacturing rotor copper bars
CN102375901A (en) Cloud processing system for mold design process

Legal Events

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