Error when ending a programm

More
6 years 1 week ago #186480 by MatthiasF1210
Hi,

since I am in the final testing of my machine after I did the upgrade to 2.8 I have some minor things, which I can't solve.

If I abort a NC-Program (by pressing the red X button), I get the error "Failed to find sub 'Oon-abort' before EOF". This looks like an typo, but I can't find it....

Attachment not found



Thanks

Matthias

Please Log in to join the conversation.

More
6 years 1 week ago #186495 by MaHa
Replied by MaHa on topic Error when ending a programm
In .ini file, the entry should be as

[RS274NGC]

ON_ABORT_COMMAND=O <on_abort> call

and 'on_abort.ngc' must be in the subroutine path

Please Log in to join the conversation.

More
6 years 1 week ago #186508 by MatthiasF1210
Hi,

my ini File
Code:
ON_ABORT_COMMAND=O<on_abort> call

my on_abort.ngc
Code:
% O<on_abort> sub G90 G40 G49 O<on_abort> endsub %

I just added a Button in MDI for the "on_abort" macro. It works as expected.

See my ini File attached.

Please Log in to join the conversation.

More
6 years 6 days ago #187191 by newbynobi
Does the macro work if you just enter the command in the MDI entry?

Norbert

Please Log in to join the conversation.

More
5 years 11 months ago #188325 by linux_tux
Hello,
I had a similar problem, I had a% at the beginning and a% at the end in the main program. I deleted them and no more error messages.

Please Log in to join the conversation.

More
4 years 8 months ago #234574 by Ritterchen
A bit older thread I know - to automate that I changed the post processor and updated the Fusion 360 lines:
& Remember this requires LCNC >= 2.8.0 , before there was a tool limit inside LCNC !

#759
if (tool.number > 99)
to
if (tool.number > 999)

#877
if (lengthOffset > 99)
to
if (lengthOffset > 999)

#1172
if (d > 99)
to
if (d > 999)

Hope it helps the next person :)

Please Log in to join the conversation.

Time to create page: 0.175 seconds
Powered by Kunena Forum