285
« on: September 23, 2017, 05:22:03 PM »
How true about manuals, sigh. Except that they can't be used for wrapping paper these days: they are just electrons.
Back in the days of a certain mainframe, the reply to RTFM was WFM: Which Fine Manual? The shelf of grey 3-ring binders was over a metre long!
Actually, my thread example was a very poor one. An M45x0.5 thread is not that hard to do, because the tip engagement is never large. Try instead an M30x1.5 thread, where the tip engagement can suddenly go from 0.2 mm length to 1.0 mm length. In case you are wondering, yes, recent experiences! The results were horrible.
No, we cannot expect any changes inside Mach3, and I don't think Mach4 can do any better. The PID control has to go into the external engine. Many older-generation servo drives come with that embedded: you bought the motor AND the controller as a package, and there were two thick cables between them (power and encoder). But those were incompatible between companies and hence very expensive. We are now transitioning to much more modern and lower cost versions where the functions have been separated and there is price competition. The digital Step/Dir + PWM interface has become the 'Standard'.
My vision is that the code in the existing ESS could be upgraded to take encoder signals from the spindle motor and to PID control the motor to the accuracy of the encoder (via PWM). That would be a pure firmware upgrade in the ESS (you load the firmwarte every time Mach starts), plus the allocation of 2 pins on, say, port 2, for the encoder. This means you would have to fit some sort of encoder to the spindle motor, but that is not that hard to do. At the very least, you already have a primiitve encoder there to give the Index pulse. Just add slots!
Technically, this is possible. The Q is whether the FPGA in the ESS has enough spare gates to implement the high-speed code to do it. That is what Andy at Warp9 is working on.
Could the average novice handle this? I think so - because the ESS could come set up with some conservative default values for the PID control. He would need to enter ONE number into the ESS Config: the number of slots in the encoder. If he can't do that ... he should try gardening.
Cheers
Roger
Cheers
Roger