摘要
基于ARM处理器和Linux操作系统的嵌入式软PLC运行系统,针对开发系统生成的目标代码通用性和不便于用户使用问题,设计了一种将IEC61131—3标准的语言程序转换为C语言程序的开发系统,使系统生成的目标代码在此种类型的运行系统上具有通用性。生成的LinuxC程序不仅能够在运行系统上直接编译运行,而且便于在PC机上仿真测试。介绍了各个模块的功能和实现,重点阐述了编译模块的设计与实现的关键技术,并结合实例进行测试验证。实验表明,该系统界面友好、操作简单,编译出的C语言程序执行效率较高,通用性强,方便用户使用。
Aiming at popular and inconvenient problem of the object codes generated by development system,the running system of embedded soft PLC based on ARM processors and Linux OS,a new PLC development system was designed.The languages defined in IEC61131—3 standard were translated to C language and the object codes generated by system with popularity.The Linux C programs can be run on the object-platform directly and simulated in PC conveniently.The modules were introduced,focusing on the design and implementation technologies of compile module,and testing with an example.The experiments show the C programs generated are effective and universal.The interface of system is friendly and users can operate easily and expediently.
出处
《科学技术与工程》
2011年第3期494-498,共5页
Science Technology and Engineering