1、摘 要 温度是机械加工中 最基本的参数之一,在生产过程中常需要对温度进行检测和监控。 数控机床加工中, 常 需要对数控机床进行热误差计算并实现热误差补偿,通过热误差补偿 技术 来达到提高数控机床加工精度的目的。 因此 ,研究一种基于串行通信的多路温度采集和实时监控系统,对提高工业控制性能、提高数控机床的加工精度以及提高生产效率有着重要的意义。 本文设计了一种数控机床多 点 温度采集 电路 ,可以同时对四路温度进行实时的采集和显示, 通过 设 定温度的报警范围对其进行预警,并且利用串口实现 单片机 和计算机的通信 , 使用 上位机完成 数据处理 和 温度的 显示 等 。 温度的测量精度低于 0.
2、5。 设计中使用 STC89C52 作为下位机的主控芯片,并使用 LCD1602 液晶屏进行温度的显示, 采用 温度传感器 TC1047 进行温度采集。 将温度传感器输出的电压通过 RC 滤波电路以及运放 OP07 组成的放大电路,然后通过 A/D 转换,最后将 A/D 转换的数字量通过RS232 串口发送到 LABVIEW 编写的上位机进行数据处理和显示。通过上位机设置温度的采集速率以及设定报警温度上限, 将采集到的数据以 TXT 或 XLS 格式存储到电脑中。 硬件电路采用低成本的设计思想,软件设计采用模块化的设计 方法,最后 进行 实物的制作和调试,验证了设计的 设计 稳定性和可行性 ,
3、 实现 了 设计 的预期结果。 关键词 :串口通信 ; LABVIEW;数控机床; 热误差 ; 多通道温度采集 Abstract Temperature is one of the most basic parameters in the machining and temperature detection and monitoring is commonly found in the production. In CNC machining, thermal error of CNC machine need to be calculated, and thermal error comp
4、ensation 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 and real-time monitoring system based on serial communication has an important significance to impr
5、ove 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 the same time, also the display of these data is real-time. The method also can set temperature ala
6、rming 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
7、 is the main control chip of the design, and LCD1602 is used to display the temperature value, and temperature sensor TC1047 is used for temperature acquisition. Temperature sensor output voltage will by RC filter circuit and amplifier circuit which is composed of operational amplifier OP07, and the
8、n through the A/D conversion .finally, through the RS232 serial port sent the digital quantity to upper computer for data processing and display, and the upper computer is wrote by LABVIEW. Can set the temperature data acquisition rate, and can set temperature limit through upper computer, and the c
9、ollected data can be stored your computer in TXT or XLS format. The design of hardware circuit is based on stable, viable, low-cost design ideas. And the design of software uses modular method. And finally by finishing and debugging of the circuit, we verify the feasibility of the design and also we achieve to the expected results of the design. Keywords: serial communication; LABVIEW; CNC machine; thermal error; multi-channel temperature acquisition