How to import DXF files?

DXF FILE IMPORT CONFIGURATION

Using DXF files is probably most common way to start with machining your first CAD design with your CNC machine.
This short tutorial is made to show you how to configure your imported DXF file in different scenarios. Here are some short examples
on how to configure your DXF files for different scenarios, so that you can get satisfying results on your machine as soon as possible.
We start by clicking File/Import/DXF.

Import user dialog will apear:

DXF ImportParameters

Since DXF files have no embedded units, you must define measurement units. Millimeters or inches can be specified.

If you click Advanced, you will be able to set parameters in all three tabs: General, Safe Height and Stages:

All tabs

General Tab

Use layers

Elements within DXF files are usually grouped in layers. If you choose to use them, you will be able to see certain layers name
in generated G-code window. Use layers feature also allows you to generate Pause and make Tool Change procedure in-between layers.

DXF ImportParameters General_General

If your elements are given default layer names, you are able to see these layer names in G-code window. Specific layers name will
appear in the beginning of layers corresponded G-code. This way you can make your generated G-code slightly more transparent.

G-code layer_names

From picture above, you can clearly see where each layers corresponded G-code begins with execution.

Use pause

Pause will occur at the beginning of specified layers G-code. User dialog will remind you that ‘Pause’ has been generated
and to resume program you must click Continue button.

DXF_pause

Pause_dialog

Tool change

If you want to change tools between elements during your machine job, you can use tool change feature.
Tool change will occur at the beginning of specified layers G-code.

Tool change dialog

Note: Tool change must take place at its designated coordinates. Tool Change coordinates can be set among
other parameters referring to Tool Change in: File/Settings/Tool Change

Tab

If your work piece doesn’t need to be cut-ed out completely and , you can use tabs to hold the piece in place.
Define length of tab with Tab Size and the distance between two tabs with Tab Distance.

DXF_tabs

You can see that Tab Size is the un-milled part of toolpath and Tab Distance is where milling will be applied.

Tabs_toolpaths

Passes and Step Down

With Passes and Step Down you are able to define number of passes that machine will do over generated toolpath
at defined depth increment of plunge per pass.

Pass Depth

If surface of your working piece is set to be current Z offset, then value of Base Height will be the depth of machines first plunge move.
This is set in Safe Height tab under Base Height.

Base height

E.g.: If you want to cut material of thickness 10mm, and you want to cut it in 5 passes, you could set:

Passes: 5 and Step down: 2.000. What will happen is this: Machine will cut over generated toolpath in 5 passes total.
For each pass machine will plunge for 2mm.

milling

Output control

Outputs ‘Spindle’, ‘Mist’ and ‘Flood’ can be turned ON and OFF in specified moments of tool-path milling process.
How outputs will be controlled depends on what type of cutting will be applied, what materials will be used etc.
Therefore you can set at which point in the milling process outputs would be turned ON/OFF using DXF import dialog.

You can set output ON/OFF control in different tabs of DXF import dialog. It can done in General tab, Safe Height tab or Stages tab.

General tab

If outputs need to be turned ON at the beginning of milling process and turned OFF at the end of milling process, enable ‘Spindle’, ‘Flood’ or ‘Mist’ checkbox in General tab.

spnidle general

Specified outputs ‘ON’ G-code ‘M03’ will be generated at the beginning of toolpath, and specified output ‘OFF’ G-code ‘M05’ will be generated at the end of toolpath.

spindle g code

 

Safe Height Tab

safe height tab

If traverse moves of your machine need to be at certain height, you enable and define this in Safe Height tab.

Enabled output will be turned ON at Safe Height before downward plunge move, and turned OFF at ‘Safe Height’ after downward plunge.

Stages Tab

If you need to turn outputs ON at certain heights you can use Stages feature. This comes very useful if you will be using plasma CNC cutting machine.
When stages are enabled, certain elements machining is divided in stages. Height of stage is where desired output will be turned ON.

stages

 

Stage configuration from picture above will result on CNC machine as:

Elements machining will be divided in two stages. If you have Safe height enabled and set (this is done in Safe height tab),then machine will make downward plunge move
from safe height,it will turn ON ‘Spindle’ output at height 3, wait for 5 seconds (Delay of stage 1)and continue with downward plunge move.
At -1 height, ‘Flood’ output will be turned ‘ON’, machine will wait for another 2 seconds (Delay of stage 2) and continue with the rest of elements toolpath. When milling
of toolpath is finished, both outputs will be turned ‘OFF’ at safe height.

Generated G-code for current Stage setup looks like this:

 

stages g-code

How to set camera offset?

HOW TO USE CAMERA WITH CNCUSB CONTROLLER SOFTWARE

Tool represents the center of the Z-axis. Camera is usually mounted parallel with the tool, at some distance away from the Z-axis.
So to use camera for capturing points, setting offsets etc…we need to set camera offset. Because it is practically impossible to mount camera perfectly parallel with Z axis, we calculate offset using two positions at two different heights.

Steps for setting camera offset:

1. Make a position mark on machine table. You can use marker, make small hole with a drill, … whatever you find useful.

2. Position tool exactly over this marker and do “Machine/Camera/Set Offset/Mark”

3. Now open camera window with “Machine/Camera/Show Camera …”

4. Jog your machine to locate and center the mark with camera viewfinder. Use lowest Z level possible.

5. When your mark is in camera center click: “Machine/Camera/Set Offset/Read 1”

6. Now move Z to highest possible level where marker is still visible on camera and center it.

7. When your mark is in camera center click: “Machine/Camera/Set Offset/Read 2”

8. Your two point offset is now set and you can use camera for various tasks.

You can test if camera offset if correctly set if you locate for example a drilled hole with camera view as accurate as possible and click: “Machine/Go To/Tool To Camera XY”.
Tool should move exactly above the drilled hole.

Camera offset XY:

You can set “Current XY” offset also with camera. Camera viewfinder helps you to locate the position where you want to set offset.

You set it if you click:“Machine/Offset/Camera XY”

Capturing points:

Some points are difficult to capture (it is hard to locate center of point with naked eye).With camera you can capture such points and use them with “Transformation From Points”feature(see tutorial “Transformation from points”).

To capture a point with camera, click: “Machine/Capture & Measure points/Capture/Capture Camera Point”.

How to use MDI?

USING MDI IN CNC USB CONTROLLER SOFTWARE

MDI stands for ‘Manual Data Input’. MDI window is located in the bottom right corner of CNCUSB controller software main window:

MDIwindow

By entering MDI shortcuts or g-code commands in this window, user can quickly access desired feature, executes g-code command or performs machine specific task.

MDI shortcuts:

You probably already noticed that almost every feature in almost any menu has a number written on the right side of its name starting with symbol “/”. This is its unique MDI shortcut.

MDIList

If you don’t have any idea about MDI and of its use, it would the best to start with typing “/101” in MDI window and see what happens. Now enter “/151” into MDI window.

First MDI shortcut executed ‘Open’ dialog and second one opened ‘Settings’ menu.

You can browse trough files or change settings configuration with less mouse clicks than if you would click your way trough the menus.

From operators point of view this reflects as more fluent and prompt way of working with machine.

Using arrow keys “Up” and “Down”, user can navigate trough history of previously used MDI shortcuts or MDI g-codes.

One of the best advantages of MDI is gained accessibility of many features provided by CNC USB controller software.

Pretty common step when preparing your workpiece for cutting is setting offsets or capturing points. All these features can be accessed or set using MDI.

Setting XY offset:

If you would want to set XY offset at current machines position, you could click: Machine/Offset/Current XY.

You could do the same thing just by entering “/45251” in MDI window:
OffsetXY

Capturing Camera Point:

MDI is especially useful for certain repetitive procedures, like capturing points with camera.
If you want to capture point using camera, you could click Machine/Capture & Measure Points /Capture/Capture Camera Point. You would have to do that for every point you would want to capture.

You could do the same just by entering “ /48102” in MDI window:
CameraPoint

If you run a feature directly from menu or a toolbar, then from that point on, this feature will be available in MDI history, and you can find and select it with arrow keys.

MDI g-codes:

You can set and perform machine moves, control outputs or change tools directly from MDI window.

Examples:

Machine traverse and feed moves:

Typing [G00 X10] moves machine to X=10 position at traverse rate.

Typing [G00 Y-20] moves machine to Y= -20 position at traverse rate.

Typing [F100 G01 Y10] moves machine to Y=10 position at feed rate = 100.

Output control:

Using M3, M5, M7, M8 and M9 g-codes you can control outputs:

Typing [M3] will turn Spindle ON and [M5] will turn Spindle OFF.
Typing [M7] will turn Mist ON and [M9] will turn Mist OFF.

Tool change:

You can change or select tool directly from MDI window:

Typing [Tn M6] changes tool.
Typing [M61 Qn] selects desired tool.

Configuring machine settings:

Some machine settings are very easy to be configured with the use of MDI. One of them is whether machine operates in ‘Absolute Distance Mode’ or in ‘Incremental Distance Mode’.

G90 – absolute distance mode:

To move machine in ‘Absolute Distance Mode’ on location of [X10, Y10, Z10] you can enter this command:
Absolute

G91- Incremental distance mode:

To move machine in ‘Incremental Distance Mode’ for distance of [X10 Y10 Z10], you enter this command:
Incremental

G53 – absolute machine coordinate system:

You can set your machine moves in absolute machine coordinate system.

To move your machine in absolute machine coordinate system on location of [X10, Y10, Z10] you can enter this command:

AbsoluteMachine

Wireless keypad or Shuttle PRO are very practical to work with MDI and for operating with CNC USB controller in general.

MDI offers many possibilities for operator and it is best that each user explores the possibilities of the MDI for itself.

How can I program DIY controller and update firmware?

HOW TO PROGRAM CNC USB CONTROLLER FIRMWARE

Your DIY board must have all required pull-up and pull-down resistors otherwise it will not work!

1. Program firmware
You must use programmer to program bootloader into PIC. Bootloader can be downloaded on DIY page.

img01

2a. Insert PIC and set 5V supply
Because I will use power from USB I need to connect 5VUSB jumper.

img02a

2b. Insert PIC and set 5V supply
On DIY PCB you need to connect 5V USB pin to +5V if you want to use USB power.

img02b

3. Connect Jog8 (RB4) to Vcc and Connect to USB.
You need to connect Jog8 pin to Vcc otherwise nothing will happen. When you connect USB, LED will start blinking quickly. If it is not blinking then something is wrong with your board.

img03

4. Update firmware
If LED is blinking then disconnect Jog8 connection and start CNC USB software. Update firmware.

img04

img04b

 

5. Test
You can now test controller if everything works. You can also read your serial now.
Without license controller stops after making 25 moves but everything else is fully functional.

How can I setup Profili2 4-Axis G-Code generator?

profili2_setup

How can I configure Mastercam?

HOW TO SETUP MASTERCAM POSTPROCESSOR

Click “Files” node

Image001

Click “Edit” button

Image002

Click “Edit the control definition”

Image003

Select “Machine Cycles/Mill Drill Cycles” and uncheck all drill cycles

Image004

G-code generated with disabled drill cycles will now work correctly with CNC USB controller software.

How can I use Mastercam

Milling some wooden part using Mastercam

1. SELECTING AND SETTING MACHINE DEFINITION:

Chose Machine type – Mill – Manage list… from machine definition menu select MILL – 3 AXIS HMC.MMD-6.
Add and select.

Slika1

2. IMPORTING AND PREPARING PART:

Open part file (File – Open). It is recomended that file is in step format.

Slika2

Select WCS TOP – top work coordinate system, usually selected for milling top side of workpieces on 3-axis milling machines.

Use commands Xform translate to move part to desired origin position (use F9 key to show/hide coordinate axes)
and Xform rotate to rotate the part in position, where WCS and Gview (graphic view) will both be set to TOP.
When performing rotation of the part, one of the standard views (Top, Front, Right…) should be selected.

Before rotation: Gview is not in correct orientation, because only a side way of the workpiece could be machined this way.

Slika3

After rotation: WCS and Gview both set to TOP and whole surface could be machined

.Slika4

After the part has been moved and oriented, it is recomended that surfaces and edge curves are
created from solid part: Create – Surface – From solid… and we chose to delete solid body. For creating edges we chose: Create – Curve – Curve on all edges.

Slika5

Slika6

3. DEFINING STOCK:

Under machine group select Stock setup to set stock dimensions. There are many possibillities. Bounding box is best one.

Slika7

4. CREATING TOOLPATHS:

Depending on milling application (Contur, Drill, Pocket, Face or Surface rough/finish), we chose the
right toolpath type under Toolpaths. It is possible that some additional chain geometry should be drawn to the part, like in this case:

Slika8

In this example Facing is the first operation to perform face milling of the workpiece.

Slika9

We could set different parameters from the Toolpaths Facing window. Most important are:

Tool: Type (from library), Feed rate and Spindle speed

Cut parameters: Style, Overlap, Maximum stepover, Stock to leave

Linking parameters: Retract, Feed plane, Top of stock, Depth… When adjusting those values there are two options:
Absolute – Z values are in respect to the WCS origin, Inremental – Z values are in respect of the shape.

Second milling operation is surface high speed Opti core for roughing.

Slika10

Third milling operation is surface high speed Raster for finishing.

Slika11

The last one is Pocket standard for making pocket holes. Image shows all toolpath operations performed to machine the selected part.

Slika12

All toolpath operations can be simulated and verified under Operations Manager, using different control buttons. G1 button is for postprocessing the G code.

Slika13

5. POSTPROCESSING:

Different milling operations can be joined (by selecting) and postprocessed together. In example: rough facing and rough surface opti core, which contains the same tool.
Slika14