"Unknown operation" error from an "if" statement

More
18 Jun 2013 03:16 #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
Attachments:

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

More
18 Jun 2013 03:53 - 18 Jun 2013 04:14 #35756 by nkp
(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
Attachments:
Last edit: 18 Jun 2013 04:14 by nkp.

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

More
18 Jun 2013 05:37 #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.076 seconds
Powered by Kunena Forum