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
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