G-Code Tools

Generate diagnostic G-code patterns & more for CNC machines

Ruler Mode

This mode draws many short (~10 mm) segments 1 mm apart, with the end result resembling a ruler. These rulers are drawn in pairs, with two rulers drawn next to each other, but drawn in opposite directions.

These are potentially useful for identifying errors in steps per mm, not only for uniform spacing error, but also for nonuniform errors in spacing. By drawing two rulers in opposite directions, backlash (or other similar effects) can be detected. The "perimeter ruler" can also be used to determine whether the machine is square by comparing the diagonals.

  • X rulerdraws a pair of adjacent rulers along the positive X axis. The "X Extent" setting determines the length.
  • Y ruler draws a pair of adjacent rulers along the positive Y axis.
  • X and Y ruler draws both of the above.
  • Perimeter ruler draws four pairs of rulers around the perimeter within a rectangle defined by X and Y extent.
Universal Parameters

Dimensions

mm
mm

Z Levels

mm
mm

Feedrates

mm/min
mm/min
mm/min
mm/min
Generate G-code to see a preview