Modbus Master Plugin Recommendations

Post anything you want to discuss with others about the software.

Modbus Master Plugin Recommendations

Postby iOne » Sun Mar 30, 2025 9:51 am

Hi CNCDrive / All,

As per my previous post I just switched from ModbusEZ to Modbus Master Plugin. I noticed that that the EZ running on 1.2115 is much faster to react than the Master Plugin running on 1.2118. Sometimes it takes a couple of seconds to start/stop the VFD even if I press the "reset" or "cycle stop" buttons. For the time being I am going to assume that it is a problem with the plugin settings or the macroloop controlling it. So I would appreciate a couple of suggestions RE the following, so I can debug a bit the system:

- What is the recommended setting for the Modbus Master Plugin "Loopinterval(ms)"? I am not sure if it is my perception but counterintuitively it appears to work faster with 100ms than with 20ms?
- Is there an advantage or disadvantage on running in the same macroloop the writting commands for the VFD and reading the variables table in the same script or should I separate them in to two, one for writing and one for reading the data of the VFD and introduce a delay(thread.sleep) say 1 second for the reading registers so I do not overload the system with constant readings? Should the writting macroloop also have a small delay between loops?

Thank you in advance for any help.
iOne
 
Posts: 38
Joined: Fri Sep 02, 2022 4:56 am

Re: Modbus Master Plugin Recommendations

Postby cncdrive » Sun Mar 30, 2025 11:47 pm

Macroloops always have a 40msec delay between loops, this is built in, but you can add delay yourself for example at teh end of your macroloop code, a Thread.Sleep, this way you can have a 40msec or higher loop time.
Modbus Master loop interval is the delay between the read/write cycles of the Modbus loop.
cncdrive
Site Admin
 
Posts: 5198
Joined: Tue Aug 12, 2014 11:17 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 11 guests