Page 1 of 1

modbus connection issue

PostPosted: Fri Oct 29, 2021 10:04 am
by girogiri
Hello,
we are facing some random modbus connection hickups,
our client ( a wemos D1mini) connected via usb cable, sends random values in a modbus cell (master_life_reg) every 500ms ( we also tried to send the random value at every single loop with similar results).
On the UCCNC side there is a macro that checks if the cell value has changed every 2 seconds (modbus loop is set at 100ms)
Every now and then we receive a modbus error but we cant understand why.

attached a stripped down version of the macro involved.
thanks
giorgio

Re: modbus connection issue

PostPosted: Sat Oct 30, 2021 6:33 am
by dezsoe
Hello Giorgio,

Can you assume that if the communication works then the D1 works? Because there are some functions in the Modbus plugin that can help you. Here are 2 macros which use these functions. As I see your macros you don't need too much description, but feel free to ask if anything is not clear.