Re: thanks, NC subprograms and tangential axis



Hi Ray,

> I have experimented with with running NC files in sequence using a Tcl/Tk
> popup.  
> 
> I'd modify your suggested program like this: 
> 
> N10 (gosub subfilename) g4 p0.5
> N12 M30
> 
> The dwell gives Tcl/Tk time to read the comment and find the gosub.  When
> it encounters "gosub" it pauses program execution and reads the current
> line number of that file. Then the GUI resets the interpreter and loads the
> subprogram and starts it.  

The 1sec dwell time is no problem, and with a small perl program I could convert
all subprogram calls into gosubs.

> When EMC idles after the subprogram, the GUI again resets the interpreter
> and restarts the main program from the last active line + 1.

What happens with the modes of the modal groups which are active before the
gosub after the main program is restarted at last active line +1 ?

> Swapping programs this way costs about a second total but does provide a
> way to accomplish what you are trying to do.
> 
> If you would like to try it out, I'll clean it up and email it to you.  It
> would be easiest to use with the tkemc GUI but I could build a stand alone
> that you could run with xemc as well.  This offer als applies to anyone
> else on the list.

tkemc would be just fine ....

> If the routine seems to be viable, after I get some initial feedback, I'll
> release it as a script on the dropbox.

I would be able to test this on Monday on my machine.


Max



Date Index | Thread Index | Back to archive index | Back to Mailing List Page

Problems or questions? Contact