- Posts: 1
- Thank you received: 0
"Unknown operation" error from an "if" statement
- UbuntuNinja
- Topic Author
- Offline
- New Member
-
Less
More
13 years 4 months ago #35754
by UbuntuNinja
"Unknown operation" error from an "if" statement was created 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
Thank you,
Cameron
Please Log in or Create an account to join the conversation.
13 years 4 months ago - 13 years 4 months ago #35756
by nkp
gentle.compilertools.net/book/relations.html
Replied by nkp on topic "Unknown operation" error from an "if" statement
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
Last edit: 13 years 4 months ago by nkp.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #35758
by BigJohnT
Replied by BigJohnT on topic "Unknown operation" error from an "if" statement
I don't see a o<support> call and it is the outer loop.
JT
JT
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds