I want to use a control to subscribe to value of a modbus register through datasocket and pass the present register value to other functions. I found that after subscribing, the control shows the present register's value but pass the previous value to others instead of current value. When I put breakpoint into the program, the operation is correct. But when I remove the breakpoint away, that strange thing happens again. It looks as if there is some delay. How can I solve it?
Thank you for your help.
Steven