Is that running with the macro to lock/unlock
? Using the macro it is a sure thing no problem
TO be seamless you have to eliminate the macro right?
There will always be error on a servo, so the goal was to see how much error was added by the lock. The test program contains lock and unlock macros, with no g-code commands between the unlock macro and the 'A' axis move. The release Macro and a G0 'A' move back to back is the worst case scenario. The same program was run with and without air to the lock. Without air, the lock is inoperative and cannot add following error due to release latency.
If by 'seamless' you mean transparent to the CNC control software (MACH in this case), then yes, the Macro has to go away.
There are three basic challenges to making the 4th axis work as I want.
1) a way to run the A axis continuously.
2) operation of the lock function
3) ability to run a high res encoder at high RPM.
For use with Mach3, all of these have been solved. (1: swapaxis board 2: embedded macros 3: step mulitplier, smoothstepper, kflop)
For 'universal' use with other CNC setups, only the first is solved and I am working on the other two. Solving the second challenge for 'universal' use (my current focus) will also benefit Mach by eliminating the need for macros embedded in the G-code by manual editing or modified post proc.