Hi Jan,
Here's my code:
==================
If rbcomm1(0) = true then
port = 1
else
port = 2
end if
me.comm1.commport = port
if me.comm1.portopen = false then
me.comm1.portopen = true
end if
comm1.settings = "9600,n,8,1"
comm1.inputlen = 1
reg_00 = Asc(serial_device.comm1.input)
==============================
When reg_00 = 0x0A, it reads as 0x0D and 0x0A. Sometimes it hang up. I appreciate your help.
Mitch