Manual

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 4

DownloadManual
Open PDF In BrowserView PDF
Quick manual to โ€˜FIB2CAMโ€™

Interpretation and interpolation of G-code for stream file generation for FIB/SEM instruments
Version 0.1

Frank Niessen
E-mail: contact@fniessen.com
03/2019

1 CAM2FIB
CAM2FIB is a program for interpretation and interpolation of G-code to create stream files for FIB/SEM
instruments. The currently implemented output format is designed for use with an FEI Helios NanoLab
G3 instrument, but may easily be adapted to other instruments. This code accepts most G-code files
as an input and was tested with the G-code dialects RS274D, WinCNC and FreeCAD. In its current
implementation the overall patterning time is equally distributed over all patterning points. Machining
or printing of 3D-structures is therefore currently limited to layered structures. This manual gives an
introduction to the application of the program. For further input on the build-up and functionality of
the program please read the associated research paper.
This program is provided free-of-charge with an MIT-license. If you find this program useful and you
find application for it in your research I would be grateful for a citation to the associated paper:

2 SYSTEM REQUIREMENTS
The program was developed in MATLAB and requires a valid MATLAB installation for execution. The
functionality of the program was tested for MATLAB 2016 b and later versions. The installation of the
MATLAB statistics toolbox is not essential to the functionality of the program, but is required to plot
density maps for evaluating the interpolation of the beam path.

3 EXECUTING CAM2FIB.M
All folders and functions need to be added to the MATLAB path before executing the program. The
program is executing by running file CAM2FIB.m. The default folder for input files is Input_Gfiles in the
main directory. Stream files and plots are saved in the folder Output_StreamFiles in subfolders named
after the input G-code file.

4 PARAMETER SETTINGS
The section %% Initialization in CAM2FIB.m contains parameters that can be adapted for different
applications of the program. The parameters, their purpose and potential default values are listed in
the following table.
Name

Purpose

Description

Datatype

Default
value

f.unitLabel

Output length unit

File settings
Length unit of the machined
structure

Allowed
values

String

nm

f.overlap

Relative overlap

0

Relative overlap of beam
๐ต๐ต๐ต๐ต๐ต๐ต๐‘š๐‘š๐‘ƒ๐‘ƒ๐‘ƒ๐‘ƒ๐‘ƒ๐‘ƒ๐‘ƒ๐‘ƒโ„Ž
path (1 โˆ’
)%

Double

m, mm,
ยตm, nm,
ร…
-inf โ€“ 100

Minimal segment length for
beam blanking

Double

0 โ€“ inf

70

๐ต๐ต๐ต๐ต๐ต๐ต๐ต๐ต๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Š๐‘Šโ„Ž

f.dcrit

Min. G0 distance

1

f.binFac

Interpolation fac.

Out.scrPrint

Flag Screen Print

Out.plot
Out.scatter

Flag Plotting
Flag Scatter Plot

Out.plotCnt

Plot Count

str.DAC

DAC type

str.nrIter

Nr. Of iterations

str.tMach

Pattern machining
times [s]

str.fType

Outp. File extension

PIA.rot

Pattern rotation [ยฐ]

PIA.flip

Mirroring operation

PIA.scalFac
PIA.cal

Linear scaling factor
DAC calibration

PIA.max

DAC resolution

PIA.offs

Offset pattern [bit]

Offset of pattern in X and Y

PIA.relScale

Rel. pattern scale

PIA.centrePa
ttern
PIA.availMag
s

Flag Centre pattern

Relative scale of pattern on
DAC system [1]
(Used to determine the
magnification)
Centre pattern on DAC grid

Mag. Selection

Interpolation of entire beam
path binning factor:
<1: No interpolation
>=1: Interpolation with
indicated binning factor
Visual output options
Screen output of G-code
interpreter [on/off]
Plotting of maps [on/off]
Scatter instead of Line plot
of beam path [on/off]
Number of plot updates
during G-code
interpretation
Stream file output settings
Type of DAC (currently only
tested with type โ€˜s16โ€™)
Number of pattern
iterations
Array of overall pattern
machining times [s] (Keep
empty for no file output)
File extension of stream file
Scaling parameters
Clockwise pattern rotation
[ยฐ]
Mirroring on horizontal and
vertical axes [on/off]
Linear scaling of pattern
DAC calibration factor
๐ต๐ต๐‘–๐‘–๐‘–๐‘–๐‘–๐‘–
(
)
๐‘š๐‘š๐‘’๐‘’๐‘’๐‘’๐‘’๐‘’๐‘’๐‘’โˆ—๐‘€๐‘€๐‘€๐‘€๐‘€๐‘€

DAC resolution in X and Y

List of allowed standard
magnifications

2

Double

0 โ€“ inf

1

Boolean

0, 1

0

Boolean
Boolean

0, 1
0, 1

1
1

Double

1 โ€“ inf

100

String

s16

s16

Integer

1-?

1

Double
array

1-?

60

String

/

str

Double

/

0

Boolean
array
Double
Double

0, 1

[0 0]

0< x < inf
0< x < inf

1
.3161e6

Integer
array
Integer
array
Double

0< x < inf
/

[65536
56576]
[0 0]

0< x <= 1

.5

Boolean

0, 1

1

Double
array

0< x < inf

[.1e3
.5e3
1e3
2e3
5e3
10e3
20e3
30e3
40e3
50e3
60e3]

5 PLOTS
While G-code with multiple z-layers can be interpreted and interpolated, the graphical output of the
program is optimized towards processing of single layer beam paths. In the case of multi-layer input
maps may overwrite lower z-layers, leading to a false representation.
Plots are saved as tiff files alognside with the stream files in a subfolder with the name of the input
G-code file, which can be found in the folder Output_StreamFiles in the parent directory.

5.1 LIVE PLOT
The plot LivePlot shows the progress of G-code interpolation with an update rate specified by
variable Out.plotCnt. The plot shows the beam path before application of any transformations.

5.2 MACHINING STRATEGY
The contour plot MachiningStrategy shows the beam path after application of any transformation.
The colour coding indicates the order of patterned points. White broken lines indicate repositioning
of the blanked beam.

5.3 DENSITY MAPS BEFORE AND AFTER INTERPOLATION
Density maps are 3D histograms that show the density of patterning points at different positions of
the pattern. The overall pattern area is divided into equisized bins and the number of points in each
bin is represented on a color scale. The plot intends to highlight areas of especially high and low
point density. The map is plotted before and after interpolation of the entire beam path to visualize
the effect of the interpolation operation.

5.4 SCALED AND TRANSFORMED PATTERN
The plot ScaledAndTransformedPattern shows the beam path after application of all transformations
and scaling to the DAC coordinate system.

6 STREAM FILES
The stream files are written into a subfolder with the name of the input G-code file, which can be
found in the folder Output_StreamFiles in the parent directory. The stream file can be directly
transfered to the microscope computer and opened from the patterning control panel.

7 TROUBLE SHOOTING
If any unforeseen problems occur with the program please contact me via contact@fniessen.com.

3



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : Yes
Author                          : Frank Niessen
Comments                        : 
Company                         : University of Wollongong
Create Date                     : 2019:03:15 12:36:36+11:00
Mendeley Recent Style Id 0 1    : http://www.zotero.org/styles/acta-materialia
Mendeley Recent Style Id 1 1    : http://www.zotero.org/styles/american-political-science-association
Mendeley Recent Style Id 2 1    : http://www.zotero.org/styles/american-sociological-association
Mendeley Recent Style Id 3 1    : http://www.zotero.org/styles/chicago-author-date
Mendeley Recent Style Id 4 1    : http://www.zotero.org/styles/harvard-cite-them-right
Mendeley Recent Style Id 5 1    : http://www.zotero.org/styles/ieee
Mendeley Recent Style Id 6 1    : http://www.zotero.org/styles/metallurgical-and-materials-transactions
Mendeley Recent Style Id 7 1    : http://www.zotero.org/styles/modern-humanities-research-association
Mendeley Recent Style Id 8 1    : http://www.zotero.org/styles/modern-language-association
Mendeley Recent Style Id 9 1    : http://www.zotero.org/styles/scripta-materialia
Mendeley Recent Style Name 0 1  : Acta Materialia
Mendeley Recent Style Name 1 1  : American Political Science Association
Mendeley Recent Style Name 2 1  : American Sociological Association
Mendeley Recent Style Name 3 1  : Chicago Manual of Style 17th edition (author-date)
Mendeley Recent Style Name 4 1  : Cite Them Right 10th edition - Harvard
Mendeley Recent Style Name 5 1  : IEEE
Mendeley Recent Style Name 6 1  : Metallurgical and Materials Transactions
Mendeley Recent Style Name 7 1  : Modern Humanities Research Association 3rd edition (note with bibliography)
Mendeley Recent Style Name 8 1  : Modern Language Association 8th edition
Mendeley Recent Style Name 9 1  : Scripta Materialia
Modify Date                     : 2019:03:15 12:36:52+11:00
Source Modified                 : 
Subject                         : 
Language                        : EN-AU
Tagged PDF                      : Yes
XMP Toolkit                     : Adobe XMP Core 5.6-c015 84.159810, 2016/09/10-02:41:30
Metadata Date                   : 2019:03:15 12:36:52+11:00
Creator Tool                    : Acrobat PDFMaker 15 for Word
Document ID                     : uuid:ff262f35-dbb5-4363-84fb-ecabc2a5347d
Instance ID                     : uuid:6150ebdf-b80d-464c-833c-05d63d6d8347
Format                          : application/pdf
Title                           : 
Description                     : 
Creator                         : Frank Niessen
Producer                        : Adobe PDF Library 15.0
Keywords                        : 
Mendeley 0020 Recent 0020 Style 0020 Id 00200 1: http://www.zotero.org/styles/acta-materialia
Mendeley 0020 Recent 0020 Style 0020 Name 00200 1: Acta Materialia
Mendeley 0020 Recent 0020 Style 0020 Id 00201 1: http://www.zotero.org/styles/american-political-science-association
Mendeley 0020 Recent 0020 Style 0020 Name 00201 1: American Political Science Association
Mendeley 0020 Recent 0020 Style 0020 Id 00202 1: http://www.zotero.org/styles/american-sociological-association
Mendeley 0020 Recent 0020 Style 0020 Name 00202 1: American Sociological Association
Mendeley 0020 Recent 0020 Style 0020 Id 00203 1: http://www.zotero.org/styles/chicago-author-date
Mendeley 0020 Recent 0020 Style 0020 Name 00203 1: Chicago Manual of Style 17th edition (author-date)
Mendeley 0020 Recent 0020 Style 0020 Id 00204 1: http://www.zotero.org/styles/harvard-cite-them-right
Mendeley 0020 Recent 0020 Style 0020 Name 00204 1: Cite Them Right 10th edition - Harvard
Mendeley 0020 Recent 0020 Style 0020 Id 00205 1: http://www.zotero.org/styles/ieee
Mendeley 0020 Recent 0020 Style 0020 Name 00205 1: IEEE
Mendeley 0020 Recent 0020 Style 0020 Id 00206 1: http://www.zotero.org/styles/metallurgical-and-materials-transactions
Mendeley 0020 Recent 0020 Style 0020 Name 00206 1: Metallurgical and Materials Transactions
Mendeley 0020 Recent 0020 Style 0020 Id 00207 1: http://www.zotero.org/styles/modern-humanities-research-association
Mendeley 0020 Recent 0020 Style 0020 Name 00207 1: Modern Humanities Research Association 3rd edition (note with bibliography)
Mendeley 0020 Recent 0020 Style 0020 Id 00208 1: http://www.zotero.org/styles/modern-language-association
Mendeley 0020 Recent 0020 Style 0020 Name 00208 1: Modern Language Association 8th edition
Mendeley 0020 Recent 0020 Style 0020 Id 00209 1: http://www.zotero.org/styles/scripta-materialia
Mendeley 0020 Recent 0020 Style 0020 Name 00209 1: Scripta Materialia
Page Layout                     : OneColumn
Page Count                      : 4
EXIF Metadata provided by EXIF.tools

Navigation menu