If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
RS232
2 posts
• Page 1 of 1
RS232
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
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 1125 times
- mdc2011
- Posts: 7
- Joined: Sat Dec 17, 2011 9:46 pm
Re: RS232
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?
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 1097 times
- DSP
- Posts: 150
- Joined: Fri May 14, 2010 10:55 pm
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 75 guests