【编者按】:网学网自动化PLC相关毕业设计为您提供电参数监测仪上位机软件设计参考,解决您在电参数监测仪上位机软件设计学习中工作中的难题,参考学习。
论文编号:DQ076 论文字数:10266,页数:44
摘 要
在现代社会中,电能是一种最为广泛使用的能源。在科技突飞猛进的今天,无线、远程、精确、小型化、智能化引领者科技发展的方向,这也急需多功能电力参数检测仪的研制能够提供更快更精确的技术支持。一般来说,电力参数检测仪将系统分为人机接口、主控模块、信号处理模块等多个功能模块,各模块之间通过信息减缓协调工作。
随着计算机、电子、通讯技术的飞速发展,人们对于车间现场设备的运行管理控制,可视化操作等综合水平提出了新的要求。为了满足这新的要求,本毕业设计以C语言作为开发语言,VC为开发环境,针对某电器产品编写了应用程序,将该产品的现场设备界面通过串口通信技术,与上位机界面有机的结合起来,以实现计算机的远程监控功能。本毕业论文通过这个项目的开发过程,阐述了编程环境的选择,串口通讯实现远程测试的方法,探讨如何在PC平台与工控机平台间建立远程测试和历史数据读取和分析的一般方法。
关键词:人机界面;串口通信;Visual C++6.0;电力参数监测
Abstract
In modern society, electricity is one of the most widely used source of energy. Electrical appliances also need to be adapted to automated production development of the market economy. In today''''s technological advances, wireless, long-range, precision, small and intelligent leader in the direction of technological development, which in urgent need of multi-function power detector parameters can provide faster and more accurate technical support. In general, the power parameters of the system detector is divided into man-machine interface, control modules, signal processing module, such as functional modules, each module through the coordination of information slow.With the computer, electronics, the rapid development of communication technologies, people at the scene shop equipment for the operation of management controls, an integrated visualization operation of the level of proposed new requirements.In order to meet these new requirements, the graduation project in C++ language as a development language, VC for the development environment, an electrical products for the preparation of the application, the product of the field device through the serial communication interface technologies, and organic PC interface combine in order to achieve the remote monitoring function of the computer. This thesis through the project development process, explained the choice of programming environment, serial communications to achieve long-range tests to explore ways in PC platforms and the establishment of industrial computer platforms remote testing and data acquisition and analysis of the history of the general method.
Key words:Human-machine interface; Serial Communication;;Visual C++6.0;Power Parameters Monitoring
目录
摘要 I
英文摘要 II
1 绪论 1
1.1 背景 2
1.2 任务和目标 2
2 总体设计方案 2
2.1 系统总体流程 2
2.2 下位机系统连接方案的实现 3
2.3 串口对通讯事件捕捉的实现 3
3 编程语言及编程环境 5
3.1 C++语言介绍 5
3.2 Visual C++6.0编程环境介绍 5
3.3 MFC程序框架介绍 6
3.4 基本界面的建立 6
3.4.1 基本界面 6
3.4.2 对话框 7
3.4.3 控件介绍 7
3.4.4 串行通信的建立及基本参数的设定 8
3.4.5 使用MScomm控件进行串口编程 10
3.4.6 串口通信的自定义协议及数据处理 12
3.5 电参数察看功能 13
4 上位机对接收数据的转换处理 15
4.1整数拆分成字符数组 15
4.2判断传输中的数据是否发送完毕 16
4.3数据传输实现代码 16
5 按钮功能实现 17
5.1打开串口事件处理 17
5.2关闭串口事件处理 18
6 系统调试 19
6.1系统功能调试 20
6.2现场测试功能改进方向 20
7 总结 20
8 致谢 21
参考文献 22
附录 23