Ncam "Insert G-Code File Command" using Buster - Error
21 Jan 2021 02:46 - 21 Jan 2021 04:20 #196051
by Barry
Ncam Insert G-Code File Command using Buster - Error was created by Barry
Using Ncam's Insert G-Code File command in Buster, I am getting the error message in Axis as follows:
"nested subroutine definition."
Does anyone know how to solve this?
The g-code file....
o<cutoff> sub
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
o<cutoff> endsub
%
BTW....this works perfectly on my other computer running Debian Stretch.
Thank you,
Barry
"nested subroutine definition."
Does anyone know how to solve this?
The g-code file....
o<cutoff> sub
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
o<cutoff> endsub
%
BTW....this works perfectly on my other computer running Debian Stretch.
Thank you,
Barry
Last edit: 21 Jan 2021 04:20 by Barry. Reason: Simplier definition of the problem.
Please Log in or Create an account to join the conversation.
22 Jan 2021 01:02 #196170
by Barry
Replied by Barry on topic Ncam "Insert G-Code File Command" using Buster - Error
Working on this problem I discovered something, but can anyone expand on why this is happening?
Maybe, LinuxCNC2.7.15 allowed sub routine nesting using o-codes but LinuxCNC2.8.1 does not?
Using NativeCAM embedded in LinuxCNC2.7.15, the G-Code file embedded within another subroutine worked perfectly; however, in LinuxCNC 2.8.1 the same G-code file gave the error "nested subroutine definition."
o<cutoff> sub
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
o<cutoff> endsub
%
To fix this in LinuxCNC 2.8.1, I had to remove the "sub" lines and the % at the end as shown below, and it worked.
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
Maybe, LinuxCNC2.7.15 allowed sub routine nesting using o-codes but LinuxCNC2.8.1 does not?
Using NativeCAM embedded in LinuxCNC2.7.15, the G-Code file embedded within another subroutine worked perfectly; however, in LinuxCNC 2.8.1 the same G-code file gave the error "nested subroutine definition."
o<cutoff> sub
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
o<cutoff> endsub
%
To fix this in LinuxCNC 2.8.1, I had to remove the "sub" lines and the % at the end as shown below, and it worked.
G00 X3.175 Z-0.545
G02 X0 Z0 R9.525
G00 X31.75
Please Log in or Create an account to join the conversation.
23 Jan 2021 00:23 #196299
by andypugh
Replied by andypugh on topic Ncam "Insert G-Code File Command" using Buster - Error
You have found this bug:
github.com/LinuxCNC/linuxcnc/issues/559
What might not have been obvious before is that 2.7.15 might have _allowed_ the syntax, but it didn't actually run the code.
github.com/LinuxCNC/linuxcnc/issues/559
What might not have been obvious before is that 2.7.15 might have _allowed_ the syntax, but it didn't actually run the code.
The following user(s) said Thank You: Barry
Please Log in or Create an account to join the conversation.
Time to create page: 0.065 seconds