S
Hi!! I have a problem , i request all of your help!! My VBCode doesnt work! I need to communicate to a Gas Analyser which supports MODBUS RTU. The instrument works with MODTEST utility of M/s Daniel Europe. Not with my VB code. with modtest software my query was 010300000001840A and the response from the device was 01030203BFF904 Find below the code sample i was working on In the MSComm Control i left the settings as commport:1 settings:9600,n,8,1 Handshaking: ComNone InBufferSize:1024 OutBufferSize:512 InputLength:7 DTR enable =TRue Private Sub CmdQuery_Click() MSComm1.Break = True MSComm1.CommPort = 1 MSComm1.PortOpen = True MSComm1.Output = "010300000001840A" MSComm1.InputMode = comInputModeText TxtResponse.Text = MSComm1.Input End Sub Using the Daniel Modtest utility i got the following response string from the analyser 01,03,02,03,BF,F9,04. bUT THERE is no response from the analyser. please help. please give your Email ID also . I feel some problem is with the code, please advice / suggest any remedy in this regards by srinivas