What's the right way to use Modbus?

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

What's the right way to use Modbus?

Postby MattTheNoob » Sat Feb 29, 2020 9:39 pm

I'm reworking my mill, moving from Mach to UCCNC and integrating a PLC. I have the UC300ETH_5LPT talking to the PLC via Modbus and can pass data back and forth.
My question is what is the "right way" to pass UCCNC functionality to the PLC? For example, instead of setting a port and pin for flood coolant, do I add some Modbus commands into the M8 macro? Or do a GetLED and set Modbus values in my macro loop?

I just want to start down the right path and I know a lot of you guys have already done this type of thing. I'll take whatever advice and suggestions I can get.
MattTheNoob
Bostomatic 405 with updated controls... now entering Rev.2
UC300eth-5lpt, ModBus talking to Click PLC, Arduino Gecko servo monitor
Total UC noob.
MattTheNoob
 
Posts: 53
Joined: Sat Nov 03, 2018 3:36 pm

Re: What's the right way to use Modbus?

Postby dezsoe » Fri Mar 06, 2020 10:24 am

You'd better monitor the LED states in a macroloop or a plugin. Use the latest test release (1.2113), because the Modbus master plugin has some problems fixed in that version.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: What's the right way to use Modbus?

Postby MattTheNoob » Sun Mar 08, 2020 3:13 pm

Thanks! Will do.
MattTheNoob
Bostomatic 405 with updated controls... now entering Rev.2
UC300eth-5lpt, ModBus talking to Click PLC, Arduino Gecko servo monitor
Total UC noob.
MattTheNoob
 
Posts: 53
Joined: Sat Nov 03, 2018 3:36 pm


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 17 guests