[go: up one dir, main page]

CN102581851A - Mechanical arm movement control system and method - Google Patents

Mechanical arm movement control system and method Download PDF

Info

Publication number
CN102581851A
CN102581851A CN2011100077495A CN201110007749A CN102581851A CN 102581851 A CN102581851 A CN 102581851A CN 2011100077495 A CN2011100077495 A CN 2011100077495A CN 201110007749 A CN201110007749 A CN 201110007749A CN 102581851 A CN102581851 A CN 102581851A
Authority
CN
China
Prior art keywords
pcb
measured
mechanical arm
test point
coordinate system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100077495A
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN2011100077495A priority Critical patent/CN102581851A/en
Publication of CN102581851A publication Critical patent/CN102581851A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

一种机械手臂运动控制系统,运行于控制电脑。该系统根据PCB坐标系的原点及探针与待测PCB的距离确定机械手臂坐标系的原点,根据PCB上测试点的二维坐标计算该测试点与PCB坐标系原点的相对位移值,并根据该相对位移值控制机械手臂在机械手臂坐标系中作相应位移。该系统还计算在PCB当前影像中该测试点的几何图形中心点与当前影像中心点的像素差值计算机械手臂的位移修正量对机械手臂在机械手臂坐标系中的位移作相应修正,以将探针定位到PCB上的该测试点的正上方。之后,该系统根据探针与PCB上的该测试点的距离控制机械手臂沿Z轴方向作相应位移,使探针精确定位到PCB上的该测试点。本发明还提供一种机械手臂运动控制方法。

Figure 201110007749

A motion control system for a mechanical arm runs on a control computer. The system determines the origin of the mechanical arm coordinate system according to the origin of the PCB coordinate system and the distance between the probe and the PCB to be tested, and calculates the relative displacement value between the test point and the origin of the PCB coordinate system according to the two-dimensional coordinates of the test point on the PCB, and according to The relative displacement value controls the corresponding displacement of the robot arm in the coordinate system of the robot arm. The system also calculates the pixel difference between the center point of the geometry of the test point in the current image of the PCB and the center point of the current image, calculates the displacement correction of the robot arm, and makes corresponding corrections to the displacement of the robot arm in the coordinate system of the robot arm, so as to The probes are positioned directly over this test point on the PCB. After that, the system controls the mechanical arm to make a corresponding displacement along the Z-axis according to the distance between the probe and the test point on the PCB, so that the probe can be precisely positioned on the test point on the PCB. The invention also provides a motion control method of the mechanical arm.

Figure 201110007749

Description

机械手臂运动控制系统及方法Robotic arm motion control system and method

技术领域 technical field

本发明涉及一种自动化测量系统及方法,尤其是关于一种机械手臂运动控制系统及方法。The invention relates to an automatic measurement system and method, in particular to a motion control system and method of a mechanical arm.

背景技术 Background technique

目前,机械手臂被广泛应用于自动化测量领域。在测量过程中,一般是利用机械手臂抓取测试工具(例如探针),并根据待测产品(例如PCB)布图文件中记录的测试点的坐标信息将测试工具定位到待测产品上的相应位置。一方面,由于待测产品布图文件中记录的坐标信息通常是基于线性的直角坐标系,而机械手臂的运动是由多个驱动马达的转动驱动的,驱动马达的运动是基于极坐标信息,也就是说,机械手臂的坐标系是非线性的。另一方面,测试点一般是将零件(例如电容)焊接到PCB上的焊盘(pad),实际上是具有一定尺寸的并不是单纯的“点”。所以,直接根据待测产品布图文件中记录的测试点的坐标信息控制机械手臂的运动存在一定误差。At present, robotic arms are widely used in the field of automated measurement. In the measurement process, the test tool (such as a probe) is generally grasped by a mechanical arm, and the test tool is positioned on the product to be tested according to the coordinate information of the test points recorded in the layout file of the product to be tested (such as a PCB). corresponding position. On the one hand, since the coordinate information recorded in the layout file of the product to be tested is usually based on a linear rectangular coordinate system, and the movement of the robotic arm is driven by the rotation of multiple driving motors, the movement of the driving motor is based on polar coordinate information. That is to say, the coordinate system of the robotic arm is nonlinear. On the other hand, a test point is generally a pad for soldering a component (such as a capacitor) to a PCB, but actually has a certain size and is not a simple "point". Therefore, there is a certain error in controlling the movement of the robotic arm directly according to the coordinate information of the test points recorded in the layout file of the product to be tested.

发明内容 Contents of the invention

鉴于以上内容,有必要提出一种机械手臂运动控制系统及方法,可以对机械手臂的运动进行修正,提高机械手臂运动控制的精确度。In view of the above, it is necessary to propose a mechanical arm motion control system and method, which can correct the motion of the mechanical arm and improve the accuracy of the mechanical arm motion control.

一种机械手臂运动控制方法,运行于控制电脑。该方法包括:(a)读取待测PCB的布图文件,得到待测PCB的布图信息,包括待测PCB坐标系的原点坐标(x0,y0),待测零件的信息及测试点信息;(b)根据待测PCB坐标系的原点坐标(x0,y0)产生第一控制指令控制机械手臂移动探针至待测PCB坐标系原点(x0,y0)的正上方;(c)利用镭射测距仪测量机械手臂抓取的探针与待测PCB的距离Z0;(d)根据待测PCB坐标系的原点坐标(x0,y0)及探针与待测PCB的距离Z0确定机械手臂坐标系的原点坐标(X0,Y0,Z0);(e)从布图信息中读取待测PCB上一个测试点的二维坐标,计算该测试点与待测PCB坐标系原点的相对位移值;(f)根据计算得到的相对位移值产生第二控制指令控制机械手臂在机械手臂坐标系中作相应位移;(g)利用影像撷取装置撷取待测PCB的当前影像;(h)根据待测PCB的布图信息在当前影像中确定该测试点的几何图形,计算在当前影像中该测试点的几何图形的中心点与当前影像中心点的像素差值;(i)根据当前影像与待测PCB的缩放比例将像素差值转换为机械手臂在机械手臂坐标系中的位移修正量;(j)根据计算得到的位移修正量产生第三控制指令对机械手臂在机械手臂坐标系中的位移作相应修正,以将探针定位到待测PCB上的该测试点的正上方;(k)利用镭射测距仪测量机械手臂抓取的探针与待测PCB上的该测试点的当前距离Zn;及(l)根据探针与待测PCB上的该测试点的当前距离Zn产生第四控制指令控制机械手臂沿Z轴方向移动负Zn,以使探针精确定位到待测PCB上的该测试点。A motion control method of a mechanical arm is operated on a control computer. The method includes: (a) reading the layout file of the PCB to be tested to obtain the layout information of the PCB to be tested, including the origin coordinates (x0, y0) of the PCB coordinate system to be tested, the information of the parts to be tested and the information of the test points ; (b) Generate the first control instruction according to the origin coordinates (x0, y0) of the PCB coordinate system to be tested to control the mechanical arm to move the probe to directly above the origin (x0, y0) of the PCB coordinate system to be tested; (c) use the laser The range finder measures the distance Z0 between the probe grabbed by the robot arm and the PCB to be tested; (d) determine the coordinates of the robot arm according to the origin coordinates (x0, y0) of the PCB coordinate system to be tested and the distance Z0 between the probe and the PCB to be tested (X0, Y0, Z0); (e) read the two-dimensional coordinates of a test point on the PCB to be tested from the layout information, and calculate the relative displacement value between the test point and the origin of the PCB coordinate system to be measured; (f) Generate a second control command according to the calculated relative displacement value to control the mechanical arm to make a corresponding displacement in the mechanical arm coordinate system; (g) use the image capture device to capture the current image of the PCB to be tested; (h) according to the Measure the layout information of the PCB to determine the geometry of the test point in the current image, and calculate the pixel difference between the center point of the geometry of the test point in the current image and the center point of the current image; (i) according to the current image and the Measure the zoom ratio of the PCB and convert the pixel difference into the displacement correction of the mechanical arm in the mechanical arm coordinate system; (j) generate the third control command according to the calculated displacement correction to the displacement of the mechanical arm in the mechanical arm coordinate system Make corresponding corrections to position the probe directly above the test point on the PCB to be tested; (k) use a laser rangefinder to measure the current distance between the probe grabbed by the robotic arm and the test point on the PCB to be tested Zn; and (1) according to the current distance Zn of the probe and the test point on the PCB to be tested, the fourth control command is generated to control the mechanical arm to move negative Zn along the Z-axis direction, so that the probe is accurately positioned on the PCB to be tested. The test point.

一种机械手臂运动控制系统,运行于控制电脑。该系统包括:信息读取模块、控制模块、坐标确定模块、计算模块及图形识别模块。信息读取模块读取待测PCB的布图文件,得到待测PCB的布图信息。控制模块根据待测PCB坐标系的原点坐标(x0,y0)产生第一控制指令控制机械手臂移动探针至待测PCB坐标系原点(x0,y0)的正上方。坐标确定模块根据待测PCB坐标系的原点坐标(x0,y0)及镭射测距仪测量得到的探针与待测PCB的距离Z0确定机械手臂坐标系的原点坐标(X0,Y0,Z0)。计算模块计算待测PCB上的测试点与待测PCB坐标系原点的相对位移值。控制模块根据计算得到的相对位移值产生第二控制指令控制机械手臂在机械手臂坐标系中作相应位移。图形识别模块根据待测PCB的布图信息在影像撷取装置撷取的待测PCB的当前影像中确定该测试点的几何图形。计算模块计算在当前影像中该测试点的几何图形中心点与当前影像中心点的像素差值,并根据当前影像与待测PCB的缩放比例将像素差值转换为机械手臂在机械手臂坐标系中的位移修正量。控制模块根据计算得到的位移修正量产生第三控制指令对机械手臂在机械手臂坐标系中的位移作相应修正,并根据镭射测距仪测量得到的探针与待测PCB上的该测试点的当前距离Zn产生第四控制指令控制机械手臂沿Z轴方向移动负Zn,以使探针精确定位到待测PCB上的该测试点。A motion control system for a mechanical arm runs on a control computer. The system includes: an information reading module, a control module, a coordinate determination module, a calculation module and a graphic recognition module. The information reading module reads the layout file of the PCB to be tested to obtain the layout information of the PCB to be tested. The control module generates a first control command according to the origin coordinates (x0, y0) of the PCB coordinate system to be tested to control the mechanical arm to move the probe to directly above the origin (x0, y0) of the PCB coordinate system to be tested. The coordinate determining module determines the origin coordinates (X0, Y0, Z0) of the mechanical arm coordinate system according to the origin coordinates (x0, y0) of the PCB coordinate system to be tested and the distance Z0 between the probe and the PCB to be tested measured by the laser range finder. The calculation module calculates the relative displacement value between the test point on the PCB to be tested and the origin of the coordinate system of the PCB to be tested. The control module generates a second control instruction to control the mechanical arm to make a corresponding displacement in the mechanical arm coordinate system according to the calculated relative displacement value. The graphic recognition module determines the geometry of the test point in the current image of the PCB to be tested captured by the image capture device according to the layout information of the PCB to be tested. The calculation module calculates the pixel difference between the center point of the geometric figure of the test point in the current image and the center point of the current image, and converts the pixel difference into the coordinate system of the robot arm according to the scaling ratio of the current image and the PCB to be tested displacement correction. The control module generates a third control command according to the calculated displacement correction amount to correct the displacement of the mechanical arm in the mechanical arm coordinate system, and according to the distance between the probe measured by the laser rangefinder and the test point on the PCB to be tested The current distance Zn generates a fourth control command to control the mechanical arm to move negative Zn along the Z-axis direction, so that the probe can be accurately positioned to the test point on the PCB to be tested.

相较于现有技术,本发明所提供的机械手臂运动控制系统及方法,利用影像撷取装置撷取的待测PCB的影像校正机械手臂认知的二维平面,利用镭射测距仪测量机械手臂抓取的探针与待测PCB上测试点的距离,提高了机械手臂运动控制的精确度。Compared with the prior art, the robot arm motion control system and method provided by the present invention use the image of the PCB to be tested captured by the image capture device to correct the two-dimensional plane recognized by the robot arm, and use the laser rangefinder to measure the mechanical The distance between the probe grasped by the arm and the test point on the PCB to be tested improves the accuracy of the motion control of the mechanical arm.

附图说明 Description of drawings

图1是本发明机械手臂运动控制系统较佳实施例的应用环境图。FIG. 1 is an application environment diagram of a preferred embodiment of the robot arm motion control system of the present invention.

图2是本发明机械手臂运动控制系统较佳实施例的功能模块图。Fig. 2 is a functional block diagram of a preferred embodiment of the robot arm motion control system of the present invention.

图3A及图3B是本发明机械手臂运动控制方法较佳实施例的流程图。FIG. 3A and FIG. 3B are flow charts of a preferred embodiment of the method for controlling the movement of the robotic arm of the present invention.

图4是待测PCB坐标系与机械手臂坐标系的示意图。Fig. 4 is a schematic diagram of the coordinate system of the PCB to be tested and the coordinate system of the robot arm.

主要元件符号说明Description of main component symbols

  控制电脑 control computer   10 10   机械手臂 Mechanical arm   20 20   影像撷取装置 Image capture device   30 30   镭射测距仪 Laser range finder   40 40   测试仪器 test instrument   50 50   待测PCB PCB to be tested   60 60   机械手臂运动控制系统   Robotic arm motion control system   11 11   信息读取模块 Information reading module   110 110   图形识别模块 Graphic recognition module   111 111   坐标确定模块 Coordinate determination module   112 112   控制模块 control module   113 113   计算模块 Computing module   114 114   布图文件 Layout file   12 12   存储器 memory   13 13   处理器 Processor   14 14

具体实施方式Detailed ways

如图1所示,是本发明机械手臂运动控制系统11较佳实施例的应用环境图。该机械手臂运动控制系统11运行于控制电脑10中。该控制电脑10通过数据线分别与机械手臂20、影像撷取装置30、镭射测距仪40及测试仪器50相连接。机械手臂20利用探针抓取装置抓取测试仪器50的探针。影像撷取装置30撷取待测印刷电路板(Printed Circuit Board,PCB)60的影像,镭射测距仪40测量机械手臂20抓取的探针与待测PCB 60的距离。As shown in FIG. 1 , it is an application environment diagram of a preferred embodiment of the robot arm motion control system 11 of the present invention. The robot arm motion control system 11 runs in the control computer 10 . The control computer 10 is respectively connected with the mechanical arm 20 , the image capture device 30 , the laser rangefinder 40 and the testing instrument 50 through data lines. The mechanical arm 20 grabs the probes of the test instrument 50 using the probe grabbing device. The image capture device 30 captures the image of the PCB 60 to be tested, and the laser rangefinder 40 measures the distance between the probes grabbed by the mechanical arm 20 and the PCB 60 to be tested.

需要指出的是,在机械手臂20运动的过程中,机械手臂20抓取的探针始终位于影像撷取装置30的镜头中心点的正前方。机械手臂运动控制系统11根据待测PCB 60上测试点的坐标信息控制机械手臂20在机械手臂坐标系X、Y轴方向的运动,并根据影像撷取装置30撷取的待测PCB 60的影像信息对机械手臂20的运动进行修正,最后根据机械手臂20抓取的探针与待测PCB 60的距离控制机械手臂20在机械手臂坐标系Z轴方向的运动,以将探针精确定位到待测PCB 60上的测试点。It should be pointed out that, during the movement of the robotic arm 20 , the probe grasped by the robotic arm 20 is always located directly in front of the center of the lens of the image capture device 30 . The mechanical arm motion control system 11 controls the movement of the mechanical arm 20 in the X and Y axis directions of the mechanical arm coordinate system according to the coordinate information of the test point on the PCB 60 to be tested, and according to the image of the PCB 60 to be tested captured by the image capture device 30 The information corrects the movement of the mechanical arm 20, and finally controls the movement of the mechanical arm 20 in the Z-axis direction of the mechanical arm coordinate system according to the distance between the probe grasped by the mechanical arm 20 and the PCB 60 to be tested, so as to accurately position the probe to the PCB 60 to be tested. Test the test points on the PCB 60.

影像撷取装置30为相机或摄影机,测试仪器50为示波器或时域反射仪。所述待测PCB 60水平放置于测试平台上。在其它实施例中,待测PCB 60也可以为其它的电子元件。The image capture device 30 is a camera or a video camera, and the test instrument 50 is an oscilloscope or a time domain reflectometer. The PCB 60 to be tested is placed horizontally on the test platform. In other embodiments, the PCB 60 to be tested can also be other electronic components.

如图2所示,是本发明机械手臂运动控制系统11较佳实施例的功能模块图。该机械手臂运动控制系统11包括信息读取模块110、图形识别模块111、坐标确定模块112、控制模块113及计算模块114。所述模块110至114包括程序化代码,这些程序化代码存储在控制电脑10的存储器13中,控制电脑10的处理器14执行这些程序化代码,提供机械手臂运动控制系统11的上述功能。以下结合图3A及图3B说明各个模块的具体功能。As shown in FIG. 2 , it is a functional block diagram of a preferred embodiment of the robot arm motion control system 11 of the present invention. The robot arm motion control system 11 includes an information reading module 110 , a pattern recognition module 111 , a coordinate determination module 112 , a control module 113 and a calculation module 114 . The modules 110 to 114 include programmed codes, which are stored in the memory 13 of the control computer 10 , and the processor 14 of the control computer 10 executes these programmed codes to provide the above-mentioned functions of the robot arm motion control system 11 . The specific functions of each module will be described below with reference to FIG. 3A and FIG. 3B .

参阅图3A及图3B所示,是本发明机械手臂运动控制方法较佳实施例的流程图。Referring to FIG. 3A and FIG. 3B , it is a flow chart of a preferred embodiment of the method for controlling the movement of the robotic arm of the present invention.

步骤S301,信息读取模块110从存储器13读取待测PCB 60的布图文件12。该布图文件12记录了待测PCB 60的布图信息,包括待测PCB60坐标系的原点坐标(x0,y0),待测零件的类型(如电阻、电容、电感),各种类型待测零件的数量,各待测零件的尺寸信息及各待测零件上包括的测试点(pad),各测试点在待测PCB 60坐标系中的二维坐标以及各测试点的尺寸等信息。例如,若待测零件(或测试点)为圆形,则尺寸信息包括半径大小,若为长方形,则尺寸信息包括长和宽。In step S301, the information reading module 110 reads the layout file 12 of the PCB 60 to be tested from the memory 13. The layout file 12 records the layout information of the PCB 60 to be tested, including the origin coordinates (x0, y0) of the PCB60 coordinate system to be tested, the type of parts to be tested (such as resistance, capacitance, inductance), and various types to be tested. The quantity of parts, the size information of each part to be tested and the test point (pad) included on each part to be tested, the two-dimensional coordinates of each test point in the PCB 60 coordinate system to be tested and the size of each test point. For example, if the part to be tested (or test point) is a circle, the size information includes the radius, and if it is a rectangle, the size information includes length and width.

步骤S302,信息读取模块110读取待测PCB 60的原点坐标(x0,y0)。Step S302, the information reading module 110 reads the origin coordinates (x0, y0) of the PCB 60 to be tested.

步骤S303,控制模块113根据待测PCB 60的原点坐标(x0,y0)产生第一控制指令控制机械手臂20将探针移动至待测PCB 60的原点(x0,y0)的正上方。Step S303, the control module 113 generates a first control instruction according to the origin coordinates (x0, y0) of the PCB 60 to be tested to control the mechanical arm 20 to move the probe to directly above the origin (x0, y0) of the PCB 60 to be tested.

步骤S304,影像撷取装置30撷取待测PCB 60的初始影像,图形识别模块111根据布图文件12中的布图信息识别初始影像中各几何图形代表的零件或测试点,根据初始影像零件及测试点的分布确定初始影像中的原点位置。Step S304, the image capture device 30 captures the initial image of the PCB 60 to be tested, and the pattern recognition module 111 recognizes the parts or test points represented by each geometric figure in the initial image according to the layout information in the layout file 12, and the parts or test points represented by the initial image parts and the distribution of test points to determine the origin position in the initial image.

步骤S305,镭射测距仪40测量机械手臂20抓取的探针与待测PCB60的距离Z0。Step S305 , the laser rangefinder 40 measures the distance Z0 between the probe grasped by the mechanical arm 20 and the PCB 60 to be tested.

步骤S306,坐标确定模块112用于根据待测PCB 60坐标系原点坐标(x0,y0)及探针与待测PCB 60的距离Z0确定机械手臂坐标系的原点坐标(X0,Y0,Z0),其中X0=x0,Y0=y0。如图4所示,所述机械手臂坐标系是以(X0,Y0,Z0)为原点,以与待测PCB 60坐标系x、y轴平行的直线分别为X、Y轴,以与待测PCB 60坐标系垂直的方向为Z轴确定的空间坐标系。Step S306, the coordinate determination module 112 is used to determine the origin coordinates (X0, Y0, Z0) of the mechanical arm coordinate system according to the origin coordinates (x0, y0) of the PCB 60 coordinate system to be measured and the distance Z0 between the probe and the PCB 60 to be measured, Where X0=x0, Y0=y0. As shown in Figure 4, the coordinate system of the mechanical arm is based on (X0, Y0, Z0) as the origin, and the straight line parallel to the x and y axes of the PCB 60 coordinate system to be measured is respectively the X and Y axes, so as to be in line with the measured PCB 60 coordinate system. The vertical direction of the PCB 60 coordinate system is the space coordinate system determined by the Z axis.

步骤S307,信息读取模块110读取待测PCB 60上的第n个测试点的二维坐标(xn,yn)及尺寸信息。其中,n的初始值为1。Step S307, the information reading module 110 reads the two-dimensional coordinates (xn, yn) and size information of the nth test point on the PCB 60 to be tested. Among them, the initial value of n is 1.

步骤S308,计算模块114根据待测PCB 60上的第n个测试点的二维坐标(xn,yn)计算该第n个测试点与待测PCB 60坐标系的原点的相对位移值。例如,待测PCB 60上的第n个测试点与平面坐标系的原点(x0,y0)的相对位移值为dX(n)=xn-x0,dY(n)=yn-y0。Step S308, the calculation module 114 calculates the relative displacement value between the nth test point and the origin of the PCB 60 coordinate system to be tested according to the two-dimensional coordinates (xn, yn) of the nth test point on the PCB 60 to be tested. For example, the relative displacement values of the nth test point on the PCB 60 to be tested and the origin (x0, y0) of the plane coordinate system are dX(n)=xn-x0, dY(n)=yn-y0.

步骤S309,控制模块113用于根据各测试点与平面坐标系的原点的相对位移值产生第二控制指令控制机械手臂20在机械手臂坐标系中作相应位移。例如,控制机械手臂20沿机械手臂坐标系X轴方向移动dX(n)、Y轴方向移动dY(n)。In step S309, the control module 113 is used to generate a second control command according to the relative displacement value between each test point and the origin of the plane coordinate system to control the robot arm 20 to make a corresponding displacement in the robot arm coordinate system. For example, the robot arm 20 is controlled to move dX(n) along the X-axis direction of the robot arm coordinate system, and move dY(n) along the Y-axis direction.

步骤S310,影像撷取装置30撷取待测PCB 60的当前影像。In step S310, the image capture device 30 captures the current image of the PCB 60 to be tested.

步骤S311,图形识别模块111根据该第n个测试点的尺寸信息确定该第n个测试点的几何图形的中心点,计算模块114计算在当前影像中该第n个测试点的几何图形的中心点与当前影像中心点X,Y方向的像素差值。例如,假设当前影像的解析度为640*480像素,则当前影像中心点的像素坐标为(320,240),假设该第n个测试点的几何图形的中心点的像素坐标为(312,234),则该第n个测试点的几何图形的中心点与当前影像中心点的像素差值沿机械手臂坐标系X轴方向的像素差值为320-312=8,Y轴方向的像素差值为240-234=6,单位为像素点。Step S311, the pattern recognition module 111 determines the center point of the geometric figure of the nth test point according to the size information of the nth test point, and the calculation module 114 calculates the center point of the geometric figure of the nth test point in the current image The pixel difference between the point and the center point of the current image in the X and Y directions. For example, assuming that the resolution of the current image is 640*480 pixels, the pixel coordinates of the center point of the current image are (320, 240), assuming that the pixel coordinates of the center point of the geometry of the nth test point are (312, 234 ), then the pixel difference between the center point of the geometry of the nth test point and the current image center point is 320-312=8 along the X-axis direction of the mechanical arm coordinate system, and the pixel difference in the Y-axis direction is It is 240-234=6, and the unit is pixel.

步骤S312,计算模块114根据当前影像与待测PCB 60的缩放比例将X,Y方向的像素差值转换为机械手臂在X、Y轴方向的位移修正量dXr(n)及dYr(n)。缩放比例可以根据影像撷取装置30的放大倍率确定。例如,假设影像撷取装置30的放大倍率为1∶2,待测PCB 60的尺寸为Lcm*H cm,则dXr(n)=(8/640)*L/2,dYr(n)=(6/480)*H/2。In step S312, the calculation module 114 converts the pixel difference in the X and Y directions into the displacement corrections dXr(n) and dYr(n) of the robot arm in the X and Y directions according to the scaling ratio of the current image and the PCB 60 to be tested. The zoom ratio can be determined according to the magnification of the image capture device 30 . For example, assuming that the magnification of the image capture device 30 is 1:2, and the size of the PCB 60 to be tested is Lcm*H cm, then dXr(n)=(8/640)*L/2, dYr(n)=( 6/480)*H/2.

步骤S313,控制模块113根据计算得到的位移修正量产生第三控制指令对机械手臂20在机械手臂坐标系中的位移作相应修正。例如,控制机械手臂20沿机械手臂坐标系X轴方向继续移动dXr(n)、Y轴方向继续移动dYr(n),以将探针定位到待测PCB 60上的该第n个测试点的正上方。机械手臂20抓取的探针在机械手臂坐标系中的当前X坐标为Xn=xn+dXr(n),Y坐标为Yn=yn+dYr(n)。In step S313, the control module 113 generates a third control instruction to correct the displacement of the robot arm 20 in the robot arm coordinate system according to the calculated displacement correction amount. For example, control the mechanical arm 20 to continue to move dXr(n) along the X-axis direction of the mechanical arm coordinate system, and continue to move dYr(n) in the Y-axis direction, so as to position the probe to the nth test point on the PCB 60 to be tested. Directly above. The current X coordinate of the probe grasped by the mechanical arm 20 in the mechanical arm coordinate system is Xn=xn+dXr(n), and the Y coordinate is Yn=yn+dYr(n).

步骤S314,镭射测距仪40测量机械手臂20抓取的探针与待测PCB60上第n个测试点(xn,yn)的当前距离Zn。Step S314 , the laser rangefinder 40 measures the current distance Zn between the probe grasped by the mechanical arm 20 and the nth test point (xn, yn) on the PCB 60 to be tested.

步骤S315,坐标确定模块112根据待测PCB 60上的测试点在待测PCB 60坐标系中的坐标、计算得到的位移修正量及探针与待测PCB 60上第n个测试点(xn,yn)的当前距离Zn确定该第n个测试点在机械手臂坐标系中的坐标(Xn,Yn,Zn),并记录该第n个测试点在机械手臂坐标系中的坐标(Xn,Yn,Zn)至存储器13。例如,待测PCB 60上的第n个测试点的二维坐标为(xn,yn),则该第n个测试点在机械手臂坐标系中的坐标为(Xn,Yn,Zn)。其中,Xn=xn+dXr(n),Yn=yn+dYr(n)。Step S315, the coordinate determining module 112 is based on the coordinates of the test point on the PCB 60 to be tested in the PCB 60 coordinate system to be tested, the calculated displacement correction amount and the probe and the nth test point (xn, yn) determines the coordinates (Xn, Yn, Zn) of the nth test point in the mechanical arm coordinate system, and records the coordinates (Xn, Yn, Zn) of the nth test point in the mechanical arm coordinate system Zn) to memory 13. For example, the two-dimensional coordinates of the nth test point on the PCB 60 to be tested are (xn, yn), then the coordinates of the nth test point in the mechanical arm coordinate system are (Xn, Yn, Zn). Wherein, Xn=xn+dXr(n), Yn=yn+dYr(n).

步骤S316,控制模块113根据机械手臂20抓取的探针与待测PCB60上第n个测试点的当前距离Zn产生第四控制指令控制机械手臂20沿Z轴方向移动负Zn使探针精确定位到待测PCB 60上的第n个测试点,对该第n个测试点进行测试。Step S316, the control module 113 generates a fourth control instruction according to the current distance Zn between the probe grasped by the mechanical arm 20 and the nth test point on the PCB 60 to be tested, and controls the mechanical arm 20 to move negative Zn along the Z-axis direction to precisely position the probe Go to the nth test point on the PCB 60 to be tested, and test the nth test point.

步骤S317,信息读取模块110根据布图文件12中记录的布图信息判断待测PCB 60是否还有其它测试点未测试。若还有其它测试点未测试,则执行步骤S318,控制模块113产生第五控制指令控制机械手臂20复位,即控制机械手臂20将探针重新定位到机械手臂坐标系的原点(X0,Y0,Z0)。之后,流程自步骤S307开始重复,直到待测PCB 60上所有测试点都测试完毕,流程结束。Step S317, the information reading module 110 judges whether there are other test points not tested on the PCB 60 to be tested according to the layout information recorded in the layout file 12. If there are other test points that have not been tested, step S318 is executed, and the control module 113 generates a fifth control command to control the reset of the mechanical arm 20, that is, to control the mechanical arm 20 to reposition the probe to the origin of the mechanical arm coordinate system (X0, Y0, Z0). Afterwards, the process repeats from step S307 until all test points on the PCB 60 to be tested are tested, and the process ends.

Claims (10)

1. mechanical arm motion control method; Run on the control computer; This control computer expert crosses data wire and is connected with mechanical arm, image capture unit, radium-shine rangefinder and tester respectively; Mechanical arm utilizes the probe grabbing device to grasp the probe of tester, it is characterized in that this method comprises:
(a) read the cloth map file of PCB to be measured, obtain the layout information of PCB to be measured, comprise PCB coordinate system to be measured origin (x0, y0), the information of part to be measured and test point information;
(b) according to the origin of PCB coordinate system to be measured (x0 y0) produces first control instruction, control mechanical arm traveling probe to PCB coordinate origin to be measured (x0, y0) directly over;
(c) utilize probe that radium-shine stadia surveying mechanical arm grasps and PCB to be measured apart from Z0;
(d) according to the origin of PCB coordinate system to be measured (x0, y0) and probe and PCB to be measured apart from Z0 confirm the mechanical arm coordinate system origin (X0, Y0, Z0);
(e) from layout information, read the two-dimensional coordinate of the last test point of PCB to be measured, calculate the relative displacement value of this test point and PCB coordinate origin to be measured;
(f) produce second control instruction according to the relative displacement value that calculates, the control mechanical arm is done corresponding displacement in the mechanical arm coordinate system;
(g) utilize image capture unit to capture the current image of PCB to be measured;
(h) in current image, confirm the geometric figure of this test point according to the layout information of PCB to be measured, calculate the geometric central point of this test point and the pixel value difference of current image center point in current image;
(i) scaling according to current image and PCB to be measured converts pixel value difference the displacement correction amount of mechanical arm in the mechanical arm coordinate system into;
(j) give birth to the 3rd control instruction according to the displacement correction volume production that calculates, corresponding correction is done in the displacement in the mechanical arm coordinate system to mechanical arm, with probe is navigated to this test point on the PCB to be measured directly over;
(k) utilize the probe of radium-shine stadia surveying mechanical arm extracting and the current distance Zn of this test point on the PCB to be measured; And
(l) the current distance Zn according to this test point on probe and the PCB to be measured produces the 4th control instruction, and the control mechanical arm moves negative Zn along Z-direction, so that probe accurately navigates to this test point on the PCB to be measured.
2. mechanical arm motion control method as claimed in claim 1 is characterized in that, in the process of mechanical arm motion, the probe that mechanical arm grasps is positioned at the dead ahead of the optical center point of image capture unit all the time.
3. mechanical arm motion control method as claimed in claim 1; It is characterized in that this method also comprises step: the distance according to this test point on coordinate, the displacement correction amount that calculates and the probe and the PCB to be measured of this test point in PCB coordinate system to be measured is confirmed the coordinate of this test point in the mechanical arm coordinate system.
4. mechanical arm motion control method as claimed in claim 1 is characterized in that, this method also comprises step: judge according to the layout information in the cloth map file whether PCB to be measured also has other test point not test; If also have other test point not test, then control initial point (X0, Y0 that mechanical arm is repositioned onto probe the mechanical arm coordinate system; Z0); And return step (e), and all to test up to all test points of PCB to be measured and finish, flow process finishes.
5. mechanical arm motion control method as claimed in claim 1; It is characterized in that; The information of said part to be measured and test point information comprise: the type of part to be measured; The quantity of all kinds part to be measured, the test point that comprises on the dimension information of each part to be measured and each part to be measured, each test point two-dimensional coordinate and the dimension information of each test point in PCB coordinate system to be measured.
6. mechanical arm kinetic control system; Run on the control computer; This control computer expert crosses data wire and is connected with mechanical arm, image capture unit, radium-shine rangefinder and tester respectively; Mechanical arm utilizes the probe grabbing device to grasp the probe of tester, it is characterized in that this system comprises:
Information reading module is used to read the cloth map file of PCB to be measured, obtains the layout information of PCB to be measured, comprise PCB coordinate system to be measured origin (x0, y0), the information of part to be measured and test point information;
Control module, be used for according to PCB coordinate system to be measured origin (x0 y0) produces first control instruction, control mechanical arm traveling probe to PCB coordinate origin to be measured (x0, y0) directly over;
The coordinate determination module, be used for according to PCB coordinate system to be measured origin (x0, y0) and the probe that obtains of radium-shine stadia surveying and PCB to be measured apart from Z0 confirm the mechanical arm coordinate system origin (X0, Y0, Z0);
Information reading module also is used to read the two-dimensional coordinate of the last test point of PCB to be measured;
Computing module is used to calculate the relative displacement value of this test point and PCB coordinate origin to be measured;
Control module also is used for producing second control instruction according to the relative displacement value that calculates, and the control mechanical arm is done corresponding displacement in the mechanical arm coordinate system;
The Figure recognition module is used for confirming at the current image of the PCB to be measured of image capture unit acquisition according to the layout information of PCB to be measured the geometric figure of this test point;
Computing module; Also be used for calculating at the geometrical center point of current this test point of image and the pixel value difference of current image center point, and convert pixel value difference the displacement correction amount of mechanical arm in the mechanical arm coordinate system into according to the scaling of current image and PCB to be measured;
Control module; Also be used for giving birth to the 3rd control instruction according to the displacement correction volume production that calculates; Corresponding correction is done in displacement in the mechanical arm coordinate system to mechanical arm; And the probe that obtains according to radium-shine stadia surveying and the current distance Zn of this test point on the PCB to be measured produce the 4th control instruction, and the control mechanical arm moves negative Zn along Z-direction, so that probe accurately navigates to this test point on the PCB to be measured.
7. mechanical arm kinetic control system as claimed in claim 6 is characterized in that, in the process of mechanical arm motion, the probe that mechanical arm grasps is positioned at the dead ahead of the optical center point of image capture unit all the time.
8. mechanical arm kinetic control system as claimed in claim 6; It is characterized in that said coordinate determination module also is used for confirming the coordinate of this test point in the mechanical arm coordinate system according to the distance of this test point this test point on the coordinate of PCB coordinate system to be measured, the displacement correction amount that calculates and probe and PCB to be measured.
9. mechanical arm kinetic control system as claimed in claim 6; It is characterized in that; Said information reading module also is used for judging according to the layout information of cloth map file whether PCB to be measured also has other test point not test; If also have other test point not test, after then control module produced the 5th control instruction control mechanical arm probe is repositioned onto the initial point of mechanical arm coordinate system, the control mechanical arm navigated to probe the next test point of PCB to be measured.
10. mechanical arm kinetic control system as claimed in claim 6; It is characterized in that; The information of said part to be measured and test point information comprise: the type of part to be measured; The quantity of all kinds part to be measured, the test point that comprises on the dimension information of each part to be measured and each part to be measured, each test point two-dimensional coordinate and the dimension information of each test point in PCB coordinate system to be measured.
CN2011100077495A 2011-01-14 2011-01-14 Mechanical arm movement control system and method Pending CN102581851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100077495A CN102581851A (en) 2011-01-14 2011-01-14 Mechanical arm movement control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100077495A CN102581851A (en) 2011-01-14 2011-01-14 Mechanical arm movement control system and method

Publications (1)

Publication Number Publication Date
CN102581851A true CN102581851A (en) 2012-07-18

Family

ID=46471369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100077495A Pending CN102581851A (en) 2011-01-14 2011-01-14 Mechanical arm movement control system and method

Country Status (1)

Country Link
CN (1) CN102581851A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103760921A (en) * 2014-01-22 2014-04-30 哈尔滨工业大学 Low-precision multi-sensor fused original point precise positioning system and positioning method
CN104035022A (en) * 2014-06-06 2014-09-10 胜宏科技(惠州)股份有限公司 Method for automatically testing circuit boards
CN104714168A (en) * 2015-02-06 2015-06-17 宁波科瑞特光电技术有限公司 Flexible circuit board probing method
TWI561354B (en) * 2014-06-26 2016-12-11 Hiwin Tech Corp
CN106249126A (en) * 2016-07-18 2016-12-21 浙江华鑫实业有限公司 Backboard detection method
CN106249125A (en) * 2016-07-18 2016-12-21 浙江华鑫实业有限公司 Rear-panel testing system
CN106679563A (en) * 2016-12-13 2017-05-17 广州视源电子科技股份有限公司 Method and device for determining needle box position of to-be-detected clamping plate
CN107658202A (en) * 2017-10-01 2018-02-02 江苏天瑞仪器股份有限公司 A kind of icp mses automatic sampler
CN108621125A (en) * 2017-03-22 2018-10-09 株式会社东芝 Object manipulation device and its calibration method
CN110736910A (en) * 2018-07-18 2020-01-31 大族激光科技产业集团股份有限公司 Flying probe test method, test device, test equipment and storage medium of PCB
CN110850269A (en) * 2019-10-11 2020-02-28 深圳市元征科技股份有限公司 Test system, test method, control device, and storage medium
CN111220830A (en) * 2020-01-02 2020-06-02 北京半导体专用设备研究所(中国电子科技集团公司第四十五研究所) Electrical index testing method and device for multiple elements and electronic equipment
CN111515149A (en) * 2020-04-26 2020-08-11 广东弓叶科技有限公司 Man-machine cooperation sorting system and robot grabbing position obtaining method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63162124A (en) * 1986-12-23 1988-07-05 Toshiba Corp Parts mounting device
JPH0755427A (en) * 1993-08-12 1995-03-03 Nec Corp Lead position detector
US6681151B1 (en) * 2000-12-15 2004-01-20 Cognex Technology And Investment Corporation System and method for servoing robots based upon workpieces with fiducial marks using machine vision
CN101865975A (en) * 2009-04-16 2010-10-20 鸿富锦精密工业(深圳)有限公司 Motherboard testing system and method
CN101900787A (en) * 2009-05-25 2010-12-01 鸿富锦精密工业(深圳)有限公司 Circuit board testing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63162124A (en) * 1986-12-23 1988-07-05 Toshiba Corp Parts mounting device
JPH0755427A (en) * 1993-08-12 1995-03-03 Nec Corp Lead position detector
US6681151B1 (en) * 2000-12-15 2004-01-20 Cognex Technology And Investment Corporation System and method for servoing robots based upon workpieces with fiducial marks using machine vision
CN101865975A (en) * 2009-04-16 2010-10-20 鸿富锦精密工业(深圳)有限公司 Motherboard testing system and method
CN101900787A (en) * 2009-05-25 2010-12-01 鸿富锦精密工业(深圳)有限公司 Circuit board testing system and method

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103760921B (en) * 2014-01-22 2016-03-23 哈尔滨工业大学 The initial point Precise Position System of the multiple sensor fusion of low precision and localization method
CN103760921A (en) * 2014-01-22 2014-04-30 哈尔滨工业大学 Low-precision multi-sensor fused original point precise positioning system and positioning method
CN104035022A (en) * 2014-06-06 2014-09-10 胜宏科技(惠州)股份有限公司 Method for automatically testing circuit boards
TWI561354B (en) * 2014-06-26 2016-12-11 Hiwin Tech Corp
CN104714168A (en) * 2015-02-06 2015-06-17 宁波科瑞特光电技术有限公司 Flexible circuit board probing method
CN106249126A (en) * 2016-07-18 2016-12-21 浙江华鑫实业有限公司 Backboard detection method
CN106249125A (en) * 2016-07-18 2016-12-21 浙江华鑫实业有限公司 Rear-panel testing system
CN106679563A (en) * 2016-12-13 2017-05-17 广州视源电子科技股份有限公司 Method and device for determining needle box position of to-be-detected clamping plate
CN106679563B (en) * 2016-12-13 2019-05-07 广州视源电子科技股份有限公司 Method and device for determining needle box position of board card to be tested
CN108621125B (en) * 2017-03-22 2021-07-30 株式会社东芝 Object handling device and calibration method thereof
CN108621125A (en) * 2017-03-22 2018-10-09 株式会社东芝 Object manipulation device and its calibration method
CN107658202A (en) * 2017-10-01 2018-02-02 江苏天瑞仪器股份有限公司 A kind of icp mses automatic sampler
CN110736910A (en) * 2018-07-18 2020-01-31 大族激光科技产业集团股份有限公司 Flying probe test method, test device, test equipment and storage medium of PCB
CN110736910B (en) * 2018-07-18 2022-04-19 深圳市大族数控科技股份有限公司 Flying probe test method, test device, test equipment and storage medium of PCB
CN110850269A (en) * 2019-10-11 2020-02-28 深圳市元征科技股份有限公司 Test system, test method, control device, and storage medium
CN111220830A (en) * 2020-01-02 2020-06-02 北京半导体专用设备研究所(中国电子科技集团公司第四十五研究所) Electrical index testing method and device for multiple elements and electronic equipment
CN111515149A (en) * 2020-04-26 2020-08-11 广东弓叶科技有限公司 Man-machine cooperation sorting system and robot grabbing position obtaining method thereof
CN111515149B (en) * 2020-04-26 2020-12-29 广东弓叶科技有限公司 Human-robot cooperative sorting system and method for acquiring grasping position of robot

Similar Documents

Publication Publication Date Title
CN102581851A (en) Mechanical arm movement control system and method
CN110842901B (en) Robot hand-eye calibration method and device based on novel three-dimensional calibration block
JP4021413B2 (en) Measuring device
CN105066884B (en) A kind of robot end's deviations bearing calibration and system
CN107186548B (en) A kind of five-axle number control machine tool rotating shaft geometric error detection method
US10234260B2 (en) Method to control a drive mechanism of an automated machine having a camera
CN106338245B (en) Non-contact movement measuring method for workpiece
CN106767443B (en) A fully automatic two-dimensional image detector and measurement method
CN105241399B (en) A kind of measuring method of precisely locating platform dynamic flatness
CN112683215A (en) Method for generating information about a sensor chain of a coordinate measuring machine
TW201228786A (en) Mechanical arm movement controlling system and method
CN103528520B (en) Based on pick-up unit and the method for the synchronous operation jack-up system of binocular vision
CN110488838B (en) An accurate and repeatable positioning method for indoor autonomous navigation robot
CN105278673A (en) Method for supporting an operator in measuring a part of an object
CN112529856B (en) Method for determining position of operating object, robot and automation system
CN112505663A (en) Calibration method for multi-line laser radar and camera combined calibration
CN109952176A (en) A kind of robot calibration method, system, robot and storage medium
JP2017033429A (en) 3D object inspection system
CN109631764B (en) Dimensional measurement system and method based on RealSense camera
Wang et al. Automatic reading system for analog instruments based on computer vision and inspection robot for power plant
JP5481397B2 (en) 3D coordinate measuring device
JPH03213251A (en) Workpiece position detecting device
CN106276285A (en) Group material buttress position automatic testing method
CN120403435A (en) A size detection system and size detection method for process holes
CN115990890B (en) Calibration method and device for manipulator, computer equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120718