Meaning of flush error received from mod-bus slave

  • Thread starter Thread starter Nikhil N
  • Start date Start date
  • Tags Tags
    Error
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
8 replies · 4K views
Nikhil N
Messages
80
Reaction score
2
I have a PC(as master) and a compressor(as slave) in modbus communication. I am using 1000ft cable and I want to analyze the interference effect on the data communication error. I am coupling burst signals produced by the relay switching and I could observe the level of burst to be ~50V. When I am coupling this bursts I am getting error messages from slave. The type of error is 'FLUSH'. I need to know what is mean by the flush error
err.PNG
 
Engineering news on Phys.org
I don't see anything about Flush in the Exception Codes at the wikipedia page about Modbus:

https://en.wikipedia.org/wiki/Modbus

What is your physical layer? Doubly-terminated RS-485? How are you coupling the noise into the cable? What cable are you using, and what value of termination resistors are you using?
 
berkeman said:
I don't see anything about Flush in the Exception Codes at the wikipedia page about Modbus:

https://en.wikipedia.org/wiki/Modbus

What is your physical layer? Doubly-terminated RS-485? How are you coupling the noise into the cable? What cable are you using, and what value of termination resistors are you using?
I already saw this, but this function is defined if developers are using libmodbus library right? Will that error description be same even if libmodbus library being not used? I didnt see such error definition in modbus.org
 
anorlunda said:
Wow. I can only guess. Could it be that a buffer got full and the contents were flushed before resuming?

I think the only one who can tell you for sure is the software's author.
So what do you think, can I correct this error by modifying via software means? I mean with the help of developers?
 
Last edited by a moderator:
Nikhil N said:
So what do you think, can I correct this error by modifying via software means? I mean with the help of developers?

I think your evidence is too weak to guess at a remedy. You need to investigate more to find the cause.

Have you contacted the manufacturer?
 
Last edited by a moderator:
anorlunda said:
I think your evidence is too weak to guess at a remedy. You need to investigate more to find the cause.

Have you contacted the manufacturer?
I am new to this area, what kind of investigation you are suggesting to find the cause? I am not getting the idea
 
You need to find the people who wrote that "FLUSH" error message and ask them what kinds of things could cause that.

Nikhil N said:
I am using 1000ft cable and I want to analyze the interference effect on the data communication error. I am coupling burst signals produced by the relay switching and I could observe the level of burst to be ~50V.
That sounds pretty ambitious for a newcomer.

It could be "the interference effect on the data communication" is to cause FLUSH errors. :smile:

Seriously, the interference could cause data communication errors which means retries, which causes buffer overflow, which triggers FLUSH. To accomplish the research that you described implies pushing things to the margins. I would think that you need to know everything about the hardware and software, even to the extent of writing all the software yourself. Otherwise, how will you tell the difference between anomalies your research is seeking and faulty equipment?
 
  • Like
Likes   Reactions: Nikhil N