当前位置>主页 > 期刊在线 > 智能制造 >

智能制造22年15期

基于 CODESYS 平台的机器人控制器设计
薛浩宇,林福师,蒙国良
(上汽通用五菱汽车股份有限公司,广西 柳州 545007)

摘  要:对 IPC 共享内存机制进行了研究,基于 CODESYS 平台,设计了一种同时具备机器人运动控制功能与 PLC 控制功能的控制器。首先搭建 Linux 实时系统;然后移植 CODESYS Runtime 将 PC 设备转变为基于 IEC61131-3 标准的可编程控制器;最后在底层编写共享内存功能代码并封装成功能块,实现机器人算法程序通过 CODESYS 平台与伺服驱动器通信。最终将PLC 与机器人控制器合二为一,有效地节约了成本,并且可根据生产需求定制化开发功能。


关键词:Linux;CODESYS;机器人算法;共享内存



DOI:10.19850/j.cnki.2096-4706.2022.15.038


中图分类号:TP311                                            文献标识码:A                             文章编号:2096-4706(2022)15-0148-04


Design of Robot Controller Based on CODESYS Platform

XUE Haoyu, LIN Fushi, MENG Guoliang

(Saic GM Wuling Automobile Co., Ltd., Liuzhou 545007, China)

Abstract: The IPC shared memory mechanism is studied. Based on CODESYS platform, a controller with both robot motion control function and PLC control function at the same time is designed. Firstly, it builds Linux real-time system. Secondly, it transplants CODESYS Runtime to transform PC devices into programmable controllers based on IEC61131-3 standard. Finally, it writes the shared memory function code in the bottom layer and encapsulates it into the function blocks to realize the robot algorithm program to communicate with the servo driver through the CODESYS platform.Finally, PLC and robot controller are integrated into one, effectively saving the cost, and can be customized according to the production needs of the development function.

Keywords: Linux; CODESYS; robot algorithm; shared memory


参考文献:

[1] KANEHIRO F,ISHIWATA Y,SAITO H,et al. Distributed Control System of Humanoid Robots based on Real-time Ethernet [C]//2006 IEEE/RSJ International Conference on Intelligent Robots and  Systems.IEEE,2006:2471-2477.

[2] DEAN J.LPI Linux certification in a nutshell:影印版 [M].南京:东南大学出版社,2001:310-319.

[3] MORGAN K.A Response to Real Time and Linux,Part3 [M]. Santa Clara:Montavista Software Inc.,2002.

[4] 武庆钊,吕林森,周未东 . 基于共享内存的多进程任务系统软件设计 [J]. 航空电子技术,2021,52(4):44-49.

[5] 博韦,希斯特 . 深入理解 Linux 内核:第 3 版 [M]. 陈莉君,张琼声,张宏伟,译 . 北京:中国电力出版社,2007:785


作者简介:薛浩宇(1995—),男,汉族,湖南益阳人,助理工程师,本科,研究方向:装备制造技术。