摘要
传统的PLC采用解释执行的方式,效率低。而传统的编译型PLC虽然执行效率高,但是移植性差。基于这种情况,该文提出一种先把指令表语言编译为C语言,再编译C代码的方案。而且,主函数和功能函数分开编译并烧录在flash的不同地址块,能够有效节省编译、烧录时间,提升开发效率。
Traditional PLC works inefficiently by using interpreted mode. And the PLC works efficiently by using compiled mode, but it has bad portability. Based on this situation, this paper proposes a new scheme, which converts from instruction list to C language, and then compiles the C code. In addition, the main function and functional function compile separately and download to different address block of the flash. This way can save the time of compiling and downloading efficiently, and can improve the development efficiency.
出处
《电子设计工程》
2016年第14期40-43,48,共5页
Electronic Design Engineering
关键词
编译
PLC
指令表
不同地址块
compile
PLC
instruction list
different address block