Hi
I am working on a Wire EDM machine and i need Linuxcnc to control the water conductivity by switching a solenoid valve to divert water through a de-ionising resin filter.
I am measuring the water conductivity (EC) using this setup with an Arduino Uno.
Arduino EC meter
I want Arduino to report the EC to LCNC so that i can control the pumps and valve from one platform
I loaded Mb2hal using this info:
Mb2Hal
Now my problem:
I cant find a decent source of information on how to setup the Arduino code to report a float or u32 value to LCNC. The Arduino code seems to write the input registers to the output registers but i have no idea what these registers contain or how to use them.
On the LCNC side it seems to load without issues and i can see the pins in hal. I am aware of how to change the variable types in Mb2hal, but the default code linked sets up float values so that is ok.
Any tips would be appreciated.
P.S my fallback is to use the remaining arduino pins as paralell bits and link that to inputs on my 7i76E and decode the paralell binary data to S32 in LCNC but this seems a bit stupid...