Hello chaps,
I was recently tasked to do a small job milling an ellipse into some plastic, and figured I'd use an ellispe subroutine I'd found around these parts some time back to simplify the coding entry. I had previously used this subroutine in LCNC 2.7.4 without a hitch, invoking the 'o<ellipse> call [p1x] [p1y]...' from a bare bones ngc file.
When I tried running the same code today in LCNC 2.7.12 and calling the ellipse function I got an error in Axis claiming 'EOF in file:
filename calling the subroutine.ngc seeking o-word: o<ellipse> from line 5'.
I've tried simplifying things to chase down this error by creating two test codes. The first is the base ngc from which I'm calling the sub (named Call_test.ngc):
Code:
G21 G17 G40 G49 G54 G64 P0.005 G80 G90 G94
G0 Z50
o<test> call
M2
And the called sub itself (named test.ngc):
Code:
o<test> sub
(MSG, Hello)
o<test> endsub
M2
But the error still persists:
I have confirmed that my PROGRAM_PATH is pointing to the default nc_files directory and my 'test.ngc' subroutine is located in this folder. I'm assuming the error suggests that the subroutine has been correctly called and found, but it's bailing out partway through.
Has something changed in the way subroutine calls are handled between 2.7.4 and 2.7.12 that isn't reflected in the online documentation, or am I missing something else obvious?