"Unknown operation" error from an "if" statement

More
13 years 4 months ago #35754 by UbuntuNinja
Hello everybody, I have written a g code file comprised of subroutines designed to provide a quick and easy way of creating supports for a coil make of copper pipe on a CNC. I tried to load the file in LinuxCNC, and I received a message that said "Near line 70 of primary cutter.ngc: unknown operation." I think the error is being triggered by the "o110 if" code on line 69, because the code "o<turn> call" appears earlier in the file without causing any problems. Can somebody tell me if I have correctly identified the problem here, and if so, how I could fix it? I have looked at the LinuxCNC documentation page for o-codes and cannot find anything wrong with that line of code. The file is attached.

Thank you,
Cameron

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

More
13 years 4 months ago - 13 years 4 months ago #35756 by nkp
Code:
(if we are cutting the first support, cut an extra notch for the nth turn) o110 if [#<_nsupport> eq 0] o<turn> call o<cut> call o110 endif
gentle.compilertools.net/book/relations.html
Last edit: 13 years 4 months ago by nkp.

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

More
13 years 4 months ago #35758 by BigJohnT
I don't see a o<support> call and it is the outer loop.

JT

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

Time to create page: 0.122 seconds
Powered by Kunena Forum