当前位置:主页 > 科技论文 > 计算机论文 >

多核PLC处理器的并行语言设计研究

发布时间:2018-08-16 08:41
【摘要】:可编程控制器(PLC)是以微处理器为核心,把自动化技术、通信技术融为一体的新型工业自动控制装置。作为目前提高处理器性能的主要技术。在单独芯片上集成多个处理运算核心,组成多核处理器(multi-coprocessor)已成为提高计算机性能的主要手段。因此,将多核处理器应用在PLC中能够提升PLC的性能。但是如何利用多核处理器的资源也是急需解决的问题。CPU发展出多核处理器后,串行变成方式已无法满足发展需要,由此人们设计出并行编程语言。传统并行语言通过将程序分割成几个进程,然后再将进程分配给多核CPU,从而达到提高效率的目的。在此过程中,程序员通过并行语言提供的并行接口,将程序模块化、进程化,然后编译器将各个进程代码编译,将进程的机器码分配到计算机系统空闲的核中,然后执行。然而在现实的系统中,计算机会同时执行多个任务,会发生执行上述并行任务的核被高优先级的其他任务中断,并将并行任务挂起,影响并行程序的运行。串行程序只能在单核处理器上运行,无法调用多核资源,因此传统串行程序想要在多核平台上利用多核资源,必须将其并行化。本文设计了一种将PLC自动控制程序并行化的方法,该方法基于PLC程序结构化的特点,将程序分解成多个程序块(Program block)。此时程序块为PLC程序,需要将其利用并行语言重新描述成并行任务,因此本文设计了一种多核并行语言。该并行语言利用本文设计的PSC底层核编程模型,能够使多核程序在执行过程中动态调用多核资源,从而更好的利用多核处理器。本文的内容主要有:1.提出了一种将PLC自动控制程序并行化的方法。2.设计并实现了一种PSC动态多核编程模型。3.设计并实现了一种并行语言。4.实现了对并行语言的仿真实验。
[Abstract]:(PLC) (Programmable Logic Controller) is a new type of industrial automatic control device which integrates automation technology and communication technology with microprocessor as its core. As the main technology to improve processor performance. The multi-core processor (multi-coprocessor) has become the main method to improve the performance of the computer by integrating several processing and computing cores on a single chip. Therefore, the application of multicore processor in PLC can improve the performance of PLC. However, how to utilize the resources of multi-core processors is an urgent problem. After the CPU develops multi-core processors, the serial mode can not meet the needs of development, so people design parallel programming language. Traditional parallel language divides programs into several processes and then allocates the processes to multi-core CPUs to achieve the purpose of improving efficiency. In this process, the programmer modulates and processes the program through parallel interface provided by parallel language, then the compiler compiles each process code, assigns the machine code of the process to the idle core of the computer system, and then executes. However, in a real system, the computer will execute multiple tasks simultaneously, and the core of the parallel tasks will be interrupted by other tasks of high priority, and the parallel tasks will be suspended, which will affect the running of parallel programs. Serial programs can only run on a single core processor and cannot call multi-core resources. Therefore, if traditional serial programs want to utilize multi-core resources on multi-core platforms, they must be parallelized. In this paper, a method of parallelizing PLC automatic control program is designed. This method is based on the structurization of PLC program, and decomposes the program into multiple blocks of (Program block). At this time, the program block is a PLC program, which needs to be redescribed as a parallel task by using parallel language. Therefore, a multi-core parallel language is designed in this paper. The parallel language uses the PSC kernel programming model designed in this paper, which can make the multi-core program dynamically call the multi-core resource in the execution process, thus making better use of the multi-core processor. The main content of this article is: 1. This paper presents a method of parallelizing PLC automatic control program. This paper designs and implements a dynamic multi-core programming model of PSC. A parallel language. 4. The simulation experiment of parallel language is realized.
【学位授予单位】:沈阳理工大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP332

【参考文献】

相关期刊论文 前9条

1 刘德儿;熊证;沈敬伟;朱晓t,

本文编号:2185474


资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2185474.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户f9ced***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com