[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111650882A - An online error compensation system and method for hybrid robots based on coarse interpolation - Google Patents

An online error compensation system and method for hybrid robots based on coarse interpolation Download PDF

Info

Publication number
CN111650882A
CN111650882A CN202010479811.XA CN202010479811A CN111650882A CN 111650882 A CN111650882 A CN 111650882A CN 202010479811 A CN202010479811 A CN 202010479811A CN 111650882 A CN111650882 A CN 111650882A
Authority
CN
China
Prior art keywords
axis
point
rotating shaft
arm
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
CN202010479811.XA
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.)
Tianjin University
Original Assignee
Tianjin University
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 Tianjin University filed Critical Tianjin University
Priority to CN202010479811.XA priority Critical patent/CN111650882A/en
Publication of CN111650882A publication Critical patent/CN111650882A/en
Pending legal-status Critical Current

Links

Images

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/404Numerical 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 control arrangements for compensation, e.g. for backlash, overshoot, tool offset, tool wear, temperature, machine construction errors, load, inertia
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/34Director, elements to supervisory
    • G05B2219/34117Machine workpiece along, parallel to largest dimension

Landscapes

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

Abstract

本发明公开了一种基于粗插补的混联机器人误差在线补偿系统及方法,其中系统包括混联机械臂、第一、二转动支架、检测系统及控制系统;混联机械臂中的动平台,其周侧铰接有第一至第三主动臂,其后端固接有从动支撑臂;其前端连接有A/C轴双摆角头;第二、三主动臂及从动支撑臂通过第三至第五转轴与第二转动支架连接;第二转动支架通过第六转轴与轴承座连接;检测系统包括:检测第六、五转轴转角的第一、二角度传感器;检测C、A轴转角的第三、四角度传感器;检测从动支撑臂轴向位移的第一位移传感器;控制系统中的多轴运动控制器,其接收各传感器的反馈信号,输出信号控制对应伺服电机的工作。本发明的补偿方法简单,可提高混联机器人定位精度。

Figure 202010479811

The invention discloses an online error compensation system and method for a hybrid robot based on rough interpolation, wherein the system includes a hybrid robot arm, a first and a second rotating support, a detection system and a control system; a moving platform in the hybrid robot arm , its peripheral side is hinged with the first to third active arms, and its rear end is fixedly connected with a driven support arm; its front end is connected with an A/C axis double swing angle head; the second and third active arms and the driven support arm pass through The third to fifth rotating shafts are connected with the second rotating support; the second rotating support is connected with the bearing seat through the sixth rotating shaft; the detection system includes: first and second angle sensors for detecting the rotation angles of the sixth and fifth rotating shafts; detecting the C and A axes The third and fourth angle sensors of the rotation angle; the first displacement sensor to detect the axial displacement of the driven support arm; the multi-axis motion controller in the control system, which receives the feedback signal of each sensor, and outputs the signal to control the work of the corresponding servo motor. The compensation method of the invention is simple, and the positioning accuracy of the hybrid robot can be improved.

Figure 202010479811

Description

一种基于粗插补的混联机器人误差在线补偿系统及方法An online error compensation system and method for hybrid robots based on coarse interpolation

技术领域technical field

本发明涉及一种机器人加工领域,特别涉及一种基于粗插补的混联机器人误差在线补偿系统及方法。The invention relates to the field of robot processing, in particular to an online error compensation system and method for a hybrid robot based on rough interpolation.

背景技术Background technique

为适应加工大型结构件的大范围移动、局部高速精密加工的服役环境,应对大型结构件具有外形尺寸大、几何形状复杂、精度要求高等特点,以混联构型装备为核心功能部件的单机制造单元或多机制造系统正逐渐成为不可或缺的重要工具。然而,在使用过程中混联机器人由于末端执行器负载和机械臂自身重力作用会发生一定程度的形变,使机器人末端位置发生偏移,及机器人零件在加工制造过程中实际尺寸与理论尺寸不完全相符,在装配过程中会造成驱动支链长度不准确,各驱动关节因减速器带来的传动误差,摆角头因减速器间隙、摩擦、零位偏差引起的关节误差,会造成运动控制器中用于计算的理论模型参数与机器人实际参数不一致,直接影响末端的定位精度。In order to adapt to the large-scale movement of large-scale structural parts and the service environment of local high-speed precision machining, the large-scale structural parts have the characteristics of large external dimensions, complex geometric shapes and high precision requirements, and the single-machine manufacturing with hybrid configuration equipment as the core functional component Cell or multi-machine manufacturing systems are increasingly becoming an indispensable tool. However, during use, the hybrid robot will deform to a certain extent due to the load of the end effector and the gravity of the mechanical arm, which will cause the position of the end of the robot to be offset, and the actual size of the robot parts in the process of manufacturing and the theoretical size are not complete. Consistent, in the assembly process, the length of the drive chain will be inaccurate, the transmission error of each drive joint due to the reducer, and the joint error of the swing head due to the gap, friction, and zero deviation of the reducer will cause the motion controller. The theoretical model parameters used in the calculation are inconsistent with the actual parameters of the robot, which directly affects the positioning accuracy of the end.

提高机器人精度的方法主要有误差预防技术和误差补偿技术。目前误差预防技术一直受到零件制造技术和经济效益的制约,而误差补偿技术可以在较低的硬件投入下使机器人精度得到有效的改善。误差补偿技术主要有两类:一类是离线补偿,在机器人使用之前通过标定或者建立误差补偿映射模型提高精度,这类方法复杂繁琐且现场使用时无法改变;另一类是在线补偿,在机器人使用过程中检测误差,实时对误差进行补偿。目前的在线补偿方法,监测数据较多,运算量大,占用计算机的存储容量和运行速度,设备的运行速度相应受到影响。The methods to improve the accuracy of robots mainly include error prevention technology and error compensation technology. At present, the error prevention technology has been constrained by the parts manufacturing technology and economic benefits, and the error compensation technology can effectively improve the robot accuracy with lower hardware investment. There are two main types of error compensation techniques: one is offline compensation, which improves accuracy by calibrating or establishing an error compensation mapping model before the robot is used. These methods are complex and cumbersome and cannot be changed during field use; Errors are detected during use, and errors are compensated in real time. The current online compensation method has a lot of monitoring data and a large amount of calculation, which occupies the storage capacity and running speed of the computer, and the running speed of the equipment is affected accordingly.

发明内容SUMMARY OF THE INVENTION

本发明为解决公知技术中存在的技术问题而提供一种高效准确的基于粗插补的混联机器人误差在线补偿系统及方法。In order to solve the technical problems existing in the known technology, the present invention provides an efficient and accurate online error compensation system and method for a hybrid robot based on rough interpolation.

本发明为解决公知技术中存在的技术问题所采取的技术方案是:一种基于粗插补的混联机器人误差在线补偿系统,包括混联机械臂、第一转动支架、第二转动支架、检测系统及控制系统;其中:The technical solution adopted by the present invention to solve the technical problems existing in the known technology is: an online error compensation system for hybrid robots based on rough interpolation, comprising a hybrid robot arm, a first rotating support, a second rotating support, a detection systems and control systems; of which:

混联机械臂包括动平台;动平台周侧铰接有三个由伺服电机驱动伸缩的主动臂,依次为第一主动臂、第二主动臂、第三主动臂;动平台后端固接有从动支撑臂;动平台前端连接有由伺服电机驱动的A/C轴双摆角头,其中双摆角头的C轴与动平台转动连接;第一主动臂通过第一转轴与第一转动支架转动连接;第一转动支架通过第二转轴与固定的轴承座转动连接;第二主动臂、第三主动臂、从动支撑臂,对应通过第三转轴、第四转轴、第五转轴与第二转动支架转动连接;第二转动支架通过第六转轴与固定的轴承座转动连接;第一转轴与第二转轴的轴线垂直;第三转轴、第四转轴、第五转轴的轴线相互平行且与第六转轴的轴线垂直;第二转动支架的中心位于第五转轴的轴线与第六转轴的轴线交点上;The hybrid manipulator includes a moving platform; three active arms driven and retracted by a servo motor are hinged on the peripheral side of the moving platform, which are a first active arm, a second active arm, and a third active arm in sequence; the rear end of the moving platform is fixed with a driven arm A support arm; the front end of the moving platform is connected with an A/C axis double swing angle head driven by a servo motor, wherein the C axis of the double swing angle head is rotatably connected with the moving platform; the first active arm rotates with the first rotating bracket through the first rotating shaft connection; the first rotating bracket is rotatably connected to the fixed bearing seat through the second rotating shaft; the second driving arm, the third driving arm and the driven support arm are correspondingly connected to the second rotating shaft through the third rotating shaft, the fourth rotating shaft and the fifth rotating shaft The support is rotatably connected; the second rotating support is rotatably connected with the fixed bearing seat through the sixth rotating shaft; the axis of the first rotating shaft is perpendicular to the axis of the second rotating shaft; the axes of the third rotating shaft, the fourth rotating shaft and the fifth rotating shaft are parallel to each other and the sixth rotating shaft The axis of the rotating shaft is vertical; the center of the second rotating support is located at the intersection of the axis of the fifth rotating shaft and the axis of the sixth rotating shaft;

检测系统包括:用于检测第六转轴转动角度的第一角度传感器;用于检测第五转轴转动角度的第二角度传感器;用于检测C轴转动角度的第三角度传感器;用于检测A轴转动角度的第四角度传感器;用于检测从动支撑臂轴向位移的第一位移传感器;The detection system includes: a first angle sensor for detecting the rotation angle of the sixth shaft; a second angle sensor for detecting the rotation angle of the fifth shaft; a third angle sensor for detecting the rotation angle of the C-axis; a fourth angle sensor for the rotation angle; a first displacement sensor for detecting the axial displacement of the driven support arm;

控制系统包括多轴运动控制器;该多轴运动控制器,其接收来自第一至第四角度传感器以及第一位移传感器的检测信号,其将检测值换算为对应第一至第三主动臂的伸缩位移值以及A、C轴的转动角度值,并与对应的给定值进行相减得到偏差,其基于偏差给出控制信号,控制驱动第一至第三主动臂以及A、C轴的伺服电机的工作。The control system includes a multi-axis motion controller; the multi-axis motion controller receives detection signals from the first to fourth angle sensors and the first displacement sensor, and converts the detection values into corresponding first to third active arms. The telescopic displacement value and the rotation angle values of the A and C axes are subtracted from the corresponding given values to obtain the deviation. Based on the deviation, a control signal is given to control the servo drive of the first to third active arms and the A and C axes. work of the motor.

进一步地,第五转轴的轴线与第三转轴的轴线及第四转轴的轴线距离相等。Further, the axis of the fifth rotating shaft is at the same distance from the axis of the third rotating shaft and the axis of the fourth rotating shaft.

进一步地,所述第一至第四角度传感器为圆光栅;第一位移传感器为直线光栅。Further, the first to fourth angle sensors are circular gratings; the first displacement sensor is a linear grating.

进一步地,多轴运动控制器采用欧姆龙CK3M型多轴运动控制器。Further, the multi-axis motion controller adopts Omron CK3M multi-axis motion controller.

进一步地,第一转动支架和第二转动支架上下设置。Further, the first rotating bracket and the second rotating bracket are arranged up and down.

进一步地,第一主动臂与动平台的铰接中心到第二主动臂、第三主动臂与动平台的铰接中心的距离相等。Further, the distances from the hinge center of the first driving arm and the movable platform to the hinge centers of the second driving arm, the third driving arm and the movable platform are equal.

进一步地,第一主动臂、第二主动臂及第三主动臂与动平台球铰式连接。Further, the first active arm, the second active arm and the third active arm are connected with the moving platform in a spherical hinge type.

本发明还提供了一种采用上述的基于粗插补的混联机器人误差在线补偿系统的基于粗插补的混联机器人误差在线补偿方法,该方法包括如下步骤:The present invention also provides a method for online error compensation of a hybrid robot based on coarse interpolation using the above-mentioned online error compensation system for a hybrid robot based on coarse interpolation. The method includes the following steps:

步骤A,在多轴控制器内,设置五个全局补偿变量存储器,用于对应存储第一至第三主动臂的轴向位移补偿变量以及A、C轴的转动角度补偿变量,并初始化变量存储器;Step A, in the multi-axis controller, set up five global compensation variable memories for correspondingly storing the axial displacement compensation variables of the first to third active arms and the rotation angle compensation variables of the A and C axes, and initialize the variable memory ;

步骤B,多轴运动控制器读入G代码,将刀尖加工轨迹转化为若干连续微小线段,得到微小线段两端点的刀尖姿态数据;In step B, the multi-axis motion controller reads the G code, converts the tool nose machining trajectory into several continuous tiny line segments, and obtains the tool nose attitude data at both ends of the tiny line segments;

步骤C,多轴运动控制器根据混联机器人逆运动学算法,并结合补偿变量存储器内的补偿值,输出对应第一至第三主动臂的轴向位移给定值的伺服驱动指令,以及对应A、C轴转动角度给定值的伺服驱动指令;Step C, the multi-axis motion controller outputs the servo drive commands corresponding to the given values of the axial displacements of the first to third active arms according to the inverse kinematics algorithm of the hybrid robot combined with the compensation values in the compensation variable memory, and the corresponding The servo drive command for the given value of the rotation angle of the A and C axes;

步骤D,多轴运动控制器接收当前第一至第四角度传感器以及第一位移传感器的反馈信号,其根据空间几何算法,得到对应第一至第三主动臂的轴向位移给定值以及A、C轴的转动角度给定值的偏差,将偏差作为新的补偿值,变量存储器对应更新为新的补偿值;Step D, the multi-axis motion controller receives the feedback signals of the current first to fourth angle sensors and the first displacement sensor, and obtains the axial displacement given values corresponding to the first to third active arms and A according to the spatial geometry algorithm. The deviation of the given value of the rotation angle of the C axis, the deviation is regarded as the new compensation value, and the variable memory is updated to the new compensation value accordingly;

步骤E,重复步骤C至步骤D,直至插补结束。Step E, repeat steps C to D until the interpolation ends.

进一步地,刀尖姿态数据包括:刀尖点的x轴、y轴、z轴坐标,以及刀尖点绕x轴、y轴的转动角度。Further, the tool nose attitude data includes: the x-axis, y-axis, and z-axis coordinates of the tool nose point, and the rotation angle of the tool nose point around the x-axis and the y-axis.

进一步地,空间几何算法如下:Further, the spatial geometry algorithm is as follows:

设第一角度传感器检测值为θ1,设第二角度传感器检测值为θ2,设第一位移传感器检测值为L1,设第一至第三主动臂与动平台相对转动围绕的中心点依次为A1、A2、A3,设第一主动臂与第一转动支架的转动副中心为B1;设第二、第三主动臂与第二转动支架的转动副中心分别为B2、B3;设A2、A3两点的连线中点为A点,设第二转动支架的中心为B点,设基座标系为B-xyz;设xA、yA、zA对应为A点在基座标系下x轴、y轴、z轴坐标;设第一至第三主动臂由伺服电机转动带动滚珠丝杠进行轴向位移;Set the detection value of the first angle sensor as θ 1 , the detection value of the second angle sensor as θ 2 , the detection value of the first displacement sensor as L 1 , and the center point around which the first to third active arms and the movable platform rotate relative to each other. A 1 , A 2 , and A 3 in sequence, and the rotation sub-centers of the first driving arm and the first rotating bracket are set as B 1 ; the rotation sub-centers of the second and third driving arms and the second rotating bracket are respectively set as B 2 , B 3 ; set the midpoint of the line connecting the two points A 2 and A 3 as point A, set the center of the second rotating support as point B, set the base frame as B-xyz; set x A , y A , z A corresponds to the x-axis, y-axis, and z-axis coordinates of point A under the base frame; the first to third active arms are rotated by the servo motor to drive the ball screw to perform axial displacement;

由空间几何关系,得到A点在基座标系下的坐标值如下:From the spatial geometric relationship, the coordinate values of point A under the base frame are obtained as follows:

xA=L1sinθ2 x A =L 1 sinθ 2

yA=L1cosθ2sinθ1 y A =L 1 cosθ 2 sinθ 1

zA=L1cosθ2cosθ1 z A =L 1 cosθ 2 cosθ 1

根据并联机构逆运动学,由以下各式求解得到第一至第三主动臂的伺服电机实际转动角度:According to the inverse kinematics of the parallel mechanism, the actual rotation angles of the servo motors of the first to third active arms are obtained by the following equations:

rA=[xA yA zA]Tr A = [x A y A z A ] T ;

q4=||rA||;q 4 =||r A ||;

w4=rA/q4=(s3x s3y s3z)Tw 4 =r A /q 4 =(s 3x s 3y s 3z ) T ;

Figure BDA0002516925720000031
Figure BDA0002516925720000031

Figure BDA0002516925720000032
Figure BDA0002516925720000032

Figure BDA0002516925720000033
Figure BDA0002516925720000033

ai0=(ai cosγi ai sinγi 0)Ta i0 =(a i cosγ i a i sinγ i 0) T ;

Ci=Rai0C i =Ra i0 ;

Di=(bi cosγi bisinγi 0)TD i =( bi cosγ i b i sinγ i 0) T ;

Figure BDA0002516925720000041
Figure BDA0002516925720000041

式中:where:

rA为点A在坐标系B-xyz下的位置矢量;r A is the position vector of point A in the coordinate system B-xyz;

q4为点A到点B距离;q 4 is the distance from point A to point B;

w4为点A到点B的单位矢量;w 4 is the unit vector from point A to point B;

s3x为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中x轴上的坐标值;s 3x is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the x axis in the coordinate system B-xyz;

s3y为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中y轴上的坐标值;s 3y is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the y axis in the coordinate system B-xyz;

s3z为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中z轴上的坐标值;s 3z is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the z axis in the coordinate system B-xyz;

ψ为坐标系A-xAyAzA的姿态相对坐标系B-xyz绕x轴的旋转角度;ψ is the rotation angle of the attitude of the coordinate system Ax A y A z A relative to the coordinate system B-xyz around the x-axis;

θ为坐标系A-xAyAzA相对坐标系B-xyz绕x轴旋转角度ψ后,坐标系A-xAyAzA的姿态相对坐标系B-xyz绕yA轴的旋转角度;θ is the rotation angle of the posture of the coordinate system Ax A y A z A relative to the coordinate system B-xyz around the y A axis after the coordinate system Ax A y A z A rotates the angle ψ about the x-axis relative to the coordinate system B-xyz;

R为坐标系A-xAyAzA相对坐标系B-xyz的姿态矩阵;R is the attitude matrix of the coordinate system Ax A y A z A relative to the coordinate system B-xyz;

γi为中间变量;γ i is an intermediate variable;

Ci为点Ai在坐标系B-xyz下的位置矢量;i=1,2,3;C i is the position vector of point A i in the coordinate system B-xyz; i=1,2,3;

ai为点Ai到点A的距离;i=1,2,3;a i is the distance from point A i to point A; i=1,2,3;

Di为点Bi在坐标系B-xyz下的位置矢量;i=1,2,3;D i is the position vector of point B i in the coordinate system B-xyz; i=1,2,3;

bi为点Bi到点B的距离;i=1,2,3;b i is the distance from point B i to point B; i=1,2,3;

ai0为点Ai在坐标系A-xAyAzA下的位置矢量;i=1,2,3;a i0 is the position vector of point A i in the coordinate system Ax A y A z A ; i=1,2,3;

pi为第i个主动臂的滚珠丝杠的导程;i=1,2,3;pi is the lead of the ball screw of the i -th active arm; i=1,2,3;

θia为第i个主动臂的伺服电机的实际转角;i=1,2,3。θ ia is the actual rotation angle of the servo motor of the i-th active arm; i=1, 2, 3.

本发明具有的优点和积极效果是:可在线实时补偿混联机器人在加工过程中由于机械臂自重和末端负载导致的末端位置偏移、零部件在加工装配过程中产生的尺寸误差、各驱动关节的传动误差、摆角头因减速器间隙、摩擦、零位偏差引起的关节误差,能够提高混联机器人的定位精度,相对于传统运动学标定方法和离线补偿方法更加简单,且该方法在粗插补过程中完成相邻插补点的误差补偿,求补偿值算法简单,在线补偿控制容易,补偿效果满足机器人高速高精度运动控制的需求。The advantages and positive effects of the present invention are: online and real-time compensation for the end position deviation of the hybrid robot due to the self-weight and end load of the mechanical arm during the machining process, the dimensional error of the parts and components during the machining and assembly process, and the driving joints. It can improve the positioning accuracy of the hybrid robot, which is simpler than the traditional kinematics calibration method and offline compensation method. During the interpolation process, the error compensation of adjacent interpolation points is completed, the algorithm for calculating the compensation value is simple, the online compensation control is easy, and the compensation effect meets the needs of high-speed and high-precision motion control of the robot.

附图说明Description of drawings

图1是本发明的一种基于粗插补的混联机器人误差在线补偿系统结构示意图。FIG. 1 is a schematic structural diagram of a hybrid robot error online compensation system based on coarse interpolation according to the present invention.

图2是本发明的一种基于粗插补的混联机器人误差在线补偿方法工作流程图。FIG. 2 is a working flow chart of a method for online error compensation of a hybrid robot based on coarse interpolation according to the present invention.

图3是本发明的空间几何算法的几何原理图。FIG. 3 is a geometrical schematic diagram of the spatial geometry algorithm of the present invention.

图中:1、第三伺服电机;2、从动支撑臂;3、第二伺服电机;4、第二角度传感器;5、第五转轴;6、第二转动支架;7、动平台;8、第三角度传感器;9、A/C轴双摆角头;10、A轴;11、第四角度传感器;12、第一位移传感器;13、第六转轴;14、第一角度传感器;15、第一伺服电机;16、第一转动支架。In the figure: 1, the third servo motor; 2, the driven support arm; 3, the second servo motor; 4, the second angle sensor; 5, the fifth shaft; 6, the second rotating bracket; 7, the moving platform; 8 , the third angle sensor; 9, the A/C axis double swing angle head; 10, the A axis; 11, the fourth angle sensor; 12, the first displacement sensor; 13, the sixth axis; 14, the first angle sensor; 15 , the first servo motor; 16, the first rotating bracket.

具体实施方式Detailed ways

为能进一步了解本发明的发明内容、特点及功效,兹列举以下实施例,并配合附图详细说明如下:In order to further understand the content of the invention, features and effects of the present invention, the following embodiments are listed herewith, and are described in detail as follows in conjunction with the accompanying drawings:

请参见图1至图3,一种基于粗插补的混联机器人误差在线补偿系统,包括混联机械臂、第一转动支架16、第二转动支架6、检测系统及控制系统;其中:Please refer to FIGS. 1 to 3 , an online error compensation system for hybrid robots based on rough interpolation, including a hybrid robot arm, a first rotating support 16 , a second rotating support 6 , a detection system and a control system; wherein:

混联机械臂包括动平台7;动平台7周侧铰接有三个由伺服电机驱动伸缩的主动臂,依次为第一主动臂、第二主动臂、第三主动臂;动平台7后端固接有从动支撑臂2;动平台7前端连接有由伺服电机驱动的A/C轴双摆角头9,其中A/C轴双摆角头9的C轴与动平台7转动连接;第一主动臂通过第一转轴与第一转动支架16转动连接;第一转动支架16通过第二转轴与固定的轴承座转动连接;第二主动臂、第三主动臂、从动支撑臂2,对应通过第三转轴、第四转轴、第五转轴5与第二转动支架6转动连接;第二转动支架6通过第六转轴13与固定的轴承座转动连接;第一转轴与第二转轴的轴线垂直;第三转轴、第四转轴、第五转轴5的轴线相互平行且与第六转轴13的轴线垂直;第二转动支架6的中心位于第五转轴5的轴线与第六转轴13的轴线交点上;The hybrid manipulator includes a moving platform 7; the moving platform 7 is hinged with three active arms driven and retracted by a servo motor, which are sequentially a first active arm, a second active arm, and a third active arm; the rear end of the moving platform 7 is fixedly connected There is a driven support arm 2; the front end of the moving platform 7 is connected with an A/C axis double swing angle head 9 driven by a servo motor, wherein the C axis of the A/C axis double swing angle head 9 is rotatably connected with the moving platform 7; the first The active arm is rotatably connected to the first rotating bracket 16 through the first rotating shaft; the first rotating bracket 16 is rotatably connected to the fixed bearing seat through the second rotating shaft; the second active arm, the third active arm, and the driven support arm 2 correspond to the The third rotating shaft, the fourth rotating shaft and the fifth rotating shaft 5 are rotatably connected with the second rotating support 6; the second rotating support 6 is rotatably connected with the fixed bearing seat through the sixth rotating shaft 13; the axes of the first rotating shaft and the second rotating shaft are perpendicular; The axes of the third rotating shaft, the fourth rotating shaft and the fifth rotating shaft 5 are parallel to each other and perpendicular to the axis of the sixth rotating shaft 13; the center of the second rotating support 6 is located at the intersection of the axis of the fifth rotating shaft 5 and the axis of the sixth rotating shaft 13;

第一主动臂、第二主动臂、第三主动臂构成混联机器人的并联机构;A/C轴双摆角头的A轴10和A/C轴双摆角头9的C轴构成混联机器人串联机构。从动支撑臂2用于固定支撑动平台7并对动平台7的运动进行约束。The first active arm, the second active arm, and the third active arm constitute the parallel mechanism of the hybrid robot; the A-axis 10 of the A/C-axis double-swing angle head and the C-axis of the A/C-axis double-swing angle head 9 constitute the hybrid robot Robotic tandem mechanism. The driven support arm 2 is used to fix and support the movable platform 7 and restrain the movement of the movable platform 7 .

其中第一主动臂的驱动伺服电机称为第一伺服电机15、第二主动臂的驱动伺服电机称为第二伺服电机3、第三主动臂的驱动伺服电机称为第三伺服电机1,A/C轴双摆角头9的C轴驱动伺服电机称为第四伺服电机,A/C轴双摆角头的A轴10驱动伺服电机称为第五伺服电机。第一至第三主动臂的伺服电机可采用输出转矩的伺服电机,这种伺服电机的输出轴可与将旋转运动变为直线运动的传动机构连接,优选与滚动丝杠传动机构连接,将伺服电机的转动驱动转变为直线驱动,第一至第三主动臂的伺服电机也可采用直线伺服电机,来实现第一主动臂、第二主动臂、第三主动臂直线伸缩。The driving servo motor of the first driving arm is called the first servo motor 15, the driving servo motor of the second driving arm is called the second servo motor 3, and the driving servo motor of the third driving arm is called the third servo motor 1, A The C-axis drive servo motor of the /C-axis double swing angle head 9 is called the fourth servo motor, and the A-axis 10 drive servo motor of the A/C-axis double swing angle head is called the fifth servo motor. The servo motors of the first to third active arms can use servo motors that output torque. The output shafts of such servo motors can be connected to a transmission mechanism that converts rotary motion into linear motion, preferably a rolling screw transmission mechanism to connect The rotational drive of the servo motor is transformed into a linear drive, and the servo motors of the first to third active arms can also use linear servo motors to realize the linear expansion and contraction of the first active arm, the second active arm and the third active arm.

检测系统包括:用于检测第六转轴13转动角度的第一角度传感器14;用于检测第五转轴5转动角度的第二角度传感器4;用于检测C轴转动角度的第三角度传感器8;用于检测A轴10转动角度的第四角度传感器11;用于检测从动支撑臂2轴向位移的第一位移传感器12;The detection system includes: a first angle sensor 14 for detecting the rotation angle of the sixth shaft 13; a second angle sensor 4 for detecting the rotation angle of the fifth shaft 5; a third angle sensor 8 for detecting the rotation angle of the C-axis; a fourth angle sensor 11 for detecting the rotation angle of the A-axis 10; a first displacement sensor 12 for detecting the axial displacement of the driven support arm 2;

控制系统包括多轴运动控制器;该多轴运动控制器,其接收来自第一角度传感器14、第二角度传感器4、第三角度传感器8、第四角度传感器11以及第一位移传感器12的检测信号,其将检测值换算为对应第一主动臂、第二主动臂、第三主动臂的伸缩位移值以及A轴10、C轴的转动角度值,并与对应的给定值进行相减得到偏差,其基于偏差给出控制信号,控制驱动第一主动臂、第二主动臂、第三主动臂以及A轴10、C轴的伺服电机的工作。The control system includes a multi-axis motion controller; the multi-axis motion controller receives detections from the first angle sensor 14 , the second angle sensor 4 , the third angle sensor 8 , the fourth angle sensor 11 and the first displacement sensor 12 signal, which converts the detected value into the telescopic displacement value corresponding to the first active arm, the second active arm and the third active arm and the rotation angle value of the A-axis 10 and the C-axis, and subtracts the corresponding given value to obtain The deviation, which gives a control signal based on the deviation, controls the work of the servo motors that drive the first active arm, the second active arm, the third active arm, and the A-axis 10 and the C-axis.

将检测值换算获得的第一主动臂、第二主动臂、第三主动臂的伸缩位移值以及A轴10、C轴的转动角度值作为反馈的实际值,对应与第一主动臂、第二主动臂、第三主动臂的伸缩位移给定值以及A轴10、C轴的转动角度给定值相减,得到偏差,即第一主动臂的伸缩位移实际值与其伸缩位移给定值相减,第二主动臂的伸缩位移实际值与其伸缩位移给定值相减,第三主动臂的伸缩位移实际值与其伸缩位移给定值相减,A/C轴双摆角头的C轴转动角度实际值与其转动角度给定值相减,A/C轴双摆角头的A轴10转动角度实际值与其转动角度给定值相减,分别得到相应的偏差,将对应的偏差作为补偿值,多轴运动控制器基于偏差给出控制信号,控制驱动第一至第三主动臂以及A、C轴的伺服电机的工作,使A/C轴双摆角头9上安装的加工刀具沿加工路径移动。The telescopic displacement values of the first active arm, the second active arm and the third active arm and the rotation angle values of the A-axis 10 and C-axis obtained by converting the detected values are used as the actual values of the feedback, corresponding to the first active arm, the second active arm and the second active arm. The given value of the telescopic displacement of the main arm and the third active arm and the given values of the rotation angles of the A-axis 10 and C-axis are subtracted to obtain the deviation, that is, the actual value of the telescopic displacement of the first active arm is subtracted from the given value of the telescopic displacement , the actual value of the telescopic displacement of the second active arm is subtracted from the given value of the telescopic displacement, the actual value of the telescopic displacement of the third active arm is subtracted from the given value of the telescopic displacement, and the rotation angle of the C-axis of the A/C-axis double swing angle head The actual value is subtracted from the given value of the rotation angle, and the actual value of the rotation angle of the A-axis 10 of the A/C-axis double swing angle head is subtracted from the given value of the rotation angle to obtain the corresponding deviation respectively, and the corresponding deviation is used as the compensation value. The multi-axis motion controller gives control signals based on the deviation to control the work of the servo motors that drive the first to third active arms and the A and C axes, so that the machining tools installed on the A/C axis double swing angle head 9 follow the machining path. move.

如果驱动第一主动臂、第二主动臂、第三主动臂伸缩位移的伺服电机,通过其输出轴与将旋转运动变为直线运动的传动机构连接,将旋转运动变为直线运动的传动机构可为带传动机构、链轮传动机构、齿轮齿条传动机构、蜗轮蜗杆传动机构、丝杠传动机构等,则将第一主动臂、第二主动臂、第三主动臂伸缩位移给定值和实际值,换算为对应的伺服电机转动角度给定值和实际值。If the servo motor that drives the telescopic displacement of the first active arm, the second active arm and the third active arm is connected to the transmission mechanism that converts the rotary motion into linear motion through its output shaft, the transmission mechanism that converts the rotary motion into linear motion can be For belt transmission mechanism, sprocket transmission mechanism, rack and pinion transmission mechanism, worm gear transmission mechanism, screw transmission mechanism, etc., the given value of the telescopic displacement of the first driving arm, the second driving arm and the third driving arm and the actual The value is converted into the given value and actual value of the corresponding servo motor rotation angle.

优选地,第五转轴5的轴线可与第三转轴的轴线及第四转轴的轴线距离相等。Preferably, the axis of the fifth rotating shaft 5 may be at the same distance from the axis of the third rotating shaft and the axis of the fourth rotating shaft.

第一角度传感器14、第二角度传感器4、第三角度传感器8及第四角度传感器11可采用现有技术中用于测量转动角度的角度传感器,比如可选用圆光栅;第一位移传感器12可采用现有技术中用于测量直线位移的位移传感器,比如可选用直线光栅。The first angle sensor 14 , the second angle sensor 4 , the third angle sensor 8 and the fourth angle sensor 11 can be angle sensors used in the prior art for measuring the rotation angle, such as a circular grating; the first displacement sensor 12 can be A displacement sensor used for measuring linear displacement in the prior art is used, for example, a linear grating can be selected.

运动控制器用于实现机械运动精确的位置控制、速度控制、加速度控制、转矩或力的控制,多轴运动控制器可同时控制多个伺服驱动器,多轴运动控制器发送运动控制指令到伺服驱动器,由伺服驱动器驱动伺服电机运行,再通过伺服电机上的角度传感器如编码器等的检测伺服电机的实际旋转角度,将检测信号作为反馈信号反馈至至多轴运动控制器,实现系统的闭环控制。多轴运动控制器可采用现有技术中的适用控制5轴以上伺服电机的运动控制器,比如OMRON公司生产的CK3M型可编程多轴运动控制器。The motion controller is used to realize precise position control, speed control, acceleration control, torque or force control of mechanical motion. The multi-axis motion controller can control multiple servo drives at the same time. The multi-axis motion controller sends motion control commands to the servo drives. , the servo motor is driven by the servo driver to run, and then the actual rotation angle of the servo motor is detected by the angle sensor on the servo motor such as an encoder, and the detection signal is fed back to the multi-axis motion controller as a feedback signal to realize the closed-loop control of the system. The multi-axis motion controller can be a motion controller suitable for controlling more than 5 axes of servo motors in the prior art, such as the CK3M programmable multi-axis motion controller produced by OMRON.

优选地,第一转动支架16和第二转动支架6可上下设置。Preferably, the first rotating bracket 16 and the second rotating bracket 6 can be arranged up and down.

优选地,第一主动臂与动平台7的铰接中心到第二主动臂、第三主动臂与动平台7的铰接中心的距离可相等。Preferably, the distances from the hinge center of the first active arm and the movable platform 7 to the hinge centers of the second active arm, the third active arm and the movable platform 7 may be equal.

优选地,第一主动臂、第二主动臂及第三主动臂可与动平台7球铰式连接。Preferably, the first active arm, the second active arm and the third active arm can be connected to the moving platform 7 in a spherical hinged connection.

本发明还提供了一种采用上述的基于粗插补的混联机器人误差在线补偿系统的基于粗插补的混联机器人误差在线补偿方法,该方法包括如下步骤:The present invention also provides a method for online error compensation of a hybrid robot based on coarse interpolation using the above-mentioned online error compensation system for a hybrid robot based on coarse interpolation. The method includes the following steps:

步骤A,在多轴控制器内,设置五个全局补偿变量存储器,用于对应存储第一至第三主动臂的轴向位移补偿变量以及A、C轴的转动角度补偿变量,并初始化变量存储器。Step A, in the multi-axis controller, set up five global compensation variable memories for correspondingly storing the axial displacement compensation variables of the first to third active arms and the rotation angle compensation variables of the A and C axes, and initialize the variable memory .

步骤B,多轴运动控制器读入G代码,将刀尖加工轨迹转化为若干连续微小线段,得到微小线段两端点的刀尖姿态数据。In step B, the multi-axis motion controller reads the G code, converts the tool nose machining trajectory into several continuous tiny line segments, and obtains the tool nose attitude data at both ends of the tiny line segments.

步骤C,多轴运动控制器根据混联机器人逆运动学算法,并结合补偿变量存储器内的补偿值,输出对应第一至第三主动臂的轴向位移给定值的伺服驱动指令,以及对应A、C轴转动角度给定值的伺服驱动指令。Step C: According to the inverse kinematics algorithm of the hybrid robot and the compensation value in the compensation variable memory, the multi-axis motion controller outputs the servo drive commands corresponding to the given values of the axial displacements of the first to third active arms, and the corresponding The servo drive command for the given value of the rotation angle of the A and C axes.

步骤D,多轴运动控制器接收当前第一角度传感器14、第二角度传感器4、第三角度传感器8、第四角度传感器11以及第一位移传感器12的反馈信号,其根据空间几何算法,得到对应第一至第三主动臂的轴向位移给定值以及A、C轴的转动角度给定值的偏差,将偏差作为新的补偿值,变量存储器对应更新为新的补偿值。In step D, the multi-axis motion controller receives the current feedback signals of the first angle sensor 14, the second angle sensor 4, the third angle sensor 8, the fourth angle sensor 11 and the first displacement sensor 12, which are obtained according to the spatial geometry algorithm. Corresponding to the deviation of the given values of the axial displacement of the first to third active arms and the given values of the rotation angles of the A and C axes, the deviation is taken as the new compensation value, and the variable memory is updated correspondingly to the new compensation value.

步骤E,重复步骤C至步骤D,直至插补结束。Step E, repeat steps C to D until the interpolation ends.

其中,刀尖姿态数据可包括:刀尖点的x轴、y轴、z轴坐标,以及刀尖点绕x轴、y轴的转动角度等。The tool nose attitude data may include: the x-axis, y-axis, and z-axis coordinates of the tool nose point, and the rotation angle of the tool nose point around the x-axis and the y-axis.

优选地,上述的空间几何算法可如下:Preferably, the above-mentioned spatial geometry algorithm can be as follows:

可设第一角度传感器14检测值为θ1,可设第二角度传感器4检测值为θ2,可设第一位移传感器12检测值为L1,可设第一至第三主动臂与动平台相对转动围绕的中心点依次为A1、A2、A3,即第一主动臂与动平台围绕点A1相对转动,第二主动臂与动平台围绕点A2相对转动,第三主动臂与动平台围绕点A3相对转动;可设第一主动臂与第一转动支架16的转动副中心为B1;可设第二、第三主动臂与第二转动支架6的转动副中心分别为B2、B3;可设A2、A3两点的连线中点为A点,设第二转动支架6的中心为B点,可设基座标系为B-xyz;可设xA、yA、zA对应为A点在基座标系下x轴、y轴、z轴坐标;可设第一至第三主动臂由伺服电机转动带动滚珠丝杠进行轴向位移;The detection value of the first angle sensor 14 can be set to be θ 1 , the detection value of the second angle sensor 4 can be set to be θ 2 , the detection value of the first displacement sensor 12 can be set to be L 1 , the first to third active arms can be set to be connected to the moving arm. The center points around which the platform rotates relative to each other are A 1 , A 2 , and A 3 in sequence, that is, the first active arm and the moving platform rotate relative to each other around point A 1 , the second active arm and the moving platform rotate relative to each other around point A 2 , and the third active arm rotates relative to the moving platform around point A 2 . The arm and the moving platform rotate relative to the point A3; the rotation sub-center of the first driving arm and the first rotating bracket 16 can be set as B 1 ; the rotation sub-center of the second and third driving arms and the second rotating bracket 6 can be set They are B 2 and B 3 respectively; the midpoint of the line connecting the two points A 2 and A 3 can be set as point A, the center of the second rotating bracket 6 can be set as point B, and the base label can be set as B-xyz; Let x A , y A , and z A correspond to the x-axis, y-axis, and z-axis coordinates of point A under the base frame; it can be set that the first to third active arms are rotated by the servo motor to drive the ball screw to perform axial displacement ;

可由空间几何关系,得到A点在基座标系下的坐标值如下:From the spatial geometric relationship, the coordinate values of point A under the base frame can be obtained as follows:

xA=L1sinθ2 x A =L 1 sinθ 2

yA=L1cosθ2sinθ1 y A =L 1 cosθ 2 sinθ 1

zA=L1cosθ2cosθ1 z A =L 1 cosθ 2 cosθ 1

可根据并联机构逆运动学,由以下各式求解得到第一至第三主动臂的伺服电机实际转动角度:According to the inverse kinematics of the parallel mechanism, the actual rotation angles of the servo motors of the first to third active arms can be obtained by the following equations:

rA=[xA yA zA]Tr A = [x A y A z A ] T ;

q4=||rA||;q 4 =||r A ||;

w4=rA/q4=(s3x s3y s3z)Tw 4 =r A /q 4 =(s 3x s 3y s 3z ) T ;

Figure BDA0002516925720000081
Figure BDA0002516925720000081

Figure BDA0002516925720000082
Figure BDA0002516925720000082

Figure BDA0002516925720000083
Figure BDA0002516925720000083

ai0=(ai cosγi ai sinγi 0)Ta i0 =(a i cosγ i a i sinγ i 0) T ;

Ci=Rai0C i =Ra i0 ;

Di=(bi cosγi bisinγi 0)TD i =( bi cosγ i b i sinγ i 0) T ;

Figure BDA0002516925720000091
Figure BDA0002516925720000091

式中:where:

rA为点A在坐标系B-xyz下的位置矢量;r A is the position vector of point A in the coordinate system B-xyz;

q4为点A到点B距离;q 4 is the distance from point A to point B;

w4为点A到点B的单位矢量;w 4 is the unit vector from point A to point B;

s3x为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中x轴上的坐标值;s 3x is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the x axis in the coordinate system B-xyz;

s3y为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中y轴上的坐标值;s 3y is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the y axis in the coordinate system B-xyz;

s3z为坐标系A-xAyAzA中的Z轴上单位矢量对应的点投影在坐标系B-xyz中z轴上的坐标值;s 3z is the coordinate value of the point corresponding to the unit vector on the Z axis in the coordinate system Ax A y A z A projected on the z axis in the coordinate system B-xyz;

ψ为坐标系A-xAyAzA的姿态相对坐标系B-xyz绕x轴的旋转角度;ψ is the rotation angle of the attitude of the coordinate system Ax A y A z A relative to the coordinate system B-xyz around the x-axis;

θ为坐标系A-xAyAzA相对坐标系B-xyz绕x轴旋转角度ψ后,坐标系A-xAyAzA的姿态相对坐标系B-xyz绕yA轴的旋转角度;θ is the rotation angle of the posture of the coordinate system Ax A y A z A relative to the coordinate system B-xyz around the y A axis after the coordinate system Ax A y A z A rotates the angle ψ about the x-axis relative to the coordinate system B-xyz;

R为坐标系A-xAyAzA相对坐标系B-xyz的姿态矩阵;R is the attitude matrix of the coordinate system Ax A y A z A relative to the coordinate system B-xyz;

γi为中间变量;γ i is an intermediate variable;

Ci为点Ai在坐标系B-xyz下的位置矢量;i=1,2,3;C i is the position vector of point A i in the coordinate system B-xyz; i=1,2,3;

ai为点Ai到点A的距离;i=1,2,3;a i is the distance from point A i to point A; i=1,2,3;

Di为点Bi在坐标系B-xyz下的位置矢量;i=1,2,3;D i is the position vector of point B i in the coordinate system B-xyz; i=1,2,3;

bi为点Bi到点B的距离;i=1,2,3;b i is the distance from point B i to point B; i=1,2,3;

ai0为点Ai在坐标系A-xAyAzA下的位置矢量;i=1,2,3;a i0 is the position vector of point A i in the coordinate system Ax A y A z A ; i=1,2,3;

pi为第i个主动臂的滚珠丝杠的导程;i=1,2,3;pi is the lead of the ball screw of the i -th active arm; i=1,2,3;

θia为第i个主动臂的伺服电机的实际转角;i=1,2,3。θ ia is the actual rotation angle of the servo motor of the i-th active arm; i=1, 2, 3.

下面以本发明的一种基于粗插补的混联机器人误差在线补偿方法的优选实施例,来进一步说明本发明的工作原理:The working principle of the present invention is further described below with a preferred embodiment of a rough interpolation-based hybrid robot error online compensation method of the present invention:

一种基于粗插补的混联机器人误差在线补偿方法,该方法采用前述的混联机器人误差在线补偿系统,其中第一主动臂的驱动伺服电机为第一伺服电机15、第二主动臂的驱动伺服电机为第二伺服电机3、第三主动臂的驱动伺服电机为第三伺服电机1,A/C轴双摆角头9的C轴驱动伺服电机为第四伺服电机,A/C轴双摆角头的A轴10驱动伺服电机为第五伺服电机。设多轴运动控制器在第N个粗插补周期内,对应第一至第五伺服电机,给定输出对应为:θ1d(n)、θ2d(n)、θ3d(n)、θ4d(n)、θ5d(n)。A method for online error compensation of hybrid robot based on rough interpolation, the method adopts the aforementioned online error compensation system of hybrid robot, wherein the driving servo motor of the first active arm is the driving of the first servo motor 15 and the driving of the second active arm The servo motor is the second servo motor 3, the driving servo motor of the third active arm is the third servo motor 1, the C-axis driving servo motor of the A/C-axis double swing angle head 9 is the fourth servo motor, and the A/C-axis dual The A-axis 10 of the swivel head drives the servo motor as the fifth servo motor. Assume that the multi-axis motion controller corresponds to the first to fifth servo motors in the Nth coarse interpolation cycle, and the given outputs correspond to: θ 1d (n), θ 2d (n), θ 3d (n), θ 4d (n), θ 5d (n).

该方法包括如下具体步骤:The method includes the following specific steps:

步骤1,待加工零件图导入Unigraphics应用系统中(简称UG),经UG处理生成数控机床加工的G代码;Step 1, import the drawing of the part to be processed into the Unigraphics application system (UG for short), and generate the G code processed by the CNC machine after UG processing;

步骤2,多轴运动控制器采用OMRON公司生产的CK3M型可编程多轴运动控制器,在多轴运动控制器中对第一角度传感器14、第二角度传感器4、第三角度传感器8、第四角度传感器11以及第一位移传感器12进行标零初始化;Step 2, the multi-axis motion controller adopts the CK3M programmable multi-axis motion controller produced by OMRON Company. In the multi-axis motion controller, the first angle sensor 14, the second angle sensor 4, the third angle sensor 8, the The four-angle sensor 11 and the first displacement sensor 12 are zeroed and initialized;

步骤3,将待加工零件G代码写入混联机器人的上位机操作系统中,经上位机编译后下载到下位机多轴运动控制器中;Step 3, write the G code of the part to be processed into the upper computer operating system of the hybrid robot, and download it to the lower computer multi-axis motion controller after being compiled by the upper computer;

步骤4,实时检测机器人运动过程中动平台7参考点位置误差和摆角头转角误差并计算补偿量,实现基于粗插补的相邻点误差在线补偿控制,步骤如下:Step 4: Detect the position error of the reference point of the moving platform 7 and the angle error of the swivel head in real time during the movement of the robot, calculate the compensation amount, and realize the online compensation control of the adjacent point error based on the rough interpolation. The steps are as follows:

(a)机器人运动控制器读入G代码,根据相应的运动指令(直线指令、圆弧指令、点到点指令等)进行粗插补,得到刀尖加工微小轨迹两端点姿态信息;(a) The robot motion controller reads the G code, performs rough interpolation according to the corresponding motion commands (line command, arc command, point-to-point command, etc.), and obtains the attitude information of the two ends of the micro-track of the tool nose machining;

(b)多轴运动控制器内预设五个虚轴全局变量存储器并初始化,变量存储器用于存储各轴补偿量数据;(b) Five virtual axis global variable memories are preset and initialized in the multi-axis motion controller, and the variable memories are used to store the compensation amount data of each axis;

(c)针对多轴运动控制器内实轴伺服电机指令输出值,由粗插过程中微小轨迹端点姿态信息rc,调用运动控制器系统内位置在“Language\Realtime Routines\usrcode.c”项目文件中编写的混联机器人逆运动学算法,求解实轴伺服电机指令值;(c) For the command output value of the real-axis servo motor in the multi-axis motion controller, the position in the motion controller system is called in the "Language\Realtime Routines\ usrcode.c " project from the attitude information rc of the endpoint of the micro-track in the rough interpolation process. The inverse kinematics algorithm of the hybrid robot written in the file solves the command value of the real axis servo motor;

(d)当机器人运行后,利用并联机构中第一角度传感器14,实时检测第六转轴13的实际转角θ1,第二角度传感器4实时检测第五转轴5的实际转角θ2,第一位移传感器12实时检测从动支撑臂2沿轴向的位移L1,结合空间几何关系得到动平台7参考点A的位置信息xA、yA、zA,然后调用多轴运动控制器内usrcode.c中编写的误差算法程序,计算出粗插补中第N-1粗插补周期的第一至第三主动臂的伺服电机的实际转角θ1a(n-1)、θ2a(n-1)、θ3a(n-1),并将实际值与转角给定值θ1d(n-1)、θ2d(n-1)、θ3d(n-1)的进行相减,得到补偿值Δθ1(n-1)、Δθ2(n-1)、Δθ3(n-1);同时利用串联A/C轴双摆角头9的第三角度传感器8实时检测C轴的实际转角θ3和第四角度传感器11实时检测A轴10的实际转角θ4,经关节求逆得到粗插补中第N-1粗插补周期的串联A/C轴双摆角头9伺服电机的实际转角θ4a(n-1)、θ5a(n-1),并将其与指令转角θ4d(n-1)、θ5d(n-1)相减,得到补偿值Δθ4(n-1)、Δθ5(n-1),将得到的补偿值分别放到预先设定的五个虚轴全局变量中,五个虚轴全局变量存储更新为新的补偿值;(d) After the robot runs, the first angle sensor 14 in the parallel mechanism is used to detect the actual rotation angle θ 1 of the sixth rotating shaft 13 in real time, the second angle sensor 4 detects the actual rotation angle θ 2 of the fifth rotating shaft 5 in real time, and the first displacement The sensor 12 detects the displacement L 1 of the driven support arm 2 along the axial direction in real time, obtains the position information x A , y A , z A of the reference point A of the moving platform 7 in combination with the spatial geometric relationship, and then calls usrcode. The error algorithm program written in c calculates the actual rotation angle θ 1a (n-1), θ 2a (n-1 ), θ 3a (n-1), and subtract the actual value from the given value of the rotation angle θ 1d (n-1), θ 2d (n-1), and θ 3d (n-1) to obtain the compensation value Δθ 1 (n-1), Δθ 2 (n-1), Δθ 3 (n-1); at the same time, the actual rotation angle θ of the C-axis is detected in real time by using the third angle sensor 8 of the A/C-axis double-swing angle head 9 in series 3 and the fourth angle sensor 11 detect the actual rotation angle θ 4 of the A-axis 10 in real time, and obtain the actual value of the A/C-axis double-swing angle head 9 servo motor of the series A/C-axis double-swing angle head 9 of the N-1th coarse interpolation cycle in the rough interpolation through the inversion of the joints. The rotation angles θ 4a (n-1) and θ 5a (n-1) are subtracted from the command rotation angles θ 4d (n-1) and θ 5d (n-1) to obtain the compensation value Δθ 4 (n-1 ), Δθ 5 (n-1), put the obtained compensation values into the five pre-set virtual axis global variables respectively, and the five virtual axis global variables are stored and updated to new compensation values;

(e)将补偿值加到粗插补中的第N粗插补周期的第一至第三主动臂和A/C轴双摆角头9的伺服电机指令输出值θ1d(n)、θ2d(n)、θ3d(n)、θ4d(n)、θ5d(n)中完成粗插补过程中相邻点误差在线补偿。(e) The compensation value is added to the servo motor command output values θ 1d (n), θ of the first to third active arms and the A/C axis double swing angle head 9 in the Nth coarse interpolation cycle in the coarse interpolation In 2d (n), θ 3d (n), θ 4d (n), and θ 5d (n), the on-line compensation of adjacent point errors in the rough interpolation process is completed.

以上所述的实施例仅用于说明本发明的技术思想及特点,其目的在于使本领域内的技术人员能够理解本发明的内容并据以实施,不能仅以本实施例来限定本发明的专利范围,即凡本发明所揭示的精神所作的同等变化或修饰,仍落在本发明的专利范围内。The above-mentioned embodiments are only used to illustrate the technical idea and characteristics of the present invention, and the purpose is to enable those skilled in the art to understand the content of the present invention and implement them accordingly, and the present invention cannot be limited only by the present embodiment. The patent scope, that is, all equivalent changes or modifications made to the spirit disclosed in the present invention, still fall within the patent scope of the present invention.

Claims (10)

1. An error online compensation system of a hybrid robot based on coarse interpolation is characterized by comprising a hybrid mechanical arm, a first rotating bracket, a second rotating bracket, a detection system and a control system; wherein:
the hybrid mechanical arm comprises a movable platform; three driving arms which are driven by a servo motor to stretch and retract are hinged on the periphery of the movable platform and sequentially comprise a first driving arm, a second driving arm and a third driving arm; the rear end of the movable platform is fixedly connected with a driven supporting arm; the front end of the movable platform is connected with an A/C shaft double-swing-angle head driven by a servo motor, wherein a C shaft of the double-swing-angle head is rotatably connected with the movable platform; the first driving arm is rotationally connected with the first rotating bracket through a first rotating shaft; the first rotating bracket is rotationally connected with the fixed bearing seat through a second rotating shaft; the second driving arm, the third driving arm and the driven supporting arm are correspondingly and rotatably connected with the second rotating support through a third rotating shaft, a fourth rotating shaft and a fifth rotating shaft; the second rotating bracket is rotationally connected with the fixed bearing seat through a sixth rotating shaft; the axes of the first rotating shaft and the second rotating shaft are vertical; the axes of the third rotating shaft, the fourth rotating shaft and the fifth rotating shaft are parallel to each other and are vertical to the axis of the sixth rotating shaft; the center of the second rotating bracket is positioned on the intersection point of the axis of the fifth rotating shaft and the axis of the sixth rotating shaft;
the detection system comprises: the first angle sensor is used for detecting the rotation angle of the sixth rotating shaft; the second angle sensor is used for detecting the rotation angle of the fifth rotating shaft; a third angle sensor for detecting a rotation angle of the C-axis; a fourth angle sensor for detecting a rotation angle of the a axis; a first displacement sensor for detecting axial displacement of the driven support arm;
the control system comprises a multi-axis motion controller; the multi-axis motion controller receives detection signals from the first to fourth angle sensors and the first displacement sensor, converts the detection values into telescopic displacement values corresponding to the first to third main arms and a rotation angle value corresponding to the A, C axis, subtracts the values from corresponding given values to obtain a deviation, and gives a control signal based on the deviation to control the operation of servo motors driving the first to third main arms and the A, C axis.
2. The system for online error compensation of a hybrid robot based on coarse interpolation of claim 1, wherein the distance between the axis of the fifth rotating shaft and the axis of the third rotating shaft is equal to the distance between the axis of the fourth rotating shaft and the axis of the fifth rotating shaft.
3. The system for the online error compensation of the hybrid robot based on the coarse interpolation according to claim 1, wherein the first to fourth angular sensors are circular gratings; the first displacement sensor is a linear grating.
4. The system for the online error compensation of the hybrid robot based on the coarse interpolation as claimed in claim 1, wherein the multi-axis motion controller is an Onglong CK3M type multi-axis motion controller.
5. The system for the online error compensation of the hybrid robot based on the coarse interpolation according to claim 1, wherein the first rotating bracket and the second rotating bracket are arranged on top of each other.
6. The system for the online compensation of the error of the hybrid robot based on the coarse interpolation as recited in claim 1, wherein the distances from the hinge center of the first active arm and the movable platform to the hinge centers of the second active arm and the third active arm and the movable platform are equal.
7. The system of claim 1, wherein the first active arm, the second active arm and the third active arm are connected to the moving platform in a ball joint manner.
8. An online error compensation method for a hybrid robot based on coarse interpolation, which utilizes the online error compensation system for a hybrid robot based on coarse interpolation according to any one of claims 1 to 7, is characterized by comprising the following steps:
step A, setting five global compensation variable memories in a multi-axis motion controller, and initializing the variable memories, wherein the five global compensation variable memories are used for correspondingly storing axial displacement compensation variables of first to third driving arms and a rotation angle compensation variable of an A, C shaft;
b, reading the G code by the multi-axis motion controller, converting the tool nose processing track into a plurality of continuous micro line segments, and obtaining tool nose posture data of two end points of the micro line segments;
step C, outputting a servo driving instruction corresponding to the given axial displacement values of the first driving arm, the third driving arm and a servo driving instruction corresponding to the given rotation angle value of the A, C shaft by the multi-shaft motion controller according to an inverse kinematics algorithm of the hybrid robot and by combining a compensation value in the compensation variable storage;
d, the multi-axis motion controller receives feedback signals of the current first to fourth angle sensors and the current first displacement sensor, obtains deviations corresponding to given axial displacement values of the first to third driving arms and given rotation angle values of the A, C shaft according to a space geometry algorithm, takes the deviations as new compensation values, and correspondingly updates the variable memory into the new compensation values;
and E, repeating the step C to the step D until the interpolation is finished.
9. The hybrid robot error online compensation method based on the coarse interpolation as claimed in claim 8, wherein the tool tip attitude data comprises: the x-axis, y-axis and z-axis coordinates of the tool point, and the rotation angle of the tool point around the x-axis and the y-axis.
10. The hybrid robot error online compensation method based on the coarse interpolation as claimed in claim 8, wherein the spatial geometry algorithm is as follows:
let the first angle sensor detect value be theta1Let the second angle sensor detect a value of θ2Let the first displacement sensor detect a value L1A is the central point of the relative rotation and the surrounding of the first to the third driving arms and the movable platform in turn1、A2、A3Setting the center of the revolute pair of the first driving arm and the first revolute support as B1(ii) a B is respectively set as the centers of the revolute pairs of the second driving arm, the third driving arm and the second rotating bracket2、B3(ii) a Let A2、A3The midpoint of the connecting line of the two points is a point A, the center of the second rotating bracket is a point B, and the base mark is B-xyz; let xA、yA、zACorresponding to the coordinates of the point A on the x axis, the y axis and the z axis under the base standard system; the first to third driving arms are arranged and driven by the servo motor to rotate so as to drive the ball screw to perform axial displacement;
and obtaining the coordinate values of the point A under the base coordinate system according to the space geometric relationship as follows:
xA=L1sinθ2
yA=L1cosθ2sinθ1
zA=L1cosθ2cosθ1
according to the inverse kinematics of the parallel mechanism, the actual rotation angles of the servo motors of the first to third driving arms are obtained by the following solving methods:
rA=[xAyAzA]T
q4=||rA||;
w4=rA/q4=(s3xs3ys3z)T
Figure FDA0002516925710000031
Figure FDA0002516925710000032
Figure FDA0002516925710000033
ai0=(aicosγiaisinγi0)T
Ci=Rai0
Di=(bicosγibisinγi0)T
Figure FDA0002516925710000034
in the formula:
rAis the position vector of the point A under the coordinate system B-xyz;
q4is the distance from point a to point B;
w4is a unit vector from point a to point B;
s3xas a coordinate system A-xAyAzAThe point corresponding to the unit vector on the Z axis is projected on the coordinate value on the x axis in the coordinate system B-xyz;
s3yas a coordinateIs A-xAyAzAThe point corresponding to the unit vector on the Z axis is projected on the coordinate value on the y axis in the coordinate system B-xyz;
s3zas a coordinate system A-xAyAzAThe point corresponding to the unit vector on the Z axis is projected on the coordinate value on the Z axis in the coordinate system B-xyz;
psi as a coordinate system A-xAyAzAThe angle of rotation of the attitude of (a) relative to the coordinate system B-xyz about the x-axis;
theta is a coordinate system A-xAyAzAAfter rotating the coordinate system B-xyz by the angle psi around the x-axis, the coordinate system A-xAyAzAIs wound around y with respect to the coordinate system B-xyzAThe rotation angle of the shaft;
r is a coordinate system A-xAyAzAA pose matrix relative to the coordinate system B-xyz;
γiis an intermediate variable;
Ciis point AiA position vector under the coordinate system B-xyz; i is 1,2, 3;
aiis point AiDistance to point a; i is 1,2, 3;
Diis point BiA position vector under the coordinate system B-xyz; i is 1,2, 3;
biis point BiDistance to point B; i is 1,2, 3;
ai0is point AiIn a coordinate system A-xAyAzAA lower position vector; i is 1,2, 3;
pithe lead of the ball screw of the ith driving arm; i is 1,2, 3;
θiathe actual rotation angle of the servo motor of the ith driving arm; i is 1,2, 3.
CN202010479811.XA 2020-05-29 2020-05-29 An online error compensation system and method for hybrid robots based on coarse interpolation Pending CN111650882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010479811.XA CN111650882A (en) 2020-05-29 2020-05-29 An online error compensation system and method for hybrid robots based on coarse interpolation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010479811.XA CN111650882A (en) 2020-05-29 2020-05-29 An online error compensation system and method for hybrid robots based on coarse interpolation

Publications (1)

Publication Number Publication Date
CN111650882A true CN111650882A (en) 2020-09-11

Family

ID=72350913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010479811.XA Pending CN111650882A (en) 2020-05-29 2020-05-29 An online error compensation system and method for hybrid robots based on coarse interpolation

Country Status (1)

Country Link
CN (1) CN111650882A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113334357A (en) * 2021-06-17 2021-09-03 北京航空航天大学 Series-parallel robot system and virtual RCM motion control method
CN120055923A (en) * 2025-04-30 2025-05-30 四川普什宁江机床有限公司 A high-precision CNC vertical grinding machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301525B1 (en) * 1998-06-25 2001-10-09 Neos Robotics Ab System and method for controlling a robot
CN104985596A (en) * 2015-07-09 2015-10-21 天津大学 Five-freedom hybrid robot with multi-axis rotation brackets
CN105945954A (en) * 2016-06-21 2016-09-21 天津大学 Double-closed-loop control method for five-freedom-degree hybrid robot
CN107421442A (en) * 2017-05-22 2017-12-01 天津大学 A kind of robot localization error online compensation method of externally measured auxiliary

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6301525B1 (en) * 1998-06-25 2001-10-09 Neos Robotics Ab System and method for controlling a robot
CN104985596A (en) * 2015-07-09 2015-10-21 天津大学 Five-freedom hybrid robot with multi-axis rotation brackets
CN105945954A (en) * 2016-06-21 2016-09-21 天津大学 Double-closed-loop control method for five-freedom-degree hybrid robot
CN107421442A (en) * 2017-05-22 2017-12-01 天津大学 A kind of robot localization error online compensation method of externally measured auxiliary

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黎广喜等: ""铣削加工用混联机器人参数曲线插补方法"", 《航空制造技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113334357A (en) * 2021-06-17 2021-09-03 北京航空航天大学 Series-parallel robot system and virtual RCM motion control method
CN113334357B (en) * 2021-06-17 2023-10-03 北京航空航天大学 Hybrid robot system and virtual RCM motion control method
CN120055923A (en) * 2025-04-30 2025-05-30 四川普什宁江机床有限公司 A high-precision CNC vertical grinding machine

Similar Documents

Publication Publication Date Title
CN107443382B (en) Structural parameter error identification and compensation method of industrial robot
CN106043736B (en) A kind of series-parallel connection mechanical structure and attitude-adjusting method for aircraft component attitude adjusting
CN101866163B (en) Numerical control machine tool and numerical control device
CN113400088B (en) Modeling and identification method of position-independent geometric error of AC double-turntable five-axis machine tool
CN103063213B (en) The scaling method of a kind of welding robot and positioner position orientation relation
CN1126644C (en) System and method for controlling robot
CN111775145B (en) A Control System of a Series-Parallel Robot
CN102581849A (en) Method for planning trajectories of industrial robot based on NC (numerical control) codes
WO2006089887A2 (en) A system for calibration of an industrial robot and a method thereof
CN111745623A (en) A system and method for detecting and compensating the end pose error of a five-degree-of-freedom hybrid robot
CN111650882A (en) An online error compensation system and method for hybrid robots based on coarse interpolation
CN205835300U (en) A kind of monorail double mechanical arms Combined process system
CN204868868U (en) Novel series -parallel connection five -axle linkage intelligence welded platform
CN103056879A (en) Preparation method of five-axis numerical control mechanical arm and five-axis numerical control mechanical arm
CN211916851U (en) A five-axis machining robot
CN106945008A (en) Robot and robot system
CN112373042A (en) Method and system for monitoring pose of five-axis 3D printer
JP4825614B2 (en) Trajectory control device for articulated link mechanism
CN111844075B (en) A Coordinate Measurement Self-Driven Articulated Arm
CN114273681B (en) Toroidal worm helical surface machining system and method based on tandem manipulator
JPH0260475B2 (en)
JP4262715B2 (en) Creating robot teaching data
JPS60127987A (en) Method and device for controlling profiling
KR20230127332A (en) twin arm robot system
CN209857862U (en) A Three Coordinate Measuring Machine Based on Delta Parallel Mechanism

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200911

WD01 Invention patent application deemed withdrawn after publication