Analog inputs through MODBUS to control overrides?

This Section is for users to discuss hardware

Analog inputs through MODBUS to control overrides?

Postby eMTea » Wed Nov 23, 2022 6:37 pm

Hi!
Is it possible to use analog inputs through modbus, to control feed/speed/rapid overrides?
Or use a rotary encoder, maybe through a micro controller, to do the adjustments or simulate + - button presses?
eMTea
 
Posts: 24
Joined: Sun Jun 26, 2022 6:19 pm

Re: Analog inputs through MODBUS to control overrides?

Postby dezsoe » Wed Nov 23, 2022 10:28 pm

You can use any Modbus device. For serial Modbus I use Arduino Nano, for Ethernet the Mega is needed. (The Nano does not have enough memory for Ethernet Modbus.)
dezsoe
 
Posts: 2080
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Analog inputs through MODBUS to control overrides?

Postby eMTea » Thu Nov 24, 2022 12:04 pm

OK!
But in the UCCNC software, can I map the analog values to a VAR, and attach that var to the overrides?
eMTea
 
Posts: 24
Joined: Sun Jun 26, 2022 6:19 pm

Re: Analog inputs through MODBUS to control overrides?

Postby dezsoe » Thu Nov 24, 2022 12:58 pm

It's more easy. If you use an Arduino then it will return you 0..1023 from the analog input. You need a macroloop which scales this 0..1023 to 0..300 and write the value into the FRO or SRO field. That's all.
dezsoe
 
Posts: 2080
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Analog inputs through MODBUS to control overrides?

Postby eMTea » Thu Nov 24, 2022 2:44 pm

Great! Thank you!
eMTea
 
Posts: 24
Joined: Sun Jun 26, 2022 6:19 pm


Return to Hardware

Who is online

Users browsing this forum: No registered users and 9 guests