Comet system forum

Discussion forum about Comet system products

Temperature, Humdity,

Pressure Transmitters

and Data Loggers

You are not logged in.

#1 23-04-2008 22:59:49

XX1
Member
Registered: 23-04-2008
Posts: 4

Control T3311 with Visual Basic

I just bought a couple of T3311 and I need to write a VB 6 program for them. I successfully install them with:

Protocol Adam ASCII
Address: 01 [hex]
Baud Rate: 9600 Bd, parity disabled
Stop bits: 1
CRC: NO
Computed value: Dew point
Engineering Units

I'm using the MScomm to connect to the PC to the units with the following command

MSComm1.output = "#010" + Chr(13)

The LCD screen of the T3311 turns off (which must means that device is getting something) but I receipt no answer with the input command or using the OnComm event either.

Could you please advice

Offline

 

#2 24-04-2008 13:32:25

MichalV
Administrator
Registered: 18-06-2007
Posts: 132

Re: Control T3311 with Visual Basic

Hello XX1,

Check your COM setting:
- right COM port
- baudrate 9600
- data size 8 bits
- no parity
- handshake off

Don't forget switch on signals RTS and DTR - it's importent for sensor power supply.

Let you have Adam settings like following:
- Address: 0x01h
- BaudRate: 9600 Bd
- CRC: no
- ...

Set MSComm properties and open connection. Sensor LCD screen turns on (if not, you have wrong settings or no power supply - RTS,DTR signals are off).
Then send command "#010" + Char(13).
Sensor send you back the answer.

You may test communication by Hyperterminal utility from your Windows system.

Do you have "Description of communication protocols" document? (available in our website: http://www.cometsystem.cz/english/manua … stxxxx.pdf)


Mike

Offline

 

#3 24-04-2008 17:18:09

XX1
Member
Registered: 23-04-2008
Posts: 4

Re: Control T3311 with Visual Basic

Peter thank you very much for your prompt answer. I'm just a chemist playing with computers and have no experience with hexadecimal (if you can suggest me a internet site for dummy's  I would appreciate). when I tried to change the address it request for only two characters, so what should I type to get the result you mention in your note (0x01h)

Regards

Offline

 

#4 25-04-2008 09:51:56

MichalV
Administrator
Registered: 18-06-2007
Posts: 132

Re: Control T3311 with Visual Basic

Well, address is number 01.

Offline

 

#5 28-04-2008 17:39:24

XX1
Member
Registered: 23-04-2008
Posts: 4

Re: Control T3311 with Visual Basic

Sorry for the silly question, but I'm stoked on the communication, and I thought that probably it should be the problem

-I verified the Com port . I enable/disable RTS,DTR and the screen turn on/off accordingly
-Other settings

EOFEnable: off
Handshaking: 0 (none)
Inputlen 0
InputMode 0 (text)
RThreshold: 1
Settings: 9600,n,8,1

I tested using Hyperterminal but neither have answer with the command #010

I have the "Description of communication protocols" document

Offline

 

#6 28-04-2008 18:15:22

XX1
Member
Registered: 23-04-2008
Posts: 4

Re: Control T3311 with Visual Basic

I found the problem : Jumper must not be closed

best regards

Offline

 

#7 29-04-2008 06:40:57

PetrS
Administrator
Registered: 29-05-2007
Posts: 34

Re: Control T3311 with Visual Basic

It is not the problem, it is property. See device manual page 8. Manual is available at http://www.cometsystem.cz/english/manua … 3_4_10.pdf

Jumper
Jumper is located next to connection terminals. If communication protocol compatible with
standard Advantech-ADAM is selected, its function is the following:
· If jumper during switching ON the power is closed, device always communicates with
following parameters regardless stored setting in the device:
communication speed 9600 Bd, without check sum, device address 00h
· If jumper during switching ON the power is not closed, device communicates in accordance
with stored setting.
· If jumper is closed during device operation, device temporarily changes its address to 00h, it
will communicate in the same communication speed as before closing jumper and will
communicate without check sum. After jumper is opened setting of address and check sum
is reset in accordance with values stored in the device.

Offline

 

Board footer

Powered by PunBB | CZ / SK
© Copyright 2002–2005 Rickard Andersson