Skip to content

Instantly share code, notes, and snippets.

@ryansturmer
Created August 29, 2014 04:17
Show Gist options
  • Save ryansturmer/1453d10bee9adb7f00f2 to your computer and use it in GitHub Desktop.
Save ryansturmer/1453d10bee9adb7f00f2 to your computer and use it in GitHub Desktop.
Table Surfacing Routine
&XAREA = 22.5
&ZDEPTH = -0.125
&YAREA = 17
&ZCLEAR = 1.0
&STEPOVER = 0.4
&SPEED = 1.0
C6
PAUSE 3
&YP = 0
JZ,&ZCLEAR
J2,0,0
MS,&SPEED,&SPEED
MZ,&ZDEPTH
surface:
MY,&YP
MX,&XAREA
&YP=&YP+&STEPOVER
MY,&YP
IF &YP >= &YAREA THEN GOTO done
MX,0
&YP=&YP+&STEPOVER
IF &YP >= &YAREA THEN GOTO done
GOTO surface
done:
JZ,&ZCLEAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment