Axis: if no .ngc file is open (for instance [DISPLAY]OPEN_FILE pointed to a 
non-existent file), and an oword sub is called from MDI like 'o<foo> call', the 
call fails with 'File not open', and the subroutine body is not executed

This is fairly confusing because one would think the interpreter couldnt open 
foo.ngc - which is not the case;  the oword call/return/endsub code assumes 
there *is* and existing, open .ngc file 'to return to' even if EMC falls back 
into manual mode so nothing of the 'file being returned to' is actually 
executed.

I think this should *not* fail, but execute and fall back to manual mode as 
expected.

This isnt just optics the error message - it also makes a procedure-based 
toolchange fail if executed from MDI mode and Axis has no .ngc file open.


my current fix outline:

- A parsed block will be tagged with an MDI flag if executed from MDI mode.
- this flag will modify the osub call to succeed if no .ngc file was open
- it will also modify return/endsub on dropping from call level 1 to just fall 
into manual mode. 
- the modified behaviour will also apply to Tx,M6,M61 commands remapped to 
G-code procedures.

-mah


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to