Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending info to com port???

Status
Not open for further replies.

Dorff

Programmer
Mar 13, 2002
72
CA
I have a function that allows me to send information to a com port but unfortunately the commands such as line break are being ignored. Anyone know anything about this?

function openComm
If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
'MSComm1.Output = CHR(2)&"r"&CHR(13)
MSComm1.Output = CHR(2)&"L"&CHR(13)
MSComm1.Output = "1B9305000500005"&"021117000000" & vbCrLf
'MSComm1.Output = "STX Z CR"
MSComm1.Output = "E"&CHR(13)
MSComm1.PortOpen = FALSE
end function Ryan
rmindorff@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top