首页 | 本学科首页   官方微博 | 高级检索  
     

基于PLC多层架构构建数控语言的方法与实现
引用本文:董禄,严义,邬惠峰.基于PLC多层架构构建数控语言的方法与实现[J].机电工程,2012,29(7):856-860.
作者姓名:董禄  严义  邬惠峰
作者单位:杭州电子科技大学计算机学院,浙江杭州,310018
摘    要:针对"使用梯形图等编程方式编写PLC运动控制程序,在调试和优化过程中,需要不断修改PLC控制程序和调整参数而导致开发效率低"的问题,提出了一种在PLC上构建数控语言的方法。详细介绍了构建数控语言的实现过程,包括数控指令的设计与实现、数控程序的编译和执行;重点说明了如何采用PLC模块化编程方式实现数控指令的功能,同时给出了数控程序解析执行控制算法;最后在可定制嵌入式PLC上构建了数控语言层,并通过具体实例进行了验证分析。研究结果表明,利用该方法能够方便地进行运动控制序列的调整和参数的设置,并且可以有效减少PLC控制程序的代码量,从而提高开发效率;此外,还可针对不同的实际应用,快速定制出相应的数控语言,满足灵活多变的控制要求,适合在工业生产中使用。

关 键 词:PLC  数控语言  梯形图  运动控制

Method and implementation of constructing numerical control language based on PLC multi-layer architecture
DONG Lu , YAN Yi , WU Hui-feng.Method and implementation of constructing numerical control language based on PLC multi-layer architecture[J].Mechanical & Electrical Engineering Magazine,2012,29(7):856-860.
Authors:DONG Lu  YAN Yi  WU Hui-feng
Affiliation:(College of Computer,Hangzhou Dianzi University,Hangzhou 310018,China)
Abstract:In the PLC with motion control functions,it is necessary to modify the PLC control programs and adjust the parameters constantly for motion control programs written with ladder diagram in debugging and optimization process,which will lead to the problem of low development efficiency.Aiming at this problem,a method to construct the numerical control language on the PLC was proposed.The implementation process to construct numerical control language was described in detail,including the design and implementation of the numerical control instructions,the compilation and execution of the numerical control programs.The way to implement the functions of numerical control instructions with PLC modular programming method was stressed,then the resolution and execution control algorithms of the numerical control programs were given out.At last,a specific example of building numerical control language layer on the customized embedded PLC was presented.The results indicate that the approach can conveniently adjust the sequence of motion control and setting parameters,which can effectively reduce the number of PLC control codes and improve the developing efficiency greatly.Besides,the method can quickly customize the corresponding numerical control language according to the different applications,so that it can meet the requirements of flexible control needs,and be suitable for industrial control.
Keywords:programmable logic controller(PLC)  numerical control language  ladder diagram  motion control
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号