Page 1 of 1

RS232

Posted: Fri Jan 06, 2012 3:48 pm
by mdc2011
Hello,

I am trying to communicate to a testing machine using flowstone 2 through a Com Port RS232. I'm using the Com port component as per attached file.

I can send a read command followed by a <CR> using a new line component and get a response back through the log.

When I do it a second time, it comes back with "?", in the manual this is an error as it did not understand the message.

It is strange I have to reboot to get it to work once, as the software that comes with the machine works as normal.

When I reboot the computer it works for the first time again, then a repeat. I've been considering where the Flow control is for RS232, as the flowcontrol should be set to none. Do I set this in flowstone?

As I am new to RS232, I know my ASCII commands need a <CR> to send but could they also need a <CR> or line feed for incoming messages?


Any examples relating to RS232 and how you manipulate/handle the response into channels or buses would really assist me.

Thank you

Re: RS232

Posted: Fri Jan 06, 2012 8:00 pm
by DSP
If your incoming data needs a <cr> then you need to set the Terminator value to 13.

Also a String Queue on the incoming data helps capture everything.

You have 2 stop bits is this correct? it is usually 1 (set to '0' = 1 stop bit)

Try this?