Jump to content
Sign in to follow this  

Com Rx and Parsing Buffer

Recommended Posts

Im using a unistream 7 to communicate over serial with a pump. I am able to set settings over using the COM Tx and Message composer, however I am encountering issues with the COM Rx command. 

I can set rates and volumes without a problem, however I want to also grab the max rate and volume from the pump at the start of the app or when a user pushes a button. I should be able to send "read limit parameter", which then returns the max rate, min rate, max volume, min volume, The following is the return from putty.

read limit parameter
29.12145 0.00010 29.31703 0.00269

However it often takes pushing the button two times to send the command to get a response back. Does the buffer need to be cleared after a read and if so, whats the easiest way to do that? Also, the message that comes back is cut off in the buffer. I only see "read limit parameter" on the receive message. The numbers do not show up in the buffer. I am using the store buffer into tag command to show the information in a string box on the HMI.

Ive tried changing the buffer size but it still doesnt help. Any other suggestions on where to investigate the timing issue and the missing data issue?




Share this post

Link to post
Share on other sites

There is no need to clear the Buffer but according to what you wrote, but if your message is cut off, so it`s sounds like that the Buffer is to short.

Does "read limit parameter 29.12145 0.00010 29.31703 0.00269" is the full message?

I have added our example project that might help you: UniStream_070_Message_Composer_Example.ulpr

Easy was to check the Sent/Received message is via "Hercules" software.

You can check our video tutorial on message composer:


hercules_3-2-8 (1).zip

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...