Dear all,
I already made microcontroller module that work with RS485 protocol.
I need simple sample script in thin basic.
here is step by step my protocol:
--------------------------------
opening comm
change state of RTS pin for transmiting
send character "H" (without LF CR)
delay
change state of RTS pin for receiving
receiving data
delay
change state of RTS pin for transmiting
show the receiving data
closing comm
end
--------------------------------
in VB6 I use program like:
--------------------------------
Private Sub Command2_Click()
MSComm1.Output = "H"
Call Pause(0.2)
MSComm1.RTSEnable = True
Call Pause(0.2)
at = MSComm1.Input
Call Pause(0.2)
MSComm1.RTSEnable = False
Text1.Text = at
End Sub
--------------------------------
I hope with simple script I can develope my experiment.
thank
regard
hendryawan
Bookmarks