1、编号: 毕业设计说明书 题 目: 数控机床现场温度实时 多点采集测量与实现 院 (系) : 专 业: 学生姓名: 学 号: 指导教师: 职 称: 教授 题目类型:题目类型: 理论研究 实验研究 工程设计 工程技术研究 软件开发 2013 年 5 月 20 日 摘 要 温度是机械加工中最基本的参数之一,在生产过程中常需要对温度进行检测和监 控。数控机床加工中,常需要对数控机床进行热误差计算并实现热误差补偿,通过热误 差补偿技术来达到提高数控机床加工精度的目的。因此,研究一种基于串行通信的多路 温度采集和实时监控系统,对提高工业控制性能、提高数控机床的加工精度以及提高生 产效率有着重要的意义。 本
2、文设计了一种数控机床多点温度采集电路,可以同时对四路温度进行实时的采集 和显示,通过设定温度的报警范围对其进行预警,并且利用串口实现单片机和计算机的 通信,使用上位机完成数据处理和温度的显示等。温度的测量精度低于 0.5。 设计中使用 STC89C52 作为下位机的主控芯片,并使用 LCD1602 液晶屏进行温度的 显示,采用温度传感器 TC1047 进行温度采集。将温度传感器输出的电压通过 RC 滤波电 路以及运放 OP07 组成的放大电路,然后通过 A/D 转换,最后将 A/D 转换的数字量通过 RS232 串口发送到 LABVIEW 编写的上位机进行数据处理和显示。通过上位机设置温度的
3、采集速率以及设定报警温度上限,将采集到的数据以 TXT 或 XLS 格式存储到电脑中。 硬件电路采用低成本的设计思想,软件设计采用模块化的设计方法,最后进行实物 的制作和调试,验证了设计的设计稳定性和可行性,实现了设计的预期结果。 关键词关键词: :串口通信;LABVIEW;数控机床;热误差;多通道温度采集 Abstract Temperature is one of the most basic parameters in the machining and temperature detection and monitoring is commonly found in the produ
4、ction. In CNC machining, thermal error of CNC machine need to be calculated, and thermal error compensation is implemented. Through the thermal error compensation techniques to achieve the purpose of the improvement of precision CNC machining. So the study of a multi-channel temperature acquisition
5、and real-time monitoring system based on serial communication has an important significance to improve the performance of industrial control and production efficiency. This article design a multi-channel temperature acquisition circuit of CNC machine. It can acquire four channel temperature data at
6、the same time, also the display of these data is real-time. The method also can set temperature alarming range and if the data exceed the range the system will warn. And using the serial port to realize the single chip microcomputer and computer communication, using upper computer to complete data processing and display of temperature, etc. Temperature measuring precision less than 0.5 . STC89C52 is the main