- GCode and Part Programs
- O Codes (subroutines) and NGCGUI
- Call external subroutine not working in recent versions of LCNC
Call external subroutine not working in recent versions of LCNC
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
Unfortunately I can't reproduce the issue here with the checkers12 G-code file. Possibly it is an interaction between that and tolchange3? Can you attach the toolchange3 file and I will try adding that to my test config here. (At the moment _my_ toolchange3 just contains
O<toolchange3< SUB
(DEBUG, That Worked OK)
O<toolchange3> ENDSUB
Please Log in or Create an account to join the conversation.
- shipmodeller
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 3
100% failure rate with the scenario I indicated
And again.. my revision of Axis code is pre1-4559
Please Log in or Create an account to join the conversation.
- shipmodeller
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 3
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
It's interesting to note that the toolchange3.ngc ALSO has the % front and back
Indeed, and removing them makes things work again (with them I _can_ reproduce your issue)
I have a vague memory that % shouldn't be used in an external subroutine file, but I had forgotten it until just now.
I wonder if that is documented anywhere?
Please Log in or Create an account to join the conversation.
- shipmodeller
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 3
Thank you for your patience and assistance.
Oh, and since the Post processor is generating the % front and back, then any subroutines I generate, and I do have a few, are going to have the % front and back. Yes, I could change the post processor.. but ...... Consistency in format is always a great coding mantra.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
(I just tried it)
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
Please Log in or Create an account to join the conversation.
- shipmodeller
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 3
Also, I started to go through the sample GCode that is supplied in the sample directory, and a few of them will not load correctly anymore. If I have time today, I will make a list. I thought LinuxCNC had regression test cases? I would create a separate topic for that issue.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
- Posts: 23170
- Thank you received: 4860
I am not sure what you mean. I have submitted a bug report, how does what you suggest differ?May I then assume that you will enter a defect on this topic into the LinuxCNC stream?
Some need to be touched-off to work properly. Some may exceed the bounds of your machine.Also, I started to go through the sample GCode that is supplied in the sample directory, and a few of them will not load correctly anymore. If I have time today, I will make a list. I thought LinuxCNC had regression test cases? I would create a separate topic for that issue.
Which ones don't work, and what is the error message?
Please Log in or Create an account to join the conversation.
- shipmodeller
- Topic Author
- Offline
- Senior Member
- Posts: 55
- Thank you received: 3
Thank you'
Please Log in or Create an account to join the conversation.
- GCode and Part Programs
- O Codes (subroutines) and NGCGUI
- Call external subroutine not working in recent versions of LCNC