What an awesome project log, thank you very much for sharing, you have inspired me to get cracking with my machine.
I am going to attempt to hook my vsd up to mach using RS485 like you have, i have brought a USB to RS485 converter. Can you please explain the maths behind setting the Max ADC count to 10000? any other info you have on making this happen would be appreciated.
Keep up the good work.
Thanks! The RS485 trick is easy, make sure you watch the ModBus videos first. The only thing I can tell you, is set the max pully speed to your max RPM. Then set the frequency to reach the max RPM in the ModBus setup. Mach3 will convert and send out the the frequency required for the target RPM.
I did find that some RPMs were not working, not sure if its a Mach3, ModBus or VFD issue. It was only on frequencies that had a rounding up that I had a problem with (ie 75Hz worked, 75.3Hz worked, but 75.6Hz would NOT) To work around this, I added a check to the spindleSpeed.m1s macro to check for this rounding error and adjust the output frequency up until the math was correct (maybe 1 or 2 RPMs more)
Thanks,
JH