On 02/01/2012 03:34 AM, Erik Christiansen wrote: > On 31.01.12 21:45, dave wrote: > >> To my uncluttered mind ... read blank ... >> is this a good way to set the state of a machine at any given line as a >> precursor to "restart from line no"? > IIUC¹, running an interpreter through the code from line 1 to a given > line, with all external actions suppressed, ought to "set the state of a > machine" for that line, if the gcode takes no input, and does no > probing. i.e. state is dependent only on the running of the gcode. > (But that's just theory, aka a WAG. Experts may differ.) > > Erik > > ¹ I'm not sure what part of the 129 lines quoted constitute "this". ;-) > Unfortunately, if you have control structures that include loops and subroutines, the statement "restart from line no" may have no real meaning for some places in the code. "Restart from the Nth execution of line no" might be more meaningful, although it might be difficult for the user to determine the appropriate value of N.
A better way to get the desired functionality might be to jog backwards along the previously executed path until the desired place in the code has been reached. The display could show the runtime subroutine stack and any important variables with an ability for the user to select items of interest. Of course, the "current" line would be highlighted. Then the user could "say" run from the current position. Ken ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
