A control system manages and regulates the behavior of a device or a system. There are many types of control systems: open-loop, closed-loop, logic, two-point, linear, proportional, and PID. This article discusses the two-point controller, also known as a Bang-Bang controller or On-off controller because once a predetermined threshold or parameter’s value is met, it turns off (or turns on). Think of your home’s HVAC and A/C units. When the home’s temperature drops below the value that you have set for it, it kicks on the heater. When it returns to that point, the heater turns off. Simple enough, right?
您如何操作两点控制器?
操作两点温度控制器需要一个能够测量温度和一个数字输出位的数据采集设备。最近被Digilent获取的测量计算plenty of devicesthat do just that. Devices such as the E-TC, TC-32, USB-5201, USB-5203, WEB-TC or WEB-TEMP can run autonomously by usingInstaCal。可以将它们配置为设置传感器类型,温度限制和警报(以控制数字IO)。这些设备一旦没有计算机的电源来衡量温度,并就特定数字位的数字逻辑状态做出决策(听起来像我们上面概述的两点控制器,对吗?)。
家heating systems usually run on 24 VAC. This is because the control signal can be more than 10 feet from the heating system. A DC signal can show signs of attenuation when running the signal through more than 10 feet of wire. AC voltages can travel much further, but it doesn’t have to be as dangerous as using 120 or 240 VAC. 24 VAC is the standard. FYI, most doorbells run on 24 VAC. You can run the wire as far as you need, and there is no degradation to the signal.
InstaCal指这些设置警报,that is one use. Another use is to use them to operate a closed loop system using any of these devices as a two point controller. As stated many HVAC systems require a 24 VAC signal to be operated. Here you see in most cases, the alarm (digital out) signal is a 5 V TTL logic signal, with low current. In all cases, none of the above can output an AC voltage. To remedy this, you can add a transistor driver and/or relay or TRIAC to control an HVAC or any other required control signal.
Once the unit is configured, click OK, and close InstaCal.
Below is a schematic for how you might wire an E-TC to a type T thermocouple, solid state relay and heater.For the purposes of discussion, let’s use a thermocouple input on an E-TC utilizing a T type thermocouple. For control we’ll use a digital output to control a fictional 120 VAC heater. The application will be created first in DASYLab, then LabVIEW, and finally in VB.NET.
The E-TC and external wiring to the heater:
Figure 3 – External Wiring to the Heater
接下来,在dasylab。There are some additional settings and options used here, but lets keep focused on the process itself.
Figure 4 – DASYLab Two Point Control Worksheet
Figure 5 – DASYLab Two Point Control Layout
If you are using LabVIEW, that’s no problem. It doesn’t have a specific two-point controller VI, but that can easily be resolved by using a Less Than/Equal To VI as the decision maker (as seen below):
Figure 7 – And the Front Panel
使用通用库
Writing a program in Visual Basic .NET using the Universal Library provides greater flexibility. In DASYLab and LabVIEW, there are a few more things going on that you don’t see, like what’s being handled by the DASYLab and LabVIEW environments (finding the device, handling of errors, etc.). For device discovery, all the user needs do is pick the device from the list provided. In syntax programming for a VB app, the programmer and user can be the same person, and so the programmer/user has to generate all the code, or get it from another example app. The programmer will usually write the code segment once, and use it in as many places as possible making slight changes along the way. This is exactly what we have done below. Although the device discovery and error handling routines have been written, we’re not going to show them here, but that code can be examined and freely usedHERE。未显示的另一件事是LED,温度计和带状图背后的代码。
这是常规的Timer_tick事件使用to loop through reading the thermocouple, determine if the two-point controller should be on or off, and operate the digital bit controlling the relay and heater:
If ulstat.Value <> MccDaq.ErrorInfo.ErrorCode.NoErrors Then
errhandler(ulstat)
出口子
End If
And the form view, where you can adjust the set point and monitor the performance of your system:
图8 - Visual Basic .NET形式视图
Conclusion
As you can see, using MCC temperature measurement devices and software products provide many ways to resolve the need to implement a two-point temperature controller. Pick the combination of hardware and software to meet your specific needs.
3 Comments on “Configuring A Two-Point Controller for Temperature”
Your examples seem to have neglected to provide hysteresis, which is usually essential to a 2-point controller. You either need two set points (slightly above and slightly below the desired temperature) or some timing delays to keep the output from chattering. The standard mechanical thermostats generally had about 1°–2°F of difference between the two set points (though some were adjustable). When between the set points, the current state (on or off) is maintained—when the temperature drops below the lower set point, the heater is turned on, and when the temperature rises above the upper set point the heater is turned off.
Your examples seem to have neglected to provide hysteresis, which is usually essential to a 2-point controller. You either need two set points (slightly above and slightly below the desired temperature) or some timing delays to keep the output from chattering. The standard mechanical thermostats generally had about 1°–2°F of difference between the two set points (though some were adjustable). When between the set points, the current state (on or off) is maintained—when the temperature drops below the lower set point, the heater is turned on, and when the temperature rises above the upper set point the heater is turned off.
你好。看来您是这个领域的专家。请你能帮我吗?我有一个学校项目,目的是对FPGA进行编程,该FPGA将收集Ambiant温度并显示温度的曲线。
please share full details with application note and budgetary prices