>
> no, there is no bracketing of a 'interpreter run' - which makes it hard to
> tell program end from a queue underrun
>
> it is a deficiency which should be fixed - each 'program run' (MDI or
> stored ngc) should get its own unique id
> it should be fairly straightforward to add corresponding canon + NML
> commands. Just looking at interp state isnt good enough because it wont
> tell anything about commands queued in task.

btw the current motion comp cant tell either:
> http://git.linuxcnc.org/gitweb?p=linuxcnc.git;a=blob;f=src/emc/kinematics/tp.c;h=46d563cefda6afe597452e63dbbc6d80c6607bfa;hb=f142bd4c70b9d6f19ef735d3f2646c4885eb1ba1#l690
>
> What needs to be considered is behavior during a sync operation
> (interpreter waits for motion queue to drain, which isnt a bona-fide
> underrun, but there is a TASK_PLAN_SYNC command which can be passed onto
> motion to tell about that state). The TASK_PLAN_RUN and TASK_PLAN_END
> commands could be passed on (I'd need to look what an MDI command
> generates, but if you crank up DEBUG in the .ini to 0xFFFFFFFF you'll see
> them all)
>
> all of an abort, or m2, or just end-of-file or end-of-command should
> finish such a 'run' which is really a transaction bracket over an input
> sequence.
>

Thanks for clarifying! This sounds like a bigger overhaul than I thought,
but it would certainly be nice for motion to see what's going on in the
interpreter. My solution for now was to assume that if the queue gets
shorter than 3 segments, we're at the end of a program. It does this by
flagging the segment as "finalized", which means the length won't change.
If for some reason we're not at the end, then the next blend will "fail"
since the previous line was already finalized. This way, it will gracefully
fall back to parabolic blending in this rare case, while avoiding the
annoying slowdown at the end of every program. It's become a lower priority
for me, but I plan to revisit this once other milestones are done.

-Rob
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to