M
My PC tool is VB. I want to receive a data string from theta Controls BTC-9800 PID controller. I tried MSComm in VB. we are using RS-485 to Rs232 coverter for communication between controller & PC Following are the settings of comport private sub Form_Load() MSComm1.comport= 1 MSComm1.settings= "2400,n,8,1" (same settings as for the modbus protocol) MSComm1.InputLen = 0 MSComm1.PortOpen = TRUE End Sub on timer event I send the ascii value of address of controller . the address of controller is set to "1" Now I want to check that after addressing the controller it shall give me some response string. so how can i write the code in VB for this communication? Since i don't want to control any operation of that controller and just want to retrieve the string after a constant period, i will be happy if you explain how to retrieve only the string from the controller