WINDOWS SETUP ........................................................................ 11
APPENDIX A. USING SIMPTERM..........................................A-1
APPENDIX B. DECIMAL/ASCII TABLE.................................B-1
232DTT1795 ManualTable of Contents
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 3
Chapter 1. General Information
Introduction
The 232DTT is a digital thermometer and thermostat which
operates through an RS-232 interface. Non-volatile registers hold
programmable high and low thermostat settings. Current
temperature is reported by polling the DTT, while thermostat
operations continue as long as the unit is powered.
Features
• ±0.5 °C accuracy and resolution
• High, low and hysteresis type thermostat outputs
• Port-powered from host RS-232 port (RTS & DTR high)
• Thermostat thresholds programmable in non-volatile registers
• Status Register latches if thermostat outputs have tripped
Packing List
Examine the shipping carton and contents for physical
damage. The following items should be in the shipping carton:
1. 232DTT unit
2. One 232DTT 3.5” disk
3. This instruction manual
If any of these items are damaged or missing, contact B&B
Electronics immediately.
Specifications
Communications:
Standard:RS-232 (unit is DCE)
Baud Rate:1200 to 9600 (automatic detection)
Format:8 data bits, 1 stop bit, no parity
Connector:DB-25S (female)
Thermometer Error
±0.5 °C from 0 - 70° C
(±0.9 °F from 32 - 158°F)
±1 °C from -40 °C to 0 °C and 70 °C to 85 °C *
(±1.8 °F from -40 °F to 32 °F and 158 °F to 185 °F)
* The 232DTT is guaranteed to operate from 0-70 °C.
232DTT1795 ManualChapter 11
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 4
Thermometer Resolution
0.5 °C (0.9 °F)
Temperature Conversion Time
1 second
Open Collector Thermostat Outputs
Low (on) voltages:1.2VDC @ 100 mA max.
High (off) voltages:40VDC max.
Power Supply
Port powered with RTS and DTR outputs set high
External power: 12VDC @ 30mA
NOTE: When using an external supply, the supply should be
connected only to specifically labeled power inputs (power
jack, terminal block, etc.). Connecting an external power supply
to the handshake lines may damage the unit. Contact technical
support for more information on connecting an external power
supply to the handshake lines.
RS-232 Connections
The 232DTT communicates using pins 2, 3, and 7 (TD, RD
and GND). However, power is drawn from the handshake lines RTS
(pin 4) and DTR (pin 20). These connections must be present to
power the unit.
Table 1. RS-232 Pinouts
SignalPin
TD2
RD3
RTS4
GND7
DTR20
2Chapter 1232DTT1795 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 5
Chapter 2. 232DTT Functions
Digital Thermometer
The 232DTT continuously measures temperature, with a
new measurement completed once per second. When a Read
Temperature command is received, the DTT immediately reports
back the result of the last measurement completed.
Programmable Thermostat
The 232DTT also functions as a thermostat. Two nonvolatile registers can be programmed. The high threshold register,
TH, is programmed using the !0SH command. The low threshold
register, TL, is programmed using the !0SL command. A complete
command description can be found in Chapter 4. Thermostat
operation is a continuous background function. As long as the unit is
powered, the thermostat outputs will be serviced.
Three open collector outputs provide thermostatic controls.
These outputs are current sinking (low) when on, high impedance
(high) when off.
1. T
user programmed TH register.
2. T
the user programmed TL register.
3. T
TH register and turns off when the temperature is equal to or
less than the TL register. This output allows the user to program
any amount of hysteresis.
- Turns on when the temperature equals or exceeds the
HIGH
- Turns on when the temperature is equal to or less than
LOW
- Turns on when the temperature equals or exceeds the
COM
Remember, these are open collector outputs. They do not
source any current (similar to a contact closure to ground). For
example, to drive a relay with a 12VDC coil with the TCOM output,
connect as follows:
1. Connect +12Vdc to one side of the relay coil.
2. Connect the other side of the coil to the TCOM output.
3. Connect the ground of the 12V supply to the GND terminal
block.
232DTT1795 ManualChapter 23
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 6
+12VDC
DTT OUTPUT
TCOM
GND
12VDC
RELAY
COIL
RELAY
CONTACT
Figure 1. Relay Output Connection
When connecting a mechanical relay coil, or any inductive
load to the DTT outputs, a reverse bias diode must be connected
across the load to protect the DTT output against large voltages
caused by the inductive load.
The DTT outputs can handle a maximum voltage of 40V
and a maximum current of 100mA. Do not use a relay with coil
ratings exceeding these values.
4Chapter 2232DTT1795 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 7
Chapter 3. 232DTT Data Format
The DTT uses 9-bit, two’s complement format to represent
temperature data. The ninth bit is the sign bit. If this bit is a 0, the
temperature is above 0° C. If the bit is 1, the temperature is less
than 0° C. Each bit represents 1/2° C.
Table 2. Temperature/Data Relationships
TemperatureDTT outputhex valuedec value
+125° C
+25° C
1/2° C
0° C
-1/2° C
-25° C
-55° C
Two’s complement format provides a way for digital devices
to handle negative numbers. To convert the two’s complement value
to a meaningful number representing temperature, follow these
steps:
1. Check bit nine. In our case this is the entire first character. If the
character is decimal 0 (NUL), then the value in the second
character is positive and no further complementing is necessary,
go to step 6. If character is decimal 1, then continue with step 2.
2. Use the NOT function of your programming language to invert
(or complement) the value in the second character.
3. We need to insure that we are only dealing with an eight bit
variable. You may be able to define this in your programming
language. To be sure, we can use the AND function to limit our
new value to only eight bits by ANDing the value from step 2
with FFh. This masks off all but the lowest eight bits.
4. Add a 1 to the value from step 3. This completes the two’s
complement portion of the conversion.
5. Multiply our new value by -1. This simply adds the “-” sign to our
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 8
6. To convert to Celsius, divide by two.
7. To convert to Fahrenheit, multiply the Celsius value by 9; divide
the result by 5; then add 32.
In the BASIC language, these steps look like this:
‘DTT data has been stored in CHAR1$ and CHAR2$
negative = ASC(CHAR1$)‘ASCII val of sign char (1 or 0)
reading = ASC(CHAR2$)‘ASCII val of reading
IF negative = 1 THEN
reading = NOT reading ‘invert all bits (complement)
reading = reading AND &HFF‘limit variable to 8 bits
reading = reading + 1‘finish complement procedure
reading = reading * -1 ‘multiply by -1 to add minus sign
END IF
Ctemp = reading / 2 ‘Celsius temperature
Ftemp = (9 * C temp / 5) + 32‘Fahrenheit temperature
6Chapter 3232DTT1795 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 9
Chapter 4. 232DTT Commands
The DTT commands can be issued from a program, or even
typed in from a simple terminal program. Two files are included on
the 232DTT disk to help learn the DTT commands. A sample
program with source code written in QuickBASIC 4.5 demonstrates
all DTT functions and a simple terminal program is also included. In
addition, a simple data logging utility is provided which allows data to
be logged to a file. Appendix A demonstrates how to communicate
with the DTT from the terminal program. A decimal/ASCII
conversion table is included in Appendix B.
Read Temperature
Command: !0RT
Arguments: none
Response: temperature reading in 9 bit two’s complement format
(shown in boldface)
Dec. Example: !0RT<0><46>
ASCII Example: !0RT<NUL>.
Description: The decimal 0 (NUL) followed by decimal 46,
equivalent to an ASCII “.” converts to a temperature of +23° C.
Read Status
Command: !0RS
Arguments: none
Response: contents of 8 bit status register (shown in boldface)
Dec. Example: !0RS<0><66>
ASCII Example: !0RS<NUL>B
Hex. Example: !0RS<0><42> (since this is an eight bit register, it
may be helpful to use hex representation)
Description: The first character (NUL) has no meaning in this
response. Bit 1 is set, indicating normal operation. Bit 5 is clear
indicating the low thermostat has not tripped. Bit 6 is set, indicating
THIGH has tripped since the last !0SC command.
Table 3. Status Register Description
Bit 0X (don’t care)
Bit 1operation
Bit 2X
Bit 3X
Bit 4X
Bit 5Low Thermostat Tripped Flag
Bit 6High Thermostat Tripped Flag
Bit 7X
232DTT1795 ManualChapter 47
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 10
Read High
Command: !0RH
Arguments: none
Response: contents of TH register in 9 bit two’s complement format
(shown in boldface)
Dec. Example: !0RH<0><50>
ASCII Example: !0RH<NUL>2
Description: The TH register contains decimal 0 (ASCII NUL) and
decimal 50 (ASCII 2). This converts to a temperature of 25 ° C.
When the current temperature is ≥ 25° C, the high thermostat output
(THIGH) will turn on.
Read Low
Command: !0RL
Arguments: none
Response: contents of TL register in 9 bit two’s complement format
(response is shown in boldface)
Dec. Example: !0RL<0><36>
ASCII Example: !0RL<NUL>$
Description: The TL register contains decimal 0 (ASCII NUL) and
decimal 36 (ASCII $). This converts to a temperature of 18 ° C.
When the current temperature is ≤ 18° C, the low thermostat output
(TLOW) will turn on.
Clear Status Register
Command: !0SC
Arguments: none
Response: none
Example: !0SC
Description: The Clear Status command resets the DTT. Bits 5 and
6 which latch the thermostat outputs are cleared if the current
temperature is within the bounds of TH and TL.
Set High Thermostat
Command: !0SH
Arguments: 9 bit, two’s complement value to set non-volatile TH
register.
Response: none
Dec. Example: !0SH<0><64>
ASCII Example: !0SH<NUL>@
Description: Sending the decimal arguments 0 (ASCII NUL) and 64
(ASCII @) sets the TH register to a temperature of 32° C. This is a
non-volatile register and will not change until this command is issued
8Chapter 4232DTT1795 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 11
again. After sending the Set High Thermostat command, delay for at
least 10 ms to allow the DTT to program the register.
Set Low Thermostat
Command: !0SL
Arguments: 9 bit, two’s complement value to set non-volatile TL
register.
Response: none
Dec. Example: !0SL<0><33>
ASCII Example: !0SL<NUL >!
Description: Sending the decimal arguments 0 (ASCII NUL) and 33
(ASCII !) sets the TL register to a temperature of 16.5 ° C. This is a
non-volatile register and will not change until this command is issued
again. After sending the Set Low Thermostat command, delay for at
least 10 ms to allow the DTT to program the register.
Table 4. Command Summary
FunctionCommandArgumentReturn Value
read temperature!0RTnone9 bit, 2’s comp.
read status register!0RSnonebyte
read high thermostat!0RHnone9 bit, 2’s comp.
read low thermostat!0RLnone9 bit, 2’s comp.
clear status register!0SCnonenone
set high thermostat*!0SH9 bit, 2’s comp.none
set low thermostat*!0SL9 bit, 2’s comp.none
*NOTE: After “programming” the 232DTT, there is approximately
10ms of down time when the unit will not respond. Do not attempt to
communicate with the DTT for at least 10ms after programming the
thermostat registers.
232DTT1795 ManualChapter 49
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 12
Chapter 5. Software
There is both a DOS program (DTT_DOS.EXE) and a
Windows program (232DTT_W.EXE) which allow you to read the
current temperature in either Fahrenheit or Celsius, as well as set
the upper and lower thresholds.
Installation
To install on your hard drive follow these steps:
• Place the disk in drive A.
• Type A: and press the ENTER key.
• Type INSTALL and press the ENTER key.
Windows Setup
After the software is installed on your hard disk, the
following files should be located in the 232DTT directory:
232DTT_W.EXE, VBRUN300.DLL, and MSCOMM.VBX.
To set up the 232DTT under windows follow the following steps:
1. Run Windows.
2. Select the “FILE” menu under the Program Manager.
3. Select the “NEW” option.
4. From the “New Program Object” window select “Program Item”
option and then select “OK”.
5. From the “Program Item Properties” window:
a) Type in the “Description” box:
232DTT
b) Type in the “Command Line” box:
C:\232DTT\232DTT_W.EXE
6. From the “Program Item Properties” menu select the “OK”
option.
Setup of the 232DTT is now complete. The 232DTT icon should
now appear in the current window. Simply double click on the icon
to execute the program.
10Chapter 5232DTT1795 Manual
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 13
Appendix A. Using SimpTerm
B&B Electronics shareware terminal program, SimpTerm, is
included on the DTT floppy disk. SimpTerm is a powerful
troubleshooting tool which will allow you to communicate through up
to four serial ports at any address or interrupt. You will need to know
the address and interrupt of the serial port that the DTT is connected
to.
To use SimpTerm to communicate with the DTT, follow the
instructions to open the port connected to the DTT.
1. Raise RTS and DTR to power the DTT, or connect an external
power supply.
2. Check that the baud rate is set anywhere from 1200 - 9600
baud.
3. Type the following command, the second character is a zero, all
commands must be in capital letters: !0RT
4. The DTT will respond with two characters indicating
temperature. Room temperature is usually NUL followed by a
character close in the ascii table to a comma. A NUL is indicated
by <0>.
5. To set the TH register to 25° C, follow, type the following:
!0SH<0>2. The decimal value of the ASCII 2 is 50. This
corresponds to 25° C. The NUL indicates that it is to be a
positive value.*
6. To read back the value stored in the TH register, type the
following command: !0RH. If step 5 has been successfully
completed the DTT will respond with <0>2.
* The <0> is actually a NUL character and is not represented by a
keyboard key. SimpTerm allows these characters to be transmitted
using the following procedure:
Hold down the ALT key, type the decimal value (two digits) on the
numeric keypad and release the ALT key. For example, the NUL is
transmitted by: ALT 00 [release ALT].
232DTT1795 ManualAppendix AA-1
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Page 14
Appendix B. Decimal/ASCII Table
DECIMAL to HEX to ASCII CONVERSION TABLE
DEC HEX ASCII KEY DEC HEX ASCII DEC HEX ASCII DEC HEX ASCII
0NUL ctrl @ 3220SP6440@9660 '
11SOH ctrl A 3321!6541A9761a
22STX ctrl B34226642B9862b
33ETX ctrl C3523#6743C9963c
44EOT ctrl D3624$6844D10064d
55ENQ ctrl E 3725%6945E10165e
66ACK ctrl F3826&7046F10266f
77BELctrl G 3927‘7147G10367g
88BSctrl H 4028(7248H10468h
99HTctrl I4129)7349I10569i
10ALFctrl J422A*744AJ1066Aj
11BVTctrl K 432B+754BK1076Bk
12CFFctrl L442C’764CL1086Cl
13DCRctrl M 452D-774DM1096Dm
14ESOctrl N 462E.784EN1106En
15FSIctrl O 472F/794FO1116Fo
1610DLEctrl P 483008050P11270p
1711DC1 ctrl Q 493118151Q11371q
1812DC2 ctrl R503228252R11472r
1913DC3 ctrl S513338353S11573s
2014DC4ctrl T 523448454T11674t
2115NAK ctrl U 533558555U11775u
2216SYN ctrl V543668656V11876v
2317ETB ctrl W 553778757W11977w
2418CAN ctrl X563888858X12078x
2519EMctrl Y 573998959Y12179y
261ASUB ctrl Z583A:905AZ1227Az
271BESCctrl [593B;915B[1237B{
281CFSctrl \603C<925C\1247C|
291DGSctrl ]613D=935D]1257D}
301ERSctrl ^623E>945E^1267E~
311FUSctrl _633F?955F_1277FDEL
232DTT 1795 ManualAppendix BB-1
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 434-7094
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.