modbus connection issue

If you have a question about the software please ask it here.

modbus connection issue

Postby girogiri » Fri Oct 29, 2021 10:04 am

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
Attachments
M20002.txt
(1.01 KiB) Downloaded 240 times
girogiri
 
Posts: 35
Joined: Fri Jun 19, 2020 2:50 pm

Re: modbus connection issue

Postby dezsoe » Sat Oct 30, 2021 6:33 am

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.
Attachments
M1306.txt
(3.46 KiB) Downloaded 215 times
M1044.txt
(1.77 KiB) Downloaded 207 times
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 49 guests