Zum Inhalt springen

CNC-Fräse: Unterschied zwischen den Versionen

Bkubicek (Diskussion | Beiträge)
Bkubicek (Diskussion | Beiträge)
Zeile 22: Zeile 22:
  M30; end program
  M30; end program


One can do a lot of things, e.g. have variables (#1=10), and do loops , evaluate mathematical expressions (G1 Z[#1*2].
One can do a lot of things, e.g. have variables (#1=10), and do loops , evaluate mathematical expressions (G1 Z[#1*2] ).
So basically, real hackers write gcode by hand, while Chuck Norris sends movement commands to the steppers.
So basically, real hackers write gcode by hand, while Chuck Norris sends movement commands to the steppers.
However, as we are all lacy, and things can get quite complicated, there exists software to convert 3d/2d CAD files, grayscale depthmap images, 3d-stl objects and other things into Gode. This is often called "CAM"-Software.
However, as we are all lacy, and things can get quite complicated, there exists software to convert 3d/2d CAD files, grayscale depthmap images, 3d-stl objects and other things into Gode. This is often called "CAM"-Software.


If you have a 2d-cad file (e.g. dxf) and specify depths for some areas that should be milled away, one speaks of 2.5D-CAM. This is performed e.g. by CamBam, or Camexpert.
If you have a 2d-cad file (e.g. dxf) and specify depths for some areas that should be milled away, one speaks of 2.5D-CAM. This is performed e.g. by CamBam, or Camexpert.
The biggest trouble is the radius compensation of the milling heads. You always have to cut on a path half a diameter outside of the actual position.  For this, there are various workflows. In Gcode, one can tell specify if one wants to cut left, right or directly on the actual path. This is called cutter radius compensations. Its a pain in the ass. Hence, often one uses no such thing, but either draws directly the offsetted lines in CAD, or has some software like cambam, which does this compensation and outputs already compensated "paths". The drawback of both methods is that one can not change the diameter of the cutter without recreating the gcode.
In the Gcode compensation, a "tool table" is used. Each cutter is index by a number, and in the table the diameters and other things are specified.


== Current Status==
== Current Status==