[go: up one dir, main page]

CN104827481B - SCARA manipulator control method based on motion controller - Google Patents

SCARA manipulator control method based on motion controller Download PDF

Info

Publication number
CN104827481B
CN104827481B CN201510211191.0A CN201510211191A CN104827481B CN 104827481 B CN104827481 B CN 104827481B CN 201510211191 A CN201510211191 A CN 201510211191A CN 104827481 B CN104827481 B CN 104827481B
Authority
CN
China
Prior art keywords
motion
scara manipulator
scara
manipulator
trajectory
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.)
Expired - Fee Related
Application number
CN201510211191.0A
Other languages
Chinese (zh)
Other versions
CN104827481A (en
Inventor
刘远辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Zhijie Automation Machine Co ltd
Original Assignee
Dongguan Zhijie Automation Machine 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 Dongguan Zhijie Automation Machine Co ltd filed Critical Dongguan Zhijie Automation Machine Co ltd
Priority to CN201510211191.0A priority Critical patent/CN104827481B/en
Publication of CN104827481A publication Critical patent/CN104827481A/en
Application granted granted Critical
Publication of CN104827481B publication Critical patent/CN104827481B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The invention provides a SCARA manipulator control method based on a motion controller, which comprises the motion controller and an industrial touch screen, wherein a user plans a motion track of the SCARA manipulator and corresponding motion parameters through the touch screen, and stores the motion track and the parameters into the motion controller; and the motion controller calculates the actual motion track of the SCARA manipulator according to the algorithm corresponding to the track planning mode, and simulates the motion track in a rectangular coordinate system established by the virtual axis. According to the invention, the motion trail of the SCARA manipulator and the corresponding motion parameters are directly compiled and planned through the touch screen, the virtual rectangular coordinate system is constructed by adopting the virtual axis, and the interpolation algorithm in the motion controller is utilized, so that the calculated amount can be greatly reduced, the motion algorithm is effectively simplified, the development difficulty of the SCARA control system technology is reduced, the development period is shortened, and the cost is lower.

Description

一种基于运动控制器的SCARA机械手控制方法A Control Method of SCARA Manipulator Based on Motion Controller

技术领域technical field

本发明涉及机械手控制技术领域,尤其是指一种基于运动控制器的SCARA机械手控制方法。The invention relates to the technical field of manipulator control, in particular to a motion controller-based SCARA manipulator control method.

背景技术Background technique

随着工业化进程的发展,生产自动化水平的提高,工业机器人的应用越来越广泛;在焊接、搬运、装配、喷涂、码垛等工业应用领域发挥着越来越重要的作用。当前,SCARA 机械手广泛应用于电子、汽车、塑料、食品等工业领域,其主要职能是完成搬运和装配工作。随着加工工艺的复杂性与精确性不断提升,SCARA 机械手在流水线上经常需要与其他工业设备协同作业,难免会出现与障碍物发生碰撞的危险。因此,对工作范围内存在障碍物的SCARA 机械手的运动轨迹进行规划便显得尤为重要。轨迹规划是指给定环境的障碍物条件,以及起始点和目标点位置,要求选择一条从起始点到目标点的路径,使SCARA 机械手能安全、无碰撞地通过所有的障碍物。With the development of industrialization and the improvement of production automation level, industrial robots are used more and more widely; they play an increasingly important role in industrial applications such as welding, handling, assembly, spraying, and palletizing. At present, SCARA manipulators are widely used in electronics, automobiles, plastics, food and other industrial fields, and its main function is to complete handling and assembly work. With the increasing complexity and precision of processing technology, SCARA manipulators often need to cooperate with other industrial equipment on the assembly line, and it is inevitable that there will be a danger of collision with obstacles. Therefore, it is particularly important to plan the trajectory of the SCARA manipulator with obstacles in the working range. Trajectory planning refers to the obstacle conditions of the given environment, as well as the location of the starting point and the target point. It is required to choose a path from the starting point to the target point so that the SCARA manipulator can pass through all obstacles safely and without collision.

现有的SCARA 机械手普遍采用基于嵌入式控制系统+运动控制芯片的架构体系,例如采用嵌入式DSP,其开发周期长,采用脉冲控制方式,抗干扰能力弱;每次运动到不同的运动位置,都要根据插补精度计算出每个插补点的位置,计算繁琐且工作量大;并且需上位机(如电脑等)给定指定位置才能够动作。可见,现有技术中的SCARA控制系统技术难度高,开发周期长,成本较高。Existing SCARA manipulators generally adopt an architecture system based on embedded control system + motion control chip, such as embedded DSP, which has a long development cycle, pulse control mode, and weak anti-interference ability; each movement to a different movement position, The position of each interpolation point must be calculated according to the interpolation accuracy, which is cumbersome and heavy workload; and it needs to be given a specified position by the host computer (such as a computer, etc.) to be able to act. It can be seen that the SCARA control system in the prior art has high technical difficulty, long development cycle and high cost.

发明内容Contents of the invention

本发明针对现有技术的问题提供一种基于运动控制器的SCARA机械手控制方法,通过结合采用运动控制器和工业触摸屏,有效简化运动算法,从而实现对SCARA机械手的控制,解决现有SCARA控制系统技术难度高,开发周期长,成本高的问题。The present invention provides a motion controller-based SCARA manipulator control method for the problems in the prior art. By combining the motion controller and industrial touch screen, the motion algorithm is effectively simplified, thereby realizing the control of the SCARA manipulator and solving the problem of the existing SCARA control system. High technical difficulty, long development cycle, and high cost.

为了解决上述技术问题,本发明采用如下技术方案:In order to solve the above technical problems, the present invention adopts the following technical solutions:

一种基于运动控制器的SCARA机械手控制方法,包括有运动控制器和工业触摸屏,所述运动控制器通过以太网通信口与触摸屏通信,控制方法步骤如下:A kind of SCARA manipulator control method based on motion controller, comprises motion controller and industrial touch screen, and described motion controller communicates with touch screen through Ethernet communication port, and control method step is as follows:

步骤1:用户通过触摸屏规划SCARA机械手运动轨迹及其对应的运动参数,并将所述的运动轨迹和参数保存至运动控制器中;Step 1: The user plans the motion trajectory of the SCARA manipulator and its corresponding motion parameters through the touch screen, and saves the motion trajectory and parameters to the motion controller;

步骤2: 所述运动控制器根据所述轨迹规划方式对应的算法对SCARA 机械手的实际运动轨迹进行运算,在虚拟轴所建立的直角坐标系中将其运动轨迹模拟出来,并从虚拟轴获取到直角坐标,然后再将虚拟轴的直角坐标转换成SCARA机械手的旋转坐标Step 2: The motion controller calculates the actual trajectory of the SCARA manipulator according to the algorithm corresponding to the trajectory planning method, simulates its trajectory in the Cartesian coordinate system established by the virtual axis, and obtains the Cartesian coordinates , and then the Cartesian coordinates of the virtual axis Converted to the rotation coordinates of the SCARA manipulator ;

步骤3: 得到SCARA机械手的旋转坐标位置后,与机械手当前每个电机轴位置比较得到差值,并根据差值计算出各个电机轴在下一周期的位置与旋转速度;Step 3: Get the rotation coordinates of the SCARA manipulator After the position, the current position of each motor axis with the manipulator Compare to get the difference , and calculate the position and rotation speed of each motor shaft in the next cycle according to the difference;

步骤4;运动控制器采用电子凸轮控制方式,将步骤3得到的位置和速度赋给电子凸轮参数,以给定的速度旋转到目标位置,得到SCARA机械手的实际运动轨迹信息,并将所述实际运动轨迹信息发送至SCARA机械手。Step 4: The motion controller adopts the electronic cam control mode, assigns the position and speed obtained in step 3 to the electronic cam parameters, rotates to the target position at a given speed, obtains the actual motion track information of the SCARA manipulator, and transfers the actual The motion trajectory information is sent to the SCARA manipulator.

优选的,所述步骤1中的运动轨迹包括点到点、直线插补和圆弧插补运动轨迹。Preferably, the trajectory in step 1 includes point-to-point, linear interpolation and circular interpolation trajectory.

进一步的,当所述的运动轨迹是点到点运动时,所述参数包括终点坐标、旋转速度以及SCARA机械手的姿态;当所述运动轨迹是直线插补运动时,所述参数包括终点坐标和插补速度;当所述运动轨迹是圆弧插补运动时,所述参数包括终点坐标、圆心坐标或圆弧半径亦或圆弧上的点以及圆弧插补速度。Further, when the motion track is a point-to-point motion, the parameters include the end point coordinates, the rotation speed and the posture of the SCARA manipulator; when the motion track is a linear interpolation motion, the parameters include the end point coordinates and Interpolation speed; when the motion track is circular interpolation motion, the parameters include end point coordinates, circle center coordinates or arc radius or points on the arc and arc interpolation speed.

再进一步的,所述步骤2中将虚拟轴直角坐标转换成旋转坐标的步骤如下:步骤2.1:当所述运动轨迹是直线插补时,则在虚拟坐标系中,按照指定的加减速和速度,以直线插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Still further, the step of converting the virtual axis Cartesian coordinates into rotating coordinates in the step 2 is as follows: Step 2.1: When the motion track is linear interpolation, then in the virtual coordinate system, according to the specified acceleration and deceleration and speed , start the virtual axis to move from the current position to the end position by linear interpolation, and then perform step 2.3;

步骤2.2:当所述运动轨迹是圆弧插补时,则在虚拟坐标系中,按照指定的加减速、速度以及圆心或者半径亦或圆弧上的点,以圆弧插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Step 2.2: When the motion track is circular interpolation, start the virtual axis in the form of circular interpolation in the virtual coordinate system according to the specified acceleration and deceleration, speed and center or radius or points on the circular arc Move from the current position to the end position, and then perform step 2.3;

步骤2.3:在虚拟轴所建立的直角坐标系中,按步骤2.1或步骤2.2给定的运动轨迹以及参数将虚拟轴移动至终点坐标;同时开启每个扫描周期获取虚拟轴的位置,将得到的虚拟轴的位置转换成SCARA机械手各电机轴的旋转位置Step 2.3: In the Cartesian coordinate system established by the virtual axis, move the virtual axis to the end point coordinates according to the trajectory and parameters given in step 2.1 or step 2.2; at the same time, open each scan cycle to obtain the position of the virtual axis, and the obtained position of the virtual axis Converted to the rotational position of each motor shaft of the SCARA manipulator .

其中,所述步骤2.3具体转换方法如下:Wherein, the specific conversion method of the step 2.3 is as follows:

步骤2.3.1:将转换成Step 2.3.1: Put converted to ,

设SCARA机械手的第1臂、第2臂的臂长分别为A、B,则斜边C的边长为Let the arm lengths of the first arm and the second arm of the SCARA manipulator be A and B respectively, then the side length of the hypotenuse C is ,

根据余弦定理得According to the law of cosines

, ,

;

步骤2.3.2:判断目标点所在的象限Step 2.3.2: Determine the quadrant where the target point is located

,目标点在第一、二象限,得到斜边与坐标系的夹角为when , the target point is in the first and second quadrants, and the angle between the hypotenuse and the coordinate system is ;

,目标点在第四象限,得到斜边与坐标系的夹角为when , the target point is in the fourth quadrant, and the angle between the hypotenuse and the coordinate system is ;

,目标点在第三象限,得到斜边与坐标系的夹角为when , the target point is in the third quadrant, and the angle between the hypotenuse and the coordinate system is ;

步骤2.3.3:当SCARA机械手处于右手姿态时,Step 2.3.3: When the SCARA manipulator is in the right hand posture, , ;

当SCARA机械手处于左手姿态时,When the SCARA manipulator is in the left-hand posture, , ;

步骤2.3.4:对于u轴,以直角坐标为参考系时,Step 2.3.4: For the u-axis, when taking Cartesian coordinates as the reference system, ;

z轴为丝杆结构时,无需变换,When the z-axis is a screw structure, there is no need to change, .

本发明的有益效果:Beneficial effects of the present invention:

本发明的一种基于运动控制器的SCARA机械手控制方法,通过触摸屏直接编写规划SCARA机械手运动轨迹及其对应的运动参数,采用虚拟轴构建出虚拟的直角坐标系,利用运动控制器内部的插补算法,可大大减小计算量,有效简化运动算法,降低SCARA控制系统技术的开发难度,缩短开发周期,且成本较低。A control method for a SCARA manipulator based on a motion controller of the present invention directly writes and plans the motion trajectory of the SCARA manipulator and its corresponding motion parameters through the touch screen, uses virtual axes to construct a virtual Cartesian coordinate system, and utilizes interpolation inside the motion controller Algorithm, can greatly reduce the amount of calculation, effectively simplify the motion algorithm, reduce the difficulty of developing SCARA control system technology, shorten the development cycle, and the cost is low.

附图说明Description of drawings

图1为本发明中所述SCARA 机械手的结构示意图。Fig. 1 is a schematic structural view of the SCARA manipulator described in the present invention.

图2为本发明基于运动控制器的四自由度SCARA 机械手控制方法的具体实现流程图。FIG. 2 is a flow chart of the specific realization of the control method of the four-degree-of-freedom SCARA manipulator based on the motion controller of the present invention.

图3为本发明中所述SCARA 机械手的旋转角度求解图。Fig. 3 is a solution diagram of the rotation angle of the SCARA manipulator described in the present invention.

图4为所述触摸屏进行规划运动轨迹案例的示意图。FIG. 4 is a schematic diagram of a case where the touch screen performs a planned motion trajectory.

图5为本发明所述四自由度SCARA 机械手进行直线插补的示意图。Fig. 5 is a schematic diagram of linear interpolation performed by the four-degree-of-freedom SCARA manipulator of the present invention.

图6为本发明所述四自由度SCARA 机械手进行直线插补时的速度及位置变化图。Fig. 6 is a diagram of the speed and position changes of the four-degree-of-freedom SCARA manipulator in the present invention when performing linear interpolation.

具体实施方式detailed description

为了便于本领域技术人员的理解,下面结合实施例与附图对本发明作进一步的说明,实施方式提及的内容并非对本发明的限定。参见图1至图6,以下结合附图对本发明进行详细的描述。In order to facilitate the understanding of those skilled in the art, the present invention will be further described below in conjunction with the embodiments and accompanying drawings, and the contents mentioned in the embodiments are not intended to limit the present invention. Referring to Fig. 1 to Fig. 6, the present invention will be described in detail below in conjunction with the accompanying drawings.

本发明所提供的一种基于运动控制器的SCARA机械手控制方法,包括有运动控制器和工业触摸屏,触摸屏上具有实现位置显示、示教、路线规划、通用IO输入输出等二次开发功能。所述运动控制器通过以太网通信口与触摸屏通信,控制方法步骤如下:A SCARA manipulator control method based on a motion controller provided by the present invention includes a motion controller and an industrial touch screen. The touch screen has secondary development functions such as position display, teaching, route planning, and general IO input and output. The motion controller communicates with the touch screen through the Ethernet communication port, and the steps of the control method are as follows:

步骤1:用户通过触摸屏规划SCARA机械手运动轨迹及其对应的运动参数,并将所述的运动轨迹和参数保存至运动控制器中;优选的,所述步骤1中的运动轨迹包括点到点、直线插补和圆弧插补运动轨迹。本发明所述的SCARA机械手包括有两条转动臂,在第二条转动臂上设置有执行轴,其一共具有四个电机轴。Step 1: The user plans the trajectory of the SCARA manipulator and its corresponding motion parameters through the touch screen, and saves the trajectory and parameters to the motion controller; preferably, the trajectory in step 1 includes point-to-point, Linear interpolation and circular interpolation motion trajectory. The SCARA manipulator of the present invention includes two rotating arms, and an execution shaft is arranged on the second rotating arm, which has four motor shafts in total.

如图4所示为本发明的一种运动轨迹案例;在第一行,指定点到点的速度为最大速度的50%;第二行,设定点到点加减速时间均为300ms;第三行,指定直线插补、圆弧插补的速度为2000mm/s;第四行,设定直线插补、圆弧插补加减速时间均为500ms;第五行,规划SCARA机械手以点到点方式运动到(0,300,0,0)的位置,并且运动至目标点处时SCARA机械手为右手姿态;第六行,SCARA机械手从当前位置(0,300,0,0)以直线方式移动至目标位置(300,300,0,0),并且运动过程中SCARA机械手保持起点位置的姿态,即右手姿态;第七行,SCARA机械手以圆弧插补方式从当前位置(300,300,0,0)顺时针方向画圆弧至(300,300,0,0)处,圆弧半径R为50mm,即画一个半径为50mm的顺时针圆,并且运动过程中机械手保持起点位置的姿态,即右手姿态。As shown in Figure 4, it is a kind of motion track case of the present invention; In the first line, the speed of specifying point-to-point is 50% of the maximum speed; The second line, the set point-to-point acceleration and deceleration time is 300ms; The third line specifies the speed of linear interpolation and circular interpolation as 2000mm/s; the fourth line sets the acceleration and deceleration time of linear interpolation and circular interpolation as 500ms; the fifth line plans the SCARA manipulator to point-to-point The method moves to the position of (0,300,0,0), and the SCARA manipulator is in the right-hand posture when moving to the target point; the sixth line, the SCARA manipulator moves from the current position (0,300,0,0) to the target position in a straight line ( 300,300,0,0), and the SCARA manipulator maintains the posture of the starting position during the movement, that is, the right-hand posture; in the seventh line, the SCARA manipulator draws a circle clockwise from the current position (300,300,0,0) in the form of circular interpolation From the arc to (300,300,0,0), the arc radius R is 50mm, that is, draw a clockwise circle with a radius of 50mm, and the manipulator maintains the posture of the starting point during the movement, that is, the right-hand posture.

步骤2: 所述运动控制器根据所述轨迹规划方式对应的算法对SCARA 机械手的实际运动轨迹进行运算,在虚拟轴所建立的直角坐标系中将其运动轨迹模拟出来,并从虚拟轴获取到直角坐标,然后再将虚拟轴的直角坐标转换成SCARA机械手的旋转坐标Step 2: The motion controller calculates the actual trajectory of the SCARA manipulator according to the algorithm corresponding to the trajectory planning method, simulates its trajectory in the Cartesian coordinate system established by the virtual axis, and obtains the Cartesian coordinates , and then the Cartesian coordinates of the virtual axis Converted to the rotation coordinates of the SCARA manipulator .

进一步的,当所述的运动轨迹是点到点运动时,则所述参数包括终点坐标、旋转速度以及SCARA机械手的姿态;当所述运动轨迹是直线插补运动时,则所述参数包括终点坐标和插补速度;当所述运动轨迹是圆弧插补运动时,则所述参数包括终点坐标、圆心坐标或圆弧半径亦或圆弧上的点以及圆弧插补速度。Further, when the motion track is a point-to-point motion, the parameters include the coordinates of the end point, the rotation speed and the posture of the SCARA manipulator; when the motion track is a linear interpolation motion, the parameters include the end point Coordinates and interpolation speed; when the motion track is arc interpolation motion, the parameters include end point coordinates, center coordinates or arc radius or points on the arc and arc interpolation speed.

再进一步的,所述步骤2中将虚拟轴直角坐标转换成旋转坐标的步骤如下:步骤2.1:当所述运动轨迹是直线插补时,则在虚拟坐标系中,按照指定的加减速和速度,以直线插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Still further, the step of converting the virtual axis Cartesian coordinates into rotating coordinates in the step 2 is as follows: Step 2.1: When the motion track is linear interpolation, then in the virtual coordinate system, according to the specified acceleration and deceleration and speed , start the virtual axis to move from the current position to the end position by linear interpolation, and then perform step 2.3;

步骤2.2:当所述运动轨迹是圆弧插补时,则在虚拟坐标系中,按照指定的加减速、速度以及圆心或者半径亦或圆弧上的点,以圆弧插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Step 2.2: When the motion track is circular interpolation, start the virtual axis in the form of circular interpolation in the virtual coordinate system according to the specified acceleration and deceleration, speed and center or radius or points on the circular arc Move from the current position to the end position, and then perform step 2.3;

步骤2.3:在虚拟轴所建立的直角坐标系中,按步骤2.1或步骤2.2给定的运动轨迹以及参数将虚拟轴移动至终点坐标;同时开启每个扫描周期获取虚拟轴的位置,将得到的虚拟轴的位置转换成SCARA机械手各轴的旋转位置Step 2.3: In the Cartesian coordinate system established by the virtual axis, move the virtual axis to the end point coordinates according to the trajectory and parameters given in step 2.1 or step 2.2; at the same time, open each scan cycle to obtain the position of the virtual axis, and the obtained position of the virtual axis Converted to the rotational position of each axis of the SCARA manipulator .

其中,所述步骤2.3具体转换方法如下:Wherein, the specific conversion method of the step 2.3 is as follows:

步骤2.3.1:将转换成Step 2.3.1: Put converted to ,

设SCARA机械手的第1臂、第2臂的臂长分别为A、B,则斜边C的边长为Let the arm lengths of the first arm and the second arm of the SCARA manipulator be A and B respectively, then the side length of the hypotenuse C is ,

根据余弦定理得According to the law of cosines

, ,

;

步骤2.3.2:判断目标点所在的象限Step 2.3.2: Determine the quadrant where the target point is located

,目标点在第一、二象限,得到斜边与坐标系的夹角为when , the target point is in the first and second quadrants, and the angle between the hypotenuse and the coordinate system is ;

,目标点在第四象限,得到斜边与坐标系的夹角为when , the target point is in the fourth quadrant, and the angle between the hypotenuse and the coordinate system is ;

,目标点在第三象限,得到斜边与坐标系的夹角为when , the target point is in the third quadrant, and the angle between the hypotenuse and the coordinate system is ;

步骤2.3.3:当SCARA机械手处于右手姿态时,Step 2.3.3: When the SCARA manipulator is in the right hand posture, , ;

当SCARA机械手处于左手姿态时,When the SCARA manipulator is in the left-hand posture, , ;

步骤2.3.4:对于u轴,以直角坐标为参考系时,Step 2.3.4: For the u-axis, when taking Cartesian coordinates as the reference system, ;

z轴为丝杆结构时,无需变换,When the z-axis is a screw structure, there is no need to change, .

在本实施例中,以直线插补运动轨迹为例;在此处举例图4中第五行的直线插补运动轨迹;该运动轨迹中只有轴运动,轴均不动,如图5所示,SCARA机械手从P1运动至P2。当启动机械手时,首先启动虚拟轴,使其在所建立的直角坐标系中,按指定的速度以及加减速时间,从当前位置以直线运动至目标位置。在本实施例中,所述轴将按照图6所示的速度、位置从P1点以直线运动至P2点。In this embodiment, take the linear interpolation motion trajectory as an example; the linear interpolation motion trajectory of the fifth row in Fig. 4 is an example here; in this motion trajectory only axis movement, The axes are not moving, as shown in Figure 5, the SCARA manipulator moves from P1 to P2. When starting the manipulator, start the virtual axis first , so that it moves from the current position to the target position in a straight line according to the specified speed and acceleration and deceleration time in the established Cartesian coordinate system. In this example, the The axis will move in a straight line from P1 to P2 according to the speed and position shown in Figure 6.

同时,运动控制器每个扫描周期(如1ms)获取轴的位置,在图5的下图中,其中某两个时刻读取到轴的位置;结合得到;将其代入得到边长:At the same time, the motion controller acquires The position of the axis, in the lower figure of Figure 5, where some two moments and read to axis position and ; combine get and ; Substitute it into Get side lengths:

,

设SCARA机械手第1臂、第2臂的臂长均为300mm,代入以及得到Assuming that the arm lengths of the first arm and the second arm of the SCARA manipulator are both 300mm, substitute as well as get

,

,

由于,目标点在第一、二象限,得到斜边与坐标系的夹角为,即because , the target point is in the first and second quadrants, and the angle between the hypotenuse and the coordinate system is ,Right now

,

由于SCARA处于右手姿态,Since SCARA is in the right hand posture, , which is

,

, .

步骤3:得到SCARA机械手的旋转坐标位置后,与机械手当前每个电机轴位置比较得到差值,并根据差值计算出各个电机轴在下一周期的位置与旋转速度;此处机械手当前每个电机轴的位置与其前一周期的位置相同。由步骤2可知SCARA机械手两个电机轴的旋转角度及速度:第1个电机轴的旋转角度为,旋转速度为;第二个电机轴的旋转角度为,旋转速度为;第三个电机轴的旋转角度为0,旋转速度为0;第二个电机轴的旋转角度为0,旋转速度为0;其中为扫描周期。Step 3: Get the rotation coordinates of the SCARA manipulator After the position, the current position of each motor axis with the manipulator Compare to get the difference , and calculate the position and rotation speed of each motor shaft in the next cycle according to the difference; here the current position of each motor shaft of the manipulator with the position of the previous cycle same. From step 2, we can know the rotation angle and speed of the two motor shafts of the SCARA manipulator: the rotation angle of the first motor shaft is , the rotation speed is ;The rotation angle of the second motor shaft is , the rotation speed is ; The rotation angle of the third motor shaft is 0, and the rotation speed is 0; the rotation angle of the second motor shaft is 0, and the rotation speed is 0; where is the scan cycle.

步骤4;运动控制器采用电子凸轮控制方式,并将步骤3得到的位置和速度赋给电子凸轮参数,以给定的速度旋转到目标位置,得到SCARA机械手的实际运动轨迹信息,并将所述实际运动轨迹信息发送至SCARA机械手。直接将步骤3得到的位置以及速度作为电子凸轮控制方式的参数,电机轴将会以指定的速度从当前位置运动至的位置,即可实现机械手从虚拟轴中的Pi点移动至Pi+1点,并且Pi到Pi+1的距离足够小,便可以把机械手从Pi→Pi+1摆动末端轨迹近似看作为直线,由许多Pi→Pi+1的短直线组成P1→P2直线,从而实现机械手从P1→P2的直线运动。Step 4: The motion controller adopts the electronic cam control mode, assigns the position and speed obtained in step 3 to the electronic cam parameters, rotates to the target position at a given speed, obtains the actual motion track information of the SCARA manipulator, and transfers the The actual motion trajectory information is sent to the SCARA manipulator. Directly put the position obtained in step 3 , and speed , As a parameter of the electronic cam control method, the motor shaft will move from the current position to the specified speed. , The position of the manipulator can move from the point Pi in the virtual axis to the point Pi+1, and the distance from Pi to Pi+1 is small enough, so that the trajectory of the manipulator from Pi→Pi+1 can be approximated as a straight line. The P1→P2 straight line is composed of many short straight lines of Pi→Pi+1, so as to realize the straight line motion of the manipulator from P1→P2.

综合上述,本发明的一种基于运动控制器的SCARA机械手控制方法,其通过触摸屏直接编写规划SCARA机械手运动轨迹及其对应的运动参数,使用触摸屏即可进行用户程序的编写、给定工作位置;采用虚拟轴构建出虚拟的直角坐标系,利用运动控制器内部的插补算法,可大大减小计算量,有效简化运动算法,降低SCARA控制系统技术的开发难度,缩短开发周期,且成本较低。To sum up the above, a kind of SCARA manipulator control method based on the motion controller of the present invention, it directly writes and plans the SCARA manipulator motion trajectory and its corresponding motion parameters through the touch screen, and uses the touch screen to write the user program and specify the working position; Using the virtual axis to construct a virtual rectangular coordinate system, using the interpolation algorithm inside the motion controller can greatly reduce the amount of calculation, effectively simplify the motion algorithm, reduce the development difficulty of SCARA control system technology, shorten the development cycle, and the cost is low .

以上内容仅为本发明的较佳实施例,对于本领域的普通技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,本说明书内容不应理解为对本发明的限制。The above content is only a preferred embodiment of the present invention. For those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. limits.

Claims (4)

1.一种基于运动控制器的SCARA机械手控制方法,包括有运动控制器和工业触摸屏,所述运动控制器通过以太网通信口与触摸屏通信,其特征在于:控制方法步骤如下:1. a kind of SCARA manipulator control method based on motion controller, comprises motion controller and industrial touch screen, and described motion controller communicates with touch screen by Ethernet communication port, it is characterized in that: control method step is as follows: 步骤1:用户通过触摸屏规划SCARA机械手运动轨迹及其对应的运动参数,并将所述的运动轨迹和参数保存至运动控制器中;Step 1: The user plans the motion trajectory of the SCARA manipulator and its corresponding motion parameters through the touch screen, and saves the motion trajectory and parameters to the motion controller; 步骤2: 所述运动控制器根据所述轨迹规划方式对应的算法对SCARA 机械手的实际运动轨迹进行运算,在虚拟轴所建立的直角坐标系中将其运动轨迹模拟出来,并从虚拟轴获取到直角坐标,然后再将虚拟轴的直角坐标转换成SCARA机械手的旋转坐标Step 2: The motion controller calculates the actual trajectory of the SCARA manipulator according to the algorithm corresponding to the trajectory planning method, simulates its trajectory in the Cartesian coordinate system established by the virtual axis, and obtains the Cartesian coordinates , and then the Cartesian coordinates of the virtual axis Converted to the rotation coordinates of the SCARA manipulator ; 其中,虚拟轴直角坐标转换成旋转坐标的步骤如下:Among them, the steps of converting virtual axis Cartesian coordinates into rotating coordinates are as follows: 步骤2.1:当所述运动轨迹是直线插补时,则在虚拟坐标系中,按照指定的加减速和速度,以直线插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Step 2.1: When the motion trajectory is linear interpolation, in the virtual coordinate system, according to the specified acceleration, deceleration and speed, start the virtual axis to move from the current position to the end position by linear interpolation, and then perform step 2.3; 步骤2.2:当所述运动轨迹是圆弧插补时,则在虚拟坐标系中,按照指定的加减速、速度以及圆心或者半径亦或圆弧上的点,以圆弧插补方式启动虚拟轴从当前位置移动至终点位置,然后执行步骤2.3;Step 2.2: When the motion track is circular interpolation, start the virtual axis in the form of circular interpolation in the virtual coordinate system according to the specified acceleration and deceleration, speed and center or radius or points on the circular arc Move from the current position to the end position, and then perform step 2.3; 步骤2.3:在虚拟轴所建立的直角坐标系中,按步骤2.1或步骤2.2给定的运动轨迹以及参数将虚拟轴移动至终点坐标;同时开启每个扫描周期获取虚拟轴的位置,将得到的虚拟轴的位置转换成SCARA机械手各电机轴的旋转位置Step 2.3: In the Cartesian coordinate system established by the virtual axis, move the virtual axis to the end point coordinates according to the trajectory and parameters given in step 2.1 or step 2.2; at the same time, open each scan cycle to obtain the position of the virtual axis, and the obtained position of the virtual axis Converted to the rotational position of each motor shaft of the SCARA manipulator ; 步骤3: 得到SCARA机械手的旋转坐标位置后,与机械手当前每个电机轴位置比较得到差值,并根据差值计算出各个电机轴在下一周期的位置与旋转速度;Step 3: Get the rotation coordinates of the SCARA manipulator After the position, the current position of each motor axis with the manipulator Compare to get the difference , and calculate the position and rotation speed of each motor shaft in the next cycle according to the difference; 步骤4;运动控制器采用电子凸轮控制方式,将步骤3得到各个电机轴在下一周期的位置和速度赋给电子凸轮参数,以给定的速度旋转到目标位置,得到SCARA机械手的实际运动轨迹信息,并将所述实际运动轨迹信息发送至SCARA机械手。Step 4: The motion controller adopts the electronic cam control method, assigns the position and speed of each motor shaft in the next cycle obtained in step 3 to the electronic cam parameters, rotates to the target position at a given speed, and obtains the actual motion track information of the SCARA manipulator , and send the actual trajectory information to the SCARA manipulator. 2.根据权利要求1所述的一种基于运动控制器的SCARA机械手控制方法,其特征在于:所述步骤1中的运动轨迹包括点到点、直线插补和圆弧插补运动轨迹。2. A kind of SCARA manipulator control method based on motion controller according to claim 1, is characterized in that: the motion trajectory in the described step 1 comprises point-to-point, linear interpolation and circular interpolation motion trajectory. 3.根据权利要求1所述的一种基于运动控制器的SCARA机械手控制方法,其特征在于:当所述的运动轨迹是点到点运动时,所述参数包括终点坐标、旋转速度以及SCARA机械手的姿态;当所述运动轨迹是直线插补运动时,所述参数包括终点坐标和插补速度;当所述运动轨迹是圆弧插补运动时,所述参数包括终点坐标、圆心坐标或圆弧半径亦或圆弧上的点以及圆弧插补速度。3. A kind of SCARA manipulator control method based on motion controller according to claim 1, is characterized in that: when described motion locus is point-to-point motion, described parameter comprises terminal point coordinate, rotational speed and SCARA manipulator attitude; when the motion track is a linear interpolation motion, the parameters include end point coordinates and interpolation speed; when the motion track is circular interpolation motion, the parameters include end point coordinates, center coordinates or circle Arc radius or point on the arc and circular interpolation speed. 4.根据权利要求1所述的一种基于运动控制器的SCARA机械手控制方法,其特征在于:所述步骤2.3具体转换方法如下:4. a kind of SCARA manipulator control method based on motion controller according to claim 1, is characterized in that: described step 2.3 specific conversion method is as follows: 步骤2.3.1:将转换成Step 2.3.1: Put converted to , 设SCARA机械手的第1臂、第2臂的臂长分别为A、B,则斜边C的边长为Let the arm lengths of the first arm and the second arm of the SCARA manipulator be A and B respectively, then the side length of the hypotenuse C is , 根据余弦定理得According to the law of cosines , , ; 步骤2.3.2:判断目标点所在的象限Step 2.3.2: Determine the quadrant where the target point is located ,目标点在第一、二象限,得到斜边与坐标系的夹角为when , the target point is in the first and second quadrants, and the angle between the hypotenuse and the coordinate system is ; ,目标点在第四象限,得到斜边与坐标系的夹角为when , the target point is in the fourth quadrant, and the angle between the hypotenuse and the coordinate system is ; ,目标点在第三象限,得到斜边与坐标系的夹角为when , the target point is in the third quadrant, and the angle between the hypotenuse and the coordinate system is ; 步骤2.3.3:当SCARA机械手处于右手姿态时,Step 2.3.3: When the SCARA manipulator is in the right hand posture, , ; 当SCARA机械手处于左手姿态时,When the SCARA manipulator is in the left-hand posture, , ; 步骤2.3.4:对于u轴,以直角坐标为参考系时,Step 2.3.4: For the u-axis, when taking Cartesian coordinates as the reference system, ; z轴为丝杆结构时,无需变换,When the z-axis is a screw structure, there is no need to change, .
CN201510211191.0A 2015-04-29 2015-04-29 SCARA manipulator control method based on motion controller Expired - Fee Related CN104827481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510211191.0A CN104827481B (en) 2015-04-29 2015-04-29 SCARA manipulator control method based on motion controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510211191.0A CN104827481B (en) 2015-04-29 2015-04-29 SCARA manipulator control method based on motion controller

Publications (2)

Publication Number Publication Date
CN104827481A CN104827481A (en) 2015-08-12
CN104827481B true CN104827481B (en) 2016-08-24

Family

ID=53805851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510211191.0A Expired - Fee Related CN104827481B (en) 2015-04-29 2015-04-29 SCARA manipulator control method based on motion controller

Country Status (1)

Country Link
CN (1) CN104827481B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105415389B (en) * 2016-01-08 2017-12-29 浙江理工大学 A kind of gripper and control method
CN105867376B (en) * 2016-04-12 2018-10-23 南京工程学院 Industrial robot trajectory planning speeding up or down process method based on trigonometric function
CN111267093A (en) * 2019-11-05 2020-06-12 广州霞光技研有限公司 Method for realizing continuous track control of SCARA robot
CN110815232B (en) * 2019-11-27 2025-02-14 郑州轻工业大学 A CAM variable assignment method based on electronic cam and truss double manipulator
CN111338399A (en) * 2019-12-12 2020-06-26 珠海博杰电子股份有限公司 A multi-axis motion control structure and its control method
CN112894822B (en) * 2021-02-01 2023-12-15 配天机器人技术有限公司 Robot motion trail planning method, robot and computer storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341246B1 (en) * 1999-03-26 2002-01-22 Kuka Development Laboratories, Inc. Object oriented motion system
CN101559601A (en) * 2009-04-28 2009-10-21 广州亚陆控制系统有限公司 Method and system for controlling manipulator
CN102049717A (en) * 2010-07-19 2011-05-11 长春理工大学 Controlling computerized numerical control (CNC) high-quality aspheric surface forming control method and hardware system
JP5803189B2 (en) * 2011-03-23 2015-11-04 セイコーエプソン株式会社 Robot equipment
CN102929171B (en) * 2012-08-16 2016-05-11 常州市翔云测控软件有限公司 Network-type tricot machine control system and method
CN103753584A (en) * 2014-01-03 2014-04-30 中达电通股份有限公司 Mechanical arm control system
CN104191428B (en) * 2014-08-27 2016-04-27 深圳科瑞技术股份有限公司 A kind of motion trail planning method based on SCARA manipulator and system

Also Published As

Publication number Publication date
CN104827481A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN104827481B (en) SCARA manipulator control method based on motion controller
CN109159151B (en) Mechanical arm space trajectory tracking dynamic compensation method and system
US9409293B2 (en) Robot
CN108241339B (en) Motion solving and configuration control method of humanoid mechanical arm
CN103085072B (en) Method for achieving industrial robot off-line programming based on three-dimensional modeling software
CN107443382B (en) Structural parameter error identification and compensation method of industrial robot
CN105353725B (en) Auxiliary point-passing attitude space circular interpolation method for industrial robot
CN113715016B (en) Robot grabbing method, system, device and medium based on 3D vision
CN109291046A (en) An inverse kinematics planning method for a seven-degree-of-freedom anthropomorphic robotic arm
CN113146620A (en) Binocular vision-based double-arm cooperative robot system and control method
CN108621158A (en) A kind of time optimal trajectory planning control method and device about mechanical arm
CN111775145B (en) A Control System of a Series-Parallel Robot
CN110695988A (en) Method and system for cooperative motion of double mechanical arms
CN108908347A (en) One kind is towards redundancy mobile mechanical arm error-tolerance type repetitive motion planning method
CN112589797B (en) Method and system for avoiding singular points of non-spherical wrist mechanical arm
CN108247638A (en) Control method of multi-degree-of-freedom rotating manipulator
CN109648563B (en) Serial robot motion control method and computer storage medium
Manjunath et al. Design & simulation of the workspace for a stationary robot system
CN112034869B (en) A design method and application of a variable-parameter neural dynamics controller for unmanned aerial vehicles
CN115167429A (en) A Simultaneous Position and Attitude Planning Method for Mobile Robots
Jingwei et al. Welding Robot Kinematics Analysis and Trajectory Planning.
Shuhua et al. Trajectory planning of 6-DOF manipulator based on combination function method
Gao et al. A fixed-distance Cartesian path planning algorithm for 6-DOF industrial robots
Fuping et al. Research on inverse kinematics of robot based on motion controller
Wen et al. High-precision positioning system for composite robots based on visual feedback

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20190429