Académique Documents
Professionnel Documents
Culture Documents
Contents
1. Getting started
1.9 Compilation
1. GETTING STARTED
Generally, you have to follow 12 steps in order to build a GSIMPLE project.
Depending on the project, some of them may be ommited
Step 2: Define the project details through the Setup/Project menu selection.
Step 4: Define the block dimensions, block material and tool-zeroing level.
Step 5: Define your part using Shape, Milling, Modify and Engrave menu selections.
Step 6: Select the tools you will use from the tools library and attach them on the
toolholder
Step 10: Check the G-Code produced by inspecting it and “running” it on the screen
Step 11: Print out a report with information and instructions for the machinist who will
actually produce the part
Step 12: Download the g-code and run it on your milling machine
Launch Gsimple by double clicking on its icon. Gsimple will NOT automatically create a
shortcut on the desktop at installation time, and it will NOT add itself in the Start-Up
menu, so you will need to open the folder where it has been isntalled (for example
c:\Project Files\gsimple) to find it.
You can also launch gsimple be double clicking on any .gsi file (.gsi is the filexetension
used for gsimple project files) but only if you have associated .gsi files with gsimple.
Open the General Project Data dialog through the Setup/Project menu.
....
# Default output file (the file where the G-Code program will be
stored)
GCFILE noname.cnc
PROGRAM 1
....
X,Y settings will affect only the image on the screen and not the g-code produced. Default
values are set in the configuration file OR the milling machine configuration files.
# Default coordinates. You can also move these lines in the milling machine
# definition file(s)
Top
The tool-zero-referance-level is the surface which you will use in order to “zero” your tools.
In many applications it is a common practice to zero the tools on the top face of the block. In
this case you will have to set “Top” at 0 (the default value).
Sometimes, you will zero the tools on the table. If the block is fixed directly on the table,
“top” will have to be set at the same value as “Height(Z)” (50 in our example).
If you select another object for tool-zeroing (the vice for example) you will have to calculate
(or measure) the distance between the block top face and the face selected for tool-zeroing
and set “Top” accordingly.
Block Material
Select the block material from the material data base. The material data base is stored in a
simple text (ascii) file (material.dat) which may be edited with Windows Notepad or any
other text editor.
A typical line in material.dat looks like the following:
Ck45 1.3
In this case, CK45 is the material name and 1.3 the material-group and subgroup to which
CK45 belongs.
Gsimple will use this information -the block material group and subgroup- at compilation in
order to select the proper speed and feed rates from the tool data base. You can edit the
material.dat file in order to delete unused materials, use different names etc. Do not delete
ST37-2 from the data base!
Default block material is defined in the configuration file (gsimple.cfg) with the configuration
command MATERIAL.
Example: the following line in the configuration file (gsimple.cfg) will make CK45 the default
block material.
MATERIAL CK45
If you do not select a default material in the configuration file, gsimple will use ST37-2
Object Types
A Bulge has a positive volume. It may have any (producable) shape. In order to facilitate the
user GSIMPLE includes dialogs for three common bulge types -rectangular, cylindrical and
polygonal. Use the Shape/Odd-Shapped Bulge menu selection to defined an arbitrary
shaped bulge.
Drills and Threads are just that -common drills and threads.
Engravings include lines, arcs, circles and text. The font used for text engravings is
selected with the FONT configuration-command in gsimple configuration (gsimple.cfg) file.
Object Attachment
A part is defined through the attachment of objects of predifined object-types. You can
attach objects directly on the block. For example, if you want to drill a hole (please look at
the first example at http://www.gsimple.eu/ex1/ex1.html) on a metal plate, you just attach a
drill on the block.
If you use bulges you must attach the lower bulge on the block -otherwise GSIMPLE will
not know where you have placed it.
Levels
You will have to split your object in levels manualy in order to produce more complicated
objects.
Use the Setup/Toolholder menu selection to define the tools you are going to use (attach
them on the toolholder).
During compilation GSIMPLE will (if
not otherwise commanded)
automatically select the proper tool
for each job it has to perform, from
the attached tools. If none is found,
the compilation will be terminated
with an error message.
A. Center Drills
B. Drills
C. Taps
D. Thread mills
J. Engraving tools
K. Special tools
For every tool the data base
stores two sets of data:
The above screenshot shows the speed, horizontal milling (fxy) and Vertical milling
(plunging, fz) feed rates for tool named EM14R2 (a rough end mill) for Material group 1,
subgroup 3 (*)
If no tool-milling-data have been defined for the block-material-group, you will get a
“UNSUITABLE TOOL” message in the toolholder dialog.
Unsuitable tools will be ignored by the automatic tool selection compilation procces. If you
select an unsuitable tool manualy for a specific job, compilation will be terminated with an
error message such us
(*) Material Groups and Subgroups are defined in amg.dat file. This is a plain text (ascii) file
editable with any text editor such as Notepad. The original file (the one you have
downloaded) follows the common division made by the most tool manufacturers. Our
suggestion is to leave it as it is.
Option are divided in 5 sections. Only the non obvious options are discussed below.
1. General.
“Fast block approch height “ is used in drilling and taping and is the equivalent of
the R-Plane in G-Code. For example, if “Fast block approach heigth” is 3 the drilling
outup command will become
“Go X,Y at tool change” will be used with large object to avoid a colision between
the tool and the object during toolchange. Gsimple will fisrt move to the ordered x,y
position and then change tool
2. Shape and pocket milling.
“Horizontal overlap” will affect the distance between sunsequent milling lines. 0%
means a distance equal to tool diameter. 50% a distance equal to half the tool
diameter etc.(*)
“Filter-out out-of-block paths” is a powerfull filter which will eliminate from the G-Code
slow running G01 paths, which are placed out of the block. This is very usefull if you
just want to mashine just one part of an object (for example round the left edge of a
long plate)
No
filtering
Version 1.09 has a new filter which will also eliminate most of the slow running arcs which
are placed entirely outside the block. To use the old filter, add the following line in the
configuration file (Gsimple.cfg):
USE OLDFILTER ON or
3. Drilling
“Drill Cleaning” will retract the drill, turn it CCW at high speed (for example 200% of
the defined) for the time defined by “duration” and repeat it “repeat” times
4. Finishing
“Rough filinsh horizontal faces” means fininshing the face with the rough milling
tool, turning normally faster and running at a lower feed rate. Please note that you
can select the finishing quality individually for every bulge and pocket with the “Edit”
dialog.
5. Finishing parameters
Select File/Save or File/Save As from the main menu to open a standart file-save dialog.
Gsimple projects have the .gsi extension. The .gsi files are plain text files, ie you can open
them with any text editor such as notepad.
$64 65918042
$65 www.gsimple.eu
$66 1.09
...
$50 AUTO
$11 1 CD3.15 0 0.00000 0.00000
$4 ST37-2
$28 0.00000 0
...
Do not edit!
Select G-Code/Make G-Code from the main menu and Gsimple will “compile” your project
-that is produce the G-Code. The G-Code will be stored in a file with the name selected in
step 2 (Look at 1.2 Defining your project).
In case of errors (for example a missing tool) the compilation will be aborted and Gsimple
will inform you about the problem with an error message, for example
If everything goes ok Gsimple will give you a report indicating the tools that have actually
been used and the estimated milling time
Important Note
You can see this problem, during “run-time” (animation) as a path intersection. In this case
you will have to select a smaller tool and assign it to this job manualy.
Select File/Print Report to print out a report for the machine operator. The report will contain
valuable informations, such as the G-Code filename, the G-Code program number, the
block (stock) diamensions and material, the coordinates used, the tool-zeroing method, the
tools used etc.
You can change the report header (for example insert your company name and logo)
through the configuration file (gsimple.cfg) accesible through the Setup/Configuration menu.
##############################################################
# #
# Sample file #
# Author: S.Kontogiannis #
# #
# NOTICE: #
# #
##############################################################
# Company Name and User. Change these settings with your company and name
USER S.Kontogiannis
# You may add your logo and a logo-image, to be used on the printed report
Select G-Code/Transfer G-Code to copy the G-Code file on diskette a: (default setting) or
invoke your downloading software (defined through the configuration file gsimple.cfg).
For exapmle if your downloading software is called MyDownLoad.exe and it is in the folder
c:\Program Files\CNC you will have to add the following line in the configuration file:
Print report Prints a report of the project, ready for use by the
machine operator. Report is in HTML format. Gsimple
will invoke your browser for printing.
Open Opens the related CAD drawing. You can assign a
Drawing drawing filename to the project using the Setup/Project
command.
Import DXF Imports a drawing from a .dxf file. Import only the
nessesary parts of the drawing. Gsimple will not handle
more than 4096 lines, arcs or circles
Exit Exits GSIMPLE (if changes have not been saved it will
ask for confirmation).
Modify Delete Deletes selected objects exept the block, which cannot
be deleted.
Tools Center Drills Add, delete, modify center drill geometry data (diameter,
length) and material-group dependend data (speed,
feed and feed rates)
Drills Add, delete, modify drill geometry data (diameter,
length, min. predrilling diameter) and material-group
dependend data (speed, feed and feed rates)
Threads Used for taps and thread mills
Meterials Material list. You can change this list by editing (for
example with Notepad) the material.dat file
Edit G-Code View/Edit G-Code using Notepad (or any other text
editor, as defined in the configuration file)
3. GSIMPLE FILES
amg.dat Ascii (simple text) Material group and subgroup definition file
haas_vf0.cfg Ascii (simple text) Machine definition file for Haas VF0 Mill
haas_vf4.cfg Ascii (simple text) Machine definition file for Haas VF4 Mill
gsimple.exe
Gsimple.ex~ Archive (not zip) Gsinstal.exe extracts all files from this
Gsinstal.exe Executable Installation program
Agree.txt Ascii (simple text) Legal agreement text
at http://www.linuxcnc.org/handbook/gcode/g-code.html
G21 Select mm
If you are using G44 instead of G43 add the following line in your machine-definition (OR
configuration file)
USE G44 ON
Some machines require a G00 command before G43/G44. You can turn this feature ON with the
configuration
command
USE G00_BEFORE_TOOL_COMP ON
The default setting for both USE G44 and USE G00_BEFORE_TOOL_COMP is OFF
(***)
Starting with version 1.09 Gsimple is using the G02/G03 X Y Z I J F syntax for arcs and circles.
Older versions
used G02/G03 X Y Z I J F only for a full circle and G02/G03 X Y Z R F for arcs. You can use the
old syntax with the