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?
Thanks