MangoAutomation / modbus4j

A high-performance and ease-of-use implementation of the Modbus protocol written in Java. Supports ASCII, RTU, TCP, and UDP transports as slave or master, automatic request partitioning and response data type parsing.
GNU General Public License v3.0
897 stars 370 forks source link

How can I get the modified value immediat #33

Open woniu4500 opened 5 years ago

woniu4500 commented 5 years ago

when I use a thread to write the value , and read the value in other thread, I find the value need to wait a few second to change, so I want to ask how can I get the modified value immediately !

ghost commented 5 years ago

you can't get the value immediately,this is decided by communication level,modbus is a ask-response model ,it need time.