RS232

For general discussion related FlowStone
Post Reply
mdc2011
Posts: 7
Joined: Sat Dec 17, 2011 9:46 pm

RS232

Post 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
Attachments
Simple Communication Config2.fsm
(1.91 KiB) Downloaded 1232 times
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: RS232

Post 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?
Attachments
Simple Communication Config3.fsm
(1.93 KiB) Downloaded 1219 times
Post Reply