Error when ending a programm
- MatthiasF1210
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
18 Oct 2020 17:46 #186480
by MatthiasF1210
Error when ending a programm was created 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
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.
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
[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.
- MatthiasF1210
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
18 Oct 2020 20:38 - 18 Oct 2020 20:48 #186508
by MatthiasF1210
Replied by MatthiasF1210 on topic Error when ending a programm
Hi,
my ini File
my on_abort.ngc
I just added a Button in MDI for the "on_abort" macro. It works as expected.
See my ini File attached.
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.
Last edit: 18 Oct 2020 20:48 by MatthiasF1210.
Please Log in or Create an account to join the conversation.
25 Oct 2020 14:42 #187191
by newbynobi
Replied by newbynobi on topic Error when ending a programm
Does the macro work if you just enter the command in the MDI entry?
Norbert
Norbert
Please Log in or Create an account to join the conversation.
04 Nov 2020 17:01 #188325
by linux_tux
Replied by linux_tux on topic Error when ending a programm
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.
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.
- Ritterchen
- Offline
- Junior Member
Less
More
- Posts: 25
- Thank you received: 10
11 Feb 2022 14:41 - 11 Feb 2022 14:43 #234574
by Ritterchen
Replied by Ritterchen on topic Error when ending a programm
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
& 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.
Time to create page: 0.091 seconds