Am 23.08.2013 um 14:13 schrieb andy pugh <[email protected]>:

> On 23 August 2013 11:50, Michael Haberler <[email protected]> wrote:
> 
>> all of this can be achieved without any C++ changes, by just using 
>> documented methods as outlined here:
> 
> Are you sure? One feature of G71 is that it interprets a block of
> G-code as defining a profile, but then doesn't actually follow the
> moves in that profile.

We had a similar profile discussion about a year ago, the proposed solution I 
suggested was:

  
http://git.mah.priv.at/gitweb?p=emc2-dev.git;a=shortlog;h=refs/heads/list-recorder-by-remap

This was about a patch with severe breakage potential on label semantics and 
then some. The suggestion wasnt taken up because of a personal preference for 
C++ over Python, after which I rested my case.

> I can see that that might be possible in Python, but not as a G-code
> based G-code remap.

why? all fields in a block are exposed in Python and open for alternative 
interpretation during a remapped code.


> Also, as is clear in that forum thread, not everyone wants to have to
> install chunks of code or patch the source to have access to what is a
> moderately standard G-code.

sure, that was the reason why extensability of the interpreter was on the 
desired feature list, and why I put considerable effort into making it work - I 
have no idea why folks refuse to look at whats there and go straight to 
fiddling C++ code. Thats what plugins are all about, I would think.


> What little thought I have given to G71 (and friends) begins with
> adding an extra O-word "O100 BLOCK / ENDBLOCK" to define a chunk of
> code (and provide an ID number for it) that is skipped by the normal
> G-code parser, but that can be interpreted by a special routing (the
> same idea would work for a mill-pocketing routine)

Have a look at the list-recorder-by-remap code. The basic idea is to mirror the 
codes used in the profile definition:

http://git.mah.priv.at/gitweb?p=emc2-dev.git;a=blob;f=configs/sim/remap/list-recorder/list-recorder.ini;h=379e96eb0d041ec22efb09fc0c186dcfdecb55d4;hb=65e9a3087223a196147d74625f715700cbe5d683#l99

so the 'recording version' of G0 becomes G0.1, G1 becomes G.1 etc. 

line 20 onwards shows the recording method: 
http://git.mah.priv.at/gitweb?p=emc2-dev.git;a=blob;f=configs/sim/remap/list-recorder/nc_files/list.ngc;h=9609fccc7924566dbe4739fe2a5443684f01baf4;hb=65e9a3087223a196147d74625f715700cbe5d683

line 30 and 35 show the 'dump profile' and 'replay profile' operations.

The is no need whatsoever to invent new block semantics, or fudge label 
semantics as proposed at the time and here. It is all linear execution.

No breakage potential with new ad-hack control structures, all documented, 
doable now, examples available. 

--

Flatly I dont get it why folks just go straight to patching around in C++ code, 
and inventing bizarre new control "features" instead of reading a manual and 
trying examples, maybe ask a question on the list before going about it.

- Michael

> 
> I am not clear how the G71 in that patch works, is there any
> documentation for it? What prevents the G-code interpreter from
> executing the N-numbered lines?



> 
> -- 
> atp
> If you can't fix it, you don't own it.
> http://www.ifixit.com/Manifesto
> 
> ------------------------------------------------------------------------------
> Introducing Performance Central, a new site from SourceForge and 
> AppDynamics. Performance Central is your source for news, insights, 
> analysis and resources for efficient Application Performance Management. 
> Visit us today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to