[go: up one dir, main page]

CN115314534A - A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol - Google Patents

A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol Download PDF

Info

Publication number
CN115314534A
CN115314534A CN202210816145.3A CN202210816145A CN115314534A CN 115314534 A CN115314534 A CN 115314534A CN 202210816145 A CN202210816145 A CN 202210816145A CN 115314534 A CN115314534 A CN 115314534A
Authority
CN
China
Prior art keywords
robot
real
data
module
ethercat
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
CN202210816145.3A
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.)
Efort Intelligent Equipment Co ltd
Original Assignee
Efort Intelligent Equipment 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 Efort Intelligent Equipment Co ltd filed Critical Efort Intelligent Equipment Co ltd
Priority to CN202210816145.3A priority Critical patent/CN115314534A/en
Publication of CN115314534A publication Critical patent/CN115314534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1602Programme controls characterised by the control system, structure, architecture
    • B25J9/1605Simulation of manipulator lay-out, design, modelling of manipulator
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B25HAND TOOLS; PORTABLE POWER-DRIVEN TOOLS; MANIPULATORS
    • B25JMANIPULATORS; CHAMBERS PROVIDED WITH MANIPULATION DEVICES
    • B25J9/00Programme-controlled manipulators
    • B25J9/16Programme controls
    • B25J9/1656Programme controls characterised by programming, planning systems for manipulators
    • B25J9/1671Programme controls characterised by programming, planning systems for manipulators characterised by simulation, either to verify existing program or to create and verify new program, CAD/CAM oriented, graphic oriented programming systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/4026Bus for use in automation systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Robotics (AREA)
  • Mechanical Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Manipulator (AREA)
  • Numerical Control (AREA)

Abstract

The invention relates to the field of industrial robot simulation, in particular to a real-time optimization simulation robot system based on an EtherCAT communication protocol, which comprises the following steps: the front end displays the action of the entity robot through the screen interface; the back end is divided into a Linux non-real-time part and a Rtems real-time part according to the timeliness of task processing, is used for realizing the design of a control system communication platform, and is optimized by reasonably designing and developing EtherCAT master-slave station software frameworks, so that the problems of data fluctuation and data loss caused by the influence of external environmental factors are reduced; compared with the existing method depending on the hardware of the robot controller, the method has the advantages that the hardware cost is reduced, the better communication effect can be obtained, the practical application and popularization value is realized, the competitiveness of enterprises is improved, and the course heading is indicated for the robot industry.

Description

一种基于EtherCAT通信协议的实时性优化模拟机器人系统A real-time optimization simulation robot system based on EtherCAT communication protocol

技术领域technical field

本发明涉及工业机器人模拟领域,具体是一种基于EtherCAT通信协议的实时性优化模拟机器人系统。The invention relates to the field of industrial robot simulation, in particular to a real-time optimized simulation robot system based on the EtherCAT communication protocol.

背景技术Background technique

工业机器人是面向工业领域研发的多关节机械手或多自由度的机器装置,它依靠自身动力和控制力来执行控制系统发出的运动命令以实现相应操作,主要用于制造、搬运、检测等需要长时间重复性的生产环节,还用于汽车加工、电子电气加工、化工等工业领域。与人力相比,工业机器人能长时间高强度地做一些重复性的工作,极大地解放了人力资源,大大提高了生产率和降低了劳动力,加快了工业生产自动化的进程。Industrial robot is a multi-joint manipulator or multi-degree-of-freedom machine device developed for the industrial field. It relies on its own power and control force to execute the motion commands issued by the control system to achieve corresponding operations. It is mainly used for manufacturing, handling, testing, etc. Time-repetitive production links are also used in industrial fields such as automobile processing, electronic and electrical processing, and chemical industry. Compared with manpower, industrial robots can do some repetitive work with high intensity for a long time, which greatly liberates human resources, greatly improves productivity and reduces labor force, and accelerates the process of industrial production automation.

在未来10年,工业机器人的发展会朝着网络化、智能化、感知化和人机协作化方向发展。短时间内,工业机器人还需要在精度、可靠性、稳定性、安全性上大力研究。目随着工业机器人应用越来越广泛,中国机器人市场需求巨大,因此有必要研发一个采用开源平台的成本低、开放性好的机器人控制系统。与此同时,昂贵的实体机器人价格对于研究者或者学校来说也是一个比较大的科研阻碍,通过上面的分析以及针对机器人在教学培训过程中存在的问题,需要发明一种成本低、适应性强并且能够普遍应用于机器人的模拟系统是关键。In the next 10 years, the development of industrial robots will develop in the direction of networking, intelligence, perception and human-machine collaboration. In a short period of time, industrial robots still need to vigorously research on precision, reliability, stability, and safety. As the application of industrial robots is becoming more and more widespread, the demand for robots in China is huge. Therefore, it is necessary to develop a robot control system with low cost and good openness using an open source platform. At the same time, the expensive price of physical robots is also a relatively large scientific research obstacle for researchers or schools. Through the above analysis and the problems existing in the teaching and training process of robots, it is necessary to invent a low-cost and adaptable robot. And a simulation system that can be universally applied to robots is the key.

如中国专利号为202010220622.0的一种基于非实时系统的EtherCAT主站同步方法,该专利提供一种基于非实时系统的EtherCAT主站同步方法,该专利采用非实时系统和普通网卡的软主站方式由于非实时系统的定时精度很差,通讯不稳定性,容易产生各种连接或超时错误。For example, the Chinese patent No. 202010220622.0 is a non-real-time system-based EtherCAT master synchronization method. This patent provides a non-real-time system-based EtherCAT master synchronization method. The patent uses a non-real-time system and a soft master method of an ordinary network card. Because the timing precision of the non-real-time system is very poor, the communication is unstable, and it is easy to produce various connection or timeout errors.

如中国专利号为201810844014.X的机器人系统的模拟装置和模拟方法,该专利提供了一种机器人系统的模拟装置,进行模拟虚拟机人控制器;该专利只能进行一定条件下的机器人控制器的模拟,主要是用于应用,不能从底层对机器人控制器进行模拟。For example, the Chinese patent No. 201810844014.X is a simulation device and simulation method for a robot system. This patent provides a simulation device for a robot system to simulate a virtual robot controller; this patent can only be used for robot controllers under certain conditions. The simulation is mainly used for applications, and the robot controller cannot be simulated from the bottom layer.

发明内容Contents of the invention

为了解决上述问题,本发明提出一种基于EtherCAT通信协议的实时性优化模拟机器人系统。In order to solve the above problems, the present invention proposes a real-time optimization simulation robot system based on the EtherCAT communication protocol.

一种基于EtherCAT通信协议的实时性优化模拟机器人系统,包括:A real-time optimization simulation robot system based on EtherCAT communication protocol, including:

前端,通过屏幕界面将实体机器人的动作实现通过界面展示出来;On the front end, the actions of the physical robot are displayed through the interface through the screen interface;

后端,按任务处理的及时性分为Linux非实时部分和Rtems实时部分,用于实现对控制系统通信平台设计。The backend is divided into Linux non-real-time part and Rtems real-time part according to the timeliness of task processing, which is used to realize the design of the communication platform of the control system.

所述的前端包括通过交互界面实现对实体机器人的3d渲染的人机交互模块、记录相应的采样数据并对数据进行筛选处理的采样数据预处理模块、控制实体机器人与前端3d机器人部分位置姿态同时发生变化的位姿同步模块、对机器人进行路径算法的开发和调用的路径规划算法、对获取的数据信息利用插补原理对其进行粗插补的粗插补模块。The front end includes a human-computer interaction module that realizes 3D rendering of the physical robot through an interactive interface, a sampling data preprocessing module that records corresponding sampling data and screens and processes the data, and controls the position and posture of the physical robot and the front-end 3D robot at the same time. The pose synchronization module that changes, the path planning algorithm that develops and calls the path algorithm for the robot, and the rough interpolation module that uses the interpolation principle to perform rough interpolation on the acquired data information.

所述的人机交互模块通过合理设计交互的界面,其软件的界面包含机器人本身的参数、控制机器人的各个关节运动的按钮、工件的位置坐标类部分。The man-machine interaction module rationally designs the interactive interface, and its software interface includes the parameters of the robot itself, the buttons for controlling the movement of each joint of the robot, and the position coordinates of the workpiece.

所述的采样数据预处理模块指人工进行手把手示教码垛类应用功能时,虚拟控制系统对机器人6轴关节和2轴变位轴伺服电机的绝对位置编码器数值以及应用系统I/O参数进行定时采样,记录相应数据并进行筛选来获取有用信息。The sampling data preprocessing module refers to the value of the absolute position encoder and the application system I/O parameters of the robot's 6-axis joints and 2-axis displacement axis servo motors by the virtual control system when manual teaching and palletizing application functions are performed manually. Perform regular sampling, record the corresponding data and filter to obtain useful information.

所述的Linux非实时部分是指对实时性要求不高的模块,包括利用Linux完善的性能处理数据传输类相应应用逻辑的指令传输模块、利用Linux进行相应的数据处理的指令处理模块;所述的Rtems实时部分是指处理实时性要求高的模块,包括获取机器人工具在笛卡尔空间运动的位置以及姿态信息的数据采样模块、利用实时线程对关节坐标进行精插补的关节精插补模块、将插补数据通过EtherCAT总线输出至各个伺服、I/O类从站设备的EtherCAT主站通信模块。The non-real-time part of Linux refers to a module that does not require high real-time performance, including an instruction transmission module that utilizes the perfect performance of Linux to process data transmission class corresponding application logic, and an instruction processing module that utilizes Linux to perform corresponding data processing; The real-time part of Rtems refers to modules that deal with high real-time requirements, including the data sampling module that obtains the position and attitude information of robot tools in Cartesian space, the joint fine interpolation module that uses real-time threads to perform fine interpolation on joint coordinates, The EtherCAT master communication module that outputs the interpolation data to each servo and I/O slave device through the EtherCAT bus.

所述的EtherCAT主站通信模块包括使用以太网控制器来调度整个系统的运行的主站、由控制器ESC来实现并实现主站与从站的通信和各个从站之间的信息传递的从站。The EtherCAT master station communication module includes a master station that uses an Ethernet controller to schedule the operation of the entire system, and a slave station that implements communication between the master station and the slave station and information transfer between the slave stations by the controller ESC. stand.

所述的主站应用层程序通过调用IgH的API,实现从站节点的配置、邮箱数据和过程数据的收发任务。The application layer program of the master station realizes the configuration of the slave station node, sending and receiving tasks of mailbox data and process data by calling the API of IgH.

所述的关节精插补模块主要在EtherCAT框架中的DSP运算部件中实现;将空间中的三点形成的平面转化为二维平面问题,在平面上利用贝塞尔曲线原理进行插补优化,最后将平面上的插补点坐标转化为空间三维点坐标,结合粗插补,在其基础上进行“二次”插补,给定点x0,x1,x2,...,xn,贝塞尔曲线可由以下推导得到:The described joint fine interpolation module is mainly realized in the DSP operation part in the EtherCAT frame; the plane formed by three points in the space is converted into a two-dimensional plane problem, and the interpolation optimization is performed on the plane using the Bezier curve principle, Finally, convert the interpolation point coordinates on the plane into three-dimensional point coordinates in space, combine rough interpolation, and perform "secondary" interpolation on the basis of it, given points x 0 , x 1 , x 2 ,...,x n , the Bezier curve can be derived as follows:

Figure BDA0003742466100000031
Figure BDA0003742466100000031

所述的从站的伺服驱动器之间都是通过EtherCAT通信总线相连,从站微处理器从ESC读取控制数据,接收到主站发送的数据后,完成设定的工作任务,实现设备控制功能。The servo drivers of the slave stations are all connected through the EtherCAT communication bus. The microprocessor of the slave station reads the control data from the ESC, and after receiving the data sent by the master station, it completes the set work tasks and realizes the device control function. .

在通过测量、计算和分析传输延时的过程中,如果参考时钟为从站的数据在内部没有中断,网络传输时从站的物理网络口的接口类型都相同,即在网线的传输延时是均匀的,而且所有从站的处理延时、转发延时、处理延时与转发延时的差都相同;In the process of measuring, calculating and analyzing the transmission delay, if the reference clock is that the data of the slave station is not interrupted internally, the interface types of the physical network ports of the slave station are the same during network transmission, that is, the transmission delay of the network cable is Uniform, and all slaves have the same processing delay, forwarding delay, and the difference between processing delay and forwarding delay;

在上述假设条件下,通过推导归纳得,第i个从站x到参考从站R的传输延时为:Under the above assumptions, through derivation and induction, the transmission delay from the i-th slave station x to the reference slave station R is:

Figure BDA0003742466100000032
Figure BDA0003742466100000032

式中:td处理延时与转发延时的差。In the formula: t d is the difference between processing delay and forwarding delay.

本发明的有益效果是:通过合理地设计模拟机器人控制器的微处理器单元,实现机器人控制器模拟器的开发和使用,从而减少不必要的成本支出,以及解除开发人员的开发障碍;与此同时通过合理地设计和开发EtherCAT主从站软件框架,对其进行优化,从而减少因外部环境因素的影响而出现数据波动、丢失类问题;与现有依赖机器人控制器硬件的方法相比,本发明在降低硬件成本的同时能获得更好的通信效果,具有实际应用和推广价值,同时提高了企业的竞争力以及为机器人行业指明了航向标。The beneficial effect of the present invention is: realize the development and use of robot controller simulator by rationally designing the microprocessor unit of simulation robot controller, thereby reduce unnecessary cost expenditure, and remove the development obstacle of developer; At the same time, by rationally designing and developing the EtherCAT master-slave software framework, it is optimized to reduce data fluctuations and loss problems due to the influence of external environmental factors; compared with existing methods that rely on robot controller hardware, this The invention can obtain better communication effects while reducing hardware costs, has practical application and promotion value, improves the competitiveness of enterprises and points out the navigation mark for the robot industry.

附图说明Description of drawings

下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1为本发明的结构框图;Fig. 1 is a block diagram of the present invention;

图2为本发明的流程结构示意图。Fig. 2 is a schematic diagram of the process structure of the present invention.

具体实施方式Detailed ways

为了使本发明实现的技术手段、创作特征、达成目的与功效易于明白了解,下面对本发明进一步阐述。In order to make the technical means, creative features, goals and effects achieved by the present invention easy to understand, the present invention will be further elaborated below.

如图1和图2所示,一种基于EtherCAT通信协议的实时性优化模拟机器人系统,包括:As shown in Figure 1 and Figure 2, a real-time optimized simulation robot system based on the EtherCAT communication protocol includes:

前端,通过屏幕界面将实体机器人的动作实现通过界面展示出来;On the front end, the actions of the physical robot are displayed through the interface through the screen interface;

后端,按任务处理的及时性分为Linux非实时部分和Rtems实时部分,用于实现对控制系统通信平台设计。The backend is divided into Linux non-real-time part and Rtems real-time part according to the timeliness of task processing, which is used to realize the design of the communication platform of the control system.

Rtems实时部分即为实时多处理器系统。The real-time part of Rtems is a real-time multiprocessor system.

EtherCAT为以太网控制自动化技术。EtherCAT is Ethernet Control Automation Technology.

DSP为数字信号处理技术。DSP is digital signal processing technology.

API为应用程序编程接口。API is application programming interface.

ESC为控制器。ESC is the controller.

IgH为主站框架,具体为igh ethercat master协议栈。IgH is the main station framework, specifically the high ethercat master protocol stack.

利用纯软件技术将实体机器人控制器硬件模拟出来,在机器人实时操作系统Rtems中运行Igh,即为主站框架,通过优化EtherCAT主站从站的通信实现数据信息传输的稳定性,并保证实时性,与此同时利用插值法优化机器人运动轨迹,使其能够更平稳地运行。Use pure software technology to simulate the hardware of the physical robot controller, run Igh in the real-time robot operating system Rtems, which is the main station framework, and realize the stability of data information transmission and ensure real-time performance by optimizing the communication between the EtherCAT master station and the slave station , and at the same time use the interpolation method to optimize the trajectory of the robot so that it can run more smoothly.

该系统融合了EtherCAT主从站优化技术、轨迹规划优化技术和机器人模拟技术,解决了复杂外部环境下机器人轨迹规划过程中出现断续不平滑,以及无法实现期望轨迹的问题。The system integrates EtherCAT master-slave station optimization technology, trajectory planning optimization technology and robot simulation technology, and solves the problem of intermittent and uneven robot trajectory planning in a complex external environment and the failure to achieve the desired trajectory.

通过软件技术,搭建相应框架,将实体机器人控制器的微处理单元、外设驱动单元、存储单元类部分虚拟化,构成一个虚拟化的机器人控制器系统。Through software technology, the corresponding framework is built, and the micro-processing unit, peripheral drive unit, and storage unit of the physical robot controller are partially virtualized to form a virtualized robot controller system.

通过合理地设计模拟机器人控制器的微处理器单元,实现机器人控制器模拟器的开发和使用,从而减少不必要的成本支出,以及解除开发人员的开发障碍;与此同时通过合理地设计和开发EtherCAT主从站软件框架,对其进行优化,从而减少因外部环境因素的影响而出现数据波动、丢失类问题;与现有依赖机器人控制器硬件的方法相比,本发明在降低硬件成本的同时能获得更好的通信效果,具有实际应用和推广价值,同时提高了企业的竞争力以及为机器人行业指明了航向标。By rationally designing the microprocessor unit for simulating the robot controller, the development and use of the robot controller simulator can be realized, thereby reducing unnecessary costs and removing development obstacles for developers; at the same time, through reasonable design and development The EtherCAT master-slave station software framework is optimized to reduce data fluctuations and loss problems due to the influence of external environmental factors; compared with existing methods that rely on robot controller hardware, the present invention reduces hardware costs while reducing hardware costs It can obtain better communication effects, has practical application and promotion value, and at the same time improves the competitiveness of enterprises and points out the navigation mark for the robot industry.

所述的前端包括通过交互界面实现对实体机器人的3d渲染的人机交互模块、记录相应的采样数据并对数据进行筛选处理的采样数据预处理模块、控制实体机器人与前端3d机器人部分位置姿态同时发生变化的位姿同步模块、对机器人进行路径算法的开发和调用的路径规划算法、对获取的数据信息利用插补原理对其进行粗插补的粗插补模块。The front end includes a human-computer interaction module that realizes 3D rendering of the physical robot through an interactive interface, a sampling data preprocessing module that records corresponding sampling data and screens and processes the data, and controls the position and posture of the physical robot and the front-end 3D robot at the same time. The pose synchronization module that changes, the path planning algorithm that develops and calls the path algorithm for the robot, and the rough interpolation module that uses the interpolation principle to perform rough interpolation on the acquired data information.

所述的位姿同步模块尽可能的减少期望位姿与实际位姿的误差。The pose synchronization module reduces the error between the expected pose and the actual pose as much as possible.

所述的人机交互模块通过合理设计交互的界面,其软件的界面包含机器人本身的参数、控制机器人的各个关节运动的按钮、工件的位置坐标类部分。The man-machine interaction module rationally designs the interactive interface, and its software interface includes the parameters of the robot itself, the buttons for controlling the movement of each joint of the robot, and the position coordinates of the workpiece.

所述的采样数据预处理模块指人工进行手把手示教码垛类应用功能时,虚拟控制系统对机器人6轴关节和2轴变位轴伺服电机的绝对位置编码器数值以及应用系统I/O参数进行定时采样,记录相应数据并进行筛选来获取有用信息。The sampling data preprocessing module refers to the value of the absolute position encoder and the application system I/O parameters of the robot's 6-axis joints and 2-axis displacement axis servo motors by the virtual control system when manual teaching and palletizing application functions are performed manually. Perform regular sampling, record the corresponding data and filter to obtain useful information.

所述的Linux非实时部分是指对实时性要求不高的模块,包括利用Linux完善的性能处理数据传输类相应应用逻辑的指令传输模块、利用Linux进行相应的数据处理的指令处理模块;所述的Rtems实时部分是指处理实时性要求高的模块,包括获取机器人工具在笛卡尔空间运动的位置以及姿态信息的数据采样模块、利用实时线程对关节坐标进行精插补的关节精插补模块、将插补数据通过EtherCAT总线输出至各个伺服、I/O类从站设备的EtherCAT主站通信模块。The non-real-time part of Linux refers to a module that does not require high real-time performance, including an instruction transmission module that utilizes the perfect performance of Linux to process data transmission class corresponding application logic, and an instruction processing module that utilizes Linux to perform corresponding data processing; The real-time part of Rtems refers to modules that deal with high real-time requirements, including the data sampling module that obtains the position and attitude information of robot tools in Cartesian space, the joint fine interpolation module that uses real-time threads to perform fine interpolation on joint coordinates, The EtherCAT master communication module that outputs the interpolation data to each servo and I/O slave device through the EtherCAT bus.

所述的EtherCAT主站通信模块包括使用以太网控制器来调度整个系统的运行的主站、由控制器ESC来实现并实现主站与从站的通信和各个从站之间的信息传递的从站。The EtherCAT master station communication module includes a master station that uses an Ethernet controller to schedule the operation of the entire system, and a slave station that implements communication between the master station and the slave station and information transfer between the slave stations by the controller ESC. stand.

融合虚拟化技术与EtherCAT通信主从站优化技术,保证实时性、稳定性的同时实现对机器人控制器的模拟,提出一种新的优化技术方案。Integrating virtualization technology and EtherCAT communication master-slave station optimization technology to ensure real-time performance and stability while realizing the simulation of the robot controller, a new optimization technology scheme is proposed.

所述的主站的应用层程序通过调用IgH的API,实现从站节点的配置、邮箱数据和过程数据的收发任务。The application layer program of the master station realizes the configuration of the slave station node, the sending and receiving tasks of mailbox data and process data by calling the API of IgH.

所述的EtherCAT主站通信模块是指将插补数据通过EtherCAT总线输出至各个伺服、I/O类从站设备。The EtherCAT master communication module refers to outputting the interpolation data to each servo and I/O slave device through the EtherCAT bus.

所述的关节精插补模块是指按照运动控制原理对应用过程的速度、加速度类运动参数进行优化,系统将离散后的关节坐标发送给运动控制系统,利用实时线程对关节坐标进行精插补。The joint fine interpolation module refers to optimizing the speed and acceleration motion parameters of the application process according to the motion control principle, the system sends the discrete joint coordinates to the motion control system, and uses the real-time thread to perform fine interpolation on the joint coordinates .

所述的机器人轨迹运动控制,在机器人的运动学理论的基础上,进行了轨迹规划优化,重点实现关节空间中的插补算法,完成对机器人运动轨迹的平滑。The trajectory control of the robot is based on the kinematics theory of the robot, and the trajectory planning is optimized, focusing on the realization of the interpolation algorithm in the joint space to complete the smoothing of the trajectory of the robot.

所述的关节精插补模块主要在EtherCAT框架中的DSP运算部件中实现;将空间中的三点形成的平面转化为二维平面问题,在平面上利用贝塞尔曲线原理进行插补优化,最后将平面上的插补点坐标转化为空间三维点坐标,结合粗插补,在其基础上进行“二次”插补,给定点x0,x1,x2,...,xn,贝塞尔曲线可由以下推导得到:The described joint fine interpolation module is mainly realized in the DSP operation part in the EtherCAT frame; the plane formed by three points in the space is converted into a two-dimensional plane problem, and the interpolation optimization is performed on the plane using the Bezier curve principle, Finally, convert the interpolation point coordinates on the plane into three-dimensional point coordinates in space, combine rough interpolation, and perform "secondary" interpolation on the basis of it, given points x 0 , x 1 , x 2 ,...,x n , the Bezier curve can be derived as follows:

Figure BDA0003742466100000061
Figure BDA0003742466100000061

在机器人的运动学理论的基础上,进行了轨迹规划优化,重点实现关节空间中的插补算法。On the basis of the kinematics theory of the robot, the trajectory planning optimization is carried out, and the interpolation algorithm in the joint space is emphatically realized.

所述的从站的伺服驱动器之间都是通过EtherCAT通信总线相连,从站微处理器从ESC读取控制数据,接收到主站发送的数据后,完成设定的工作任务,实现设备控制功能。The servo drivers of the slave stations are all connected through the EtherCAT communication bus. The microprocessor of the slave station reads the control data from the ESC, and after receiving the data sent by the master station, it completes the set work tasks and realizes the device control function. .

在正常的通信过程中,EtherCAT通信的每一周期仅需要一个或两个帧即可以实现所有节点的全部通讯,能够有效的处理数据之间的接收与发送。为实现EtherCAT数据帧通讯,本发明选用IgH EtherCAT Master协议栈,主站应用层程序通过调用IgH的API,实现从站节点的配置、邮箱数据和过程数据的收发任务。In the normal communication process, each cycle of EtherCAT communication only needs one or two frames to realize all the communication of all nodes, and can effectively process the receiving and sending of data. In order to realize the EtherCAT data frame communication, the present invention selects the IgH EtherCAT Master protocol stack, and the application layer program of the master station realizes the configuration of the slave station node, the sending and receiving tasks of mailbox data and process data by calling the API of IgH.

在通过测量、计算和分析传输延时的过程中,如果参考时钟为从站的数据在内部没有中断,网络传输时从站的物理网络口的接口类型都相同,即在网线的传输延时是均匀的,而且所有从站的处理延时、转发延时、处理延时与转发延时的差都相同;In the process of measuring, calculating and analyzing the transmission delay, if the reference clock is that the data of the slave station is not interrupted internally, the interface types of the physical network ports of the slave station are the same during network transmission, that is, the transmission delay of the network cable is Uniform, and all slaves have the same processing delay, forwarding delay, and the difference between processing delay and forwarding delay;

在上述假设条件下,通过推导归纳得,第i个从站x到参考从站R的传输延时为:Under the above assumptions, through derivation and induction, the transmission delay from the i-th slave station x to the reference slave station R is:

Figure BDA0003742466100000071
Figure BDA0003742466100000071

式中:td处理延时与转发延时的差。In the formula: t d is the difference between processing delay and forwarding delay.

通过上述计算方法,得到从站到参考时钟的时间延迟后,将这些得到的值放入所对应的寄存器中,在相应的寄存器中进行相应的数据处理,进而完成传输延时的时间补偿。Through the above calculation method, after obtaining the time delay from the slave station to the reference clock, put the obtained value into the corresponding register, and perform corresponding data processing in the corresponding register, and then complete the time compensation of the transmission delay.

Xenomai是基于Linux内核的开发框架,不仅实时性强,而且具备扩展性,可移植性以及可维护性的特点,强大的实时性主要体现在增加了一个实时内核,在内核空间与Linux内核共存;扩展性,可移植性以及可维护性主要是体现在Xenomai项目不仅提供双核,而且对PREMPT-RT实时抢占补丁提供支持,而RT-Linux只允许以内核模块的形式提供实时应用,Xenomai也对用户空间的应用提供了关注。Xenomai is a development framework based on the Linux kernel. It not only has strong real-time performance, but also has the characteristics of scalability, portability and maintainability. The strong real-time performance is mainly reflected in the addition of a real-time kernel, which coexists with the Linux kernel in the kernel space; Scalability, portability, and maintainability are mainly reflected in the fact that the Xenomai project not only provides dual-core, but also supports PREMPT-RT real-time preemption patches, while RT-Linux only allows real-time applications in the form of kernel modules, and Xenomai also supports users The application of space provides attention.

在此基础上,利用Xenomai双内核的思想,对EtherCAT协议进行优化,综合以上考虑,选用Rtems实时拓展作为Linux实时改造方案,所述EtherCAT软件整体框架分为,Linux非实时域与Rtems实时域两部分。On this basis, use the idea of Xenomai dual-core to optimize the EtherCAT protocol. Based on the above considerations, Rtems real-time expansion is selected as the Linux real-time transformation solution. The overall framework of the EtherCAT software is divided into two parts: Linux non-real-time domain and Rtems real-time domain. part.

相应地方法步骤:Corresponding method steps:

S1、通过前端平台,编辑调试机器人代码,生成机器人控制的可执行程序;S1. Through the front-end platform, edit and debug the robot code, and generate an executable program for robot control;

S2、通过网络服务程序,接收前端发送的数据请求,调用优化算法库类,进行机器人的关节运动控制;S2. Through the network service program, receive the data request sent by the front end, call the optimization algorithm library class, and control the joint motion of the robot;

S3、调用机器人运动控制算法,形成机器人运动控制方案以及机器人控制任务、运动轨迹类;S3. Invoke the robot motion control algorithm to form a robot motion control scheme, robot control tasks, and motion trajectories;

S4、在虚拟机器人控制器中,通过EtherCAT总线传送机器人的数据信息至前端以及下层伺服电机类从站设备;S4. In the virtual robot controller, the data information of the robot is transmitted to the front end and the lower servo motor slave station equipment through the EtherCAT bus;

S5、在前端解决方案3D平台界面实时展示机器人运动控制状态和位姿信息,机器人再现应用场景。S5. Real-time display of robot motion control status and pose information on the 3D platform interface of the front-end solution, and the robot reproduces the application scene.

以上显示和描述了本发明的基本原理、主要特征和本发明的优点。本行业的技术人员应该了解,本发明不受上述实施例的限制,上述实施例和说明书中描述的只是本发明的原理,在不脱离本发明精神和范围的前提下,本发明还会有各种变化和改进,这些变化和改进都落入要求保护的本发明范围内。本发明要求保护范围由所附的权利要求书及其等效物界定。The basic principles, main features and advantages of the present invention have been shown and described above. Those skilled in the art should understand that the present invention is not limited by the above-mentioned embodiments, and what are described in the above-mentioned embodiments and description are only the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention also has various Variations and improvements all fall within the scope of the claimed invention. The protection scope of the present invention is defined by the appended claims and their equivalents.

Claims (10)

1. A real-time optimization simulation robot system based on an EtherCAT communication protocol is characterized in that: the method comprises the following steps:
the front end displays the action of the entity robot through the screen interface;
and the back end is divided into a Linux non-real-time part and an Rtems real-time part according to the timeliness of task processing and is used for realizing the design of a control system communication platform.
2. The EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 1, wherein: the front end comprises a human-computer interaction module for realizing 3d rendering of the entity robot through an interaction interface, a sampling data preprocessing module for recording corresponding sampling data and screening the data, a pose synchronization module for controlling the entity robot and the front end 3d robot to change positions and poses at the same time, a path planning algorithm for developing and calling a path algorithm for the robot, and a coarse interpolation module for performing coarse interpolation on the acquired data information by using an interpolation principle.
3. The system according to claim 2, wherein the simulation system comprises: the human-computer interaction module reasonably designs an interaction interface, and the software interface comprises parameters of the robot, buttons for controlling the movement of each joint of the robot and a position coordinate part of a workpiece.
4. The system according to claim 2, wherein the simulation system comprises: when the sampling data preprocessing module manually performs a hand-held teaching stacking application function, the virtual control system performs timing sampling on the absolute position encoder values of the 6-axis joint and the 2-axis variable-displacement servo motor of the robot and the I/O parameters of the application system, records corresponding data and screens the data to acquire useful information.
5. The system according to claim 1, wherein the simulation system comprises: the Linux non-real-time part is a module with low real-time requirement, and comprises an instruction transmission module for processing corresponding application logic of data transmission class by using the perfect performance of Linux and an instruction processing module for performing corresponding data processing by using Linux; the Rtems real-time part is a module with high real-time processing requirement, and comprises a data sampling module for acquiring the position and posture information of the robot tool moving in a Cartesian space, a joint fine interpolation module for performing fine interpolation on joint coordinates by using a real-time thread, and an EtherCAT master station communication module for outputting interpolation data to each servo and I/O slave station device through an EtherCAT bus.
6. The EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 5, wherein: the EtherCAT master station communication module comprises a master station which uses an Ethernet controller to schedule the operation of the whole system, and a slave station which is realized by a controller ESC and realizes the communication between the master station and the slave station and the information transfer between the slave stations.
7. The EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 5, wherein: and the application layer program of the master station calls an API of the IgH to realize the tasks of configuration of the slave station nodes, and receiving and transmitting of mailbox data and process data.
8. The EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 5, wherein: the joint fine interpolation module is mainly realized in a DSP operation component in an EtherCAT framework; converting a plane formed by three points in a space into a two-dimensional plane, performing interpolation optimization on the plane by using a Bezier curve principle, finally converting the coordinates of interpolation points on the plane into the coordinates of three-dimensional points in the space, combining coarse interpolation, performing 'secondary' interpolation on the basis of the coordinates, and giving a point x 0 ,x 1 ,x 2 ,...,x n The bezier curve can be derived as follows:
Figure FDA0003742466090000021
9. the EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 5, wherein: the servo drivers of the slave stations are connected through an EtherCAT communication bus, the slave station microprocessor reads control data from the ESC, and after receiving the data sent by the master station, the slave station microprocessor finishes set working tasks to realize the equipment control function.
10. The EtherCAT communication protocol-based real-time optimization simulation robot system according to claim 5, wherein: in the process of measuring, calculating and analyzing the transmission delay, if the reference clock is that the data of the slave station is not interrupted inside, the interface types of the physical network ports of the slave stations are the same during network transmission, namely the transmission delay of the on-line network is uniform, and the processing delay, the forwarding delay, and the difference between the processing delay and the forwarding delay of all the slave stations are the same;
under the above assumption, the transmission delay from the ith slave station x to the reference slave station R is derived as follows:
Figure FDA0003742466090000022
in the formula: t is t d The difference between the processing delay and the forwarding delay.
CN202210816145.3A 2022-07-12 2022-07-12 A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol Pending CN115314534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210816145.3A CN115314534A (en) 2022-07-12 2022-07-12 A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210816145.3A CN115314534A (en) 2022-07-12 2022-07-12 A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol

Publications (1)

Publication Number Publication Date
CN115314534A true CN115314534A (en) 2022-11-08

Family

ID=83856732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210816145.3A Pending CN115314534A (en) 2022-07-12 2022-07-12 A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol

Country Status (1)

Country Link
CN (1) CN115314534A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880117A (en) * 2024-03-12 2024-04-12 泉州华中科技大学智能制造研究院 EtherCAT virtual slave station implementation method for virtual debugging

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325019A (en) * 2011-08-23 2012-01-18 西安电子科技大学 A Clock Synchronization Method for Real-time Industrial Ethernet EtherCAT Redundant System
CN103180791A (en) * 2010-10-13 2013-06-26 欧姆龙株式会社 Control device, control system and control method
CN109074067A (en) * 2016-12-28 2018-12-21 深圳配天智能技术研究院有限公司 Motion planning and robot control method and relevant apparatus
CN109412733A (en) * 2018-08-23 2019-03-01 浙江工业大学 The mean filter method that EtherCAT synchronised clock is adjusted
CN109623820A (en) * 2018-12-25 2019-04-16 哈工大机器人(合肥)国际创新研究院 A kind of robot space tracking transition method
CN111478834A (en) * 2020-03-25 2020-07-31 武汉迈信电气技术有限公司 EtherCAT master station synchronization method based on non-real-time system
CN112091978A (en) * 2020-09-24 2020-12-18 哈尔滨工业大学 Real-time control system for mechanical arm
US20210318978A1 (en) * 2020-04-14 2021-10-14 Ningbo Techmation Co., Ltd. Ethercat master-slave station integrated bridge controller and control method thereof
CN113689468A (en) * 2021-08-17 2021-11-23 珠海格力智能装备有限公司 Method and apparatus for controlling workpiece processing apparatus, and computer-readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180791A (en) * 2010-10-13 2013-06-26 欧姆龙株式会社 Control device, control system and control method
CN102325019A (en) * 2011-08-23 2012-01-18 西安电子科技大学 A Clock Synchronization Method for Real-time Industrial Ethernet EtherCAT Redundant System
CN109074067A (en) * 2016-12-28 2018-12-21 深圳配天智能技术研究院有限公司 Motion planning and robot control method and relevant apparatus
CN109412733A (en) * 2018-08-23 2019-03-01 浙江工业大学 The mean filter method that EtherCAT synchronised clock is adjusted
CN109623820A (en) * 2018-12-25 2019-04-16 哈工大机器人(合肥)国际创新研究院 A kind of robot space tracking transition method
CN111478834A (en) * 2020-03-25 2020-07-31 武汉迈信电气技术有限公司 EtherCAT master station synchronization method based on non-real-time system
US20210318978A1 (en) * 2020-04-14 2021-10-14 Ningbo Techmation Co., Ltd. Ethercat master-slave station integrated bridge controller and control method thereof
CN112091978A (en) * 2020-09-24 2020-12-18 哈尔滨工业大学 Real-time control system for mechanical arm
CN113689468A (en) * 2021-08-17 2021-11-23 珠海格力智能装备有限公司 Method and apparatus for controlling workpiece processing apparatus, and computer-readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈宇鹏等: "基于EtherCAT总线的拖动示教机器人控制系统开发", 电气传动, vol. 51, no. 21, pages 59 - 65 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117880117A (en) * 2024-03-12 2024-04-12 泉州华中科技大学智能制造研究院 EtherCAT virtual slave station implementation method for virtual debugging

Similar Documents

Publication Publication Date Title
CN110238831B (en) Robot teaching system and method based on RGB-D image and teaching device
CN107901039B (en) Python-based desktop-level robot offline programming simulation system
CN107363812B (en) Wireless control six-degree-of-freedom mechanical arm demonstration system
Martinov et al. From classic CNC systems to cloud-based technology and back
CN101592951B (en) General Control System of Distributed Humanoid Robot
CN108214445B (en) ROS-based master-slave heterogeneous teleoperation control system
CN107486858A (en) Multi-mechanical-arm collaborative offline programming method based on RoboDK
CN114102590B (en) An industrial robot simulation method, system and application
CN104699122A (en) A robot motion control system
JP2017094406A (en) Simulation device, simulation method, and simulation program
CN106041928A (en) Robot job task generation method based on workpiece model
CN107544299B (en) PC (personal computer) end APP (application) system for teaching control of six-degree-of-freedom mechanical arm
CN104820403A (en) EtherCAT bus-based eight-shaft robot control system
CN111739170B (en) Visual platform of industrial robot workstation
CN111797521A (en) Three-dimensional simulation debugging and monitoring method for automatic production line
Duan et al. A digital twin–driven monitoring framework for dual-robot collaborative manipulation
CN115026820A (en) Human-machine collaborative assembly robot control system and control method
Diachenko et al. Industrial collaborative robot Digital Twin integration and control using Robot Operating System
TW201220009A (en) Program converting module for use with machines with multi-axis simultaneously coordinated motion and method of converting the programs
CN115314534A (en) A Real-time Optimization Simulation Robot System Based on EtherCAT Communication Protocol
CN115741676A (en) Control system for multi-robot cooperative work
US20210229286A1 (en) Cyber-physical system-based remote control framework for robots
CN111026037B (en) Industrial robot motion controller based on WINDOWS platform and control method
CN204515479U (en) A kind of 8 axle robot control systems based on EtherCAT bus
Gao et al. Implementation of open-architecture kinematic controller for articulated robots under ROS

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221108