I'm slowly converting an Emco 5 CNC to LinuxCNC, replacing all the electronics.
For now it's a cheap LPT board, 3 DM542 steppers and a cheap Atom board driving it, LinuxCNC 2.7.11
Finally I've been able to get it to run as it should, even getting the toolchanger module to work. Sorta...
First of all there appears to be a long delay after a forward rotate, before it does the backwards rotate against the pawl. It feels like 2-3 seconds. But I can't find this pause anywhere in the code?
Second, the change works as long as I don't move more than 3 steps, but if I do like M6T6 while T2 was active the turret will try to spin backwards
I've modified the toolchanger.comp code, replacing all the references of 8 positions to only 6 and both the even and uneven steps are declared as 31.0 degrees. I've also had to set fudge factor to 2 to get it to lock properly.
The modified file is attached, I'd appreciate any pointers.