the issue with this approach is: the interpreter is the wrong place to apply 
initial tool state start conditions

assume you somehow set the initial tool number in the interpreter and then you 
turn the machine on:

- you have state of the machine, and state of the interpreter.
- the interpreter initially sync()s to the machine state
- the change of interpreter state gets overwritten right away

with the current hoplelessly convoluted tool logic, the only realistic chance I 
have verified to work is to implement saving and restoring of initial tool 
state for nonrandom TC's is in src/emc/iotask/iocontrol* proper

an outline:

- add an ini option to trigger iocontrol to save tool number somewhere - 
suggestion: start with a separate ini file
- on shutdown, make iocontrol save the tool number if option set
- on startup, if option present, inspect the saved state and set initial tool 
number plus offsets

this will cause the interpreter to pick up the saved tool number and offsets on 
initial sync()


- Michael





Am 21.07.2013 um 11:43 schrieb Andy Pugh <bodge...@gmail.com>:

> 
> 
> On 21 Jul 2013, at 09:19, propcoder <marius.alks...@gmail.com> wrote:
> 
>> tried to 
>> add #5400 (tool_in_spindle) to .var file. It does update the tool number 
>> on the file, but it does not take this value on start-up.
> 
> I don't know if this will work, but I would be trying an M61 T#5400 in the 
> STARTUP_GCODES in the INI. 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to