cannot get named subroutine to work

More
27 Sep 2021 08:41 #221692 by ericg
I have this annoying issue that my subroutines work fine when called by number from MDI_COMMAND =, e.g o100 call but when I name them I get a "unknown word where unary operator could be" error message either from the program or manually from the MDI panel

The path is correct and the names are all lowercase so I'm lost as to what the issue is.
I have included as attachments my .ini and probe.ngc file.

any help appreciated
Eric

 
Attachments:

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

More
27 Sep 2021 09:10 - 27 Sep 2021 10:57 #221694 by MaHa
Replied by MaHa on topic cannot get named subroutine to work
I think subroutines need M2 or M30 at the end. To comment in gcode use  ()  or  ; 
while # is part of numbered or named parameters as #444, #<SOS>, #<_SOS>
Last edit: 27 Sep 2021 10:57 by MaHa.

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

More
27 Sep 2021 09:40 #221697 by ericg
Replied by ericg on topic cannot get named subroutine to work
YESSS!!! thank you MaHa, that was it - the # which I thought was a comment like in the rest of LCNC, guess I need to learn more about Gcode protocols
Eric

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

Time to create page: 0.090 seconds
Powered by Kunena Forum