📄 image-to-gcode.lyx
字号:
#LyX 1.3 created this file. For more info see http://www.lyx.org/\lyxformat 221\textclass book\begin_preamble\usepackage[plainpages=false,pdfpagelabels,colorlinks=true,linkcolor=blue]{hyperref}\end_preamble\language english\inputencoding default\fontscheme bookman\graphics default\float_placement !!h\paperfontsize 10\spacing single \papersize Custom\paperpackage a4\use_geometry 1\use_amsmath 0\use_natbib 0\use_numerical_citations 0\paperorientation portrait\paperwidth 8.5in\paperheight 11in\leftmargin 1.2in\topmargin 1in\rightmargin 0.6in\bottommargin 0.6in\secnumdepth 5\tocdepth 5\paragraph_separation skip\defskip smallskip\quotes_language english\quotes_times 2\papercolumns 1\papersides 2\paperpagestyle default\layout ChapterImage-to-gcode: Milling \begin_inset Quotes eld\end_inset depth maps\begin_inset Quotes erd\end_inset \layout Standard\align center \begin_inset Graphics filename image-to-gcode.png lyxscale 50 width 100text%\end_inset \layout SectionWhat is a depth map?\layout StandardA depth map is a greyscale image where the brightness of each pixel corresponds to the depth (or height) of the object at each point.\layout SectionIntegrating image-to-gcode with the AXIS user interface\layout StandardAdd the following lines to the \family typewriter [FILTER] \family default section of your .ini file to make AXIS automatically invoke image-to-gcode when you open a .png, .gif, or .jpg image:\layout LyX-CodePROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image\newline png = image-to-gcode\newline gif = image-to-gcode\newline jpg = image-to-gcode\layout StandardThe standard \family typewriter sim/axis.ini\family default configuration file is already configured this way.\layout SectionUsing image-to-gcode\layout StandardStart image-to-gcode either by opening an image file in AXIS, or by invoking image-to-gcode from the terminal, as follows:\layout LyX-Codeimage-to-gcode torus.png > torus.ngc\layout StandardVerify all the settings in the right-hand column, then press OK to create the gcode. Depending on the image size and options chosen, this may take from a few seconds to a few minutes. If you are loading the image in AXIS, the gcode will automatically be loaded and previewed once image-to-gcode completes. In AXIS, hitting reload will show the image-to-gcode option screen again, allowing you to tweak them.\layout SectionOption Reference\layout SubsectionUnits\layout StandardSpecifies whether to use G20 (inches) or G21 (mm) in the generated g-code and as the units for each option labeled \series bold (units)\series default .\layout SubsectionInvert Image\layout StandardIf \begin_inset Quotes eld\end_inset no\begin_inset Quotes erd\end_inset , the black pixel is the lowest point and the white pixel is the highest point. If \begin_inset Quotes eld\end_inset yes\begin_inset Quotes erd\end_inset , the black pixel is the highest point and the white pixel is the lowest point.\layout SubsectionNormalize Image\layout StandardIf \begin_inset Quotes eld\end_inset yes\begin_inset Quotes erd\end_inset , the darkest pixel is remapped to black, the lightest pixel is remapped to white.\layout SubsectionExpand Image Border\layout StandardIf \begin_inset Quotes eld\end_inset None\begin_inset Quotes erd\end_inset , the input image is used as-is, and details which are at the very edges of the image may be cut off. If \begin_inset Quotes eld\end_inset White\begin_inset Quotes erd\end_inset or \begin_inset Quotes eld\end_inset Black\begin_inset Quotes erd\end_inset , then a border of pixels equal to the tool diameter is added on all sides, and details which are at the very edges of the images will not be cut off.\layout SubsectionTolerance (units)\layout StandardWhen a series of points are within \series bold tolerance\series default of being a straight line, they are output as a straight line. Increasing tolerance can lead to better contouring performance in emc, but can also remove or blur small details in the image.\layout SubsectionPixel Size (units)\layout StandardOne pixel in the input image will be this many units--usually this number is much smaller than 1.0. For instance, to mill a 2.5x2.5-inch object from a 400x400 image file, use a pixel size of .00625, because 2.5 / 400 = .00625.\layout SubsectionPlunge Feed Rate (units per minute)\layout StandardThe feed rate for the initial plunge movement\layout SubsectionFeed Rate (units per minute)\layout StandardThe feed rate for other parts of the path\layout SubsectionSpindle Speed (RPM)\layout SubsectionScan Pattern\layout StandardPossible scan patterns are:\layout ItemizeRows\layout ItemizeColumns\layout ItemizeRows, then Columns\layout ItemizeColumns, then Rows\layout SubsectionScan Direction\layout StandardPossible scan directions are:\layout ItemizePositive: Start milling at a low X or Y axis value, and move towards a high X or Y axis value\layout ItemizeNegative: Start milling at a high X or Y axis value, and move towards a low X or Y axis value\layout ItemizeAlternating: Start on the same end of the X or Y axis travel that the last move ended on. This reduces the amount of traverse movements\layout ItemizeUp Milling: Start milling at low points, moving towards high points\layout ItemizeDown Milling: Start milling at high points, moving towards low points\layout SubsectionDepth (units)\layout StandardThe top of material is always at \series bold Z=0\series default . The deepest cut into the material is \series bold Z=-depth.\layout SubsectionStep Over (pixels)\layout StandardThe distance between adjacent rows or columns. To find the number of pixels for a given units distance, compute \series bold distance/pixel size\series default and round to the nearest whole number\series bold \emph on . \series default \emph default For example, if \series bold pixel size=.006 \series default and the desired step over \series bold distance=.015\series default , then use a Step Over of 2 or 3 pixels, because \series bold .015/.006=2.5\emph on .\layout SubsectionTool Diameter\layout StandardThe diameter of the cutting part of the tool.\layout SubsectionSafety Height\layout StandardThe height to move to for traverse movements. image-to-gcode always assumes the top of material is at \series bold Z=0\series default .\layout SubsectionTool Type\layout StandardThe shape of the cutting part of the tool. Possible tool shapes are:\layout ItemizeBall End\layout ItemizeFlat End\layout Itemize45 degree \begin_inset Quotes eld\end_inset vee\begin_inset Quotes erd\end_inset \layout Itemize60 degree \begin_inset Quotes eld\end_inset vee\begin_inset Quotes erd\end_inset \layout SubsectionLace bounding\layout StandardThis controls whether areas that are relatively flat along a row or column are skipped. This option only makes sense when both rows and columns are being milled. Possible bounding options are:\layout ItemizeNone: Rows and columns are both fully milled.\layout ItemizeSecondary: When milling in the second direction, areas that do not strongly slope in that direction are skipped.\layout ItemizeFull: When milling in the first direction, areas that strongly slope in the second direction are skipped. When milling in the second direction, areas that do not strongly slope in that direction are skipped.\layout SubsectionContact angle\layout StandardWhen \series bold Lace bounding\series default is not None, slopes greater than \series bold Contact angle\series default are considered to be \begin_inset Quotes eld\end_inset strong\begin_inset Quotes erd\end_inset slopes, and slopes less than that angle are considered to be weak slopes.\layout SubsectionRoughing offset and depth per pass\layout StandardImage-to-gcode can optionally perform rouging passes. The depth of successive roughing passes is given by \begin_inset Quotes eld\end_inset Roughing depth per pass\begin_inset Quotes erd\end_inset . For instance, entering 0.2 will perform the first roughing pass with a depth of 0.2, the second roughing pass with a depth of 0.4, and so on until the full Depth of the image is reached. No part of any roughing pass will cut closer than Roughing Offset to the final part. Figure \begin_inset LatexCommand \ref{cap:Roughing-passes-and}\end_inset shows a tall vertical feature being milled. In this image, Roughing depth per pass is 0.2 inches and roughing offset is 0.1 inches.\layout Standard\begin_inset Float figurewide falsecollapsed false\layout CaptionRoughing passes and final pass\begin_inset LatexCommand \label{cap:Roughing-passes-and}\end_inset \layout Standard\align center \begin_inset Graphics filename i2g-roughing.png\end_inset \end_inset \the_end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -