CN106054814A - Image grayscale-based computer aided machining method - Google Patents

Image grayscale-based computer aided machining method Download PDF

Info

Publication number
CN106054814A
CN106054814A CN201610367428.9A CN201610367428A CN106054814A CN 106054814 A CN106054814 A CN 106054814A CN 201610367428 A CN201610367428 A CN 201610367428A CN 106054814 A CN106054814 A CN 106054814A
Authority
CN
China
Prior art keywords
processing
sword
cutter
workpiece
advanced
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.)
Granted
Application number
CN201610367428.9A
Other languages
Chinese (zh)
Other versions
CN106054814B (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.)
Jining Zhongke Intelligent Technology Co ltd
Original Assignee
Jining Zhongke Advanced Technology Institute Co 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 Jining Zhongke Advanced Technology Institute Co Ltd filed Critical Jining Zhongke Advanced Technology Institute Co Ltd
Priority to CN201610367428.9A priority Critical patent/CN106054814B/en
Publication of CN106054814A publication Critical patent/CN106054814A/en
Application granted granted Critical
Publication of CN106054814B publication Critical patent/CN106054814B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4097Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by using design data to control NC machines, e.g. CAD/CAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Image Processing (AREA)
  • Numerical Control (AREA)

Abstract

本发明属于计算机辅助机器人加工领域,具体涉及一种基于图像灰度的计算机辅助加工方法,包括以下步骤:第一步,获得可以表征待加工工件表面信息的灰度图片;第二步,根据工件灰度图片设定工件加工的刀痕矩阵;第三步,选取加工刀具类型,并根据选取的加工刀具类型对刀痕矩阵进行滤波修正;第四步,根据加工工件特征选择加工刀具的加工路径;第五步,以上述步骤获得的数据为基础设置工业机器人加工参数,生成加工程序。本发明可以根据用户的加工目的来调节加工工艺参数,且可以直接生成应用于工业机器人的作业程序,做到完全离线编程,用户接口友好,易用性强。

The invention belongs to the field of computer-aided robot processing, and specifically relates to a computer-aided processing method based on image grayscale, comprising the following steps: the first step is to obtain a grayscale image that can represent the surface information of the workpiece to be processed; the second step is to obtain a grayscale image according to the workpiece The grayscale image sets the tool mark matrix for workpiece processing; the third step is to select the type of processing tool, and filter and correct the tool mark matrix according to the selected processing tool type; the fourth step is to select the processing path of the processing tool according to the characteristics of the processed workpiece ; The fifth step is to set the processing parameters of the industrial robot based on the data obtained in the above steps, and generate the processing program. The invention can adjust the processing parameters according to the user's processing purpose, and can directly generate the operation program applied to the industrial robot, so as to achieve complete off-line programming, friendly user interface and strong usability.

Description

基于图像灰度的计算机辅助加工方法Computer Aided Processing Method Based on Image Gray Level

技术领域technical field

本发明属于计算机辅助机器人加工领域,具体涉及一种基于图像灰度的计算机辅助加工方法。The invention belongs to the field of computer-aided robot processing, and in particular relates to a computer-aided processing method based on image grayscale.

背景技术Background technique

随着机器人技术的不断成熟和完善,机器人被广泛应用于各个领域。然而,在机器人雕刻、铣削、抛光、打磨、表面加工处理等场合,由于大型工件具有曲面复杂度高,形态多变等特点,在实际作业时,需要对机器人的每个作业点的精确位置编程,如果采用人工手动编程,一次编程调试作业往往需要数天甚至更长,费时费力且无法保证精度。With the continuous maturity and improvement of robot technology, robots are widely used in various fields. However, in the occasions of robot engraving, milling, polishing, grinding, surface processing, etc., due to the high complexity of the curved surface and the changeable shape of the large workpiece, in actual operation, it is necessary to program the precise position of each operating point of the robot , if manual programming is used, a programming and debugging operation often takes several days or even longer, which is time-consuming and laborious, and the accuracy cannot be guaranteed.

研究开发一种可以利用计算机辅助进行复杂曲面离线编程的软件算法,以解决上述问题。目前国内从事此类软件算法研发的企业较少,普遍存在如下的难题:Research and develop a software algorithm that can use computer-assisted offline programming of complex surfaces to solve the above problems. At present, there are few domestic companies engaged in the research and development of such software algorithms, and the following problems generally exist:

(1)此类算法软件大部分基于3D模型,易用性不强,扩展性差;(1) Most of these algorithmic software are based on 3D models, which are not easy to use and have poor scalability;

(2)此类算法软件大多适用于数控机床等设备,对工业机器人支持不够;(2) This kind of algorithm software is mostly suitable for equipment such as CNC machine tools, and does not support industrial robots enough;

(3)此类算法软件大多无法适配多种加工工艺。(3) Most of such algorithmic software cannot adapt to a variety of processing techniques.

发明内容Contents of the invention

为解决上述技术问题,本发明的目的在于:提供一种基于图像灰度的计算机辅助加工方法,可以根据用户的加工目的来调节加工工艺参数,且可以直接生成应用于工业机器人的作业程序,做到完全离线编程,用户接口友好,易用性强。In order to solve the above-mentioned technical problems, the purpose of the present invention is to provide a computer-aided processing method based on image grayscale, which can adjust the processing parameters according to the processing purpose of the user, and can directly generate the operation program applied to the industrial robot. From completely offline programming, the user interface is friendly and easy to use.

本发明为解决其技术问题所采用的技术方案为:The technical scheme that the present invention adopts for solving its technical problem is:

所述基于图像灰度的计算机辅助加工方法,包括以下步骤:The computer-aided processing method based on image grayscale comprises the following steps:

第一步,获得可以表征待加工工件表面信息的灰度图片;The first step is to obtain a grayscale image that can represent the surface information of the workpiece to be processed;

第二步,根据工件灰度图片设定工件加工的刀痕矩阵;The second step is to set the tool mark matrix of the workpiece processing according to the grayscale image of the workpiece;

第三步,选取加工刀具类型,并根据选取的加工刀具类型对刀痕矩阵进行滤波修正;The third step is to select the type of processing tool, and filter and correct the tool mark matrix according to the type of processing tool selected;

第四步,根据加工工件特征选择加工刀具的加工路径;The fourth step is to select the machining path of the machining tool according to the characteristics of the machining workpiece;

第五步,以上述步骤获得的数据为基础设置机器人加工参数,生成加工程序。The fifth step is to set the robot processing parameters based on the data obtained in the above steps, and generate the processing program.

其中,优选方案为:Among them, the preferred scheme is:

所述刀痕矩阵的生成过程如下:The generation process of the knife mark matrix is as follows:

接收到第一步所述的灰度图片之后,分析该图片的像素的宽、高信息,结合用户设定的工件尺寸的宽、高信息,并根据“图片的宽高像素数”与“工件的宽高毫米数”的比例,决定每毫米的工件需要加工多少“像素”,即需要加工多少“刀痕”,形成一个完整的刀痕矩阵数据库。After receiving the grayscale picture described in the first step, analyze the pixel width and height information of the picture, combine the width and height information of the workpiece size set by the user, and according to the "number of pixels of width and height of the picture" and "workpiece The ratio of width to height in millimeters" determines how many "pixels" need to be processed per millimeter of workpiece, that is, how many "tool marks" need to be processed, forming a complete knife mark matrix database.

所述第三步中滤波修正原理为:The filter correction principle in the third step is:

定义加工刀具底端能够与工件接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,尖端刃自顶向下接近加工点(X0,Y0,Z0)时,其中X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,计算辅助刃所覆盖的加工点,尖端刃加工(X0,Y0,Z0)点时,辅助刃会损害其覆盖的加工点的原始加工内容,计算辅助刃对其覆盖加工点的最大损伤量,记录该损伤量为ΔZ,ΔZ为Z0与辅助刃当前覆盖加工点最低加工高度之差,如果ΔZ≥0,则进行修正,修正后的尖端刃加工点为(X0,Y0,Z0+ΔZ)。Define the part of the bottom end of the machining tool that can be in contact with the workpiece as the cutting edge, the center of the bottom end of the tool is the tip edge, and the rest is the auxiliary edge. When the tip edge approaches the processing point (X0, Y0, Z0) from top to bottom, X0 and Y0 Characterize the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, calculate the processing point covered by the auxiliary edge, when the tip edge processes (X0, Y0, Z0), the auxiliary edge will damage the original processing point covered by it Processing content, calculate the maximum damage amount of the auxiliary edge to the processing point covered by it, record the damage amount as ΔZ, ΔZ is the difference between Z0 and the minimum processing height of the auxiliary edge currently covering the processing point, if ΔZ≥0, then make correction, after correction The machining point of the cutting edge is (X0, Y0, Z0+ΔZ).

所述加工刀具包括球头刀、平头铣刀和圆角平头刀,加工时,根据加工需求进行选择。The processing tools include ball-end cutters, flat-end milling cutters and rounded-end flat-end cutters, which are selected according to processing requirements during processing.

所述球头刀滤波修正过程如下:The ball nose knife filter correction process is as follows:

所述球头刀刀柄直径为D,球头半径为r,r=D/2,定义球头刀刀具底端能够与工件接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中,X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),需同时满足关系式(1)和关系式(2)The diameter of the shank of the ball-end cutter is D, the radius of the ball-end is r, r=D/2, the part of the bottom end of the ball-end cutter that can be in contact with the workpiece is defined as the cutting edge, the center of the bottom end of the tool is the tip edge, and the rest is Auxiliary edge, when the space coordinate point where the tip edge of the tool is processed is (X0, Y0, Z0), where X0 and Y0 represent the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, and the auxiliary edge The space coordinate point where the processing position is located is (X, Y, Z), and the relationship (1) and relationship (2) must be satisfied at the same time

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 )) 22 -- -- -- (( 11 ))

ZZ == (( ZZ 00 ++ rr )) -- rr 22 -- (( Xx -- Xx 00 )) 22 -- (( YY -- YY 00 )) 22 -- -- -- (( 22 )) ..

所述平头铣刀滤波修正过程如下:The filter correction process of the flat milling cutter is as follows:

所述平头铣刀刀柄直径为D,定义平头铣刀刀具底端能够与工件接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),需同时满足关系式(3)和关系式(4)The diameter of the shank of the flat end milling cutter is D, and the part of the bottom end of the flat end milling cutter that can be in contact with the workpiece is defined as the cutting edge, the center of the bottom end of the tool is the tip edge, and the rest is the auxiliary edge. When the spatial coordinate point of the tool is (X0, Y0, Z0), X0 and Y0 represent the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, and the spatial coordinate point where the auxiliary edge is processed is (X, Y , Z), need to satisfy the relationship (3) and the relationship (4) at the same time

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 )) 22 -- -- -- (( 33 ))

Z=Z0 (4)。Z=Z 0 (4).

所述圆角平头刀滤波修正过程如下:The filter correction process of the rounded flat head knife is as follows:

所述圆角平头刀刀柄直径为D,圆角半径为r,定义圆角平头刀刀具底端能够与工件接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),存在以下两种情况,如果X,Y满足等式(5)The diameter of the handle of the rounded flat head knife is D, and the radius of the rounded corner is r. The part that defines the bottom end of the rounded flat head knife that can contact the workpiece is the blade, the center of the bottom end of the tool is the tip edge, and the rest is the auxiliary edge. When the space coordinate point where the machining position of the tip edge of the tool is located is (X0, Y0, Z0), where X0 and Y0 represent the coordinates of the machining point in the plane, Z0 represents the processing height of the tip edge, and the position of the auxiliary edge machining is The space coordinate point is (X, Y, Z), there are two situations below, if X, Y satisfy the equation (5)

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 -- rr )) 22 -- -- -- (( 55 ))

则Z满足等式(6)Then Z satisfies equation (6)

Z=Z0 (6)Z = Z 0 (6)

如果X,Y满足等式(7)If X, Y satisfy equation (7)

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 >> (( DD. 22 -- rr )) 22 -- -- -- (( 77 ))

则Z满足等式(8)Then Z satisfies equation (8)

ZZ == (( ZZ 00 ++ rr )) -- rr 22 -- (( (( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 -- (( DD. 22 -- rr )) )) 22 -- -- -- (( 88 )) ..

所述加工刀具的加工路径为横向加工、竖向加工或斜向加工,每一种加工路径都可最终做到全工件覆盖,满足不同的加工扫描需求。The processing path of the processing tool is horizontal processing, vertical processing or oblique processing, and each processing path can eventually cover the entire workpiece to meet different processing and scanning requirements.

与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:

本发明可以根据用户的加工目的来调节加工工艺参数,且可以直接生成应用于工业机器人的作业程序,做到完全离线编程,用户接口友好,易用性强。由图片灰度作为数据来源,实现了由灰度图、工具类型来决定加工轨迹的算法运算,解决了现有机器人在雕刻、抛光、打磨、去毛刺等领域对于大型工件加工在工业机器人端编程工作量巨大、编程精度不高的问题,提高了产品的生产加工效率,提升了产品质量,可应用于工业产品加工。The present invention can adjust the processing parameters according to the user's processing purpose, and can directly generate the operation program applied to the industrial robot, so as to achieve complete off-line programming, friendly user interface and strong usability. Using the image grayscale as the data source, the algorithm calculation of the processing trajectory determined by the grayscale image and the tool type is realized, which solves the problem of the existing robots in the fields of engraving, polishing, grinding, deburring, etc. for large workpiece processing on the industrial robot side programming The problem of huge workload and low programming accuracy has improved the production and processing efficiency of products, improved product quality, and can be applied to industrial product processing.

附图说明Description of drawings

图1为本发明在机器人工件加工中的应用示意图。Fig. 1 is a schematic diagram of the application of the present invention in robot workpiece processing.

图2为本发明算法的处理流程图。Fig. 2 is a processing flowchart of the algorithm of the present invention.

图3为本发明球头刀、平头铣刀、圆角平头刀结构示意图。Fig. 3 is a structural schematic diagram of a ball-end cutter, a flat-end milling cutter, and a rounded-end flat-end cutter according to the present invention.

图4为本发明设定工件宽高毫米数的示意图。Fig. 4 is a schematic diagram of setting the width and height of the workpiece in millimeters according to the present invention.

图5为本发明的三种加工路径规划的示意图。Fig. 5 is a schematic diagram of three processing path planning in the present invention.

图6为本发明的滤波算法示意图。Fig. 6 is a schematic diagram of the filtering algorithm of the present invention.

图中:1、工业机器人;2、机器人末端工装夹具;3、加工刀具;4、工件。In the figure: 1. Industrial robot; 2. Fixture at the end of robot; 3. Processing tool; 4. Workpiece.

具体实施方式detailed description

下面结合附图对本发明实施例做进一步描述:Embodiments of the present invention are further described below in conjunction with the accompanying drawings:

实施例1:Example 1:

如图1-2所示,所述基于图像灰度的计算机辅助加工方法,包括以下步骤:As shown in Figure 1-2, the described computer-aided processing method based on image grayscale comprises the following steps:

第一步,获得可以表征待加工工件4表面信息的灰度图片;The first step is to obtain a grayscale image that can represent the surface information of the workpiece 4 to be processed;

第二步,根据工件4灰度图片设定工件4加工的刀痕矩阵;The second step is to set the tool mark matrix of workpiece 4 processing according to the grayscale image of workpiece 4;

第三步,选取加工刀具3类型,并根据选取的加工刀具类型对刀痕矩阵进行滤波修正;The third step is to select the processing tool 3 type, and filter and correct the tool mark matrix according to the selected processing tool type;

第四步,根据加工工件4特征选择加工刀具3的加工路径;The fourth step is to select the machining path of the machining tool 3 according to the characteristics of the machining workpiece 4;

第五步,以上述步骤获得的数据为基础设置工业机器人1加工参数,生成加工程序。The fifth step is to set the processing parameters of the industrial robot 1 based on the data obtained in the above steps, and generate a processing program.

工业机器人1加工参数设置环节,可以设置工业机器人1加工时所使用的基坐标号、工具号、加工线速度、机器人末端工装夹具2位姿等参数,此处设置的参数可以直接在最后生成的工业机器人1程序中直观的体现出来,最后就可以根据以上设置生成加工程序,在工业机器人1上完成自动加工作业。加工时,加工刀具3通过机器人末端工装夹具2固定在工业机器人1上,然后通过加工程序控制工业机器人1上加工刀具3的刀痕矩阵和加工路径,对工件4表面进行加工。In the setting of industrial robot 1 processing parameters, you can set parameters such as the base coordinate number, tool number, processing line speed, robot end fixture 2 pose and other parameters used in the processing of industrial robot 1. The parameters set here can be directly generated in the final It is intuitively reflected in the industrial robot 1 program, and finally the processing program can be generated according to the above settings, and the automatic processing operation can be completed on the industrial robot 1. During processing, the processing tool 3 is fixed on the industrial robot 1 through the end tooling fixture 2 of the robot, and then the tool mark matrix and the processing path of the processing tool 3 on the industrial robot 1 are controlled by the processing program to process the surface of the workpiece 4 .

如图3所示,加工刀具包括球头刀、平头铣刀和圆角平头刀,加工时,根据加工需求进行选择。As shown in Figure 3, the processing tools include ball-end cutters, flat-end milling cutters and rounded-end flat-end cutters, which are selected according to processing requirements during processing.

如图4所示,刀痕矩阵的生成过程如下:As shown in Figure 4, the generation process of the knife mark matrix is as follows:

接收到第一步所述的灰度图片之后,分析该图片的像素的宽W、高L信息,结合用户设定的工件4尺寸的宽A、高B信息,并根据“图片的宽高像素数”与“工件4的宽高毫米数”的比例,决定每毫米的工件4需要加工多少“像素”,即需要加工多少“刀痕”,形成一个完整的刀痕矩阵数据库。After receiving the grayscale picture described in the first step, analyze the width W and height L information of the pixels of the picture, combine the width A and height B information of the workpiece 4 size set by the user, and according to the "picture width and height pixels The ratio of the "width and height millimeters of the workpiece 4" determines how many "pixels" need to be processed per millimeter of the workpiece 4, that is, how many "tool marks" need to be processed to form a complete knife mark matrix database.

如图5所示,加工刀具3的加工路径为横向加工、竖向加工或斜向加工,每一种加工路径都可最终做到全工件4覆盖,满足不同的加工扫描需求。As shown in FIG. 5 , the processing path of the processing tool 3 is horizontal processing, vertical processing or oblique processing, and each processing path can eventually cover the entire workpiece 4 to meet different processing and scanning requirements.

如图6所示,以球头刀为例说明第三步中滤波修正原理:As shown in Figure 6, take the ball-end knife as an example to illustrate the filtering correction principle in the third step:

定义球头刀底端能够与工件4接触的部分为刀刃,球头刀底端中心为尖端刃,其余部分为辅助刃,图6-1为球头刀加工范围内的XY坐标平面的俯视图,此时刀具的刀柄呈现一个圆圈,图6-2为球头刀加工范围主视图,此时每一个待加工的点被描述为Z方向上的小线段组成的矩阵,每个点的加工高度不同则线段的长度也不同,球头刀的尖端自上而下的接近线段的顶端,完成该作业点的加工作业。Define the part of the bottom end of the ball-end cutter that can be in contact with the workpiece 4 as the cutting edge, the center of the bottom end of the ball-end cutter is the tip edge, and the rest is the auxiliary edge. Figure 6-1 is a top view of the XY coordinate plane within the processing range of the ball-end cutter. At this time, the handle of the tool presents a circle. Figure 6-2 is the front view of the processing range of the ball end cutter. At this time, each point to be processed is described as a matrix composed of small line segments in the Z direction, and the processing height of each point is The length of the line segment is different if it is different, and the tip of the ball-end cutter is close to the top of the line segment from top to bottom to complete the processing of the operation point.

图6-3为球头刀加工范围内XZ平面的侧视图,当球头刀刀尖自顶向下接近P0(X0,Y0,Z0)加工点时,在X方向上,其辅助刃会覆盖到P-2,P-1,P+1,P+2等四个点(根据加工点的密度不同,以及刀柄的直径不同,覆盖点的个数会不同),实际在加工P0点时,P-2,P-1,P+1三个点的原始加工内容被球头刀的辅助刃所损害,这样就会造成最后加工结果的损伤,不满足加工需求。为了保证刀具的辅助刃不损害周围的加工点的内容,就需要计算出在刀柄直径覆盖的范围内,即图6-1所示范围,所有可能的点的损伤量。然后做排序得到最大的一个损害量的值,图6-3中球头刀辅助刃对P+1点的损害值最大,记录该损害值为ΔZ。Figure 6-3 is a side view of the XZ plane within the processing range of the ball-end cutter. When the tip of the ball-end cutter approaches the processing point P0 (X0, Y0, Z0) from top to bottom, in the X direction, its auxiliary edge will cover To P-2, P-1, P+1, P+2 and other four points (the number of covered points will be different according to the density of the processing points and the diameter of the handle), when actually processing point P0 , P-2, P-1, P+1 three points of the original processing content is damaged by the auxiliary edge of the ball end cutter, which will cause damage to the final processing result, which does not meet the processing requirements. In order to ensure that the auxiliary edge of the tool does not damage the content of the surrounding processing points, it is necessary to calculate the damage amount of all possible points within the range covered by the diameter of the tool holder, that is, the range shown in Figure 6-1. Then do sorting to get the largest damage value. In Figure 6-3, the auxiliary edge of the ball-end knife has the largest damage value to point P+1, and record the damage value as ΔZ.

如图6-4所示,为了保证在实际加工过程中不产生此损害,于是对当前加工点(X0,Y0,Z0)进行修正,修正后的加工点为(X0,Y0,Z0+ΔZ),其中ΔZ≥0。此滤波运算涉及到加工范围内的每一个点,且根据加工刀具3形状的不同,加工点密度的不同,以刀柄直径的不同,最后得到的运算结果也不同,并直接影响工件4的最后加工的效果,最后形成一个新的完整的刀痕矩阵。As shown in Figure 6-4, in order to ensure that no such damage occurs during the actual processing, the current processing point (X0, Y0, Z0) is corrected, and the corrected processing point is (X0, Y0, Z0+ΔZ) , where ΔZ≥0. This filtering operation involves every point in the processing range, and according to the shape of the processing tool 3, the density of processing points, and the diameter of the handle, the final calculation results are also different, and directly affect the final processing of the workpiece 4. The processing effect finally forms a new and complete knife mark matrix.

其中,球头刀滤波修正过程如下:Among them, the ball nose knife filter correction process is as follows:

假设球头刀刀柄直径为D,球头半径为r,r=D/2,定义球头刀刀具底端能够与工件4接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中,X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),需同时满足关系式(1)和关系式(2)Assuming that the diameter of the shank of the ball-end cutter is D, the radius of the ball-end is r, and r=D/2, the part of the bottom end of the ball-end cutter that can be in contact with the workpiece 4 is defined as the cutting edge, the center of the bottom end of the tool is the tip edge, and the rest is Auxiliary edge, when the space coordinate point where the tip edge of the tool is processed is (X0, Y0, Z0), where X0 and Y0 represent the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, and the auxiliary edge The space coordinate point where the processing position is located is (X, Y, Z), and the relationship (1) and relationship (2) must be satisfied at the same time

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 )) 22 -- -- -- (( 11 ))

ZZ == (( ZZ 00 ++ rr )) -- rr 22 -- (( Xx -- Xx 00 )) 22 -- (( YY -- YY 00 )) 22 -- -- -- (( 22 )) ..

所述平头铣刀滤波修正过程如下:The filter correction process of the flat milling cutter is as follows:

所述平头铣刀刀柄直径为D,定义平头铣刀刀具底端能够与工件4接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),需同时满足关系式(3)和关系式(4)The diameter of the shank of the flat end milling cutter is D, and the part that can be in contact with the workpiece 4 at the bottom end of the flat end milling cutter is defined as the blade, the center of the bottom end of the tool is the tip edge, and the rest is the auxiliary edge. When the tip edge of the tool is processed When the spatial coordinate point is (X0, Y0, Z0), X0 and Y0 represent the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, and the spatial coordinate point where the auxiliary edge is processed is (X, Y, Z), need to satisfy relation (3) and relation (4) at the same time

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 )) 22 -- -- -- (( 33 ))

Z=Z0 (4)。Z=Z 0 (4).

所述圆角平头刀滤波修正过程如下:The filter correction process of the rounded flat head knife is as follows:

所述圆角平头刀刀柄直径为D,圆角半径为r,定义圆角平头刀刀具底端能够与工件4接触的部分为刀刃,刀具底端中心为尖端刃,其余部分为辅助刃,当刀具的尖端刃加工的位置所在的空间坐标点为(X0,Y0,Z0)时,其中X0和Y0表征该加工点在平面中的坐标,Z0表征尖端刃加工高度,辅助刃加工的位置所在的空间坐标点为(X,Y,Z),存在以下两种情况,如果X,Y满足等式(5)The shank diameter of the rounded flat head knife is D, and the radius of the rounded corner is r. The part that defines the bottom end of the rounded flat head knife that can be in contact with the workpiece 4 is the blade, the center of the bottom end of the tool is the tip edge, and the rest is the auxiliary edge. When the space coordinate point where the tip edge of the tool is processed is (X0, Y0, Z0), where X0 and Y0 represent the coordinates of the processing point in the plane, Z0 represents the processing height of the tip edge, and the position of the auxiliary edge is The spatial coordinate point of is (X, Y, Z), there are two situations below, if X, Y satisfy the equation (5)

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 ≤≤ (( DD. 22 -- rr )) 22 -- -- -- (( 55 ))

则Z满足等式(6)Then Z satisfies equation (6)

Z=Z0 (6)Z = Z 0 (6)

如果X,Y满足等式(7)If X, Y satisfy equation (7)

(( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 >> (( DD. 22 -- rr )) 22 -- -- -- (( 77 ))

则Z满足等式(8)Then Z satisfies equation (8)

ZZ == (( ZZ 00 ++ rr )) -- rr 22 -- (( (( Xx -- Xx 00 )) 22 ++ (( YY -- YY 00 )) 22 -- (( DD. 22 -- rr )) )) 22 -- -- -- (( 88 )) ..

Claims (8)

1. a Computer aided building method based on gradation of image, it is characterised in that comprise the following steps:
The first step, it is thus achieved that the gray scale picture of workpiece to be processed (4) surface information can be characterized;
Second step, sets, according to workpiece (4) gray scale picture, the tool marks matrix that workpiece (4) is processed;
3rd step, chooses process tool type, and is filtered revising to tool marks matrix according to the process tool type chosen;
4th step, according to the machining path of processing workpiece (4) feature selection process tool;
5th step, arranges industrial robot (1) machined parameters based on the data that above-mentioned steps obtains, and generates processor.
Computer aided building method based on gradation of image the most according to claim 1, it is characterised in that described tool marks The generation process of matrix is as follows:
After receiving the gray scale picture described in the first step, analyze the information wide, high of the pixel of this picture, set in conjunction with user The information wide, high of workpiece (4) size, and according to the ratio of " the high pixel count of width of picture " Yu " the high millimeter of width of workpiece (4) ", Determine that the workpiece (4) of every millimeter needs processing how many " pixel ", i.e. need processing how many " tool marks ", form complete tool marks Matrix database.
Computer aided building method based on gradation of image the most according to claim 1, it is characterised in that the described 3rd In step, filter correction principle is:
The part that definition process tool bottom can contact with workpiece (4) is blade, and cutter bottom center is most advanced and sophisticated sword, its remaining part Be divided into auxiliary sword, most advanced and sophisticated sword top-down close to processing stand (X0, Y0, Z0) time, wherein X0 and Y0 characterizes this processing stand in plane In coordinate, Z0 characterizes most advanced and sophisticated sword working height, calculates the processing stand that auxiliary sword is covered, most advanced and sophisticated sword processing (X0, Y0, Z0) point Time, auxiliary sword can damage the original processing content of its processing stand covered, and calculates the auxiliary sword maximum damage to its covering processing stand Wound amount, recording this amount of damage is Δ Z, and Δ Z is the difference that Z0 and auxiliary sword currently cover the minimum working height of processing stand, if Δ Z >=0, then it is modified, revised most advanced and sophisticated sword processing stand is (X0, Y0, Z0+ Δ Z).
Computer aided building method based on gradation of image the most according to claim 1, it is characterised in that described processing Cutter includes ball head knife, flat-end cutter and fillet tack cutter.
Computer aided building method based on gradation of image the most according to claim 4, it is characterised in that described bulb Cutter filter correction process is as follows:
Described ball head knife shank diameter is D, and Probe-radius is r, r=D/2, and definition ball head knife cutter bottom can be with workpiece (4) The part of contact is blade, and cutter bottom center is most advanced and sophisticated sword, and remainder is auxiliary sword, when the position that the most advanced and sophisticated sword of cutter is processed When putting the space coordinates point at place for (X0, Y0, Z0), wherein, X0 and Y0 characterizes this processing stand coordinate in the planes, and Z0 characterizes Most advanced and sophisticated sword working height, the space coordinates point at the place, position of auxiliary sword processing is (X, Y, Z), need to meet relational expression (1) simultaneously With relational expression (2)
( X - X 0 ) 2 + ( Y - Y 0 ) 2 ≤ ( D 2 ) 2 - - - ( 1 )
Z = ( Z 0 + r ) - r 2 - ( X - X 0 ) 2 - ( Y - Y 0 ) 2 - - - ( 2 ) .
Computer aided building method based on gradation of image the most according to claim 4, it is characterised in that described tack Milling cutter filter correction process is as follows:
Described flat-end cutter shank diameter is D, and the part that definition flat-end cutter cutter bottom can contact with workpiece (4) is cutter Sword, cutter bottom center is most advanced and sophisticated sword, and remainder is auxiliary sword, when the space at the place, position that the most advanced and sophisticated sword of cutter is processed is sat When punctuate is (X0, Y0, Z0), wherein X0 and Y0 characterizes this processing stand coordinate in the planes, and Z0 characterizes most advanced and sophisticated sword working height, The space coordinates point at the place, position of auxiliary sword processing is (X, Y, Z), need to meet relational expression (3) and relational expression (4) simultaneously
( X - X 0 ) 2 + ( Y - Y 0 ) 2 ≤ ( D 2 ) 2 - - - ( 3 )
Z=Z0 (4)。
Computer aided building method based on gradation of image the most according to claim 4, it is characterised in that described fillet Tack cutter filter correction process is as follows:
Described fillet tack cutter shank diameter is D, and radius of corner is r, and definition fillet tack cutter cutter bottom can be with workpiece (4) The part of contact is blade, and cutter bottom center is most advanced and sophisticated sword, and remainder is auxiliary sword, when the position that the most advanced and sophisticated sword of cutter is processed When putting the space coordinates point at place for (X0, Y0, Z0), wherein X0 and Y0 characterizes this processing stand coordinate in the planes, and Z0 characterizes Most advanced and sophisticated sword working height, the space coordinates point at the place, position of auxiliary sword processing is (X, Y, Z), there is following two situation, as Really X, Y meet equation (5)
( X - X 0 ) 2 + ( Y - Y 0 ) 2 ≤ ( D 2 - r ) 2 - - - ( 5 )
Then Z meets equation (6)
Z=Z0 (6)
If X, Y meet equation (7)
( X - X 0 ) 2 + ( Y - Y 0 ) 2 > ( D 2 - r ) 2 - - - ( 7 )
Then Z meets equation (8)
Z = ( Z 0 + r ) - r 2 - ( ( X - X 0 ) 2 + ( Y - Y 0 ) 2 - ( D 2 - r ) ) 2 - - - ( 8 ) .
Computer aided building method based on gradation of image the most according to claim 1, it is characterised in that process tool Machining path be laterally processing, vertical processing or oblique processing.
CN201610367428.9A 2016-05-28 2016-05-28 Computer aided building method based on image grayscale Expired - Fee Related CN106054814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610367428.9A CN106054814B (en) 2016-05-28 2016-05-28 Computer aided building method based on image grayscale

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610367428.9A CN106054814B (en) 2016-05-28 2016-05-28 Computer aided building method based on image grayscale

Publications (2)

Publication Number Publication Date
CN106054814A true CN106054814A (en) 2016-10-26
CN106054814B CN106054814B (en) 2018-11-30

Family

ID=57176013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610367428.9A Expired - Fee Related CN106054814B (en) 2016-05-28 2016-05-28 Computer aided building method based on image grayscale

Country Status (1)

Country Link
CN (1) CN106054814B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109366503A (en) * 2018-12-17 2019-02-22 北京卫星制造厂有限公司 The processing technology towards large-scale component based on mobile series-parallel robot
CN111085897A (en) * 2018-10-23 2020-05-01 西门子股份公司 3D radius correction method in CNC milling and related milling machine
CN111805556A (en) * 2020-07-21 2020-10-23 上海发那科机器人有限公司 Casting burr cleaning system and method
CN112276119A (en) * 2020-12-26 2021-01-29 成都裕鸢航空零部件制造有限公司 A processing method and a processing tool for a multi-stage blisk welding assembly of a compressor
CN114207535A (en) * 2019-08-19 2022-03-18 株式会社牧野铣床制作所 Method and device for determining processing conditions

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988001764A1 (en) * 1986-08-29 1988-03-10 Fanuc Ltd Robot controller
JP2002258935A (en) * 2000-12-27 2002-09-13 Yutaka Electronics Industry Co Ltd Repairing device for industrial machine
CN1734379A (en) * 2004-08-02 2006-02-15 发那科株式会社 Processing program generating device
CN101445017A (en) * 2008-12-26 2009-06-03 陆宏业 Method for making semitransparent relief ornaments
CN103064343A (en) * 2012-12-19 2013-04-24 华南理工大学 Track generating method facing toward complex curved surface processing and track generating system thereof
CN104252153A (en) * 2013-06-28 2014-12-31 鸿富锦精密工业(深圳)有限公司 CNC (computer numerical control) processing program generating system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1988001764A1 (en) * 1986-08-29 1988-03-10 Fanuc Ltd Robot controller
JP2002258935A (en) * 2000-12-27 2002-09-13 Yutaka Electronics Industry Co Ltd Repairing device for industrial machine
CN1734379A (en) * 2004-08-02 2006-02-15 发那科株式会社 Processing program generating device
CN101445017A (en) * 2008-12-26 2009-06-03 陆宏业 Method for making semitransparent relief ornaments
CN103064343A (en) * 2012-12-19 2013-04-24 华南理工大学 Track generating method facing toward complex curved surface processing and track generating system thereof
CN104252153A (en) * 2013-06-28 2014-12-31 鸿富锦精密工业(深圳)有限公司 CNC (computer numerical control) processing program generating system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李怡凡: "视觉测量技术在数控折弯加工中的应用研究", 《中国优秀硕士学位论文全文数据库 工程科技I辑》 *
梁伟文: "Loop 细分曲面的精加工刀路生成方法研究", 《深圳职业技术学院学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111085897A (en) * 2018-10-23 2020-05-01 西门子股份公司 3D radius correction method in CNC milling and related milling machine
CN111085897B (en) * 2018-10-23 2021-05-25 西门子股份公司 3D Radius Correction Methods in CNC Milling and Related Milling Machines
CN109366503A (en) * 2018-12-17 2019-02-22 北京卫星制造厂有限公司 The processing technology towards large-scale component based on mobile series-parallel robot
CN114207535A (en) * 2019-08-19 2022-03-18 株式会社牧野铣床制作所 Method and device for determining processing conditions
CN114207535B (en) * 2019-08-19 2023-12-22 株式会社牧野铣床制作所 Method and device for determining processing conditions
CN111805556A (en) * 2020-07-21 2020-10-23 上海发那科机器人有限公司 Casting burr cleaning system and method
CN111805556B (en) * 2020-07-21 2023-02-24 上海发那科机器人有限公司 Casting burr cleaning system and method
CN112276119A (en) * 2020-12-26 2021-01-29 成都裕鸢航空零部件制造有限公司 A processing method and a processing tool for a multi-stage blisk welding assembly of a compressor
CN112276119B (en) * 2020-12-26 2021-03-30 成都裕鸢航空智能制造股份有限公司 A processing method and a processing tool for a multi-stage blisk welding assembly of a compressor

Also Published As

Publication number Publication date
CN106054814B (en) 2018-11-30

Similar Documents

Publication Publication Date Title
CN106054814B (en) Computer aided building method based on image grayscale
CN103454972B (en) Based on the method for the cutter five-shaft numerical control grinding automated programming of UG NX API
TWI469849B (en) Manufacturing method for cnc machine tools
CN105739432B (en) Grid free form surface annular cutter method for planning track based on improved B utterfly subdivisions
JP6043234B2 (en) Numerical controller
CN103341787A (en) Numerical control machining cutter radius compensation method based on characteristics
CN106994483B (en) A kind of method of the accurate type face processing of Automobile Cover Drawing Die
TWI459167B (en) Method for controlling a movable tool, system and computer readable media
CN106202754A (en) A kind of space path printed towards multiple degrees of freedom 3D generates method
CN113649909B (en) An Automatic Die Grinding Method Based on Complicated Surface Feature Division
CN108109199A (en) A kind of planar-formed surface three dimension modeling method of end mill processing
CN107330179B (en) Method for quickly creating three-dimensional process model with process auxiliary characteristics
CN107544433A (en) Five-axle number control machine tool plane machining process rose cutter and workpiece contact zone semi analytic modeling method
CN105700469B (en) Towards the cutter location acquiring method of triangle mesh curved surface digital control processing and its application
CN110732531A (en) An offline programming method for robotic laser cleaning equipment
CN104268339B (en) Method and system for selecting cutting parameters and automatically setting parameters based on machining features
CN110153582A (en) Welding scheme generation method, device and welding system
CN103279608B (en) The fast finding localization method of large complicated part process operation
CN110414175B (en) A method of processing parts by using three-dimensional technology
CN105676777B (en) Towards the two-way interpolation numerical control code generating method of triangle mesh curved surface and its application
CN206898453U (en) Connecting rod oilhole aperture curved surface chamfer machining equipment
CN102809943A (en) Intelligent industrial control method
CN110909428A (en) A parametric programming method for robot constant force grinding based on secondary development of UG NX
CN106094721A (en) The processing method of three-dimensional live topography sand table
CN106903555B (en) A kind of determination method in tool-workpiece contact region

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 272000 Building A3 of Production, Education and Research Base of Jining High-tech Zone, Shandong Province

Patentee after: Jining Zhongke Intelligent Technology Co.,Ltd.

Address before: 272000 building A3, industry university research base, No. 9 Haichuan Road, New District, Jining City, Shandong Province

Patentee before: JINING ZHONGKE ADVANCED TECHNOLOGY INSTITUTE Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20181130