I was all ready to swap to stepgen 06 to see if that worked, but something was itching at my mind to try first. Was it in the manual?
DIR must be ahead of PUL effective edge by 5µs to ensure correct direction
Pulse width not less than 1.5µs
Low level width not less than 1.5µs
The first point is moot, I don't need to stop on a dime to change direction
The other 2 points there's nothing there, that's 1500 nanoseconds and I have alloted 2000
BUT why did the micro controller work? Then I remembered, the library I used for the micro controller:
luni64.github.io/TeensyStep/documentation/rotateControl/
defaults to step pulse width of 5µs and I never changed this because it "just works" (tm)
I decided to change only one parameter; steplen from 2000 to 5000 and try it. I nearly jumped out of my skin when the motor started moving because I wasn't expecting it.
So "Hello World"(!)
Next tasks will be to turn this into an angular axis velocity mode setup, maybe make it a spindle for ramp up ramp down? Then amalgamate this into the lathe setup thats running on the G540 on P1.
Lot's of opportunities for me to screw up yet again, so I'm sure I'll be back with more (stupid) questions.
Thanks Tommy and Peter for your help and patience so far.
I'm attaching the working Hal and ini, the latter has 2 changes the aforementioned steplen and I changed the step scale to positive.