CN114357549A - Arc surface glass cutting method based on coordinate transformation - Google Patents
Arc surface glass cutting method based on coordinate transformation Download PDFInfo
- Publication number
- CN114357549A CN114357549A CN202111661796.1A CN202111661796A CN114357549A CN 114357549 A CN114357549 A CN 114357549A CN 202111661796 A CN202111661796 A CN 202111661796A CN 114357549 A CN114357549 A CN 114357549A
- Authority
- CN
- China
- Prior art keywords
- workpiece
- coordinate
- contour
- arc
- dimensional
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P40/00—Technologies relating to the processing of minerals
- Y02P40/50—Glass production, e.g. reusing waste heat during processing or shaping
- Y02P40/57—Improving the yield, e-g- reduction of reject rates
Landscapes
- Numerical Control (AREA)
Abstract
Description
技术领域technical field
本发明涉及球面坐标变换、圆弧面玻璃切割等领域,具体涉及一种基于坐标变换的圆弧面玻璃切割方法。The invention relates to the fields of spherical coordinate transformation, arc glass cutting and the like, in particular to a method for cutting arc glass based on coordinate transformation.
技术背景technical background
玻璃的广泛应用于我们的生活中,小到工艺饰品大到特种建筑,其市场潜力非常大。玻璃的加工需要经过配料、熔制、成形、退火等工序。经过加工后的玻璃还需要进一步切割、剥片生产出符和要求形状的玻璃。玻璃是一种易碎的材料,Glass is widely used in our lives, from craft accessories to special buildings, and its market potential is very large. The processing of glass requires batching, melting, forming, annealing and other processes. The processed glass also needs to be further cut and peeled to produce the glass with the required shape. Glass is a fragile material,
在切割时需要控制好刀头的压力和走刀力量。玻璃的切割带来了许多问题。普通的平面玻璃可以采用四轴数控系统三维坐标系来切割。三维弧面玻璃切割会带来加工形状变形、空间复杂度过高、玻璃加工导角不平滑、玻璃易碎等诸多问题(一种极坐标圆锯片线切割方法及基于其的线切割设备)。When cutting, it is necessary to control the pressure of the cutter head and the force of the knife. The cutting of glass presents many problems. Ordinary flat glass can be cut by the three-dimensional coordinate system of the four-axis CNC system. Three-dimensional curved glass cutting will bring about many problems such as deformation of processing shape, excessive space complexity, uneven glass processing chamfer, and fragile glass (a polar coordinate circular saw blade wire cutting method and wire cutting equipment based thereon) .
然而弧面玻璃因为其特殊的形状特点和光学特性又在小汽车后视镜,玻璃反光镜等领域有着极其重要的重用。目前,玻璃切割领域对弧形球面玻璃的切割方法参考非常少。However, because of its special shape characteristics and optical characteristics, curved glass has extremely important reuse in the fields of car rearview mirrors and glass reflectors. At present, there is very little reference to the cutting method of curved spherical glass in the field of glass cutting.
发明内容SUMMARY OF THE INVENTION
本发明针对以上指出的不足,提出了一种基于坐标变换的圆弧面玻璃切割方法,利用工件二维平面到球面坐标变换来定位空间坐标(平面工件映射、中心点角度变换,球面坐标天顶角旋转等),进而实现弧形玻璃切割,该方法在加工小汽车后视镜,弧形反光镜等领域有重要用途,以解决弧形玻璃切割的实现问题;将绘制的二维CAD图形映射到球面上结合加工工件模具的圆弧半径进而描述整个加工的圆弧工件。In view of the above-mentioned deficiencies, the present invention proposes a method for cutting circular arc surface glass based on coordinate transformation, which utilizes the two-dimensional plane-to-spherical coordinate transformation of the workpiece to locate the spatial coordinates (plane workpiece mapping, center point angle transformation, spherical coordinate zenith) Angle rotation, etc.), and then realize arc glass cutting, this method has important applications in the processing of car rearview mirrors, arc mirrors and other fields to solve the realization problem of arc glass cutting; map the drawn two-dimensional CAD graphics Combined with the arc radius of the workpiece mold to the spherical surface to describe the entire processed arc workpiece.
本发明至少通过如下技术方案之一实现。The present invention is realized by at least one of the following technical solutions.
一种基于坐标变换的圆弧面玻璃切割方法,步骤以下包括:A method for cutting arc surface glass based on coordinate transformation, the steps include:
S1、绘制将要在弧面上加工的n个工件,绘制的工件图形为每个圆弧工件在平面投影的二维轮廓图,取每个工件二维轮廓图的中心点;S1, draw n workpieces to be processed on the arc surface, the drawn workpiece graphics are the two-dimensional contour map of each arc workpiece projected on the plane, and take the center point of the two-dimensional contour map of each workpiece;
S2、基于绘制的工件的二维轮廓图的中心点,通过投影算法将中心点投影到球面上的投影点,以投影点为中心点的工件记作弧面工件,收集弧面工件的轮廓坐标点集合,并记录中心点在绘图图纸上与X轴的平面夹角为;S2. Based on the center point of the drawn two-dimensional contour map of the workpiece, the center point is projected to the projection point on the spherical surface through the projection algorithm, the workpiece with the projection point as the center point is recorded as the arc surface workpiece, and the contour coordinates of the arc surface workpiece are collected. Set of points, and record the angle between the center point and the X-axis plane on the drawing sheet as ;
S3、将绘制的工件平移到使得工件的中心点和平面坐标的原点重合,得到平移后的工件,将平移后的工件投影映射到球面上,得到投影工件,记录投影工件的轮廓坐标点集合(xn,yn,zn),n为投影工件轮廓取的n个描述轮廓边的点,通过三维坐标系到极坐标系的变换得到投影工件轮廓的极坐标点集合 S3, translate the drawn workpiece to make the center point of the workpiece coincide with the origin of the plane coordinates, obtain the translated workpiece, project the translated workpiece onto the spherical surface, obtain the projected workpiece, and record the outline coordinate point set of the projected workpiece ( x n , y n , z n ), n is the n points describing the contour edge taken from the projected workpiece contour, and the polar coordinate point set of the projected workpiece contour is obtained through the transformation from the three-dimensional coordinate system to the polar coordinate system
S4、计算弧面工件坐标中心点、弧面工件与Z轴的天顶角夹角θ,通过空间坐标旋转将投影工件轮廓的极坐标点集合旋转到弧面工件处,得到弧面工件轮廓的极坐标点集合 S4. Calculate the coordinate center point of the cambered workpiece, the included angle θ of the zenith angle between the cambered workpiece and the Z-axis, and set the polar coordinate points of the projected workpiece contour through the rotation of the space coordinates Rotate to the cambered workpiece to obtain the polar coordinate point set of the cambered workpiece contour
S5、将弧面工件的极坐标点集合通过极坐标向三维坐标系的变换得到三维坐标点集合(x′n,y′n,z′n);S5, obtain the three-dimensional coordinate point set (x′ n , y′ n , z′ n ) by transforming the polar coordinate point set of the camber workpiece into the three-dimensional coordinate system;
S6、将弧面工件的三维空间坐标点集合生成数控刀头加工的运行轨迹的识别nc代码文件。S6 , generating an nc code file for identifying the running trajectory of the CNC tool head machining from the set of three-dimensional space coordinate points of the cambered workpiece.
进一步地,所述弧面上加工的n个小工件是圆弧面底座材料允许密集排列的最大加工工件个数;所述的平面投影的二维轮廓图是将欲加工的圆弧工件在平面上的垂直投影映射的工件轮廓的二维坐标点集图;Further, the n small workpieces processed on the arc surface are the maximum number of workpieces to be processed that are allowed to be densely arranged by the base material of the arc surface; The two-dimensional coordinate point set map of the workpiece contour mapped by the vertical projection on the map;
每个小工件二维轮廓中心点Pn为小工件几何上的中心点坐标位置,n=1、2、、、N,N的是允许密集排列的最大加工工件个数。The center point P n of the two-dimensional contour of each small workpiece is the coordinate position of the center point on the geometry of the small workpiece, and n=1, 2, , , N, where N is the maximum number of workpieces allowed to be densely arranged.
进一步地,三维坐标系到极坐标系的变换公式为:Further, the transformation formula from the three-dimensional coordinate system to the polar coordinate system is:
其中,rn为圆弧工件的圆弧半径,为方向角,θn为天顶角,(xn,yn,zn)为投影工件轮廓在三维坐标系里面的坐标,为投影工件轮廓在极坐标系里面的坐标。Among them, rn is the arc radius of the arc workpiece, is the direction angle, θ n is the zenith angle, (x n , y n , z n ) is the coordinates of the projected workpiece contour in the three-dimensional coordinate system, It is the coordinates of the projected workpiece contour in the polar coordinate system.
进一步地,极坐标点集合为绕着每一个小工件的轮廓线条取遍一周得到的坐标点集合。Further, the polar coordinate point set A set of coordinate points obtained by traversing the outline of each small workpiece.
进一步地,所述天顶角夹角为三维空间某点与Z轴的夹角θ。Further, the included angle of the zenith angle is the included angle θ between a certain point in the three-dimensional space and the Z axis.
进一步地,所述的空间坐标点集是依据投影工件的中心点极坐标旋转变换到弧面工件的中心点P’所变化的天顶角夹角θ和方位角后得到的点集合。Further, the described space coordinate point set is the zenith angle included angle θ and the azimuth angle that are changed according to the polar coordinate rotation transformation of the center point of the projection workpiece to the center point P' of the camber workpiece. The set of points obtained after.
进一步地,所述的极坐标旋转变换是将投影工件的极坐标轮廓点集合通过旋转相位角和天顶角θ,进而得到弧面工件工件的变换,得到的弧面工件极坐标轮廓点集合为:Further, the described polar coordinate rotation transformation is to project the polar coordinate contour point set of the workpiece by rotating the phase angle. and the zenith angle θ, and then obtain the transformation of the cambered workpiece, and the obtained polar coordinate contour point set of the cambered workpiece is:
rn′=rn r n ′=r n
θn’=θn+θθ n '=θ n +θ
其中为弧面工件轮廓的极坐标点集合,为投影工件轮廓的极坐标点集合,天顶角夹角θ,方向角为。in is the polar coordinate point collection of the contour of the cambered workpiece, is the set of polar coordinate points for projecting the contour of the workpiece, the included angle of the zenith angle is θ, and the direction angle is .
进一步地,极坐标向三维坐标系的变换公式为:Further, the transformation formula from polar coordinates to three-dimensional coordinate system is:
z′n=r′ncosθ′n z′ n =r′ n cosθ′ n
其中,(x′n,y′n,z′n)为投影工件轮廓在三维坐标系里面的坐标,为投影工件轮廓在极坐标系里面的坐标。Among them, (x′ n , y′ n , z′ n ) are the coordinates of the projected workpiece contour in the three-dimensional coordinate system, It is the coordinates of the projected workpiece contour in the polar coordinate system.
进一步地,数控刀头运行轨迹为弧面工件的轮廓三维坐标的点集合,并将弧面工件轮廓三维坐标的点集合转成数控车铣床设备能够读取的坐标代码文件。Further, the running track of the CNC tool head is a point set of three-dimensional coordinates of the contour of the cambered workpiece, and the point set of the three-dimensional coordinates of the contour of the cambered workpiece is converted into a coordinate code file that can be read by the CNC turning and milling machine equipment.
进一步地,在CAD、CAM软件上绘制的将要在弧面上加工的工件。Further, the workpiece to be processed on the arc surface drawn on the CAD and CAM software.
进一步地,所述的生成数控车铣床设备能够读取的代码文件为nc的代码文件。Further, the generated code file that can be read by the CNC turning and milling machine equipment is an nc code file.
与现有的技术相比,本发明的有益效果为:Compared with the prior art, the beneficial effects of the present invention are:
该方法算法简单实用,通过几次坐标变换可以有效的解决弧面玻璃切割的问题。该方法有效解决三维弧面玻璃切割会带来加工形状变形、空间复杂度过高、玻璃加工导角不平滑、玻璃易碎等诸多问题。该方法原创性高,不需要借助其他辅助设备或者辅助软件,算法实现简易。该方法变换的估计不需要使用其他插补算法。The algorithm of this method is simple and practical, and the problem of curved glass cutting can be effectively solved by several coordinate transformations. The method effectively solves many problems caused by three-dimensional curved glass cutting, such as deformation of the processing shape, excessive space complexity, uneven glass processing chamfers, and fragile glass. The method is highly original, does not require the help of other auxiliary equipment or auxiliary software, and the algorithm is simple to implement. The estimation of the transformation of this method does not require the use of other interpolation algorithms.
本发明利用球面空间坐标变换的特点来实现弧形玻璃切割,有效的实现多轴数控车床对圆弧玻璃的切割加工方法,用户只需要在绘图软件上绘制欲加工小工件的投影图,加上圆弧玻璃工件的球半径信息便可以加工切割出想要的圆弧小工件。The invention utilizes the characteristics of spherical space coordinate transformation to realize arc glass cutting, and effectively realizes the cutting and processing method of arc glass by multi-axis CNC lathes. The spherical radius information of the arc glass workpiece can process and cut the desired arc small workpiece.
本发明为多轴数控玻璃切割机提供了弧形切割方案,同时保证工件的精度,防止工件变形,本发明的方法涉及二维平面坐标系到三维球面的映射,极大的降低了玻璃切割过程中加工出的玻璃工件变形的情况。同时也降低了玻璃切割过程中废品率的提升和玻璃被割碎的情况。The invention provides an arc cutting scheme for a multi-axis numerical control glass cutting machine, while ensuring the accuracy of the workpiece and preventing the deformation of the workpiece. The method of the invention involves the mapping of a two-dimensional plane coordinate system to a three-dimensional spherical surface, which greatly reduces the glass cutting process. Deformation of the processed glass workpiece. At the same time, it also reduces the increase in the scrap rate and the glass being cut during the glass cutting process.
附图说明Description of drawings
图1为圆弧形工件的坐标变换图,也是本发明公开方法的工件变换信息图。FIG. 1 is a coordinate transformation diagram of an arc-shaped workpiece, and is also a workpiece transformation information diagram of the method disclosed in the present invention.
图2为本实例的一种基于坐标变换的圆弧面玻璃切割方法的方法流程图;Fig. 2 is a method flow chart of a method for cutting a circular arc surface glass based on coordinate transformation of this example;
图3为实施例1中小汽车后视镜切割机切割算法的流程图;Fig. 3 is the flow chart of embodiment 1 small and medium-sized car rearview mirror cutting machine cutting algorithm;
图4为实施例2中弧面反光镜切割机切割算法的流程图;Fig. 4 is the flow chart of the cutting algorithm of arc mirror cutting machine in embodiment 2;
图5为实施例3中眼镜片切割机切割算法的流程图。FIG. 5 is a flowchart of the cutting algorithm of the spectacle lens cutting machine in Embodiment 3. FIG.
具体实施方式Detailed ways
接下来将结合本发明的附图对本发明实施例中的技术方案进行清楚、完整地描述,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实例。基于本发明中的实例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的其它实施例,均属于本发明保护的范围。Next, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the accompanying drawings of the present invention, and the described embodiments are only a part of the embodiments of the present invention, rather than all examples. Based on the examples in the present invention, other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
实施例1Example 1
本实施例的一种基于坐标变换的圆弧面玻璃切割方法,实施例可以用于小汽车后视镜弧形玻璃切割机,如图1所示为圆弧形工件的坐标变换图,如图2所示为,该实施例的具体步骤方法流程图,该实施例包含如下具体实施内容。A method for cutting arc surface glass based on coordinate transformation in this embodiment, the embodiment can be used in a car rearview mirror arc glass cutting machine, as shown in Fig. 1 is a coordinate transformation diagram of an arc-shaped workpiece, as shown in Fig. 2 shows a flowchart of the specific steps and method of this embodiment, and this embodiment includes the following specific implementation contents.
具体的,在CAD、CAM软件上新建项目,项目中新建一个作图图纸,使用CAD、CAM软件绘制欲在弧面上加工的多个小汽车后视镜小工件n(n=1,2,,,,n),绘制的图形为每个后视镜圆弧小工件在平面投影的二维轮廓图,取每个小工件二维轮廓图的中心点Pn(n=1,2,,,n)。Specifically, create a new project on CAD and CAM software, create a new drawing drawing in the project, and use CAD and CAM software to draw multiple small car rearview mirror workpieces n (n=1, 2, , , n), the drawn graph is the two-dimensional contour map of each small workpiece of the rearview mirror arc projected on the plane, and the center point P n (n=1, 2, ) of the two-dimensional contour map of each small workpiece is taken. , n).
具体的,设定图纸的原点坐标O当作整幅图的中心位置,为了节约工件物料,围绕O点将各工件的图形紧密的绘制在画板上,并且计算出各个工件中心点离坐标中心点的距离,计算出的空间距离便于后续计算出每个工件在弧面的投影坐标P’和P’与Z轴的天顶角θ。Specifically, the origin coordinate O of the drawing is set as the center position of the whole drawing. In order to save workpiece materials, the graphics of each workpiece are drawn on the drawing board closely around point O, and the distance between the center point of each workpiece and the coordinate center point is calculated. The calculated spatial distance is convenient for subsequent calculation of the projected coordinates P' and P' of each workpiece on the arc surface and the zenith angle θ of the Z axis.
具体的,在绘图平面上取得各个工件的中心位置坐标,利用勾股定理 得到各个工件中心P离着坐标原点O的距离,该距离表示工件离弧形玻璃的最上顶方的垂线距离,同时记录P’点到球心的连线和弧形玻璃中心轴线的夹角为θ和相位角,记录下该夹角θ和相位角。Specifically, the center position coordinates of each workpiece are obtained on the drawing plane, and the Pythagorean theorem is used. Obtain the distance between the center P of each workpiece and the coordinate origin O, which represents the vertical distance between the workpiece and the top of the curved glass, and record the connection between the point P' and the center of the sphere and the angle between the center axis of the curved glass for θ and the phase angle , record the included angle θ and the phase angle .
具体的,选取一个小工件T1作为代表,记录其二维轮廓图的中心点为P,通过投影算法将中心点P投影到球面上的P’点,以投影点P’为中心点的工件记作T4,T4即为欲加工的弧面工件,T4的轮廓坐标点集合即为欲得到的坐标点集合,下述步骤目的即为得到T4工件的轮廓图,计算并记录P点在绘图图纸上与X1轴的平面夹角为,并且记录下该夹角。Specifically, select a small workpiece T1 as a representative, record the center point of its two-dimensional contour map as P, project the center point P to the point P' on the spherical surface through the projection algorithm, and record the workpiece with the projected point P' as the center point. As T4, T4 is the cambered workpiece to be processed, and the set of contour coordinate points of T4 is the set of coordinate points to be obtained. The purpose of the following steps is to obtain the contour diagram of the T4 workpiece, and calculate and record the P point on the drawing sheet. The angle between the plane and the X1 axis is , and record the included angle.
具体的,将欲加工的小工件T1平移到使得小工件的中心点P和平面坐标的O点重合,得到平移后的工件T2,将工件T2投影映射到球面上得到投影工件T3,记录T3工件的轮廓坐标点集合(xn,yn,zn)(n为绕工件轮廓取的n个描述轮廓边的点),通过极坐标变换得到T3工件的轮廓极坐标点集合(n为绕工件轮廓取的n个描述轮廓边的点)。Specifically, translate the small workpiece T1 to be processed so that the center point P of the small workpiece coincides with the point O of the plane coordinates to obtain the translated workpiece T2, project the workpiece T2 onto the spherical surface to obtain the projected workpiece T3, and record the workpiece T3 The set of contour coordinate points (x n , y n , z n ) (n is the n points describing the contour edge taken around the contour of the workpiece), and the set of contour polar coordinate points of the T3 workpiece is obtained through polar coordinate transformation (n is the n points describing the contour edge taken around the workpiece contour).
具体的,在平面中,将工件中心点P平移到坐标原点O的位置,工件T1中心点P和坐标原点对齐后,得到平移后的工件为T2,T2的轮廓为T1轮廓平移后得到,获取工件T2的实际二维平面坐标(X,Y),得到工件在XOY平面的坐标后,通过投影原理,根据球面坐标的计算公式R2=X2+Y2+Z2获得投影工件T3轮廓的Z坐标,记录下工件T3轮廓各个点在球面坐标系中的坐标(xn,yn,zn),取得工件T3轮廓各个点的三维坐标系的(xn,yn,zn),得到工件T3轮廓在球面坐标系的XYZ坐标轴的坐标位置信息,使用python语言定义一个数组用于存储工件映射到球面坐标系的坐标信息(xn,yn,zn),得到的工件坐标在三维坐标系XYZ上的具体坐标点集(xn,yn,zn),通过三维坐标系到极坐标系的变换关系,首先将数组保存的(X,Y,Z)的坐标信息变换成含有弧面半径R,方向角,和天顶角θ的极坐标位置信息。工件T4中心点P’和球的圆心的连线和中轴线Z轴的夹角θ和相位角,将工件轮廓的极坐标通过夹角θ和相位角变换到P’点对应的位置处即可。并且用数组保存起来。Specifically, in the plane, the workpiece center point P is translated to the position of the coordinate origin O, and after the center point P of the workpiece T1 is aligned with the coordinate origin, the translated workpiece is T2, and the contour of T2 is obtained after the contour of T1 is translated, obtain The actual two-dimensional plane coordinates (X, Y) of the workpiece T2, after obtaining the coordinates of the workpiece on the XOY plane, through the projection principle, according to the calculation formula of spherical coordinates R 2 =X 2 +Y 2 +Z 2 to obtain the projected contour of the workpiece T3. Z coordinate, record the coordinates (x n , y n , z n ) of each point of the contour of the workpiece T3 in the spherical coordinate system, and obtain the (x n , yn , z n ) of the three-dimensional coordinate system of each point of the contour of the workpiece T3, Obtain the coordinate position information of the workpiece T3 contour in the XYZ coordinate axis of the spherical coordinate system, and use the python language to define an array to store the coordinate information (x n , y n , z n ) of the workpiece mapped to the spherical coordinate system, and the obtained workpiece coordinates The specific coordinate point set (x n , y n , z n ) on the three-dimensional coordinate system XYZ, through the transformation relationship from the three-dimensional coordinate system to the polar coordinate system, first transform the coordinate information of (X, Y, Z) stored in the array into a camber radius R, direction angle , and the polar coordinate position information of the zenith angle θ. The line connecting the center point P' of the workpiece T4 and the center of the ball and the included angle θ and phase angle of the central axis Z axis , pass the polar coordinates of the workpiece contour through the included angle θ and the phase angle It can be transformed to the position corresponding to the point P'. And save it in an array.
具体的,得到的工件T4轮廓的极坐标点集通过变换得到在三维坐标系XYZ上的三维坐标点集,该三维坐标点集就是世界坐标系XYZ平面上工件轮廓映射的真实坐标系,也是玻璃切割机走刀过程中应该走刀的位置信息。在图纸里面绘制出来的工件轮廓信息包含所有的走刀信息。Specifically, the obtained polar coordinate point set of the contour of the workpiece T4 is transformed to obtain a three-dimensional coordinate point set on the three-dimensional coordinate system XYZ, and the three-dimensional coordinate point set is the real coordinate system of the workpiece contour mapping on the XYZ plane of the world coordinate system, which is also a glass The position information of the knife that should be passed during the cutting process of the cutting machine. The contour information of the workpiece drawn in the drawing contains all the information of the pass.
具体的,最后生成每一个工件的轮廓走刀信息保存在数组里面,每一个工件都有一个切割轮廓,每一个轮廓都含有一组坐标点的坐标集合,坐标点集合(x′n,y′n,z′n)是实际的走刀点。使用python代码将坐标点集合生成具体的走刀nc代码,数控系统读取nc代码,通过伺服系统就可以在实际的多轴数控车床上面进行弧面玻璃加工。Specifically, the last generated contour cutting information of each workpiece is stored in the array, each workpiece has a cutting contour, and each contour contains a set of coordinates of coordinate points, the coordinate point set (x′ n , y′ n , z′ n ) is the actual cutting point. Use the python code to set the coordinate points to generate the specific nc code of the cutting tool, the CNC system reads the nc code, and the curved glass can be processed on the actual multi-axis CNC lathe through the servo system.
实施例2Example 2
本实施例的一种基于坐标变换的圆弧面玻璃切割方法,实施例可于用户弧面反光镜弧形玻璃切割机,该实施例包含如下具体实施内容。A method for cutting circular arc glass based on coordinate transformation in this embodiment, the embodiment can be used in a user arc mirror arc glass cutting machine, and the embodiment includes the following specific implementation contents.
具体的,打开CAM软件,新建绘图项目,在项目中新建一个作图图纸画板,作为玻璃反光镜切割的图纸。把图纸的原点坐标定义为O,O点为整幅绘图的中心位置,该中点对应于加工工件磨具的旋转轴,也就是球面坐标系的Z轴。为了节约工件物料,围绕O点将各工件的轮廓图形紧密地绘制在画板并计算各工件的中心点坐标,取其中某一块反光镜工件T1的中心点坐标为P,并且计算工件轮廓中心点坐标P距离画板坐标系O点的距离。Specifically, open the CAM software, create a new drawing project, and create a new drawing board in the project as a drawing for cutting the glass mirror. The origin coordinate of the drawing is defined as O, and the O point is the center position of the whole drawing. The midpoint corresponds to the rotation axis of the workpiece grinding tool, that is, the Z axis of the spherical coordinate system. In order to save the workpiece material, draw the outline of each workpiece on the drawing board around the O point and calculate the center point coordinates of each workpiece, take the center point coordinate of a mirror workpiece T1 as P, and calculate the workpiece outline center point coordinate The distance between P and point O of the artboard coordinate system.
具体的,将反光镜工件T1的中心点映射到球面上的P’点,以P’点为中心点的工件坐标叫做T4,T4工件是通过将T1工件的轮廓平移成T2,在将T2沿着Z轴映射成T3,再将T3旋转后形成的T4。工件T4的轮廓的三维坐标点集需要得到的刀头切割加工走动的轨迹(工件T2、工件T3后续会介绍)。Specifically, the center point of the mirror workpiece T1 is mapped to the P' point on the spherical surface, and the workpiece coordinate with the P' point as the center point is called T4. The Z axis is mapped to T3, and then T3 is rotated to form T4. The three-dimensional coordinate point set of the contour of the workpiece T4 needs to obtain the trajectory of the cutter head cutting and processing (the workpiece T2 and the workpiece T3 will be introduced later).
具体的,计算出P’点和Z轴的夹角,该角称为天顶角,计算出为θ,计算出P’点在XOY平面的映射和X轴的夹角,该夹角称之为方向角,计算出为。Specifically, the angle between the point P' and the Z axis is calculated, which is called the zenith angle, which is calculated as θ, and the mapping of the point P' on the XOY plane and the angle between the X axis are calculated, and the angle is called is the direction angle, calculated as .
具体的,将反光镜工件T1平移,使得其中心点和坐标原点O重合,于是便得到以点O为中心点的平移工件T2,T1平移后的轮廓即为工件T2的轮廓。由于T1是CAD和CAM绘制的图形,其工件轮廓坐标信息唯一。于是可以得到工件T2的轮廓坐标信息点集合。Specifically, the mirror workpiece T1 is translated so that its center point coincides with the coordinate origin O, so that the translation workpiece T2 with the point O as the center point is obtained, and the translated contour of T1 is the contour of the workpiece T2. Since T1 is a figure drawn by CAD and CAM, its workpiece contour coordinate information is unique. Then, the set of contour coordinate information points of the workpiece T2 can be obtained.
具体的,将T2的轮廓通过Z轴再次映射到球面上得到工件T3,T3的X,Y坐标即为T2工件的X,Y坐标,根据公式便可以得到工件的Z轴坐标信息,此时可以得到工件T3轮廓的三维坐标点集合为(xn,yn,zn)。Specifically, the contour of T2 is mapped to the spherical surface again through the Z axis to obtain the workpiece T3. The X and Y coordinates of T3 are the X and Y coordinates of the T2 workpiece. According to the formula The Z-axis coordinate information of the workpiece can be obtained. At this time, the three-dimensional coordinate point set of the contour of the workpiece T3 can be obtained as (x n , y n , z n ).
具体的,将T3轮廓的三维坐标点集合(xn,yn,zn)通过三维坐标系到极坐标系的变换方式得到T3轮廓的极坐标点集合变换公式为:Specifically, the set of three-dimensional coordinate points (x n , y n , z n ) of the T3 contour is obtained by transforming the three-dimensional coordinate system to the polar coordinate system to obtain the set of polar coordinate points of the T3 contour The conversion formula is:
具体的,旋转工件T3,使得T3工件的中心点旋转到P’处,此时T3工件旋转后的轮廓即为工件T4的轮廓,由于T3轮廓的极坐标点集合已知,于是T4工件的轮廓的极坐标点集合便可以得到。旋转公式为:Specifically, rotate the workpiece T3 so that the center point of the T3 workpiece rotates to P', and the contour after the rotation of the T3 workpiece is the contour of the workpiece T4, because the polar coordinate point collection of the T3 contour It is known that the polar coordinate point set of the contour of the T4 workpiece can be obtained. The rotation formula is:
rn'=rn r n '=r n
θn’=θn+θθ n '=θ n +θ
其中为T4轮廓的极坐标点集合,为T3轮廓的极坐标点集合,天顶角夹角θ,方向角为。in is the polar coordinate point set of the T4 contour, is the polar coordinate point set of the T3 contour, the included angle of the zenith angle θ, and the direction angle is .
具体的,将T4工件的轮廓的极坐标点集合通过极坐标到三维坐标系变换的方式得到T4工件的轮廓的三维坐标点集合。Specifically, the set of three-dimensional coordinate points of the contour of the T4 workpiece is obtained by transforming the polar coordinate point set of the contour of the T4 workpiece through the transformation from polar coordinates to a three-dimensional coordinate system.
具体的,使用python代码编程的方式将T4工件的轮廓的三维坐标点集合计算出机床能够识别的nc代码,通过伺服系统就可以在实际的多轴数控车床上面进行弧面玻璃加工。Specifically, using the python code programming method, the 3D coordinate point set of the outline of the T4 workpiece is used to calculate the nc code that the machine tool can recognize, and the curved glass can be processed on the actual multi-axis CNC lathe through the servo system.
实施例3Example 3
本实施例的一种基于坐标变换的圆弧面玻璃切割方法,实施例可于眼镜片镜弧形玻璃切割机,由于眼镜片弧形切割只需要在弧面的正上方切割出一个镜片即可,但是用户可以随意在绘图上面绘图,该实施例包含如下具体实施内容。The present embodiment of a method for cutting arc-shaped glass based on coordinate transformation can be used in an ophthalmic lens arc-shaped glass cutting machine, because the arc-shaped cutting of spectacle lenses only needs to cut a lens directly above the arc surface. , but the user can draw on the drawing at will, and this embodiment includes the following specific implementation content.
具体的,打开CAD、CAM软件,新建绘图项目,在项目中新建一个作图图纸画板,作为眼镜片切割的图纸。把图纸的原点坐标定义为O,O点为整幅绘图的中心位置,该中点对应于加工工件磨具的旋转轴,也就是球面坐标系的Z轴。围绕O绘制眼镜片工件T1的中心点坐标为P,并且计算工件轮廓中心点坐标P距离画板坐标系O点的距离。Specifically, open CAD and CAM software, create a new drawing project, and create a new drawing drawing board in the project as a drawing for spectacle lens cutting. The origin coordinate of the drawing is defined as O, and the O point is the center position of the whole drawing. The midpoint corresponds to the rotation axis of the workpiece grinding tool, that is, the Z axis of the spherical coordinate system. The coordinate of the center point of drawing the spectacle lens workpiece T1 around O is P, and the distance between the coordinate P of the center point of the workpiece outline and the point O of the drawing board coordinate system is calculated.
具体的,将眼镜片工件T1平移,使得工件中心点和坐标原点O重合,于是便得到以点O为中心点的平移工件T2。T2的轮廓坐标点集合信息便可以得到。Specifically, the spectacle lens workpiece T1 is translated so that the center point of the workpiece coincides with the coordinate origin O, so that the translation workpiece T2 with the point O as the center point is obtained. The set information of contour coordinate points of T2 can be obtained.
具体的,将T2沿着Z轴映射到球面坐标系上得到工件T3,T3的横坐标和纵坐标与T2的横坐标和纵坐标相同,通过公式计算出T3的轮廓的坐标点集(xn,yn,zn),T3的轮廓信息即为要求得的三维坐标系点集信息,也是眼镜片的轮廓信息。Specifically, the workpiece T3 is obtained by mapping T2 to the spherical coordinate system along the Z axis. The abscissa and ordinate of T3 are the same as the abscissa and ordinate of T2. Through the formula The coordinate point set (x n , y n , z n ) of the contour of T3 is calculated, and the contour information of T3 is the required three-dimensional coordinate system point set information, and is also the contour information of the spectacle lens.
以上公开的本发明优选实施例只是用于帮助阐述本发明。优选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本说明书的内容,可作很多的修改和变化。本说明书选取并具体描述这些实施例,是为了更好地解释本发明的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本发明。本发明仅受权利要求书及其全部范围和等效物的限制。The above-disclosed preferred embodiments of the present invention are provided only to help illustrate the present invention. The preferred embodiments do not exhaust all the details, nor do they limit the invention to only the described embodiments. Obviously, many modifications and variations are possible in light of the content of this specification. The present specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can well understand and utilize the present invention. The present invention is to be limited only by the claims and their full scope and equivalents.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111661796.1A CN114357549B (en) | 2021-12-30 | 2021-12-30 | Arc surface glass cutting method based on coordinate transformation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111661796.1A CN114357549B (en) | 2021-12-30 | 2021-12-30 | Arc surface glass cutting method based on coordinate transformation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114357549A true CN114357549A (en) | 2022-04-15 |
CN114357549B CN114357549B (en) | 2024-07-19 |
Family
ID=81104623
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111661796.1A Active CN114357549B (en) | 2021-12-30 | 2021-12-30 | Arc surface glass cutting method based on coordinate transformation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114357549B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115947535A (en) * | 2023-02-20 | 2023-04-11 | 合肥金晋业智控玻璃科技有限公司 | Intelligent glass sheet pulling machine with visual detection function and automatic production device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1168726A (en) * | 1994-10-18 | 1997-12-24 | 株式会社日立制作所 | Liquid crystal display device |
CN101281403A (en) * | 2008-05-07 | 2008-10-08 | 上海大学 | Pattern positioning method and system for special-shaped glass processing |
CN103149215A (en) * | 2013-02-27 | 2013-06-12 | 中国计量学院 | Method and device for detecting defects of toughened glass insulator |
CN112264842A (en) * | 2020-10-28 | 2021-01-26 | 福州大学 | Constant linear velocity grinding method based on polar coordinate glass edge grinding machine |
-
2021
- 2021-12-30 CN CN202111661796.1A patent/CN114357549B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1168726A (en) * | 1994-10-18 | 1997-12-24 | 株式会社日立制作所 | Liquid crystal display device |
CN101281403A (en) * | 2008-05-07 | 2008-10-08 | 上海大学 | Pattern positioning method and system for special-shaped glass processing |
CN103149215A (en) * | 2013-02-27 | 2013-06-12 | 中国计量学院 | Method and device for detecting defects of toughened glass insulator |
CN112264842A (en) * | 2020-10-28 | 2021-01-26 | 福州大学 | Constant linear velocity grinding method based on polar coordinate glass edge grinding machine |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115947535A (en) * | 2023-02-20 | 2023-04-11 | 合肥金晋业智控玻璃科技有限公司 | Intelligent glass sheet pulling machine with visual detection function and automatic production device |
Also Published As
Publication number | Publication date |
---|---|
CN114357549B (en) | 2024-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Jensen et al. | Tool selection for five-axis curvature matched machining | |
US4558977A (en) | NC Method and system for machining a 3D contour in a workpiece | |
Warkentin et al. | Five-axis milling of spherical surfaces | |
CN102962501B (en) | Processing technology of thick-wall adapter intersecting line | |
US11920917B2 (en) | Method for inspecting a workpiece in the process of being manufactured | |
CN111300208A (en) | A method and equipment for self-adaptive grinding of complex curved surface robot belt with variable feed | |
WO2021117893A1 (en) | Tool path generation method, tool path generation device, and machine tool control device | |
CN105598975B (en) | A kind of method for determining industrial robot motion track | |
CN108608425A (en) | Six-shaft industrial robot Milling Process off-line programing method and system | |
CN113341876B (en) | Five-axis curved surface machining track planning method based on differential vector optimization | |
CN112965440B (en) | Tool path generation method, electronic device, and storage medium | |
CN114357549A (en) | Arc surface glass cutting method based on coordinate transformation | |
CN106054814B (en) | Computer aided building method based on image grayscale | |
Xu et al. | Tool orientation and redundancy integrated planning method constrained by stiffness for robotic machining of freeform surfaces | |
WO2024032054A1 (en) | Multi-axis linkage laser superfinishing method and device | |
CN100571979C (en) | The parallel grinding and cutting method of non-axisymmetric aspheric surface optical element | |
CN113050538B (en) | A method for generating turning trajectory of spherical cap surface with complex micro-features mapped to cylindrical surface | |
CN107544433A (en) | Five-axle number control machine tool plane machining process rose cutter and workpiece contact zone semi analytic modeling method | |
CN113377066B (en) | A fast interference detection method for five-axis machining toolpaths of NURBS surfaces | |
JPH08252713A (en) | Cutting edge tool and cutting method using cutting edge tool | |
JP3148108B2 (en) | How to check 5-axis NC data | |
Zou et al. | Flat-end tool orientation based on rotation-minimizing frame | |
Yun et al. | A geometric postprocessing method for 5-axis machine tools using locations of joint points | |
CN113204213B (en) | Tool path generation method based on STL model, intelligent terminal and storage device | |
CN111992909B (en) | Three-dimensional laser drilling positioning method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |