Error when ending a programm

More
18 Oct 2020 17:46 #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....



Thanks

Matthias
Attachments:

Please Log in or Create an account to join the conversation.

More
18 Oct 2020 19:56 #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 or Create an account to join the conversation.

More
18 Oct 2020 20:38 - 18 Oct 2020 20:48 #186508 by MatthiasF1210
Hi,

my ini File
ON_ABORT_COMMAND=O<on_abort> call

my on_abort.ngc
%
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.
Attachments:
Last edit: 18 Oct 2020 20:48 by MatthiasF1210.

Please Log in or Create an account to join the conversation.

More
25 Oct 2020 14:42 #187191 by newbynobi
Does the macro work if you just enter the command in the MDI entry?

Norbert

Please Log in or Create an account to join the conversation.

More
04 Nov 2020 17:01 #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.
The following user(s) said Thank You: Ritterchen

Please Log in or Create an account to join the conversation.

More
11 Feb 2022 14:41 - 11 Feb 2022 14:43 #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 :)
Last edit: 11 Feb 2022 14:43 by Ritterchen.

Please Log in or Create an account to join the conversation.

Moderators: newbynobiHansU
Time to create page: 0.146 seconds
Powered by Kunena Forum