Discussion forum about Comet system products
You are not logged in.
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
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
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
Well, address is number 01.
Offline
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
I found the problem : Jumper must not be closed
best regards
Offline
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