On 2014-12-02 18:50, andy pugh wrote: > On 2 December 2014 at 16:12, Marius Liebenberg <[email protected]> wrote: >> Thought as much. I will have to take the current position and work out >> the curve to the end of the travel and then trigger an MDI routine with >> the parameters to complete the spiral travel to the end. >> Can I do that from a python script to HAL? >> I will need a forward and reverse button that must know about the >> current position and then do something with that. > I am not sure that G-code and feed-over-ride is a non-starter. I can > imagine having a PID following a moving target controlled by the > keyboard, and using the velocity output to drive the feed-override > pin. > > But, if sending motion commands from Python is likely to work better, > have a look at: > http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=tests/interp/pymove/oword.py;hb=0c55c195942782b8dcf22caa5ff8f49591880c6d
I could do the same as what you did with LatheMacro. I will have a screen with a lot of parameters and I am sure that I could get the current position through hal somehow. The application is going to be exactly that. A wizard that will generate the Gcode to control the machine with. I just have to add a manual move based on some parameters. The machine is a rifler that can only move along a certain path. Even when you retract the tool. So I guess the manual move can be calculated and a Gcode given via MDI. -- Regards /Groete Marius D. Liebenberg +27 82 698 3251 +27 12 743 6064 QQ 1767394877 ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
