电热装置
PCL711B采集卡在水温控制中的应用
摘要
水温控制技术在很多工业生产设备和家用电器中广泛应用,控制算法一般采用PID控制,这是工业自动控制中常用的一种控制算法。基于PC的水温控制系统以数据采集卡作为被控量信号的反馈通道和控制量信号的输出通道,是控制器与被控对象之间的关键连接部件。
本文设计了一个基于PCL711B采集卡的水温控制系统,由下位机、上位机、和通讯网络三部分组成。下位机是基于采集卡PCL711B和温度传感器AD590的高精度数据采集系统,功能是对温度的检测与输出控制。上位机采用计算机,与下位机进行数据信息的交互,并显示各路温度值及其曲线、控制参数、设定值等。其中,温度检测单元和可控硅调功控温单元是本文的设计重点。
温度检测单元,根据设计指标的要求我们选择了温度传感器AD590,实现温度采集。
输出控制单元是通过对加热电阻丝的电源通断来实现的,采用可控硅(晶闸管)调功方式。通过MOC3041光耦过零触发器实现对功率晶闸管的过零触发,从而实现对被控对象(如炉温)的PID温度调节。采用PID算法的控制方式控制双向可控硅的导通、关断,调整功率,使之切断或接通加热器,从而控制水温稳定在预设定值上。
关键词: PCL711B采集卡;温度传感AD590;PID温度调节;可控硅调功
ABSTRACT
Temperature control technology iswidely used to control in many industrial production equipment and household appliances. Generally, the PID control algorithm is commonly used in industrial automatic control. The data acquisition card is used for Temperature control system based on PC as a channel. The channels include the feedback channel for the signal of controlevolume and the output channel for the signal of controledvolume. The data acquisition card is the key components connections the controllerwith the target controled.
The paper main designs a brainpower controlling system ofwater temperature based on the Acquisition Card AD590. It consists of up a machine, bottom a machine, and communication network. Bottom a machine is a high accuracy data collection system that bases on the Acquisition Card PCL711B and the temperature sensor AD590 system. Its function is to temperature and output the control. The up a machine is a PC.with the bottom a machine proceeding data information hands overwith each other, combine each road of manifestation temperaturevalue and its curve, control parameter, initialvalue...etc. Among them, the units of the temperature examination and the regulating power of the can-controlled silicon are the points of this design.
For the temperature examination unit, consider of the index request of the design,we choosing the the temperature sensor AD590 to realize temperature collection.
The output controlled unit is achieved by turn-on and turn-off of the power supply of the heated resistancewire, and adopt the regulating power of the can-controlled silicon.via photoelectricity coupling by-zero trigger MOC3041, it can actualize by-zero touch-off to power thyristor, thereby actualize the PID thermoregulation of the under controller(such as the temperature camp stove). The PID control algorithm is used to control of two-way thyristor conduction, turn-off, adjusting the power, cut off or connected to the heater to control thewater temperature has stabilized at pre-setvalue.
Key Words: the Acquisition Cardr; PCL711B; the temperature sensor AD590; the PID thermoregulation;the regulating power of the can-controlled silico
目录
引言1
1绪论2
1.1课题研究背景和意义2
1.1.1数据采集2
1.1.2基于PC的控制系统5
1.1.3温度控制系统的发展5
1.2本课题的研究内容和要求6
2系统方案设计8
3硬件设计9
3.1检测电路设计9
3.2控制电路设计11
3.3系统电源设计14
3.4总体电路设计15
4 PCL711B采集卡介绍17
4.1简介17
4.1.1规格17
4.1.2一般特性18
4.2 PCL711B参数设置18
4.2.1 I/O端口设置18
4.2.2 I/O地址选择19
4.3 D/A范围选择19
4.4连接针头的分配20
5软件设计22
5.1程序设计22
5.1.1温度控制程序设计22
5.1.2界面设计25
5.1.3PID运算程序设计27
5.2 PID程序调试: 29
5.2.1参数选择方法29
5.2.2采样周期的选择31
6水温电热装置分析33
7结论35
谢辞36
参考文献37
方案示意图
流程图
2摘要
3设计所包含文件
4目录
1字数