Hello,
We are on the first stages of testing a new web service that will extend current PLC functionality via the web to interface with other web enable device. During the testing we are noticing that the Ethernet output buffer is not clearing after each write. Is there a function or a procedure to clear the buffer that we are missing?
Example:
//Send test string...
PRINT #4 "This is a long string that contains information about this PLC"
//Run your data read loop here....
//Send another string...
PRINT #4 "This is a great PLC" //but when you look at the server side the text we receive is like this "This is a great PLCg that contain information about this PLC"
We are getting the remaining char in the buffer "g that contains information about this PLC".
Before and after each command we tried the following loop but it still transferring the same.
While (len(X$) > 0)
X$ = Input$(4)
endwhile
Anything else you can suggest? Currently, on the server side we are parsing the string up to the first CR.
Thanks,
Ed