当前位置:主页 > 科技论文 > 电力论文 >

基于LabVIEW和单片机的PLC设计

发布时间:2018-03-01 07:50

  本文关键词: ATMEGA16 LabVIEW 可编程控制器 LabVIEW报表 出处:《燕山大学》2014年硕士论文 论文类型:学位论文


【摘要】:可编程控制器(Programmable Controller,PLC)的广泛应用是工业自动化的重要标志。为了弥补国产PLC市场的不足,克服国外PLC价格昂贵的缺点,本文综合运用单片机技术和通信技术,结合当今热门的虚拟仪器技术,设计了基于ATMEGA16单片机和LabVIEW的工业通用可编程控制器系统。该系统在完成传统PLC功能的同时,还增加了人性化的报表功能,具有性能好、成本低等优点。 本论文的主要内容包括PLC的总体设计、硬件设计和软件设计三大部分。首先,本文在研究PLC结构和工作原理的基础上,提出了以ATMEGA16为核心,结合LabVIEW技术的PLC设计方案。其次,在硬件部分,集成了通用的输入输出端口,设计了模拟量输入通道;系统在通信设计的时候引入了485总线,提高了系统的通信距离和通信可靠性。接着,软件设计包含了两个部分,分别是硬件系统软件设计和上位机设计。为了保证硬件系统的良好运行,本文提出了1ms时间节点轮询的编程思想,该方法有效的增加了系统运行效率和稳定性;上位机由LabVIEW编写,利用VISA节点实现了串口通信;上位机界面包含三个部分,用户操作主界面、单个设备管理界面和报表界面;通过报表生成界面,用户可以十分方便的生成Html、Word和Excel三种不同形式的报表。最后,,本论文完成硬件电路板的制作,进行了系统性的测试,验证了设计方法的合理性。
[Abstract]:The wide application of Programmable Controller (PLC) is an important symbol of industrial automation. In order to make up for the shortage of domestic PLC market and overcome the disadvantages of expensive foreign PLC, this paper uses the technology of single chip computer and communication technology synthetically. Combined with the popular virtual instrument technology, the industrial universal programmable controller system based on ATMEGA16 single chip computer and LabVIEW is designed. The system not only completes the traditional PLC function, but also adds the humanized report form function, which has good performance. Low cost and other advantages. The main contents of this paper include the overall design of PLC, hardware design and software design. Firstly, based on the study of the structure and working principle of PLC, this paper proposes a PLC design scheme based on ATMEGA16 and LabVIEW technology. In the hardware part, the general input and output ports are integrated, the analog input channel is designed, the 485 bus is introduced in the communication design, which improves the communication distance and the communication reliability of the system. The software design includes two parts: hardware system software design and host computer design. In order to ensure the good operation of the hardware system a 1ms time node polling programming idea is proposed in this paper. The method effectively increases the efficiency and stability of the system; the upper computer is written by LabVIEW and the serial communication is realized by using the VISA node; the upper computer interface consists of three parts: the user operation main interface, the single device management interface and the report interface. Through the report generation interface, the user can easily generate three different forms of reports: HtmlU word and Excel. Finally, the hardware circuit board is made in this paper, and the system test is carried out, which verifies the rationality of the design method.
【学位授予单位】:燕山大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TM571.61

【参考文献】

相关期刊论文 前10条

1 胡吉朝;王定远;安素方;傅s

本文编号:1551058


资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/dianlilw/1551058.html


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

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