摘要
针对现有梯形图语言适合实现逻辑控制而不适合实现复杂算法这一问题,从基于构件技术的梯形图实现原理出发,对构件的属性定义以及编译方法进行了分析,提出了一种PLC梯形图内嵌C语言实现混合编程的方法,并在CASS(computer assist specialsystem)梯形图算法生成平台上进行了验证。实验结果表明,提出的方法适于复杂算法的实现,并且能够减少程序的代码量。
Aiming that the ladder diagram(LD) language is incompetent in realizing complex algorithms,a mix programming method of ladder diagram and C language was proposed.The component technology for ladder diagram implementation was analyzed and the way to embed C language inside ladder diagram was introduced.Experiments were carried out based on the computer assist special system(CASS) platform.Results show that the proposed method is fit for complex algorithm implementation,and the code size could also be reduced.
出处
《机电工程》
CAS
2012年第4期421-424,共4页
Journal of Mechanical & Electrical Engineering
关键词
梯形图
C语言
混合编程
CASS
ladder diagram(LD)
C language
mixed programming
computer assist special system(CASS)