Author Topic: Ethernet output buffer?  (Read 5423 times)

EDGAR

  • Jr. Member
  • Posts: 60
  • Automating concepts around the world!
    • View Profile
    • Kinemics
Ethernet output buffer?
« on: August 28, 2014, 07:38:55 AM »
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
Low cost Modbus OPC DA Server, supporting Modbus RTU, ASCII, and TCP. Download your demo today! Go to www.kinemics.com/modbus.

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Ethernet output buffer?
« Reply #1 on: August 28, 2014, 11:56:29 AM »
The problem is likely to be on the server side. Are you writing your own server script? Can you use a wireshark to capture the TCP/IP frame that your server receives?
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

EDGAR

  • Jr. Member
  • Posts: 60
  • Automating concepts around the world!
    • View Profile
    • Kinemics
Re:Ethernet output buffer?
« Reply #2 on: August 28, 2014, 01:31:22 PM »
Thanks, I will send you the captured session later today.

Ed
Low cost Modbus OPC DA Server, supporting Modbus RTU, ASCII, and TCP. Download your demo today! Go to www.kinemics.com/modbus.

EDGAR

  • Jr. Member
  • Posts: 60
  • Automating concepts around the world!
    • View Profile
    • Kinemics
Re:Ethernet output buffer?
« Reply #3 on: August 28, 2014, 06:45:07 PM »
You are 100% correct, we completely overlooked the buffer on the server side. Everything is working fine now...

Thanks,
Ed
Low cost Modbus OPC DA Server, supporting Modbus RTU, ASCII, and TCP. Download your demo today! Go to www.kinemics.com/modbus.