in reply to: can smbdy send me vb code for sending the HART Commannds posted by kamal on 23 July 2005 at 05:06:37.
Maybe you will use something like this:' Pre = 7x Chr(255)
' : FF FF FF FF FF FF FF 02 81 00 00 83
MSComm1.Output = Pre & Chr(2) & Chr(129) & Chr(0) & Chr(0) & Chr(131)MSComm1.Input hold everything you want to read.
Don't forget to set RTreshold. I'm using the OnComm() event.Cheers
Fup