Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Approximate a spiral with constant radius arc segments.  This implementation uses the G2/G3 starting angle-ending angle-radius arc method.  To approximate the spiral the radius is changed every 180 degrees.  By changing the radius at the 0/180 or 90/270 angles the location of center of the arc remains fixed along the X or Y axis of the spiral. For the 0/180 angles the center is always on the X axis of the spiral.  For 90/270 the center is always on the Y axis of the spiral. The

This example implements the spiral as a macro.  Operations implemented as macro's do result in a larger program programs than the same operation implemented as a subroutine.  The macro can be changed to a subroutine to reduce the program size.  Program automation is used to access the macro or subroutine from user programs. 

...