Setting the active coordinate system with index?

  • JetForMe
  • JetForMe's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
24 Oct 2020 01:47 #187057 by JetForMe
Is there a way to set the active coordinate system in gcode if you have the index? I'm trying to do this:
#<saveCoord> = #5220
...
#5220 = #<saveCoord>	;	Restore coordinate system previously in use

But it's not working. Do I have to make a big if statement and call G54-G59.3 explicitly?

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

More
24 Oct 2020 02:22 #187061 by MaHa
        #50 = [53 + #<saveCoord>]
o100 IF [#50 GT 59]
        #50 = [[[#50 - 59] / 10] + 59]
o100 ENDIF
        G#50

G#50 restore coordinatesystem to #<saveCoord>

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

  • JetForMe
  • JetForMe's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
24 Oct 2020 03:36 #187062 by JetForMe
LOL wow. Amazing.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum