Category:CNC

From ElectroDragon
Jump to: navigation, search

NC File

NC file - save the file above as circle.nc

G17 G20 G90 G94 G54
G0 Z0.25
X-0.5 Y0.
Z0.1
G01 Z0. F5.
G02 X0. Y0.5 I0.5 J0. F2.5
X0.5 Y0. I0. J-0.5
X0. Y-0.5 I-0.5 J0.
X-0.5 Y0. I0. J0.5
G01 Z0.1 F5.
G00 X0. Y0. Z0.25

Explanation

Command Description Example
G00 Rapid linear movement G00 X#.#### Y#.#### Z#.####
G01 Linear interpolation G01 X#.#### Y#.#### Z.#.#### F#.####
G02 Clockwise circular interpolation G02 X#.#### Y#.#### I#.#### J#.#### F#.####
G03 Counter Clockwise circular interpolation G03 X#.#### Y#.#### I#.#### J#.#### F#.####
F Feed rate (inches per minute) F5. - Cutting speed 5 mm/min
X, Y, Z Absolute coordinate used to define a point in the X Y Z direction. -
I, J Incremental coordinate used to define a point in the X Y direction. -
M M03, M05 - Start spindle, stop cutter -

Other setup

  • Absolute- A series of numerical positions that are calculated from a fixed point of origin.
  • Clearance Plane- A plane designated for safe tool travel in between cutting functions.
  • End point-The point where an arc ends
  • Incremental- A series of numerical positions that is referenced from a previous position and is independent of absolute origin.
  • IPM-A unit of velocity used to determine feed rate. (inches per minute)
  • Origin- The fixed, central point in the Cartesian coordinate system. The origin has a numerical value of zero.
  • Start point- The point where an arc begins.
  • $120=1 - Set X acceleration to 1mm/s^2
  • $120=1000 - Set X acceleration to 1m/s^2

Gcode Data

From Drawing Inkscape

Use default extension - Gcodetools - path to Gcode

  • Note - move path to 0,0 point in inkscape
  • Note - mirror drawing in case the machine don't understand.

Use extention - J Tech Photoics, laser cutter

Gbrl servo

GBRL Setup

  • GBRL firmware support commands via serial port
  • Enter $$ to see current GBRL setup, list here for example:
$0=10 (step pulse, usec)                                      step pulse
$1=25 (step idle delay, msec) 
$2=0 (step port invert mask:00000000)            set 0 to close it
$3=11 (dir port invert mask:00000110)              invert axis direction
$4=0 (step enable invert, bool) 
$5=0 (limit pins invert, bool) 
$6=0 (probe pin invert, bool) 
$10=3 (status report mask:00000011) 
$11=0.010 (junction deviation, mm)               
$12=0.002 (arc tolerance, mm) 
$13=0 (report inches, bool) 
$20=0 (soft limits, bool) 
$21=0 (hard limits, bool) 
$22=0 (homing cycle, bool) 
$23=0 (homing dir invert mask:00000001) 
$24=25.000 (homing feed, mm/min) 
$25=500.000 (homing seek, mm/min) 
$26=250 (homing debounce, msec) 
$27=1.000 (homing pull-off, mm) 
$100=80.000 (x, step/mm)                                        steps of X, can control the movement
$101=80.000 (y, step/mm) 
$102=80.000 (z, step/mm) 
$110=3000.000 (x max rate, mm/min)                    max speed
$111=3000.000 (y max rate, mm/min) 
$112=3000.000 (z max rate, mm/min) 
$120=500.000 (x accel, mm/sec^2)                        acceleration
$121=500.000 (y accel, mm/sec^2) 
$122=500.000 (z accel, mm/sec^2) 
$130=200.000 (x max travel, mm)                          soft limit
$131=200.000 (y max travel, mm) 
$132=200.000 (z max travel, mm) 

Resources

CNC Controller

Gcode Review tool

Pages in category "CNC"

This category contains only the following page.