摘要
嵌入式PLC根据编程指令的执行方式不同,分为解释型和编译型。解释型PLC在上位机生成中间代码,在执行时采用取指令、解释、执行的方式逐句执行;而编译型PLC在上位机完成指令的编译,下载到下位机的目标代码可直接运行。针对这两种不同的执行机制,从系统结构、编辑系统、运行系统等方面对它们进行了详细的对比分析,并通过测试实验,验证了编译型PLC具有更好的可靠性和高效性。
According to the pattern of execution, embedded PLC is divided into two types : interpretation type and compilation type. The interpretation type PLC generates the intermediate code, and executes sentence by sentence in host computer, by means of instruction fetching, explaining and performing. While the compilation type PLC compiles the instructions in the host computer, and download the objective code that can be performed directly in the lower machine. Aiming at the current two execution patterns of embedded PLC, the comparative analysis on them in aspects of system structure, editing systems and operating systems are conducted. Through experiments, it is verified that the compilation type PLC features better reliability and efficiency.
出处
《自动化仪表》
CAS
北大核心
2010年第1期17-19,22,共4页
Process Automation Instrumentation
基金
国家重点新产品计划资助项目(编号:2008GRC60123)