CNC Usb Controller
CNC Usb Controller
User manual
2014-09-10
Disclaimer
CONTROLLER AND CONTROLLER SOFTWARE ARE PROVIDED TO YOU "AS IS," WITHOUT
WARRANTY. THERE IS NO WARRANTY FOR THE CONTROLLER AND CONTROLLER SOFTWARE,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT OF THIRD PARTY RIGHTS. THE ENTIRE RISK AS TO THE QUALITY AND
PERFORMANCE OF THE CONTROLLER OR CONTROLLER SOFTWARE IS WITH YOU. SHOULD
THE CONTROLLER OR CONTROLLER SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE
COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT SHALL THE AUTHOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
OR INABILITY TO USE THE CONTROLLER OR CONTROLLER SOFTWARE.
1 Introduction
1.1 Overview
The PlanetCNC series of USB CNC motion controllers are link between a personal computer and motor
drivers supporting step/direction control. They are compatible with most drivers. The controllers use the
USB port, available on all modern computers and laptops. They can serve as direct replacement or
upgrade for many parallel port break-out boards.
There are currently four models available. The Mk1 controller for up to 4 axes, the Mk2 controller, using
up to 9 axes, Mk2/4 controller supporting up to 4 axes and Mk3 controller supporting up to 9 axes with
Ethernet support. The Mk2/4 controller is essentially a 4 axis version of the Mk2 controller, supporting
the same high pulse rate and advanced software functions. It also provides DB25 and built-in screw
terminal connections.
PlanetCNC controllers provide a complete, fully integrated software/hardware solution. Additional
machine control software is NOT required. The USB CNC Controller software is a dedicated
application, designed to fully exploit the features of the purpose-built hardware. It has many advanced
features to assist day-to-day CNC machine operation.
USB (V2.x) from PC/Laptop running Windows XP, Vista, Windows 7, 8 or 8.1 (32 bit or 64bit)
motor driver connector pin-out is compatible with 10 pin open source interface (Linistepper,
PICStep)
controller works with most step/dir stepper and servo motor drivers available on the market
buffered IO for maximum performance
advanced interpolation algorithms
start, stop, pause and resume execution of program on your machine
standard RS274/NGC G-code (EMC2 and LinuxCNC compatible)
advanced G-codes - G40, G41, G42 (Cutter Radius Compensation) supported
advanced G-codes - G43, G49 (Tool Length Offsets) supported
advanced G-codes - G54, G59.3 (Coordinate System Origins) supported
tested with SolidCAM, MasterCAM, ArtCAM, Vectric, CamBam, MeshCAM ... generated G-code
Profili 4-axes and 3-axes G-code supported
import toolpath from DXF files
import toolpath from PLT/HPGL files
import toolpath from image files
import toolpath from NC-Drill (Excellon) files
import toolpath from Gerber (RS-274X) files
toolpath simulation
automatic homing procedure
advanced toolchange procedures
automatic tool length measuring
export toolpath to G-code
export toolpath to DXF
SDK (software developers kit) is available
works on MacOS with virtual machine emulating Windows
2 Software
2.1 Overview
CNC USB Controller software is designed to fully exploit the advanced features of controller
hardware. At the same time the software remains user friendly. Even those new to CNC machining can
employ advanced functions with little difficulty.
Configuration options allow for maximum flexibility, integration and customization. Automatic tool
changers are supported. Tool sensor functions provide automatic tool-length detection. A movable tool
sensor can be used as a multifunction positioning aid.
Simulation features are designed for fast verification of NC programs. Simulation can run automatically,
under keyboard or mouse control, or by selection of individual lines in an NC program. Zoom, pan or
rotate of the preview does not interrupt simulation.
The software has useful G-Code manipulation and transformation functions. G-Code can be
bookmarked, copied pasted and edited. It can be shifted, scaled mirrored and rotated. Code remapping for foam cutter applications is available.
There are many functions to assist creation of toolpaths. A wide range of content can be directly
imported or converted to NC program. The G-Code Wizard quickly creates pocketing and drill array
toolpaths based on user specifications. .DXF layers can be managed within the software. Tool paths
can export to G-Code, .DXF or .CSV.
2.2 Installation
CNC USB Controller software is compatible with Windows XP, Vista, Windows 7, Windows 8
and Windows 8.1 (32 or 64 bit). Installation is a two-part process. Driver installation is performed, after
which the main application can be installed and configured. The installation process is largely
automatic. In most cases its possible to accept default options.
Windows 7 will display a publisher verification request. This is simply a Windows 7 feature. It occurs
when software from any publishers who are not part of the Microsoft verification process is installed.
Windows 8 and Windows 8.1 driver installation will require few extra steps. Plese refer to instructions
below.
Some computers may require additional components to be installed. This is largely governed by the
operating system and the installed software. More recent Microsoft releases contain these elements as
part of the operating system. Older versions may not have them if software installed on the machine
has not required their use.
Requirements:
Microsoft .NET 3.5 SP1 Framework
CNC USB Controller software is installed by execution of the CNCUSB_Setup.msi Microsoft installer
package.
The CNC USB Controller Setup Wizard will launch.
Press Next to start installation or Cancel to close the wizard and stop installation.
A destination folder is nominated. C:\Program Files\CNC USB Controller\ is the default install location.
An alternate location can be selected by use of the Browse.. button.
Press Next to continue or Cancel to exit the setup wizard.
The setup wizard will request confirmation. Press Next to start installation, Back to adjust settings or
Cancel to exit the setup wizard without installation.
10
A start menu folder for shortcuts is created. CNC USB Controller\Driver is the default setting.
An alternate folder can be specified using the Browse.. button.
Press Next to continue, or Cancel to stop installation.
The Ready to Install pane will appear. This provides opportunity to review, and if so desired, change
setup options.
Press Install to continue, Back to adjust settings or Cancel to stop installation.
11
Driver installation will complete when the CNC USB Controller is connected to the USB Port.
Windows XP will detect controller hardware and the Found New Hardware Wizard will launch.
Use of Windows Update is not required.
Press Next to continue, or Cancel to stop installation.
12
13
When the CNC USB Controller is connected to the USB Port, Windows 7 will detect controller hardware
and begin the driver installation process. Windows Security will launch a publisher verification
request.
Select Install this driver software anyway to continue with installation, the rest of the process does not
require user input. When the driver has been installed, Windows 7 will show a pop up report of success
at the lower right-hand side of the Taskbar.
14
Click "Restart now". Now the system will restart and might take some minutes to show up the boot
menu. Wait for It patiently.
After some time you will be prompted with a menu with following options:
15
Continue
Troubleshoot
Turn off
Choose "Troubleshoot".
Refresh your PC
Reset your PC
Advanced Options
System Restore
Automatic Repair
Command Prompt
Now the computer will restart and the boot menu appears.
Choose Disable Driver signature Enforcement from the menu. Now windows will start and you can
do the installation of the driver.
17
On launch of CNC USB Controller software the Main Window will display. Data and status information
for all aspects of G-Code program execution is provided on this main screen. The interface has been
designed to be simple to use. Many regularly used functions are available via on-screen buttons and
keyboard hot-keys.
There are seven areas within the window. Each provides information or function concerning specific
aspects of G-Code program execution. For the purposes of illustration, color highlights in show the
various areas as described below.
Position / State / Program panels.
Program visualization/preview.
G-Code panel.
Manual data input (MDI) panel.
Menus and toolbars.
Status bar.
Function shortcuts.
On screen Jog controls are provided for position adjustment if a hardware jog keyboard is not
available. Alternative screen layout, with wider aspect visualization and G-Code display, is
available by pressing F11.
18
19
Light red and light purple: Limit switch active and machine stop disabled.
Yellow and Orange: Outside machine soft limits with soft limits enabled. (Yellow for negative direction
and orange for positive direction)
Light green: Outside machine soft limits with soft limits disabled.
Speed display:
Shows current machine speed in units/minute.
Jog:
Click+hold on large arrows jogs until the mouse button is released. Corner buttons allow
diagonal or combined axis jogging. Smaller arrows, near the center of jog controls, perform a single
step move per click. Jog step increment is defined in Settings or adjusted via a drop-down on the
arrow next to the current machine speed indicator.
Speed set:
Shows set speed value. If enabled with check box then speed override is active. Value can be
entered of adjusted with slider below.
This value also sets jogging speed.
Note: using speed override in not recommended method for changing speed. If you need to run NC
program on machine with different speed then you should use menu command Program/Set Speed...
WARNING:
If absolute position is changed automatic tool change and fixed tool sensor position might become
invalid!
20
2.3.2.1 Current:
Units:
Plane:
Mode:
Speed:
Feed:
Traverse:
Flood:
Mist:
Spindle:
millimeters or inches
XY, YZ or ZX
absolute or relative
current speed
feed speed value
traverse speed value
ON/OFF
ON/OFF
direction & speed
2.3.2.2 Axes:
X, Y, Z:
Work Offset X:
Work Offset Y:
Work Offset Z:
Tool Offset Z:
Tool Offset X:
Absolute:
Shows axis coordinate values, if line is selected from program then this is
indicated with (SYM).
Working offset value of X axis
Working offset value of Y axis
Working offset value of Z axis
Tool offset value
Tool offset value
True if moving in absolute machine coordinates
2.3.2.3 Origin:
Coordinate S..:
Offset:
2.3.2.4 Tool:
Tool Offset Z:
Tool Offset X:
Tool:
Name:
Shape:
Diameter:
21
Length:
Current status of completion in percentage, number of currently executing G-code line in
relation to total number of g-code lines.
Line:
Number of currently executing G-code line
G-code:
Corresponded G-code of currently executing G-code line
22
23
Under panel is horizontal slider which can be used for G-Code preview.
24
2.3.7 Toolbar
Emergency stop:
Open program:
Start execution:
Stop execution:
Pause execution:
Top View:
Side View:
Front View:
Perspective View:
Zoom In:
Zoom Out:
Zoom Tool:
Zoom Extents:
Mist:
Flood:
Spindle:
25
Go To Position - Zero:
Go To Position - ZeroXY:
Go To Position - Park1:
Go To Position - Park2:
Go To Position - G28:
Go To Position - G30:
Offset - Zero:
Zeros the working offset.
Offset - Current XY:
Sets the current XY position as the XY working offset.
Offset - Current Z:
Sets the current Z position as the Z working offset.
Offset Measure Offset Z: Measures Z working offset at the current location, using movable
tool sensor.
Offset - Measure Tool Offset:
Measures tool length using a fixed tool sensor.
Offset - Measure Tool Offset Here:
Measures tool length at the current location, using
movable tool sensor.
Home:
26
27
2.3.8.1 Open
Opens new program. Software will try to auto detect file format.
2.3.8.2 Close
Closes program that is currently opened.
Sort:
Sorts elements at such particular order, that when cutting is applied, the shortest path between
elements is used. This shortens cutting time.
28
Optimize:
This feature tries to further optimize toolpath by splitting elements entities. However, caution
should be used at this feature, because there is a possibility that generated toolpath might be incorrect.
This feature is very useful when Foam Cutter machine is used.
Millimeters or Inches:
DXF files have no embedded units. Millimeters or inches units must be specified. If units are not
properly defined, program will be scaled incorrectly.
29
2.3.8.4.3.1.1 General
Use Layers:
Elements within DXF files are usually grouped in layers. In HPGL format layer is called pan. If
you choose to use layers, you will be able to see certain layers name in the generated G-code window.
It also allows you to generate 'Pause' and 'Tool Change' procedure in-between layers.
E.g.: If your element is given default layer name 3, you are able to see layers name in G-code window.
Layers name will appear in the beginning of layers corresponded G-code. This way you can make your
generated G-code slightly more transparent.
Pause:
In between each layers G-code execution, a pause will be generated. User dialog reminds you
that Pause has been generated and to resume program you must click Continue button.
Tool change:
In between each layer, a tool can be changed. Generated tool change G-code uses layers name
for tool name. E.g.: If we name our layer in DXF file, '3', then generated tool change G-code will be 'T3
M6'
Use Block Entities:
Sometimes DXF elements are inside special block. With this option enabled, you choose that
block entities are also used in toolpath generation.
Scale:
Apply the specified scale factor for correct dimension size.
E.g.: If millimeters are set as units, and we want to display our imported program in centimeters, we set
scale factor 10.
Spindle:
When enabled, 'Spindle' ON/OFF G-code will be generated. Spindle will be turned ON in the
beginning of the program, and turned OFF at the end of the program.
30
Flood:
When enabled, 'Flood' ON/OFF G-code will be generated. Flood will be turned ON in the
beginning of the program, and turned OFF at the end of the program.
Mist:
When enabled, 'Mist' ON/OFF G-code will be generated. Mist will be turned ON in the beginning
of the program, and turned OFF at the end of the program.
Shift Extents To Zero:
Generated program will Align with the zero location.
You can also align program with zero location later, if you click Program/Shift/Extents To Zero
Copy XYZ->UVW:
Generates program for 2nd tower when 'Hot Wire' machine type is used. With this option
enabled, toolpath of UVW axes, will be symmetrical with generated toolpath of XYZ axes.
Speed:
Sets feed speed.
Tab Distance:
Distance between two tabs used for holding element in place
during cut.
Tab Size:
Size of tabs.
Passes:
Number of passes that machine will do over generated toolpaths.
You can use this feature in combination with Step Down.
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.
Note: In first pass machine will not plunge for 2mm, but it will pass at current Z offset height (e.g.
surface of work material). In order that first pass will be plunge of 2mm, we must set Safe Height/Base
Height at -2.000 value.
Step Down:
Depth increment per pass.
Header:
Inserted text will appear in G-code window at the beginning of generated G-code.
Note: If text doesn't include G-code syntax, then text must be in brackets '()'.
31
Footer:
Inserted text will appear in G-code window at the end of generated G-code.
Note: If text doesn't include G-code syntax, then text must be in brackets '()'.
32
Spindle:
Insert 'Spindle' 'ON' G-Codes, on selected 'Safe height' before downward plunge move.
Insert 'Spindle' 'OFF' G-Codes, on selected 'Safe height' after downward plungemove.
Flood:
Insert 'Flood' 'ON' G-Codes, on selected 'Safe height' before downward plunge move.
Insert 'Flood' 'OFF' G-Codes, on selected 'Safe height' after downward plunge move.
Mist:
Insert 'Mist' 'ON' G-Codes, on selected 'Safe height' before downward plunge move.
Insert 'Mist' 'OFF' G-Codes, on selected 'Safe height' after downward plunge move.
Outputs first:
Insert 'Spindle', 'Flood', 'Mist' ON/OFF G-Codes, after downward plunge move from selected
'Safe height'.
Delay:
Insert 'Delay' (G04) before downward plunge move.
Note: If 'Outputs first' is checked, Delay will be inserted after downward plunge move and
'Spindle', 'Flood', 'Mist' 'ON' G-codes.
Pause:
Insert 'Pause' (M00) G-Code before downward plunge move.
Note: If 'Outputs first' is checked, Delay will be inserted after downward plunge move and
'Spindle', 'Flood', 'Mist' 'ON' G-codes.
33
2.3.8.4.3.2.3 Traverse
Traverse feature allows us to set machine behavior during its traverse moves. You can set
outputs to be turned ON or OFF while machine is performing Traverse moves. You can generate Pause
or Delay in the beginning or at the end of specified element.
Spindle:
Insert 'Spindle' ON/OFF G-Codes, after downward plunge move from
selected 'Safe Height'.
Flood:
Insert Flood' ON/OFF G-Codes, after downward plunge move from
selected 'Safe Height'.
34
Mist:
Insert 'Mist' ON/OFF G-Codes, after downward plunge move from selected 'Safe Height'.
Start Delay:
Set Delay time after inserted 'Spindle', 'Flood', 'Mist', ON G-Code
Start Pause:
Set Pause after inserted 'Spindle', 'Flood', 'Mist', ON G-Codes
End Delay:
Set Delay time after inserted 'Spindle', 'Flood', 'Mist', OFF G-Codes
End Pause:
Set Pause after inserted 'Spindle', 'Flood', 'Mist', OFF G-Codes
35
2.3.8.4.3.3.1 Stage 1
2.3.8.4.3.3.2 Stage 2
Enable:
Enable certain 'Stage' move.
Height:
Height of certain Stage move. Height specified here, is height where
'Spindle', 'Flood' or 'Mist' will be turned ON.
Spindle:
Insert 'Spindle' ON G-Codes after stages height has been achieved.
Flood:
Insert 'Flood' ON G-Codes after stages height has been achieved.
Mist:
Insert 'Mist' ON G-Codes after stages height has been achieved.
36
Delay:
Set 'Delay' time after stages height has been achieved. Delay time can be used for instance
when you turn 'Spindle' ON at determined stage height, and 'Spindle' needs 5 seconds to achieve its
desired RPM.
Pause:
Set 'Pause' after stages height has been achieved.
2.3.8.4.3.3.3 End
Delay:
Set Delay time at the end of final stage.
Pause:
Set pause at the end of final stage.
37
Feed Speed:
Sets 'Feed Speed'.
Plunge Speed:
Sets 'Plunge Speed' for plunge (down) moves.
Safe Height:
'Safe Height' value for machine traverse moves with traverse
speed.
Zero Height:
Surface height. Machine moves down to this height at 'Feed Speed'.
Depth:
Drill depth. Machine moves down to this height at 'Plunge Speed'.
Use Tool Change:
Uses tool change G-code between different drills.
38
Sort:
Sorts holes to optimize the toolpath to shorten working time.
Mirror:
Mirrors program in XY.
If NC Drill format definition is not included in file then you can change it. Software will try to auto-detect
correct settings but if imported file looks strange then you should change these values.
2.3.8.4.4.1 Units:
Specify millimeter or inch units.
2.3.8.4.4.2 Format:
Specify number decimal digit format.
2.3.8.4.4.3 Leading / Trailing Zeroes:
Specify leading and trailing zeroes.
39
Feed Speed:
Sets Feed speed.
Plunge Speed:
Sets Plunge Speed for plunge (down) moves.
Safe Height:
Safe Height value for machine traverse moves with
traverse speed.
Zero Height:
Surface height. Machine moves down to this height at
'Feed Speed'.
Depth:
Depth of milling, when milling isolation or engraving. Machine moves down to this height at
'Plunge Speed'.
Tool diameter:
Diameter of tool used for milling.
Mirror:
Mirrors program in XY.
40
PCB Size:
Dimensions of PCB board.
2.3.8.4.5.1 Use:
Gerber files can contain different elements such as polygons, tracks and pads.
Use Polygons:
Use 'Polygons' in toolpath calculation.
Use Tracks:
Use 'Tracks' in toolpath calculation. Only tracks will be visible.
Use Pads:
Use 'Pads' in toolpath calculation. Only pads will be visible.
Pause:
Insert 'Pause' (M00) G-Code at the end of marking pads.
Tool Number:
Number of the tool that will be used for marking pads.
41
Drill Depth:
Drill depth. Machine moves down to this height at 'Plunge Speed'.
Pause:
Insert 'Pause' (M00) G-Code at the end of drilling pads.
Tool Number:
Number of tool that will be used for drilling pads.
2.3.8.4.5.4 Mode:
Tool-path calculation mode.
Isolation:
Enable to mill electrical isolation toolpath.
Engrave:
Enable to mill center line (for example silkscreen or
cutout).
None:
Enable if you want just mark or drill pads.
Pause:
Insert 'Pause' (M00) G-Code at the end of specified toolpath calculation mode
Tool number:
Number of the tool that will be used for specified toolpath calculation mode.
42
43
Image:
Dimensions of image in mm and in pixels
Scale:
Sets scale of imported image.
Resolution:
This is calculating algorithm for internal resolution.
Outline:
Toolpath generation is based on the outline of shape.
Centerline:
Toolpath generation is based on the centerline of shape.
Preserve width:
Centerline parameter.
44
Color Reduce:
Algorithm for reducing number of colors in image. This helps to generate better toolpath from
image.
Use index:
When enabled, color index is used instead of color values from table.
Background color:
Sets background color that will be ignored.
Despecle Level:
Image noise filter removes speckles from image.
Tightness:
Despacle level parameter.
All features below are the parameters of image recognition algorithm.
Corner Threshold:
Always:
Surround:
Error Threshold:
Filter Iterations:
Line Threshold:
Reversion:
Remove Adj. Corners:
Tangent Surround:
Width Weight Fact:
45
Size XY:
Sets maximum XY dimensions of the generated toolpath. Initial values are determined using
pixel dimensions and the image resolution.
Height Z:
Maximum Z dimension of the generated
toolpath.
Invert:
Invert Z values for positive or negative relief.
Diameter:
Diameter of tool that will be used. This sets Y axis step value.
Detail:
Interpolation detail level. This sets X axis step value.
Method:
Toolpath extraction can use selected color or intensity data embedded within the image.
Usually luminance produces best results.
R Red
G Green
B Blue
H Hue
S Saturation
L Luminance
46
47
2.3.8.7 Settings
In 'Settings' are all main configurations of parameters that are crucial for proper functionality and
correct behavior of machine and attached hardware.
2.3.8.7.1 Import Settings
Imports Settings file to quickly restore a known working configuration or to re-configure CNC
USB Controller software to suit different machines types or applications.
2.3.8.7.2 Export Settings
Saves the active Settings file as a backup of the software/machine configuration. Custom
options can be stored to quickly configure machines to user requirement.
2.3.8.8 Language
Select language of application from list of supported languages.
2.3.8.9 Exit
Closes CNC USB Controller software. If the E-Stop on exit feature is active, the machine
performs an E-Stop. Settings options allow E-Stop to deactivate spindles and interrupt all motor
ENABLE signals, disabling the machine if software is inactive.
48
49
2.3.9.1 Origin
The Origin function displays machine origin positions established in the Settings / Parameters
tab. Up to nine coordinate systems can be specified. Each can use a unique origin location to suit
specific applications or hardware.
2.3.9.6 Zoom In
Zoom the display in for close view of smaller details.
2.3.9.10
Center Tool
Centers the program visualization on the current tool position. Useful to find and follow the tool
when simulating large NC programs or if cut extents move the tool outside the displayed area.
2.3.9.11
Center View
Centers program visualization based on NC program extents. Useful to quickly reorient the view
if Center Tool has been used and its desirable to restore a full view.
2.3.9.12
Change View
Switch between horizontal and vertical position of G-code panel. Provides alternate view with
wide aspect visualization and G-Code listing. This can be useful if G-Code lines or comments are wider
than the standard view will display or if program aspect ratio is more suited to this layout.
50
2.3.9.13
Simulate
2.3.9.14
Window
2.3.9.14.1 Jog
Opens a jog panel maintaining on-screen jog functions. Click+hold on large arrows jogs until
mouse button release. Corner buttons allow combined axis jogging. Small arrows, near the center of
jog controls, perform a single step move per click.
2.3.9.14.2 Reset
Resets GUI to default size and position.
2.3.9.14.3 Large
Displays larger toolbar screen buttons, for use with a touchscreen display.
51
2.3.9.15
Show
Show item opens a sub-menu of elements that can be displayed as part of G-Code
visualizations. There are many helpful aids to provide useful feedback. Checked items are visible in
visualizations, unchecked items are not.
52
Show Labels
Display of labels.
2.3.9.15.12
Show Extents
Display of toolpath extents. Toolpath is outlined from minimum to maximum edges for all axes.
2.3.9.15.13
Show Direction
Display of direction.
2.3.9.15.14
Show Completed
53
2.3.9.15.15
Display of toolpath history. Tool leaves a footprint displayed as line for every move it makes.
2.3.9.15.16
Show Gauge
Display of gauges for selected axis. Gauge is displayed in left side of 3D display. Gauge helps
with the sense of orientation within of axis minimum and maximum limit values.
2.3.9.15.17
Display of large tool handle. Large tool handle helps to locate the tool over 3D display.
2.3.9.15.18
Tool Radius
Follow Tool
Coordinates
3D
Enables/disables 3D display
2.3.9.15.22
G-Code
Perspective
54
2.3.9.16
Material
2.3.9.17
Show IO
'Show IO' allows us to observe input and output pins status. It comes very useful when we need
to check if certain input/output is properly activated. ON / OFF indication depends on connected
hardware and use of Invert options in other Settings tabs.
55
2.3.9.17.1 Input
Indication panel of 'Input' connector pins.
2.3.9.17.2 Aux
Indication panel of 'Aux' connector pins.
2.3.9.17.3 Limit
Indication panel of 'Limit' connector pins.
2.3.9.17.4 Active Limit Switch
Indication panel of active 'Limit Switch' connector pins.
2.3.9.17.5 Active soft Limit Switch
Indication panel of active 'Soft Limits'
2.3.9.17.6 Jog
Indication panel of 'Jog' connector pins.
2.3.9.17.7 Ctrl
Indication panel of 'Ctrl' connector pins.
2.3.9.17.8 ExtIn
Indication panel of 'ExtIn' connector pins.
2.3.9.17.9 Output
Indication panel of 'Output' connector pins.
2.3.9.17.10
ExtOut
56
2.3.10
Program menu
The program menu provides G-Code processing functions to conform NC programs to user
requirements. In most cases only parameter entry is required to make desired adjustments.
Functions to navigate NC programs and bookmark blocks of code are also available. NC programs
can be sectioned by use of toolchange or pause codes.
Shift, Scale and Rotate can be applied to entire programs. These functions can assist with repeat
usage of the same NC program or defined program block, for corners, patterns and so forth.
57
2.3.10.1
Lines
58
2.3.10.2
Bookmarks
G-code lines can be bookmarked. Bookmarked G-code lines can be further used with
'Machine/Bookmarks' features.
Bookmarks are set by selection of the G-Code line where the bookmark is required and use of the
Toggle item or press of the Tab key. Multiple lines can be bookmarked. When a line has been
bookmarked it highlights.
Selection of a Bookmark and press of the Tab key will clear it. Alternatively all Bookmarks can be
cleared at once using Clear All. When bookmarks are cleared the highlight is removed.
2.3.10.2.4 Toggle:
Toggle bookmark on selected G-code line.
59
2.3.10.3
Shift
'Shift' translates or moves the tool-path in 3D space using one of many options.
2.3.10.3.1 User:
Displayed dialog allows user to specify value of the distance in each axis, for which tool-path will be
shifted.
60
61
2.3.10.4
Scale
'Scale' adjusts dimensions of the tool-path using factor based scaling. Default value of 1.00 is
equivalent to 100% scale or actual size. A scale factor setting of 2.00 increases tool-path dimensions to
200% of the original size in the relevant axis.
When tool-path includes arcs, scale dialog offers only values of scaling for XY and Z axes.
When tool-path does not include any arcs, scale dialog offers values for all axes. You can use 'Convert
Arcs To Lines' to convert G-code with arcs to G-code without arcs.
62
2.3.10.5
Mirror
'Mirror' function mirrors the tool-path over X, Y or Z axis. Axis of reflection is selected in the submenu.
2.3.10.6
Rotate XY
'Rotate XY' rotates the tool-path XY plane with the origin as the center of rotation. Rotation
angle is specified in dialog. Positive values rotate the tool-path in a clockwise direction. Negative values
cause anti-clockwise rotation.
63
2.3.10.7
Advanced:
Advanced menu includes features that help user to modify tool-paths in multiple useful ways.
2.3.10.7.1 Clone:
When user needs to mill more pieces of the same tool-path, Clone feature can be used.
Count XY:
You can define how many clones of original tool-path will be copied in X and Y direction.
Distance XY:
You can set the distance in X and Y direction between two neighboring clones. Default XY
distance is set to G-code extents.
64
2.3.10.7.2 Wrap:
This feature wraps g-code around X axis to be used on machines with 4th axis. If g-code
contains arcs (G2/G3) then you should use 'Convert Arcs To Lines' first. To have correct visualization on
display, in File/Settings/General/Machine type, Rotary ABC feature must be used.
Angle:
Value represents span in degrees over cylinders surface, over which G-code will be wrapped.
Radius:
Value represents cylinder radius that is mounted on A axis.
2.3.10.7.3 Transform:
Tool-path can be modified with the help of Transform feature. User enters desired value and
clicks the desired transformation button. Transformation matrix combines and shows all used
transformations.
65
Reset:
Resets transformation matrix to default value.
Shift X:
Shifts tool-path for entered value in X direction.
Shift Y:
Shifts tool-path for entered value in Y direction.
Rotate:
Rotates the tool-path XY plane for entered value.
Scale X:
'Scale X' adjusts dimensions of the tool-path using factor based scaling. A scale factor of entered value
2.00, increases tool-path dimensions to 200% of the original size in the X axis.
Scale Y:
'Scale Y' adjusts dimensions of the tool-path using factor based scaling. A scale factor of entered value
2.00, increases tool-path dimensions to 200% of the original size in the Y axis.
Scale:
'Scale' adjusts dimensions of the tool-path using factor based scaling. A scale factor of entered value
2.00 increases tool-path XY dimensions to 200% of the original size.
Mirror X:
Mirrors the tool-path over X axis.
Mirror Y:
Mirrors the tool-path over Y axis.
Skew X:
Skews the tool-path in X coordinate.
Skew Y:
Skews the tool-path in Y coordinate.
Transformation:
Transformation matrix combines and shows all used transformations.
66
From Point 1:
X: X coordinate of Point 1, from the first group of points
Y: Y coordinate of Point 1, from the first group of points
From Point 2:
X: X coordinate of Point 2, from the first group of points
Y: Y coordinate of Point 2, from the first group of points
From Point 3:
X: X coordinate of Point 3, from the first group of points
Y: Y coordinate of Point 3, from the first group of points
If From position coordinates are coordinates from G-code, you use
selected G-code line.
67
To Point 1:
X: X coordinate of Point 1, from the second group of points
Y: Y coordinate of Point 1, from the second group of points
To Point 2:
X: X coordinate of Point 1, from the second group of points
Y: Y coordinate of Point 1, from the second group of points
To Point 3:
X: X coordinate of Point 1, from the second group of points
Y: Y coordinate of Point 1, from the second group of points
If To position coordinates are coordinates from G-code, you use
selected G-code line.
2.3.10.7.5 Warp:
Applies Warp feature to current tool-path, based on measured points. If measured points are saved
into file, you can load them with Load points button.
68
2.3.10.8
Set Speed
'Set Speed' provides alternate means to specify feed and traverse motion rates applied in machining
the G-Code program. Current G-Code F word values are overridden.
This is preferred method for changing speed. Use this and not speed override on main screen.
2.3.10.8.1 Feed
No Change:
There will be no changes in speed value for Feed Rate.
Second Option:
New speed value for Feed Rate will be set.
Third Option:
New speed value for Feed Rate can be in percentage of the existing value for Feed Rate.
2.3.10.8.2 Traverse
No Change:
There will be no changes in speed value for Traverse Rate.
Second Option:
New speed value for Traverse Rate will be set.
Third Option:
New speed value for Traverse Rate can be in percentage of the existing value for Feed Rate.
69
2.3.10.9
Calculate Speed
This speed calculator widget which helps user to calculate 'Feed Rate' value based on the
material, tool and spindle RPM used.
2.3.10.9.1 Material
Various materials be selected from drop down menu.
Cutting Speed:
Based on the selected material, Cutting Speed is advised.
2.3.10.9.2 Tool
User enters number of flutes and diameter of used tool and specifies measurement units.
2.3.10.9.3 Spindle Speed
Spindle Speed is calculated based on the 'Material' and 'Tool' parameter values.
2.3.10.9.4 Chip Load
User enters 'Chip load' value and specifies measurement units.
2.3.10.9.5 Feed Rate
'Feed Rate' value is calculated based on the 'Spindle Speed' and 'Chip Load' parameter values.
70
2.3.10.10
G-Code applied to the XYZ or 1st tower is duplicated / modified to create code for the UVW or
2nd tower. Usually used with foam-cutters.
2.3.10.11
G-Code applied to the 1st and 2nd towers is exchanged / modified so that XYZ code becomes
UVW code and vice verse. Usually for use with foam-cutters.
Example: Program is made to create left wing of plane. By use of swap command existing program
creates right wing of plane.
2.3.10.12
2.3.10.13
Converts all entities into segmented lines. The value specified at Settings/Options/Interpolation
determines line segment length.
2.3.10.14
Edit G-Code
Opens a copy of the active NC program using external editor. After editing,you need to save file
under same file name, return to CNCUSB software without closing the editor. Changes in g-code will be
reloaded.
2.3.10.15
Edit DXF
The dialog will show, identifying layer content in the imported DXF file. Entities within the DXF
can be re-ordered or removed. The G-Code line where the entity appears in the file is identified. G-code
describing the entity is selected.
When a entity is selected in the panel, it is highlighted in the visualization display. The code associated
with the entity is selected in the G-Code panel listing.
A DXF file must first be imported or this function is unavailable.
2.3.10.16
Copy To Clipboard
2.3.10.17
71
2.3.11
Machine menu
The machine menu provides means to directly interact with controlled machine and attached
hardware.
2.3.11.1
Emergency Stop
Sends an Emergency stop or E-Stop to the machine causing immediate hard stop. Controller
stops sending control signals to motor driver.
Note: Using only E-Stop is not sufficient security solution when using servomotors. E-Stop doesn't
prevent machine from crashing if encoder starts to send faulty data to motor driver. Some sort of double
prevention system should be used for full-proof security solution, where e-Stop signal would trigger
relays that would disconnect the power supply to the motors and limit switches would only serve as
reference switches.
72
2.3.11.2
Start
2.3.11.3
Start Loop
2.3.11.4
2.3.11.5
Stop
Stops the machine using a normal stop. Deceleration is used if this is set in
Settings/Options/Stop/Decelerate.
2.3.11.6
Pause
Pause / Resume execution of the current G-Code program. Deceleration is used if this is set in
Settings/Options/Pause/Decelerate.
2.3.11.7Bookmarks
Executes the active G-Code program based on bookmarks.
73
2.3.11.8
Mist
2.3.11.9
Flood
2.3.11.10
Spindle
2.3.11.11
Outputs
2.3.11.11.1
Output Ext:
Toggle controller external outputs ON / OFF using a sub-menu. Mk3 has an option for additional
32 outputs.
74
2.3.11.12
Go To
2.3.11.12.1
If this option is enabled, 'Go To' features moves will obey homing sequence rules as configured
in Settings/Axes/Homing/Sequence.
2.3.11.12.2
Zero:
If currently active coordinate display shows absolute coordinates, then all axes move to their
zero absolute position (G53 G0 X0 Y0...).
If currently active coordinate display shows relative coordinates, then all axes move to their zero
relative position (G0 X0 Y0...).
2.3.11.12.3
Zero XY:
2.3.11.12.4
Park1:
Park2:
75
2.3.11.12.6
G28:
G30:
User:
Opens user data entry dialog. The desired position for up to 9 axes can be entered. Machine
moves to entered relative position.
2.3.11.12.9
Stored Position:
Machine can move to one of nine positions, previously stored in Machine/Set Position/Store
Current Position To/Stored Position 1-9. Stored positions are absolute positions.
2.3.11.12.10 Selected Line:
Machine moves to position of selected G-code line.
2.3.11.12.11
76
2.3.11.13
Set Position
Applies the current machine position to a named location selected from the sub-menu.
Executing Set Position will change machine absolute position! If absolute position is changed
automatic tool change and fixed tool sensor position will become invalid!
2.3.11.13.1
Enable:
2.3.11.13.2
Zero:
If currently active coordinate display shows absolute coordinates, then absolute coordinates will
be changed to zero.
If currently active coordinate display shows relative coordinates, then absolute coordinates will be
changed so that relative coordinates will be zero.
2.3.11.13.3
Zero Axis:
77
2.3.11.13.4
Park1:
Park2:
G28:
G30:
User:
Opens the data entry dialog. Position can be defined for up to 9 axes.
If currently active coordinate display shows
absolute coordinates, then absolute
coordinates are set.
If currently active coordinate display shows
relative coordinates, then absolute
coordinates of selected axis will change so
that relative coordinates have entered
values.
2.3.11.13.9
Stored Position:
Sets the current machine position as one of the nine stored positions.
2.3.11.13.10 Selected Line:
Sets the current machine position to selected G-code line.
2.3.11.13.11
78
79
2.3.11.14
Offset
Sets the working offset based on current machine position or user defined parameters.
2.3.11.14.1
Zero:
2.3.11.14.2
Current:
Current XY:
Current Z:
80
2.3.11.14.5
User:
Opens the data entry dialog. Entered value is set as working offset for all 9 axes.
2.3.11.14.6
Selected Line:
Sets the working offset to selected G-code line for X and Y axes only.
2.3.11.14.8
Camera XY:
Sets working offset to current Camera view position for X and Y axes only.
81
2.3.11.14.9
82
2.3.11.14.11
From Material
Sets the Working offset based on positions from 'Materials' saved in Settings/Materials.
Corner Top:
Sets working offset to materials bottom left corner on the top surface.
Corner Bottom:
Sets working offset to materials bottom left corner on the bottom surface.
Center Top:
Sets working offset to materials center on top surface.
Center bottom:
Sets working offset to materials center on bottom surface.
83
84
Corner Inside:
Machine will measure inside corner offset with two moves. Green lines represent the tool-path of
the machine.
Corner Outside:
Machine will measure outside corner offset with two moves. Green lines represent the tool-path
of the machine.
85
Size:
If we use sensor or touching probe to measure X and Y coordinates then this value represent
radius of stylus ball at the point of touching probe.
Length:
The distance which machine travels to another measuring point.
Thickness:
Thickness of sensor used. If you are using PCB clad as sensor, then this value is the thickness
of the PCB clad.
Return Distance:
Value represents distance for which tool returns once it has touched the surface of sensor.
Retract:
Value represents distance for which machine ascends (from position to which previously
returned to).
86
Center Inside:
Machine will measure inner center offset with four automated moves. Green lines represent the
toolpath of the machine.
Center Outside:
Machine will measure outer center offset with four automated moves. Green lines represent the
toolpath of the machine.
87
Size:
If we use sensor or touching probe to measure X and Y coordinates then this value represent
radius of stylus ball at the point of touching probe.
Length:
The distance which machine travels to another measuring point.
Thickness:
Thickness of sensor used. If you are using PCB clad as sensor, then this value is the thickness
of the PCB clad.
Return Distance:
Value represents distance for which tool returns once it has touched the surface of sensor.
Retract:
Value represents distance for which machine ascends (from position to which previously
returned to).
88
Size:
If we use sensor or touching probe to measure X and Y coordinates then this value represent
radius of stylus ball at the point of touching probe. This is the same as Height parameter for measuring
Z coordinates.
Return Distance:
Value represents distance for which tool returns once it has touched the surface of sensor.
Height:
Thickness of material that is used for sensor.
Retract:
Value represents distance for which machine ascends (from height to which previously returned
to).
89
2.3.11.15
Tools
2.3.11.15.1
Active
Displays the active tool or Empty if no tool has been mounted. Active tool is also indicated in
bottom left corner of CNC USB software.
2.3.11.15.2
Change
Select
Software cannot detect if a tool is mounted or which tool is mounted. This option informs
software of the actual tool status to initialize tool change procedures (M61 Qn).
2.3.11.15.4
Measure Tool offset using a fixed tool sensor. The machine moves to the tool sensor and
measures offset. It auto returns to the initial position if Return is enabled in Settings/Tool Sensor/Tool
Sensor Fixed/Return.
2.3.11.15.6
Measures Tool offset using a movable tool sensor at the current location. The movable tool
sensor is placed by the operator.
NOTE: This is not the correct way of measuring tool offset.
90
2.3.11.15.7
Opens the data entry dialog. Tool Offset can be defined for all 9 axes.
2.3.11.15.8
2.3.11.15.9
Measure tool length and set absolute position using a fixed tool sensor. The machine moves to
tool sensor position and measures tool length.
NOTE: This does not measure offset, and it is not the correct way to measure tool length.
2.3.11.15.10 Measure Tool Length Here
Measure tool length and set absolute position at current location using a movable tool sensor.
The movable tool sensor is positioned by the operator. The machine performs the measurement.
NOTE: This does not measure offset, and it is not the correct way to measure tool length.
91
2.3.11.15.11
Sensor Setup
Size:
If we use sensor or touching probe to measure X and Y
coordinates then this value represent radius of stylus ball at the
point of touching probe. This is the same as Height parameter
for measuring Z coordinates.
Return Distance:
Value represents distance for which tool returns once it
has touched the surface of sensor.
Height:
Thickness of material that is used for sensor.
Retract:
Value represents distance for which machine ascends (from height to which previously returned
to).
92
2.3.11.16
Home
2.3.11.17
Camera
2.3.11.17.1
Show Camera
93
2.3.11.17.2
Set Offset
Camera Offset is set here. To obtain correct camera offset, we must first measure reference
point at two different positions of Z axis.
Capture Point Offset:
Point 1:
Point 1 represents XY coordinates of reference point when Z axis is at minimal height
Point2:
Point 2 represents XY coordinates of reference point when Z axis is at maximal height
94
95
2.3.11.18
Transformation
When our workpiece coordinate system is not aligned with coordinate system of our machine,
we can help ourselves with transformations.
It is advised to clear all points and offsets that are currently set, before beginning with transformation.
Red color indicates that certain parameters couldn't be calculated.
2.3.11.18.1
Transformation Matrix
96
2.3.11.18.2
Calculates transformation matrix from measured points. Measured points should define your
workpiece position and optionally size.
Points X-:
Points X+:
X+ and X- coordinate point count
obtained by 'Measure' or 'Capture' feature
is shown here.
Points Y-:
Points Y+:
Y+ and Y- coordinate point count
obtained by 'Measure' or 'Capture' feature
is shown here.
From:
Position:
Original position from where we want to make transformation.
Size:
Original size from where we want to make transformation. If we measure opposite edge of our
workpiece, and therefore obtain correct dimensions of workpiece, transformation matrix applies scaling
to the transformed toolpath, if sizes are not identical. You set 'Size' to zero if you don't want scaling.
To:
Based on Measured/Captured points, transformation matrix calculates the Angle, Position and Size of
our workpiece. After transformation is applied, machines coordinate system is aligned with coordinate
system of workpiece.
97
2.3.11.18.3
Calculate Transformation Matrix From Points calculates transformation from first group of
points to second group of points. Names 'From' and To are used because we calculate
transformation matrix from first group of points to another group of points. 'From' group of points
uses X and Y point coordinates that are usually taken from G-code, and 'To' group of points uses X and
Y point coordinates that are usually machine position coordinates. Each row in the table represents one
'From' point and one 'To' point.
98
Points:
From:
'From' group of points uses X and Y coordinates from G-code line or some other known
coordinate. You can enter these coordinate values by hand, using the numerical box, or you can use
buttons bellow the numerical box.
Button description:
Update:
Existing values of 'From' points can be updated to new values. Whenever you wish to update
the X or Y values of certain 'From' point, you must click on the row to select it first.
Add:
With 'Add' button, we add new row, in which now we can insert the X and Y coordinate values
for new 'From' and 'To' points. For each new 'From' and 'To' point, 'Add' button must be pressed.
Remove:
Removes selected point row.
Capture:
Captures the X and Y coordinate values of current machine position and copies them in 'From'
numerical box. These are absolute position coordinate values. You can insert these values to new point
row with 'Add' button or with 'Update' button to overwrite existing 'From' X and Y values in selected
point row.
Line:
Copies X and Y coordinate values from selected line of G-code and copies them in 'From'
numerical box. You can insert these values to new point row with 'Add' button or with 'Update' button to
overwrite existing 'From' X and Y values in selected point row.
Inserting points in to the table can be time-consuming task and since you should never exclude the
possibility of something going wrong, you can save your group of points to a file with Save button and
also restore them with Open button.
99
To:
'To' group of points uses X and Y coordinates of current machine position. You can enter these
coordinate values by hand, using the numerical box, or you can use buttons bellow the numerical box.
Button description:
Update:
Existing values of 'To' points can be updated to new values. Whenever you wish to update the X
or Y values of certain 'To' point, you must click on the row to select it first.
Add:
With 'Add' button, we add new row, in which now we can insert the X and Y coordinate values
for new 'From' and 'To' points. For each new 'From' and 'To' point, 'Add' button must be pressed.
Remove:
Removes selected point row.
Capture:
Captures the X and Y coordinate values of current machine position and copies them in 'To'
numerical box. These are absolute position coordinate values. You can insert these values to new point
row with 'Add' button or with 'Update' button to overwrite existing 'To' X and Y values in selected point
row.
Line:
Copies X and Y coordinate values from selected line of G-code and copies them in 'To'
numerical box. You can insert these values to new point row with 'Add' button or with 'Update' button to
overwrite existing 'To' X and Y values in selected point row.
Inserting points in to the table can be time-consuming task and since you should never exclude the
possibility of something going wrong, you can save your group of points to a file with Save button and
also restore them with Open button.
You can use previously obtained points with the 'Reload' button.
Points obtained with 'Store' feature will populate the group of 'From' points.
Points obtained with 'Capture' feature will populate the group of 'To' points.
All points can be cleared from the list with the 'Clear' button.
With button 'Calculate' we calculate the transformation matrix for current groups of 'From' and 'To'
points.
100
2.3.11.19
Measured points are obtained with the help of semi-automated process. Measured points are
usually used for Warp and Digitize 3D features and calculation of Transformation matrix.
Measure procedure requires configuration of parameters such as tool radius, touching probe end ball
radius, copper sensor thickness, direction of edge measurement, grid point density etc..
Software needs these parameters in order to compensate them.
Captured points are machine position coordinates that are obtained without semi-automated process.
Capture points group include plain machine position coordinates without offsets, points with direction,
points captured with camera and Stored points.
101
2.3.11.19.1
Measure
Measure Edge group of features, are usually used for calculating transformation matrix.
Measure Edge X-:
Moves the X axis in positive direction, stops on contact with tool sensor/ touching probe and
captures point. Then it moves for return distance, retracts and moves in Y positive direction for distance
defined with Length value. This sequence of moves repeats for value of 'Count' times.
Measure Edge X+:
Moves the X axis in the negative direction, stops on contact with tool sensor/ touching probe
and captures point. Then it moves for return distance, retracts and moves in Y negative direction for
distance defined with Length value. This sequence of moves repeats for value of 'Count' times.
Measure Edge Y-:
Moves the Y axis in the positive direction, stops on contact with tool sensor/ touching probe and
captures point. Then it moves for return distance, retracts and moves in X positive direction for distance
defined with Length value. This sequence of moves repeats for value of 'Count' times.
Measure Edge Y+:
Moves the Y axis in the negative direction, stops on contact with tool sensor/ touching probe and
captures point. Then it moves for return distance, retracts and moves in X negative direction for
distance defined with Length value. This sequence of moves repeats for value of 'Count' times.
102
Set Edge:
Here we set measure 'Edge' procedure parameters.
Size:
Size is distance from the Z axis center to point of contact. If tool and movable tool sensor are
used, then this distance is Tool radius + sensor thickness. If touching probe is used, this distance is
radius of touching probes end ball.
Return Distance:
Value represents distance for which tool returns when sensor/touching probe is triggered.
Count:
Number of measuring points.
Length:
Distance between two neighboring measuring points.
Retract:
Value represents distance for which machine retracts (from position to which previously returned
to).
103
104
Set Grid:
Here we set the grid of measuring points over copper board.
Height:
Height is distance between surface and contact point . If we want to measure grid Z over copper
board that will be used for PCB, then value of 'Height' = 0.
Retract:
Value represents distance for which machine retracts (from position to which previously returned
to).
Size:
XY Dimensions of copper board
Length:
Calculated distance between two adjacent measuring points.
Count:
Number of desired measuring points in X or Y axis of copper board.
Example:
First we set dimensions of the board (XY=50x50) and how many points we want to measure in X and Y
coordinates (25). With 'Count' button length between two adjacent points is calculated(result is 2mm).
Return Distance:
Value represents distance for which tool returns once it has touched and made contact.
105
Digitize 3D:
Initiates measuring procedure using a touching probe.
Set Digitize 3D:
Here we set parameters of Digitize 3D feature.
Raster:
With Raster we define the distance between two
neighboring scan lines.
Angle:
Surface is scanned in lines at defined Angle.
X,Y:
With X and Y values we set the dimensions of Digitize
3D feature.
Inside these dimensions constraints scanning will be applied.
Depth:
With Depth we set the value of lowest height at which scanning will still be possible.
Distance:
Distance between two scanning points.
Limit:
Density of scanning points is limited with 'Limit' value.
Tip:
Radius of the end ball of touching probe.
106
2.3.11.19.2
Capture
Capture Point:
Stores the current machine position as an entry in the points list.
Capture Camera Point:
Stores the current camera view (current machine position with camera offset) as an entry for XY
position points in the points list.
Capture Point X-:
Captures the current machine position as an entry for Edge X- in the points list.
Capture Point X+:
Captures the current machine position as an entry for Edge X+ in the points list.
Capture Point Y-:
Captures the current machine position as an entry for Edge Y- in the points list.
Capture Point Y+:
Captures the current machine position as an entry for Edge Y+ in the points list.
Capture Point Z:
Captures the current machine position as an entry for Grid Z in the points list.
Store Position Point:
Stores current machine position as an entry for Stored points in the points list.
Store Camera Point:
Stores current Camera position as an entry for Stored points in the points list.
Store Selected Line Start Point:
Stores currently selected G-code lines starting point as an entry for Stored points in the points
list.
Store Selected Line End Point:
Stores currently selected G-code lines ending point as an entry for Stored points in the points
list.
107
2.3.11.19.3
Clear
Clear Points:
Clears not edge related points from the points list.
Clear Points X-:
Clears Edge X- points from the points list.
Clear Points X+:
Clears Edge X+ points from the points list.
Clear Points Y-:
Clears Edge Y- points from the points list.
Clear Points Y+:
Clears Edge Y+ points from the points list.
Clear Points Z:
Clears Edge Z points from the points list.
2.3.11.19.4
Load Points
Save Points
108
2.3.11.20
Soft Limits
Soft limits are used as safety precaution so that machine doesn't make hard stop or crash into
the limit switches with full speed. When machine activates 'Soft Limits', it decelerates an stops without
any stress. Soft limits can be enabled or disabled with this feature. 'Soft Limits' parameters can be
defined in File/Settings/Axes/Soft Limits.
2.3.11.21
Firmware
109
2.3.12
Help menu
2.3.12.1
Help
2.3.12.2
PlanetCNC forum offers help for all hardware, software related problems and provides answers
for all PlanetCNC related questions.
2.3.12.3
G-Code wiki
2.3.12.4
G-Code Reference
2.3.12.5
Activate License
Displays the license activation panel, for entry of the software registration key. When software
is purchased, a registration key, matching controller hardware / software, is sent via email. The bottom
line of registration key is copied from email and pasted into the large panel area.
Be attentive about the shape of your license key, because some e-mail clients parse the code in
more lines and add additional characters which, in result, make registration faulty.
2.3.12.6
Import License
Imports license file, allowing licensed software to transfer to alternative computer hardware or to
restore from backup.
2.3.12.7
Export License
Exports license file, allowing software license to transfer to alternative computer hardware or to
make backup.
110
2.3.12.8
Log
Software keeps a log of various system files and settings related to software compatibility and
performance. If problems are encountered, this information can assist trouble-shooting and problem
solving.
2.3.12.9
2.3.12.10
About
Displays the software logo screen along with software and hardware version information. As with
log data, this can be helpful if trouble-shooting or problem solving.
111
2.4 Settings
The panel allows setup of all software options and features. Settings
allow automation and integration of many features to provide advanced
functions and simplify or speed-up many common tasks. Required options
are dependent on user machinery, ancillary hardware and application.
Its MOST IMPORTANT that software is appropriately configured before any
attempt is made to control CNC machinery. Failure to do so may result in
serious injury or damage to machinery. With unknown or untested machinery,
its safer to keep initial motion rates below anticipated maximums.
Emergency stop and limit switch hardware should be configured and tested
before higher traverse or rapid move rates are performed.
Settings shown in this section are examples. Its the users responsibility to
ensure that safe and appropriate settings are applied to suit the controlled
machine. Mk3 controller settings are used in examples. Most settings are
applicable to other controllers. If specific settings for certain model of
controller are required, this is noted in the text.
Some settings relate to hardware. These might be items like tool sensors, jog
keyboards, MPG Pendants, tool-changers and so forth. If hardware is not
available when software is configured, it can be installed and configured
separately. It may be helpful to have hardware in place and operational before configuring related
options. This allows testing or adjustment to determine safe and suitable parameters. Again, for
reasons of safety, this is particularly the case with emergency stop and limit switch hardware.
112
2.4.1 General
In General tab we set measurement units, description of machine or settings used, and notes
that could notify or aware the user.
2.4.1.1 Description
Anything written in description bar, is displayed in top left corner of CNC USB software window.
This is helpful when indicating which setting file is used.
113
2.4.1.2 Units
Sets the measurement units used in software.
Metric (millimeters-mm) or Imperial (inches-in) units can be used.
If you change this settings, all values in settings will be recalculated to different units.
XYZ:
Typical three axis machine.
Hot wire:
Foam-cutter which uses X and Y axes on one tower and U and V on second tower.
Rotary:
Machine with rotary 4th axis set as axis A.
Rotary ABC:
Machine with rotational axes A, B, C.
Lathe:
Lathe with axes Z and X.
Printer:
3D printer with E axis as extruder. E axis is assigned to axes A, B or C with tool number.
Tool 0 : A axis, Tool 1: B axis, Tool 2: C axis
2.4.1.4 Notes
Here you can write anything you like.
114
2.4.2 Connection
Controller with Ethernet connector can communicate with CNC USB software via USB of
Network connection.
USB:
When enabled, USB connection is used.
Network:
When enabled, Network connection is used.
IP:
Default IP of controller
Automatic reconnect:
When connection fails, controller automatically reconnects with computer.
(Recommended: disabled)
115
IP:
IP of selected controller from scan view list.
Mask:
Mask of selected controller from scan view list.
MAC:
MAC address of selected controller from scan view list.
DHCP:
DHCP status of selected controller from scan view list.
Change:
You can change network parameters of selected controller from scan view list.
116
If your network device does not use DHCP, then controller will not be provided with the IP from DHCP.
Meaning, controller will not be visible in scan list. That is why controller has inner built timer, which
times out after certain amount of time and assigns controller its IP. Controller is then visible in scan
view, where we can disable DHCP option so we can avoid this in the future.
117
2.4.3.4 Rotate:
Rotates 3D display.
(Recommended for typical CNC : 0, 0, 0 ; Recommended for lathe: 0, 90, 0)
2.4.3.5 Mirror:
Mirrors axes on 3D display.
2.4.3.6 Update:
Screen update rate.
(Recommended for Mk3: Fast for other controllers is Normal)
2.4.3.8 Hover:
This enables toolpath highlighting when mouse hovers over. Right mouse double click on
highlighted line selects corresponding g-code line.
2.4.3.10
Measure Speed:
If enabled displayed screen is measured from movement, if disabled, display speed is calculated
from step frequency.
(Recommended: Enabled)
2.4.3.11Time Factor:
Value is used when calculating cutting time estimate.
(Recommended: 1.3)
2.4.3.12
MDI Focus:
2.4.3.13
Reload G-Code:
If enabled, reloads G-code if g-code file was modified with external editor.
2.4.3.14
G-Code Editor:
118
2.4.3.15
Set Colors:
Display:
Named swatches identify visualization elements and applied colors. Color is adjusted by
selection of an element. A windows color selection panel will display. Adjustment or selection of an
alternate color is made and the software applies this to the element. Visualization colors can be reset to
initial values using the Default button.
G-Code:
Named swatches identify G-Code words and other listing elements, displaying the applied color.
Color assignment is s adjusted as previously described. The G-Code tab has an additional
Enable option for use of colors in the G-Code panel. Default 1 and Default 2 buttons provide two
preconfigured color options.
119
Skin:
You can set different look of main window.
120
2.4.3.16
Set Keys:
You can set keyboard key combinations for jogging sets and all other features of CNC USB
software. This is faster and easier way of accessing desired features and their parameters then through
menus.
Shortkey or key combination can be assign to certain feature by clicking the 'TestKey' box and pressing
desired key or combination of keys. In the box to the right you can see how for each key, specific key
code corresponds.
With 'Set' button we assign key combination to selected software feature selected from the list below.
Jogging tab:
Each jogging direction can have three different modes: Normal, Step and Sync.
Each jogging direction/mode can have three different sets of key combinations assigned. For jogging
modes 'Jogging', 'Jogging STEP' and 'Jogging SYNC' we can configure key combinations in three
different shortkey sets: Set 1, Set 2 and Set3.
Other tab:
Features are sectioned by menus to which they are affiliated to. For each feature you can set
key combination.
121
122
2.4.4 Axes
This tab is used to specify the number of axes used on the controlled machine as well as axis
names and other options.
Number of Axes:
The number of axes on controlled CNC machine.
R:
Resets all axis names to defaults.
Dir/Step Delay:
The value of delay after direction change. This is intended for older motor drivers.
Available for Mk2 controller only. Mk3 controller uses maximum possible value by default.
123
124
2.4.4.1 Setup
Steps/Unit:
The number of steps the controller must generate to move the machine axis for distance of one unit
(mm or inch).
Example:
A stepper motor using 200 steps per revolution, motor driver setting 1/16 micro-stepping and 4mm per
revolution lead screw, requires a Steps per Unit value of: 200 * 16 / 4 = 800.
Acceleration Ramp:
Init speed:
Motor starting speed on the acceleration curve.
(Recommended: 0 mm/min)
Maximum speed:
Maximum axis speed on acceleration curve. Value 0 disables maximum speed
limitations.
Acceleration:
Rate of acceleration.
(Recommended: 10-500 mm/sec2)
125
2.4.4.2 Options
Error Signal:
Some motor drivers support error signal. Error signal notifies controller of faulty machine
movement and stops the machine. Available on Mk3 controller only.
Enable:
Enables/disables Error signal.
Invert:
Inverts Error signal.
Kinematics:
H-Bot Enable:
This enables H-bot kinematics.
THC:
THC stands for 'Torch Height Control'. It is used for plasma type machines where distance
between the workpiece surface and the torch must be constant at all times of cutting for best results.
THC unit measures the distance between the torch and the material in any given moment of
cutting. THC outputs are sending signals which controller interprets as control signals for Z axis.
Note: THC device control output pins are connected to Jogging keyboards A axis jog buttons.
THC Enable:
Enables/disables the use of THC device.
Speed Only:
Height is compensated only when machine is at full speed and not during accelerations
and decelerations.
Axis:
Choose between Z or W axis. Available on Mk3 controller only.
126
Gear:
Reduces speed of height compensation.
2.4.4.3 Backlash
Backlash compensation value. If value is not set to zero, it is recommended to enable 'Split arcs' and
'Direction Change' in Setting/Lookahead.
2.4.4.4 Limits
Limit Switches:
Stop-:
If checked, trigger of a limit switch in negative direction of selected axis stops the
machine.
Stop+:
If checked, trigger of a limit switch in positive direction of selected axis stops the machine
Limit-:
Negative limit value of selected axis of machine working area.
Limit+:
Positive limit value of selected axis of machine working area.
127
128
Decelerate:
Machine decelerates from current speed and stops. Available on Mk3 controller only.
Decelerate-:
Deceleration is applied when soft limits are activated in negative direction of selected
axis.
Decelerate+:
Deceleration is applied only when soft limits are activated in positive direction of selected
axis.
Usually tool offset is not enabled and deceleration is enabled, however in Z- direction enabled tool
offset and disabled deceleration might prevent tool from crashing to tool table. Mk2 controller has this
feature enabled by default.
Check G-code Boundaries:
Software sends warning when imported toolpath boundaries exceed working area (soft limit
boundaries).
Soft Limits Decelerate:
Enables deceleration of machine when soft limits are activated.
129
2.4.4.6 Homing
Enable:
Enables use of the automatic homing procedure.
Return Distance:
When a limit switch is triggered, the machine will move back for 'Return Distance' value, and
release the triggered switch.
Go To First:
When enabled, axes with defined 'Go To' value will finish its homing with 'Go To' move, before
next axis homing sequence starts.
Sequence:
The order in which axes are homed. Its normal practice to first home the Z axis, to ensure
the tool is clear of work, prior to homing moves of other axes.
Speed:
Speed of the machine during homing. A low homing speed is advised. Machine axes will stop
without deceleration when a limit switch is triggered.
Direction:
Defines the direction of motion applied in homing moves - negative or positive direction.
130
Set Position:
This value sets limit switch position when it is triggered. Together with 'Limits' settings this
defines working area and absolute position.
Go To:
Moves axis to position as final step of its homing.
Example:
A machine has two X axis limit switches 500 mm apart. To give tolerance of 10mm on each side, the
working area is set as Limit- = 0 and Limit+= 480. Without this tolerance the X axis has absolute value
range of -10 mm to +490 mm = 500 mm.
Homing in the negative X direction (Direction = -), the machine triggers a limit switch at location -10
mm. Because of Return Distance = 3, the X axis moves back 3 mm to location -7 mm, releasing the
switch. This is limit switch position and Set position value of = -7 mm is set.
Finally Go To = 0 initiates a traverse of 7 mm in X positive direction, stopping at 0 mm.
2.4.5 Speed
131
132
2.4.6 Lookahead
Angle:
The angle the CNC machine can travel without reducing speed.
Example: The value of 150 degrees means that a dodecagon (a twelve-sided polygon) having
internal angles of 150 degrees, can be cut without reducing speed at corners.
(Recommended: 150-178 deg)
Radius:
Minimum arc radius that machine can travel without reducing speed.
Value zero disables this feature.
(Recommended: 0 units)
Angle:
If arc angle is less than this value then 'Radius' feature is disabled.
(Recommended: 20 deg)
133
2.4.6.1 Acceleration:
Radial Acceleration:
Maximum radial acceleration that your machine can handle. This parameter is used to calculate
maximum speed that machine can travel in arcs and blended corners.
(Recommended: 0-200 mm/sec2)
Path Tolerance:
Maximum distance that blended toolpath can deviate from source toolpath.
Path Blend:
With Path Blend enabled G64 Continuous Path Blend mode is enabled by default. Otherwise
G61 Exact Path mode is enabled. This can also be changed in G-code.
Speed Adjust:
Enables early deceleration if machine has to travel with lower speed.
(Recommended: Enabled)
Path Range:
Path Range is range of angle values that will be blended if 'Path Blend' is enabled.
E.g.: If Path range is defined from 15 deg to 175 deg then all angle values included in this angle range
will be blended with tolerance defined with 'Path Tolerance'.
(Recommended Low: 5-45 deg ; High: 150-179.99 deg)
2.4.6.2 Other:
Split Arcs:
This feature splits arcs to smaller segments not larger than 45 deg. This is important if machine
has backlash set.
(Recommended: Enabled)
Direction Change:
If backlash is set, speed is reduced if axis direction is changed.
(Recommended: Enabled)
-Force:
Speed is reduced if axis direction is changed. Backlash feature of direction change is ignored.
(Recommended: Disabled)
Dominant Axis Change:
Speed is reduced if dominant axis is changed. Dominant axis is axis that needs highest number
of steps.
(Recommended: Disabled unless difference in SPU settings between axes is high.)
134
2.4.7 Options
Interpolation:
Value used for interpolating arcs and other curves.
(Recommended: Mk3: 0.1-0,05mm ; Mk2: 0.5-0.1mm)
Optimization:
Moves with length shorter then this value are ignored.
(Recommended: 0)
2.4.7.1 Pause:
Show Dialog:
If enabled, when pause is activated dialog is displayed on screen.
Decelerate:
If enabled, when pause is activated machine decelerates and stops.
2.4.7.2 Stop:
Decelerate:
If enabled, when 'Stop' is activated machine decelerates and stops.
Outputs Off:
If enabled, when 'Stop' is activated all outputs are turned OFF.
135
Speed Tolerance:
This value sets how much can new speed value differentiate from previous one. This value is in
percentage of speed value.
(Recommended: Mk3: 0)
Disable Helix Interpolation:
Disables helix interpolation.
(Recommended: Enabled)
Disable List Move:
Disables list move.
(Recommended: Disabled)
2.4.8 Output
Inverts signal on output pin.
136
2.4.8.1 Pins
Here we define output pins for 'Spindle' and 'Coolant' control. If you use Planet CNC Output
board, you can follow this link to help you properly set output pins and connect output board to your
controller.
http://www.planet-cnc.com/faq/output_board/
137
Delay On/Off:
Delay period allowing the spindle to spin-up or stop.
Individual time period settings for spin-up (ON) and stop (OFF) are assignable.
Use RC controller:
Generates RC servo or ESC compatible signal on the spindle speed pin.
Lo/Hi:
Minimum / Maximum values of RC servo speed range.
Use PWM:
Generates PWM signal.
Freq:
PWM base frequency.
Supported only for Mk3 controller.
2.4.8.2 Pause
Output pin:
Assigns output pin that triggers when 'Pause' is generated.
138
2.4.9 Jog
'Jog' options configure use of software and hardware jogging keyboards.
Reverse:
Reverses movement for selected axis. Axes order depends on your axes names and usually
goes like this:
X, Y, Z, A, B, C, U, V, W
Accelerate:
If enabled, axis at each move accelerates.
Decelerate:
If enabled, axis at each move decelerates.
Step Distance:
The distance machine will travel on a single press of a jog button, in jog STEP mode.
139
Fourth box:
Fifth box:
Max Speed:
Maximum traverse rate in jog moves when using hardware jogging keyboards.
Software keyboard jog speeds are NOT affected by this option.
Speed Adjust:
When enabled, you can adjust speed in-between jogging moves with potentiometer on
keyboard.
When not enabled, speed can be adjusted only between jog moves.
Shift is Step:
When checked, the SHIFT key toggles STEP jog mode. Unchecked, SHIFT key toggles axis
5-8 jogging.
140
2.4.10
Limit
Limit input pins can be inverted and 'Normal' or 'Single Input' mode can be selected.
141
2.4.11
Input
Use Pause:
When enabled, switching of input toggles Pause/Resume of NC program. (INPUT 1)
Use Start:
When enabled, switching input triggers G-Code execution start. (INPUT 2)
Use Stop:
When enabled, switching input triggers NC program stop execution using a Normal' stop.
(INPUT 3)
Use E-Stop:
When enabled, switching input triggers machine E-Stop. (INPUT 4)
(Essential safety feature!)
Use Sensor:
Input is used for Tool Sensor connection. (INPUT 5)
Invert Input 1-5:
Invert options are for use of Normally Open (NO) or Normally Closed (NC) switch hardware.
142
Mk3 controller:
Mk3 has eight assignable input pins.
Input 1-8:
Each input pin ca be assigned for specific task:
143
144
Ext 1-32:
Each external input pin can be assigned for specific task:
145
2.4.12
Ctrl
E-Stop:
Enable 'E-Stop' to use E-Stop switch connected to CTRL1 pin.
Invert:
Invert option is for use of Normally Open (NO) or Normally Closed (NC) switch hardware.
Use MPG:
Enable "Use MPG" to use MPG pendant.
PPR:
Pulses per revolution.
Reverse:
Enable "Reverse" to set reverse MPG direction.
146
PPR:
Set "PPR" to your encoder pulses per revolution value.
Reverse:
Enable "Reverse" to set reverse direction.
2.4.12.1
MPG Pendant
Max Speed:
Maximum speed that machine can travel when operated with MPG.
Distance:
Length of one step.
Mode 0-6:
Seven modes are possible for Mk3 controllers and four modes are possible for Mk2 controller.
Standard MPG pendant has switch for Mode 1, 2 and 3. X1 on MPG selects "Mode1", X10 "Mode2"
and X100 "Mode3". For each mode you can set 'Factor' value and if "Step" mode is enabled.
It is best to experiment to get best mode settings for your machine.
147
Step:
Step mode or speed mode behavior can be selected. Because 'Step' distance depends on the
'Distance' and 'Factor' value and also on the version of controller, 'Step' will be described for Mk3 and
Mk2 separately.
Mk2:
Step mode enabled:
Factor value is used to calculate distance multiplier. Step distance = "Distance" *(1000 / "Factor")
For example:
If "Distance" is set to 0.01mm and factor is 1000, then step is 0.01mm long.
If "Distance" is set to 0.01mm and factor is 100, then step is 0.1mm long.
If "Distance" is set to 0.01mm and factor is 10, then step is 1mm long.
Mk3:
Step mode enabled: Factor value is distance multiplier.
For example:
If "Distance" is set to 0.01mm and factor is 1000, then step is 10mm long.
If "Distance" is set to 0.01mm and factor is 100, then step is 1mm long.
If "Distance" is set to 0.01mm and factor is 10, then step is 0.1mm long.
148
Options:
This feature is supported only by Mk3 controller:
Step mode enabled:
If first "Option" is enabled, then steps are buffered.
Step mode not enabled:
No "Option" enabled: Normal behavior.
Only first "Option" enabled: Potentiometer from Jogging keyboard controls the speed.
Only second "Option" enabled: Machine speed depends on speed of encoder rotation.
Both "Options" enabled: Machine speed is synchronized with encoder rotation.
2.4.13
Spindle Synch
149
2.4.14
Tool Table
In 'Tool Table' you can create tool list for needs of Automatic Tool Change (ATC), and set
position coordinates of populated tools in tool table.
150
General Tab:
In this tab you can create tools that will be included in tool list. Each created tool gets assigned
its parameters. When tool is created you add it to tool list with 'Add' button.
Number:
Assigns number to tool.
Name:
Assigns name to tool.
Shape:
You can choose between eight shapes:
-Unknown
-End Mill
-Ball Nose
-Vbit
-Conical
-Ogee
-Drill
-Other
Description:
You can add a description of tool.
Diameter:
Diameter of tool
Flutes:
Number of flutes.
Offset:
Tool offset.
Tool Sensor Offset:
Offset added to fixed tool sensor position when this tool is measured.
151
152
2.4.14.1
Tool Change
Tool Change settings are divided into three setting groups: 'Tool Change', 'Tool Offset' and 'Position'.
153
Enable:
Enables tool change procedure.
Z Axis First:
Usually you want to move Z axis first, before X axis and Y axis.
Stop:
Machine will stop at tool change position and will not resume.
Pause:
Machine will pause at tool change position. During this pause you manually change
tool.
Pause For Spindle:
Machine will pause after cutting (before tool change). During this pause you can turn
OFF spindle manually. Second pause is before cutting (after tool change). During this pause You can
turn spindle ON manually. If spindle is controlled through controller then this pause is not needed.
Skip Already Active Tool:
If tool with number N is already mounted then TN M6 g-code will be ignored and tool
change will not occur.
Reset Active Tool:
Resets currently active tool at beginning of program. This will set active tool number to 0.
154
Auto Return:
This depends on your g-code. By g-code standard g-code return moves should be in gcode program but are often not.
Here is example:
This is correct g-code:
G01 X0 Y0(start position)
G01 X10 Y0(cut to X10 Y0with first tool)
T2 M6 (change tool tool with auto return off)
G01 X10 Y0(return to last position)
G01 X20 Y0
G01 X30 Y0
Auto Compensate:
By g-code standard G43 offset will not change if tool is changed. If this option is enabled and
G43 is active then it will automatically adjust to changed tool.
155
Not Used:
Tool offset will not be measured.
Measure Tool Length:
After tool change, tool length offset is measured using fixed tool length sensor.
Tool Offset From Tool Table:
After tool change, tool length offset value is taken from tool table. This is often used
with ATC where tool length offset in known in advance.
Not set:
Position of tool change will not be set, machine will
pause when tool change occurs. Machine waits at
position where certain tools tool-path ends.
At Park 1:
Position defined at 'Park 1' coordinates.
At Park 2:
Position defined at 'Park 2' coordinates.
At G28:
Position defined at 'G28' coordinates.
156
At G30:
Position defined at 'G30' coordinates.
User defined:
User defines position coordinates. With 'Abs' option we select if this coordinates are
absolute or relative.
Z Axis Only:
If any of previous tool change positions is set and 'Z Axis Only' is enabled, machine stops
at position where certain tools tool-path ends and ascends to Z coordinate value of tool
change position previously selected. (Z coordinate value of Park1, Park 2, G28....)
2.4.14.2
157
Safe Height:
Value of height to/from which machine
ascends/descends when it is in tool change procedure.
Speed:
Speed at which machine descends/ascends to lock or
unlock tool.
Lock:
Lock output pin will activate/deactivate pneumatic tool-holder.
Output pin:
Define Output pin number for Lock.
Delay:
Delay value is amount of seconds that machine waits after Lock output is activated.
Hold:
Leaves Lock output activated when machine changes between two tools.
Blow:
Blow output pin will activate/deactivate blowing of air.
Output pin:
Define Output pin number for Blow.
Delay:
Delay value is amount of seconds that machine waits after Blow output is activated.
Hold:
Leaves Blow output activated when machine changes between two tools.
158
Move Unloaded:
We can set sequence of moves when machine does
not have any tool loaded in the tool-holder. First coordinate column
represents first move and second column represents second move.
These are offset coordinates.
This coordinate setup will do the following:
When machine unlocks tool, it ascends for 20mm in Z+ and then moves 30mm in X+ direction. Then
continues at default traverse rate.
Move Loaded:
We can set sequence of moves when machine does
have tool loaded in the tool-holder. First coordinate column
represents first move and second column second move. This are
offset coordinates.
159
2.4.15
Tool Sensor
Mk1 controller users connect the tool sensor to LIMIT pin 5 (Z-).
Mk2 and Mk2/4 controller users can use a dedicated sensor connection on INPUT
pin 5.
Mk3 controller has assignable input pins.
Enable:
Enables tool sensor.
Speed:
This is the speed value at which machine descends/ascends when it is in tool offset
measurement procedure and is directly above the tool sensor.
160
2.4.15.1
With fixed tool sensor we measure tool's length at fixed position on the tool table. When tool
activates tool sensor tool offset is calculated and set.
Location X,Y:
Absolute location coordinates of the tool sensor. Automatic 'Measure Tool Offset' procedure
moves the machine to this position.
Move X,Y:
A lead in/out offset move. 'Move' has two values. XY values are offset coordinates that tell the
machine from which initial point machine moves further to Fixed Tool Sensor location. This is usually
used if you want to move to sensor location from desired direction to avoid any obstacles.
Set Position Z:
Actual Z position of the tool sensor.
Direction:
The direction (up / down) the Z axis will be moved when the machine reaches Location XY.
Safe Height:
Safe Z value used for traverse machine move to Location XY.
Return Distance:
Distance for which machine ascends (returns) when toll sensor is activated (pressed). Machine
further ascends to Safe Height value.
Return:
If enabled, the machine will auto-return to the initial location.
161
2.4.15.2
Size:
Total distance from tool center to workpiece when sensor is triggered. (When measuring 'XY
Edges'. )
Example:
If the tool sensor is a simple piece of PCB of thickness 1.6mm and tool radius is 4mm (8mm
diameter), Size value = 1.6 + 4 = 5.6mm
NOTE: When measuring 'Current working Z offset', this parameter does not affect the
measurement.
Retract:
Value represents distance for which machine retracts (from position to which previously returned
to).
Height:
If the tool sensor is a simple piece of PCB of thickness 1.6mm, Height = 1.6mm
Return Distance:
Value represents distance for which tool returns when sensor/touching probe is triggered.
162
2.4.16
Materials
To visualize your raw work piece in CNC USB software 3D display, you can create the model of your
work piece in Materials.
163
Number:
Assign number of material.
Name:
Assign name of material.
Kind:
You can choose type of material from drop-down menu.
Description:
You can add description of your material.
X,Y,Z Size:
Insert dimensions of your workpiece.
X,Y,Z Position:
Insert position coordinates of your work piece. These are absolute coordinates.
Buttons:
Update:
Updates any changes made to selected material from list.
Add:
Adds new material to list.
Remove:
Removes selected material from list.
164
2.4.17
Parameters
You can assign position coordinates to selected parameter from parameters list.
165
2.4.18
Accessories
166
3 G-Code
G-code interpreter used by CNC USB controller is implemented according to National Institute of
Standards and Technology RS274NGC Interpreter - Version 3 specification.
Full documentation of RS274NGC is available at web page:
http://www.isd.mel.nist.gov/personnel/kramer/pubs/RS274NGC_3.web/RS274NGC_3TOC.html
3.1 Overview
The RS274/NGC language is based on lines of code. Each line (also called a "block") may include
commands to a machining center to do several different things. Lines of code may be collected in a file
to make a program.
A typical line of code consists of an optional line number at the beginning followed by one or more
"words." A word consists of a letter followed by a number (or something that evaluates to a number). A
word may either give a command or provide an argument to a command. For example, "G1 X3" is a
valid line of code with two words. "G1" is a command meaning "move in a straight line at the
programmed feed rate," and "X3" provides an argument value (the value of X should be 3 at the end of
the move). Most RS274/NGC commands start with either G or M (for miscellaneous). The words for
these commands are called "G codes" and "M codes."
The RS274/NGC language has no indicator for the start of a program. The Interpreter, however, deals
with files. A single program may be in a single file, or a program may be spread across several files. A
file may demarcated with percents in the following way. The first non-blank line of a file may contain
nothing but a percent sign, "%", possibly surrounded by white space, and later in the file (normally at
the end of the file) there may be a similar line. Demarcating a file with percents is optional if the file has
an M2 or M30 in it, but is required if not. An error will be signaled if a file has a percent line at the
beginning but not at the end. The useful contents of a file demarcated by percents stop after the second
percent line. Anything after that is ignored.
The RS274/NGC language has two commands (M2 or M30), either of which ends a program. A
program may end before the end of a file. Lines of a file that occur after the end of a program are not to
be executed.
167
Spaces and tabs are allowed anywhere on a line of code and do not change the meaning of the line,
except inside comments. This makes some strange-looking input legal. The line "g0x +0. 12 34y 7" is
equivalent to "g0 x+0.1234 y7", for example.
Blank lines are allowed in the input. They are to be ignored.
Input is case insensitive, except in comments. Any letter outside a comment may be in upper or lower
case without changing the meaning of a line.
3.4 Word
A word is a letter other than N followed by a real value.
Words may begin with any of the letters shown below. Several letters (I, J, K, L, P, R) may have
different meanings in different contexts. Permitted letters are:
A, B, C, D, F, G, H, I, J, K, L, M, N, P, Q, R, S, T, X, Y, Z
3.5 Number
A real value is some collection of characters that can be processed to come up with a number. A real
value may be an explicit number (such as 341 or -0.8807), a parameter value, an expression, or a
unary operation value. Definitions of these follow immediately. Processing characters to come up with a
number is called "evaluating". An explicit number evaluates to itself.
The following rules are used for (explicit) numbers. In these rules a digit is a single character between 0
and 9.
A number consists of an optional plus or minus sign, followed by zero to many digits, followed, possibly,
by one decimal point, followed by zero to many digits - provided that there is at least one digit
somewhere in the number.
There are two kinds of numbers: integers and decimals. An integer does not have a decimal point in it,
a decimal does.
Numbers may have any number of digits, subject to the limitation on line length. Only about seventeen
significant figures will be retained, however (enough for all known applications).
168
3.6 Parameters
A parameter value is the pound character # followed by a real value. The real value must evaluate to
an integer between 1 and 5399. The integer is a parameter number, and the value of the parameter
value is whatever number is stored in the numbered parameter. Parameters can be used as variables.
The # character takes precedence over other operations, so that, for example, "#1+2" means the
number found by adding 2 to the value of parameter 1, not the value found in parameter 3. Of course,
#[1+2] does mean the value found in parameter 3. The # character may be repeated; for example ##2
means the value of the parameter whose index is the (integer) value of parameter 2.
A parameter setting is the following four items one after the other: (1) a pound character #, (2) a real
value which evaluates to an integer between 1 and 5399, (3) an equal sign =, and (4) a real value. For
example "#3 = 15" is a parameter setting meaning "set parameter 3 to 15."
A parameter setting does not take effect until after all parameter values on the same line have been
found. For example, if parameter 3 has been previously set to 15 and the line "#3=6 G1 x#3" is
interpreted, a straight move to a point where x equals 15 will occur and the value of parameter 3 will be
6.
169
operation is the modulus operation (MOD). The ninth operation is the "power" operation (**) of raising
the number on the left of the operation to the power on the right.
The binary operations are divided into three groups. The first group is: power. The second group is:
multiplication, division, and modulus. The third group is: addition, subtraction, logical non-exclusive or,
logical exclusive or, and logical and. If operations are strung together (for example in the expression
[2.0 / 3 * 1.5 - 5.5 / 11.0]), operations in the first group are to be performed before operations in the
second group and operations in the second group before operations in the third group. If an expression
contains more than one operation from the same group (such as the first / and * in the example), the
operation on the left is performed first. Thus, the example is equivalent to: [((2.0 / 3) * 1.5) - (5.5 / 11.0)],
which simplifies to [1.0 - 0.5], which is 0.5.
The logical operations and modulus are to be performed on any real numbers, not just on integers. The
number zero is equivalent to logical false, and any non-zero number is equivalent to logical true.
171
172
For several modal groups, when a machining center is ready to accept commands, one member of the
group must be in effect. There are default settings for these modal groups. When the machining center
is turned on or otherwise re-initialized, the default values are automatically in effect.
Group 1, the first group on the table, is a group of G codes for motion. One of these is always in effect.
That one is called the current motion mode.
It is an error to put a G-code from group 1 and a G-code from group 0 on the same line if both of them
use axis words. If an axis word-using G-code from group 1 is implicitly in effect on a line (by having
been activated on an earlier line), and a group 0 G-code that uses axis words appears on the line, the
activity of the group 1 G-code is suspended for that line. The axis word-using G-codes from group 0 are
G10, G28, G30, and G92.
3.14 G - Codes
G-codes of the RS274/NGC language are shown and described below.
3.14.1
For rapid linear motion, program G0 X- Y- Z- A- B- C-, where all the axis words are optional, except that
at least one must be used. The G0 is optional if the current motion mode is G0. This will produce
coordinated linear motion to the destination point at the current traverse rate (or slower if the machine
will not go that fast). It is expected that cutting will not take place when a G0 command is executing.
It is an error if:
If cutter radius compensation is active, the motion will differ from the above.
3.14.2
For linear motion at feed rate (for cutting or not), program G1 X- Y- Z- A- B- C-, where all the axis words
are optional, except that at least one must be used. The G1 is optional if the current motion mode is G1.
This will produce coordinated linear motion to the destination point at the current feed rate (or slower if
the machine will not go that fast).
It is an error if:
If cutter radius compensation is active, the motion will differ from the above.
173
3.14.3
3.14.4
A circular or helical arc is specified using either G2 (clockwise arc) or G3 (counterclockwise arc). The
axis of the circle or helix must be parallel to the X, Y, or Z-axis of the machine coordinate system. The
axis (or, equivalently, the plane perpendicular to the axis) is selected with G17 (Z-axis, XY-plane), G18
(Y-axis, XZ-plane), or G19 (X-axis, YZ-plane). If the arc is circular, it lies in a plane parallel to the
selected plane.
Two formats are allowed for specifying an arc. We will call these the center format and the radius
format. In both formats the G2 or G3 is optional if it is the current motion mode.
In the radius format, the coordinates of the end point of the arc in the selected plane are specified along
with the radius of the arc. Program G2 X- Y- Z- A- B- C- R- (or use G3 instead of G2). R is the radius.
The axis words are all optional except that at least one of the two words for the axes in the selected
plane must be used. The R number is the radius. A positive radius indicates that the arc turns through
180 degrees or less, while a negative radius indicates a turn of 180 degrees to 359.999 degrees. If the
arc is helical, the value of the end point of the arc on the coordinate axis parallel to the axis of the helix
is also specified.
It is an error if:
both of the axis words for the axes of the selected plane are omitted,
the end point of the arc is the same as the current point.
It is not good practice to program radius format arcs that are nearly full circles or are semicircles (or
nearly semicircles) because a small change in the location of the end point will produce a much larger
change in the location of the center of the circle (and, hence, the middle of the arc). The magnification
effect is large enough that rounding error in a number can produce out-of-tolerance cuts. Nearly full
circles are outrageously bad, semicircles (and nearly so) are only very bad. Other size arcs (in the
range tiny to 165 degrees or 195 to 345 degrees) are OK.
Here is an example of a radius format command to mill an arc: G17 G2 x 10 y 15 r 20 z 5.
That means to make a clockwise (as viewed from the positive Z-axis) circular or helical arc whose axis
is parallel to the Z-axis, ending where X=10, Y=15, and Z=5, with a radius of 20. If the starting value of
Z is 5, this is an arc of a circle parallel to the XY-plane; otherwise it is a helical arc.
In the center format, the coordinates of the end point of the arc in the selected plane are specified along
with the offsets of the center of the arc from the current location. In this format, it is OK if the end point
of the arc is the same as the current point. It is an error if:
174
when the arc is projected on the selected plane, the distance from the current point to the center
differs from the distance from the end point to the center by more than 0.0002 inch (if inches are being
used) or 0.002 millimeter (if millimeters are being used).
When the XY-plane is selected, program G2 X- Y- Z- A- B- C- I- J- (or use G3 instead of G2). The axis
words are all optional except that at least one of X and Y must be used. I and J are the offsets from the
current location (in the X and Y directions, respectively) of the center of the circle. I and J are optional
except that at least one of the two must be used. It is an error if:
When the XZ-plane is selected, program G2 X- Y- Z- A- B- C- I- K- (or use G3 instead of G2). The axis
words are all optional except that at least one of X and Z must be used. I and K are the offsets from the
current location (in the X and Z directions, respectively) of the center of the circle. I and K are optional
except that at least one of the two must be used. It is an error if:
When the YZ-plane is selected, program G2 X- Y- Z- A- B- C- J- K- (or use G3 instead of G2). The axis
words are all optional except that at least one of Y and Z must be used. J and K are the offsets from the
current location (in the Y and Z directions, respectively) of the center of the circle. J and K are optional
except that at least one of the two must be used.
It is an error if:
Here is an example of a center format command to mill an arc: G17 G2 X10 Y16 I3 J4 Z9.
That means to make a clockwise (as viewed from the positive z-axis) circular or helical arc whose axis
is parallel to the Z-axis, ending where X=10, Y=16, and Z=9, with its center offset in the X direction by 3
units from the current X location and offset in the Y direction by 4 units from the current Y location. If the
current location has X=7, Y=7 at the outset, the center will be at X=10, Y=11. If the starting value of Z is
9, this is a circular arc; otherwise it is a helical arc. The radius of this arc would be 5.
In the center format, the radius of the arc is not specified, but it may be found easily as the distance
from the center of the circle to either the current point or the end point of the arc.
175
3.14.5
G04 - Dwell
For a dwell, program G4 P- . This will keep the axes unmoving for the period of time in seconds
specified by the P number. It is an error if:
3.14.6
Program G7 to enter the diameter mode for axis X on a lathe. When in the diameter mode the X axis
moves on a lathe will be 1/2 the distance to the center of the lathe. For example X1 would move the
cutter to 0.500 from the center of the lathe thus giving a 1 diameter part.
3.14.7
Program G8 to enter the radius mode for axis X on a lathe. When in Radius mode the X axis moves on
a lathe will be the distance from the center. Thus a cut at X1 would result in a part that is 2" in diameter.
G8 is default at power up.
3.14.8
cutter compensation is on
3.14.9
You can set the offsets of the nine program coordinate systems using G10 L2 Pn (n is the number of
the coordinate system) with values for the axes in terms of the absolute coordinate system.
To set the coordinate values for the origin of a coordinate system, program
G10 L2 P - X- Y- Z- A- B- C-, where the P number must evaluate to an integer in the range 1 to 9
(corresponding to G54 to G59.3) and all axis words are optional. The coordinates of the origin of the
coordinate system specified by the P number are reset to the coordinate values given (in terms of the
absolute coordinate system). Only those coordinates for which an axis word is included on the line will
be reset.
It is an error if:
If origin offsets (made by G92 or G92.3) were in effect before G10 is used, they will continue to be in
effect afterwards.
The coordinate system whose origin is set by a G10 command may be active or inactive at the time the
G10 is executed.
176
Example: G10 L2 P1 x 3.5 y 17.2 sets the origin of the first coordinate system (the one selected by
G54) to a point where X is 3.5 and Y is 17.2 (in absolute coordinates). The Z coordinate of the origin
(and the coordinates for any rotational axes) are whatever those coordinates of the origin were before
the line was executed.
3.14.10
3.14.11
3.14.12
3.14.13
177
3.14.14
3.14.15
3.14.16
3.14.17
3.14.18
3.14.19
3.14.20
Two predefined positions are defined (by parameters 5161-5166 for G28 and parameters 5181-5186 for
G30). The parameter values are in terms of the absolute coordinate system, but are in unspecified
length units.
To return to predefined position by way of the programmed position, program G28 X- Y- Z- A- B- C- (or
use G30). All axis words are optional. The path is made by a traverse move from the current position to
the programmed position, followed by a traverse move to the home position. If no axis words are
programmed, the intermediate point is the current point, so only one move is made.
178
3.14.21
179
3.14.22
To turn cutter radius compensation off, program G40. It is OK to turn compensation off when it is
already off.
3.14.23
3.14.24
the D number is not an integer, is negative or is larger than the number of carousel slots,
3.14.25
3.14.26
G41.1 & G42.1 function the same as G41 & G42 with the added scope of being able to program the tool
diameter. D word is tool diameter.
180
3.14.27
To use a tool length offset, program G43 H-, where the H number is the desired index in the tool table. It
is expected that all entries in this table will be positive. The H number should be, but does not have to
be, the same as the slot number of the tool currently in the spindle. It is OK for the H number to be zero;
an offset value of zero will be used.
It is an error if:
the H number is not an integer, is negative, or is larger than the number of carousel slots.
It is OK to program using the same offset already in use. It is also OK to program using no tool length
offset if none is currently being used.
3.14.28
3.14.29
181
3.14.30
To offset the current point by a given positive or negative distance (without motion), program G52 X- YZ- A- B- C- U- V- W- , where the axis words contain the offsets you want to provide.
All axis words are optional, except that at least one must be used. If an axis word is not used for a given
axis, the coordinate on that axis of the current point is not changed.
It is an error if:
When G52 is executed, the origin of the currently active coordinate system moves by the values given.
The effect of G52 is canceled by programming G52 X0 Y0 etc.
Example:
Suppose the current point is at X=4 in the currently specified coordinate system, then G52 X7 sets the
X-axis offset to 7, and so causes the X-coordinate of the current point to be -3.
3.14.31
You can make straight moves in the absolute machine coordinate system by using G53 with either G0
or G1.
For linear motion to a point expressed in absolute coordinates, program G1 G53 X- Y- Z- A- B- C- (or
use G0 instead of G1), where all the axis words are optional, except that at least one must be used.
The G0 or G1 is optional if it is the current motion mode. G53 is not modal and must be programmed on
each line on which it is intended to be active. This will produce coordinated linear motion to the
programmed point. If G1 is active, the speed of motion is the current feed rate (or slower if the machine
will not go that fast). If G0 is active, the speed of motion is the current traverse rate (or slower if the
machine will not go that fast).
It is an error if:
182
3.14.32
3.14.33
3.14.34
3.14.35
3.14.36
3.14.37
3.14.38
3.14.39
3.14.40
You can select one of the nine systems by using G54, G55, G56, G57, G58, G59, G59.1, G59.2, or
G59.3. It is not possible to select the absolute coordinate system directly.
To select coordinate system 1, program G54, and similarly for other coordinate systems.
The system-number-G-code pairs are:
(1-G54), (2-G55), (3-G56), (4-G57), (5-G58), (6-G59), (7-G59.1), (8-G59.2), and (9-G59.3).
It is an error if:
3.14.41
3.14.42
3.14.43
Program G61 to put the machining center into exact path mode, G61.1 for exact stop mode, or G64 for
continuous blend mode. It is OK to program for the mode that is already active.
3.14.44
The G73 cycle is intended for deep drilling or milling with chip breaking. The retracts in this cycle cut off
any long stringers (which are common when drilling in aluminum). This cycle takes a Q number which
represents a "delta" increment along the Z axis.
Program G73 X- Y- Z- A- B- C- R- L- Q1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate downward by delta or to the Z position, whichever
is less deep.
3. Rapid up a bit.
4. Repeat steps 2 and 3 until the Z position is reached at step 2.
5. Retract the Z-axis at traverse rate to clear Z.
It is an error if:
183
3.14.45
than the other. A positive Q value causes the leading edge of the tool to cut more heavily. Typical values
are 29, 29.5 or 30.
H- The number of "spring passes". Spring passes are additional passes at full thread depth. If no
additional passes are desired, program H0.
Tapered entry and exit moves can be programmed using E- and L-.
ESpecifies the distance along the drive line used for the taper. The angle of the taper will be so the last
pass tapers to the thread crest over the distance specified with E. E0.2 will give a taper for the first/last
0.2 length units along the thread. For a 45 degree taper program E the same as K.
L- Specifies which ends of the thread get the taper. Program L0 for no taper (the default), L1 for entry
taper, L2 for exit taper, or L3 for both entry and exit tapers. Entry tapers will pause at the drive line to
synchronize with the index pulse then feed in to the beginning of the taper. No entry taper and the tool
will rapid to the cut depth then synchronize and begin the cut.
The tool is moved to the initial X and Z positions prior to issuing the G76. The X position is the "drive
line" and the Z position is the start of the threads.
The tool will pause briefly for synchronization before each threading pass, so a relief groove will be
required at the entry unless the beginning of the thread is past the end of the material or an entry taper
is used.
Unless using an exit taper, the exit move (traverse to original X) is not synchronized to the spindle
speed. With a slow spindle, the exit move might take only a small fraction of a revolution. If the spindle
speed is increased after several passes are complete, subsequent exit moves will require a larger
portion of a revolution, resulting in a very heavy cut during the exit move. This can be avoided by
providing a relief groove at the exit, or by not changing the spindle speed while threading.
The final position of the tool will be at the end of the "drive line". A safe Z move will be needed with an
internal thread to remove the tool from the hole.
Example:
G0 Z-.5 X .2
G76 P0.05 Z-1 I-.075 J0.008 K0.045 Q29.5 L2 E0.045
3.14.46
axis words are programmed when G80 is active, unless a modal group 0 G code is programmed
which uses axis words.
3.14.47
The canned cycles G81 through G89 have been implemented as described in this section. Two
examples are given with the description of G81 below.
185
All canned cycles are performed with respect to the currently selected plane. Any of the three planes
(XY, YZ, ZX) may be selected. Throughout this section, most of the descriptions assume the XY-plane
has been selected. The behavior is always analogous if the YZ or XZ-plane is selected.
Rotational axis words are allowed in canned cycles, but it is better to omit them. If rotational axis words
are used, the numbers must be the same as the current position numbers so that the rotational axes do
not move.
All canned cycles use X, Y, R, and Z numbers in the NC code. These numbers are used to determine X,
Y, R, and Z positions. The R (usually meaning retract) position is along the axis perpendicular to the
currently selected plane (Z-axis for XY-plane, X-axis for YZ-plane, Y-axis for XZ-plane). Some canned
cycles use additional arguments.
For canned cycles, we will call a number "sticky" if, when the same cycle is used on several lines of
code in a row, the number must be used the first time, but is optional on the rest of the lines. Sticky
numbers keep their value on the rest of the lines if they are not explicitly programmed to be different.
The R number is always sticky.
In incremental distance mode: when the XY-plane is selected, X, Y, and R numbers are treated as
increments to the current position and Z as an increment from the Z-axis position before the move
involving Z takes place; when the YZ or XZ-plane is selected, treatment of the axis words is analogous.
In absolute distance mode, the X, Y, R, and Z numbers are absolute positions in the current coordinate
system.
The L number is optional and represents the number of repeats. L=0 is not allowed. If the repeat feature
is used, it is normally used in incremental distance mode, so that the same sequence of motions is
repeated in several equally spaced places along a straight line. In absolute distance mode, L > 1 means
"do the same cycle in the same place several times," Omitting the L word is equivalent to specifying
L=1. The L number is not sticky.
When L>1 in incremental mode with the XY-plane selected, the X and Y positions are determined by
adding the given X and Y numbers either to the current X and Y positions (on the first go-around) or to
the X and Y positions at the end of the previous go-around (on the repetitions). The R and Z positions
do not change during the repeats.
The height of the retract move at the end of each repeat (called "clear Z" in the descriptions below) is
determined by the setting of the retract mode: either to the original Z position (if that is above the R
position and the retract mode is G98, OLD_Z), or otherwise to the R position.
It is an error if:
When the XY plane is active, the Z number is sticky, and it is an error if:
the Z number is missing and the same canned cycle was not already active,
When the XZ plane is active, the Y number is sticky, and it is an error if:
the Y number is missing and the same canned cycle was not already active,
When the YZ plane is active, the X number is sticky, and it is an error if:
the X number is missing and the same canned cycle was not already active,
2. a straight traverse of the Z-axis only to the R position, if it is not already at the R position.
If the XZ or YZ plane is active, the preliminary and in-between motions are analogous.
3.14.48
The G81 cycle is intended for drilling. Program G81 X- Y- Z- A- B- C- R- L1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Retract the Z-axis at traverse rate to clear Z.
Example 1. Suppose the current position is (1, 2, 3) and the XY-plane has been selected, and the
following line of NC code is interpreted.
G90 G81 G98 X4 Y5 Z1.5 R2.8
This calls for absolute distance mode (G90) and OLD_Z retract mode (G98) and calls for the G81
drilling cycle to be performed once. The X number and X position are 4. The Y number and Y position
are 5. The Z number and Z position are 1.5. The R number and clear Z are 2.8. Old Z is 3. The
following moves take place.
1. a traverse parallel to the XY-plane to (4,5,3)
2. a traverse parallel to the Z-axis to (4,5,2.8)
3. a feed parallel to the Z-axis to (4,5,1.5)
187
3.14.49
The G82 cycle is intended for drilling. Program G82 X- Y- Z- A- B- C- R- L- P1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Dwell for the P number of seconds.
4. Retract the Z-axis at traverse rate to clear Z.
3.14.50
The G83 cycle (often called peck drilling) is intended for deep drilling or milling with chip breaking. The
retracts in this cycle clear the hole of chips and cut off any long stringers (which are common when
drilling in aluminum). This cycle takes a Q number which represents a "delta" increment along the Zaxis. Program G83 X- Y- Z- A- B- C- R- L- Q1. Preliminary motion, as described above.
188
2. Move the Z-axis only at the current feed rate downward by delta or to the Z position, whichever
is less deep.
3. Rapid back out to the clear_z.
4. Rapid back down to the current hole bottom, backed off a bit.
5. Repeat steps 1, 2, and 3 until the Z position is reached at step 1.
6. Retract the Z-axis at traverse rate to clear Z.
It is an error if:
3.14.51
The G84 cycle is intended for right-hand tapping with a tap tool.
Program G84 X- Y- Z- A- B- C- R- L1. Preliminary motion, as described above.
2. Start speed-feed synchronization.
3. Move the Z-axis only at the current feed rate to the Z position.
4. Stop the spindle.
5. Start the spindle counterclockwise.
6. Retract the Z-axis at the current feed rate to clear Z.
7. If speed-feed synch was not on before the cycle started, stop it.
8. Stop the spindle.
9. Start the spindle clockwise.
The spindle must be turning clockwise before this cycle is used.
It is an error if:
With this cycle, the programmer must be sure to program the speed and feed in the correct proportion
to match the pitch of threads being made. The relationship is that the spindle speed equals the feed
rate times the pitch (in threads per length unit). For example, if the pitch is 2 threads per millimeter, the
active length units are millimeters, and the feed rate has been set with the command F150, then the
speed should be set with the command S300, since 150 x 2 = 300.
If the feed and speed override switches are enabled and not set at 100%, the one set at the lower
setting will take effect. The speed and feed rates will still be synchronized.
3.14.52
The G85 cycle is intended for boring or reaming, but could be used for drilling or milling. Program G85
X- Y- Z- A- B- C- R- L1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Retract the Z-axis at the current feed rate to clear Z.
189
3.14.53
The G86 cycle is intended for boring. This cycle uses a P number for the number of seconds to dwell.
Program G86 X- Y- Z- A- B- C- R- L- P1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Dwell for the P number of seconds.
4. Stop the spindle turning.
5. Retract the Z-axis at traverse rate to clear Z.
6. Restart the spindle in the direction it was going.
The spindle must be turning before this cycle is used.
It is an error if:
3.14.54
190
When programming this cycle, the I and J numbers must be chosen so that when the tool is stopped in
an oriented position, it will fit through the hole. Because different cutters are made differently, it may
take some analysis and/or experimentation to determine appropriate values for I and J.
3.14.55
The G88 cycle is intended for boring. This cycle uses a P word, where P specifies the number of
seconds to dwell. Program G88 X- Y- Z- A- B- C- R- L- P1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Dwell for the P number of seconds.
4. Stop the spindle turning.
5. Stop the program so the operator can retract the spindle manually.
6. Restart the spindle in the direction it was going.
3.14.56
The G89 cycle is intended for boring. This cycle uses a P number, where P specifies the number of
seconds to dwell. program G89 X- Y- Z- A- B- C- R- L- P1. Preliminary motion, as described above.
2. Move the Z-axis only at the current feed rate to the Z position.
3. Dwell for the P number of seconds.
4. Retract the Z-axis at the current feed rate to clear Z.
3.14.57
Interpretation of RS274/NGC code can be in one of two distance modes: absolute or incremental.
To go into absolute distance mode, program G90. In absolute distance mode, axis numbers (X, Y, Z, A,
B, C) usually represent positions in terms of the currently active coordinate system.
3.14.58
Interpretation of RS274/NGC code can be in one of two distance modes: absolute or incremental.
To go into incremental distance mode, program G91. In incremental distance mode, axis numbers (X, Y,
Z, A, B, C) usually represent increments from the current values of the numbers.
I and J numbers always represent increments, regardless of the distance mode setting. K numbers
represent increments in all but one usage (see G87), where the meaning changes with distance mode.
3.14.59
You can offset the current coordinate system using G92 or G92.3. This offset will then apply to all nine
program coordinate systems. This offset may be canceled with G92.1 or G92.2.
To make the current point have the coordinates you want (without motion), program G92 X- Y- Z- A- BC- , where the axis words contain the axis numbers you want. All axis words are optional, except that at
191
least one must be used. If an axis word is not used for a given axis, the coordinate on that axis of the
current point is not changed. It is an error if:
When G92 is executed, the origin of the currently active coordinate system moves. To do this, origin
offsets are calculated so that the coordinates of the current point with respect to the moved origin are
as specified on the line containing the G92. In addition, parameters 5211 to 5216 are set to the X, Y, Z,
A, B, and C-axis offsets. The offset for an axis is the amount the origin must be moved so that the
coordinate of the controlled point on the axis has the specified value.
Here is an example. Suppose the current point is at X=4 in the currently specified coordinate system
and the current X-axis offset is zero, then G92 x7 sets the X-axis offset to -3, sets parameter 5211 to -3,
and causes the X-coordinate of the current point to be 7.
The axis offsets are always used when motion is specified in absolute distance mode using any of the
nine coordinate systems (those designated by G54 - G59.3). Thus all nine coordinate systems are
affected by G92.
Being in incremental distance mode has no effect on the action of G92.
Non-zero offsets may be already be in effect when the G92 is called. If this is the case, the new value of
each offset is A+B, where A is what the offset would be if the old offset were zero, and B is the old
offset. For example, after the previous example, the X-value of the current point is 7. If G92 x9 is then
programmed, the new X-axis offset is -5, which is calculated by [[7-9] + -3].
3.14.60
To reset axis offsets to zero, program G92.1 or G92.2. G92.1 sets parameters 5211 to 5216 to zero.
3.14.61
To reset axis offsets to zero, program G92.1 or G92.2. G92.2 leaves parameters values In memory.
3.14.62
To set the axis offset to the values saved in memory, program G92.3.
3.14.63
Three feed rate modes are recognized: units per minute, inverse time and units per revolution. Program
G93 to start the inverse time mode.
In inverse time feed rate mode, an F word means the move should be completed in [one divided by the
F number] minutes. For example, if the F number is 2.0, the move should be completed in half a
minute.
192
When the inverse time feed rate mode is active, an F word must appear on every line which has a G1,
G2, or G3 motion, and an F word on a line that does not have G1, G2, or G3 is ignored. Being in
inverse time feed rate mode does not affect G0 (rapid traverse) motions.
It is an error if:
inverse time feed rate mode is active and a line with G1, G2, or G3 (explicitly or implicitly) does
not have an F word.
3.14.64
Three feed rate modes are recognized: units per minute, inverse time and units per revolution. Program
G94 to start the units per minute mode.
In units per minute feed rate mode, an F word is interpreted to mean the controlled point should move
at a certain number of inches per minute, millimeters per minute, or degrees per minute, depending
upon what length units are being used and which axis or axes are moving.
It is an error if:
3.14.65
Three feed rate modes are recognized: units per minute, inverse time and units per revolution. Program
G95 to start the units per revolution mode.
In units per revolution mode, an F word is interpreted to mean the controlled point should move a
certain number of inches per revolution or millimeters per revolution of the spindle, depending on what
length units are being used and which axis or axes are moving.
It is an error if:
3.14.66
When the spindle retracts during canned cycles, there is a choice of how far it retracts. Program G98 to
retract perpendicular to the selected plane to the position that axis was in just before the canned cycle
started (unless that position is lower than the position indicated by the R word, in which case use the R
word position).
3.14.67
When the spindle retracts during canned cycles, there is a choice of how far it retracts. Program G99 to
retract perpendicular to the selected plane to the position indicated by the R word.
193
3.15 M - Codes
3.15.1
M0 - Program Stop
To stop a running program temporarily (regardless of the setting of the optional stop switch), program
M0.
3.15.2
To stop a running program temporarily (but only if the optional stop switch is on), program M1.
3.15.3
M2 - Program End
3.15.4
3.15.5
To exchange pallet shuttles and then stop a running program temporarily (regardless of the setting of
the optional stop switch), program M60.
3.15.6
To start the spindle turning clockwise at the currently programmed speed, program M3.
3.15.7
To start the spindle turning counterclockwise at the currently programmed speed, program M4.
3.15.8
3.15.9
M7 - Mist Coolant On
3.15.10
M8 - Flood Coolant On
3.15.11
194
3.15.12
3.15.13
3.15.14
3.15.15
M6 - Tool Change
To change a tool in the spindle from the tool currently in the spindle to the tool most recently selected
(using a T word), program M6.
3.15.16
To select a tool in the spindle without toolchange program M61. Active tool is set with Q word.
Example:
M61 Q3 this will set value active tool number to 3
3.15.17
3.15.18
3.15.19
To enable the speed and feed override switches, program M48. To disable both switches, program M49.
It is OK to enable or disable the switches when they are already enabled or disabled.
Example:
M48 this will set feed override enabled
M49 this will set feed override disabled
M50 P1 this will set feed override enabled
M50 P0 this will set feed override disabled
3.15.20
195
3.15.21
3.15.22
M64 TX Output
3.15.23
196
To set the feed rate, program F. The rate at which the controlled point or the axes move is nominally a
steady rate which may be set by the user. For motion involving one or more of the X, Y, and Z axes
(with or without simultaneous rotational axis motion), the feed rate means length units per minute along
the programmed XYZ path, as if the rotational axes were not moving.
3.16.2
To set the speed in revolutions per minute (rpm) of the spindle, program S- . The spindle will turn at that
speed when it has been programmed to start turning. It is OK to program an S word whether the spindle
is turning or not. If the speed override switch is enabled and not set at 100%, the speed will be different
from what is programmed. It is OK to program S0; the spindle will not turn if that is done.
It is an error if:
3.16.3
T - Select Tool
To select a tool, program T-, where the T number is the carousel slot for the tool. The tool is not
changed until an M6 is programmed. The T word may appear on the same line as the M6 or on a
previous line. It is OK, but not normally useful, if T words appear on two or more lines with no tool
change. The carousel may move a lot, but only the most recent T word will take effect at the next tool
change. It is OK to program T0; no tool will be selected. This is useful if you want the spindle to be
empty after a tool change.
It is an error if:
197
Square
%
M3
G01 X0 Y0
G01 Z-3
G01 Z3
G01 X-150 Y-150
G01 Z-3
G01 X150 Y-150
G01 X150 Y150
G01 X-150 Y150
G01 X-150 Y-150
G01 Z3
G01 X0 Y0
M5
%
3.17.2
Circle
%
M3
G01 X0 Y0
G01 Z-3
G01 Z3
G01 X0 Y-150
G01 Z-3
G02 X0 Y-150 I0 J150
G01 Z3
G01 X0 Y0
G01 Z-3
G01 Z3
M5
%
198
3.17.3
%
G90
G21
#1=50 (width of box)
#2=2 (tool radius)
#3=4 (height of box)
#4=5 (resolution in degrees)
#5=#4 (counter)
#6=[[#1/2]+#2] (actual radius of circle - cutter radius + radius)
G01 X0 Y0
o140 do
#8 = [[SIN[#5]*#6]*SIN[45]] ( X and Y position)
#9 = [0-[[1-COS[#5]]*#6]] (Z position)
G1 X[#8] Y[#8]
Z[#9]
G18 G02 X[0-#8] Z[#9] I[0-#8] K[0-[#9+[#6]]]
G19 G03 Y[0-#8] Z[#9] J[0-#8] K[0-[#9+[#6]]]
G18 G03 X[#8] Z[#9] I[#8] K[0-[#9+[#6]]]
G19 G02 Y[#8] Z[#9] J[#8] K[0-[#9+[#6]]]
#5 = [#5+#4]
o140 while [#8 LT [#1/2-#2-#3]]
G1 Z1
X0 Y0
%
199
Table of Contents
1
Introduction........................................................................................................................................ 3
1.1
Overview..................................................................................................................................... 3
1.2
1.3
System Requirements................................................................................................................. 5
Software............................................................................................................................................ 6
2.1
Overview..................................................................................................................................... 6
2.2 Installation................................................................................................................................... 7
2.2.1 Software installation............................................................................................................. 7
2.2.2 Driver installation................................................................................................................ 10
2.2.3 Completing driver installation (Windows XP)......................................................................12
2.2.4 Completing driver installation (Windows 7)........................................................................14
2.2.5 Completing driver installation (Windows 8 and Windows 8.1)............................................15
2.3 Main window............................................................................................................................. 18
2.3.1 Position panel.................................................................................................................... 19
2.3.2 State panel......................................................................................................................... 21
2.3.2.1 Current:..................................................................................................................... 21
2.3.2.2 Axes: ....................................................................................................................... 21
2.3.2.3 Origin:....................................................................................................................... 21
2.3.2.4 Tool:.......................................................................................................................... 21
2.3.3 Program panel................................................................................................................... 23
2.3.4 Graphical program visualization display.............................................................................24
2.3.5 G-code panel..................................................................................................................... 24
2.3.6 Manual data input (MDI) panel...........................................................................................24
2.3.7 Toolbar............................................................................................................................... 25
2.3.8 File menu........................................................................................................................... 27
2.3.8.1 Open......................................................................................................................... 28
2.3.8.2 Close......................................................................................................................... 28
2.3.8.3 Recent Programs......................................................................................................28
2.3.8.4 Import programs........................................................................................................28
2.3.8.4.1 Import G-code....................................................................................................28
2.3.8.4.2 Import DXF .......................................................................................................28
2.3.8.4.3 Import PLT/HPGL..............................................................................................28
2.3.8.4.3.1 Advanced / General....................................................................................29
2.3.8.4.3.1.1 General...............................................................................................30
2.3.8.4.3.2 Advanced / Safe Height..............................................................................32
2.3.8.4.3.2.1 Safe Height.........................................................................................32
2.3.8.4.3.2.2 Base Height........................................................................................34
200
2.3.8.4.3.2.3 Traverse.............................................................................................34
2.3.8.4.3.3 Advanced / Stages.....................................................................................36
2.3.8.4.3.3.1 Stage 1 ..............................................................................................36
2.3.8.4.3.3.2 Stage 2...............................................................................................36
2.3.8.4.3.3.3 End.....................................................................................................37
2.3.8.4.4 Import NC Drill...................................................................................................38
2.3.8.4.4.1 Units:.......................................................................................................... 39
2.3.8.4.4.2 Format:.......................................................................................................39
2.3.8.4.4.3 Leading / Trailing Zeroes:...........................................................................39
2.3.8.4.5 Import Gerber....................................................................................................40
2.3.8.4.5.1 Use:........................................................................................................... 41
2.3.8.4.5.2 Mark Pads:.................................................................................................41
2.3.8.4.5.3 Drill Pads:...................................................................................................42
2.3.8.4.5.4 Mode:......................................................................................................... 42
2.3.8.4.5.5 Clear copper..............................................................................................43
2.3.8.4.6 Import Image 2D................................................................................................44
2.3.8.4.7 Import Image 3D................................................................................................46
2.3.8.4.8 Import Text........................................................................................................47
2.3.8.5 G-Code Wizard........................................................................................................ 48
2.3.8.6 Export program......................................................................................................... 48
2.3.8.6.1 Export Tool-path To G-code...............................................................................48
2.3.8.6.2 Export Tool-path to DXF....................................................................................48
2.3.8.6.3 Export Tool-path to CSV....................................................................................48
2.3.8.6.4 Export Tool-path to RAW...................................................................................48
2.3.8.7 Settings..................................................................................................................... 48
2.3.8.7.1 Import Settings..................................................................................................48
2.3.8.7.2 Export Settings..................................................................................................48
2.3.8.8 Language.................................................................................................................. 48
2.3.8.9 Exit............................................................................................................................ 48
2.3.9 View menu......................................................................................................................... 49
2.3.9.1 Origin........................................................................................................................ 50
2.3.9.2 Top View.................................................................................................................... 50
2.3.9.3 Side View.................................................................................................................. 50
2.3.9.4 Front View................................................................................................................. 50
2.3.9.5 Perspective View.......................................................................................................50
2.3.9.6 Zoom In..................................................................................................................... 50
2.3.9.7 Zoom Out.................................................................................................................. 50
2.3.9.8 Zoom Tool................................................................................................................. 50
2.3.9.9 Zoom Extents............................................................................................................ 50
2.3.9.10 Center Tool.............................................................................................................. 50
2.3.9.11
Center View........................................................................................................... 50
2.3.9.12 Change View........................................................................................................... 50
2.3.9.13 Simulate.................................................................................................................. 51
2.3.9.14 Window .................................................................................................................. 51
201
2.3.9.14.1 Jog.................................................................................................................. 51
2.3.9.14.2 Reset.............................................................................................................. 51
2.3.9.14.3 Large............................................................................................................... 51
2.3.9.15 Show....................................................................................................................... 52
2.3.9.15.1 Show Grid........................................................................................................53
2.3.9.15.2 Show Axes.......................................................................................................53
2.3.9.15.3 Show Working Area.........................................................................................53
2.3.9.15.4 Show Tool........................................................................................................53
2.3.9.15.5 Show Tool Handle............................................................................................53
2.3.9.15.6 Show G28, G30...............................................................................................53
2.3.9.15.7 Show Park.......................................................................................................53
2.3.9.15.8 Show Tool Length............................................................................................53
2.3.9.15.9 Show Tool Change...........................................................................................53
2.3.9.15.10 Show Stored Positions...................................................................................53
2.3.9.15.11 Show Labels..................................................................................................53
2.3.9.15.12 Show Extents.................................................................................................53
2.3.9.15.13 Show Direction..............................................................................................53
2.3.9.15.14 Show Completed...........................................................................................53
2.3.9.15.15 Show Path History.........................................................................................54
2.3.9.15.16 Show Gauge..................................................................................................54
2.3.9.15.17 Large Tool Handle..........................................................................................54
2.3.9.15.18 Tool Radius....................................................................................................54
2.3.9.15.19 Follow Tool.....................................................................................................54
2.3.9.15.20 Coordinates...................................................................................................54
2.3.9.15.21 3D.................................................................................................................. 54
2.3.9.15.22 G-Code.......................................................................................................... 54
2.3.9.15.23 Perspective....................................................................................................54
2.3.9.16 Material................................................................................................................... 55
2.3.9.17 Show IO.................................................................................................................. 55
2.3.9.17.1 Input................................................................................................................ 56
2.3.9.17.2 Aux.................................................................................................................. 56
2.3.9.17.3 Limit................................................................................................................. 56
2.3.9.17.4 Active Limit Switch...........................................................................................56
2.3.9.17.5 Active soft Limit Switch....................................................................................56
2.3.9.17.6 Jog................................................................................................................... 56
2.3.9.17.7 Ctrl................................................................................................................... 56
2.3.9.17.8 ExtIn................................................................................................................ 56
2.3.9.17.9 Output.............................................................................................................. 56
2.3.9.17.10 ExtOut............................................................................................................ 56
2.3.10 Program menu................................................................................................................. 57
2.3.10.1 Lines....................................................................................................................... 58
2.3.10.1.1 Select Next:.....................................................................................................58
2.3.10.1.2 Select Next Page:............................................................................................58
2.3.10.1.3 Select Previous:...............................................................................................58
202
204
2.3.11.19.2 Capture........................................................................................................107
2.3.11.19.3 Clear............................................................................................................ 108
2.3.11.19.4 Load Points..................................................................................................108
2.3.11.19.5 Save Points..................................................................................................108
2.3.11.19.6 Save Points To STL......................................................................................108
2.3.11.19.7 Save Points To G-Code................................................................................108
2.3.11.19.8 Save Points To DXF.....................................................................................108
2.3.11.20 Soft Limits............................................................................................................ 109
2.3.11.21 Firmware............................................................................................................. 109
2.3.12 Help menu...................................................................................................................... 110
2.3.12.1 Help....................................................................................................................... 110
2.3.12.2 Planet CNC Forum................................................................................................110
2.3.12.3 G-Code wiki........................................................................................................... 110
2.3.12.4 G-Code Reference................................................................................................110
2.3.12.5 Activate License....................................................................................................110
2.3.12.6 Import License.......................................................................................................110
2.3.12.7 Export License.......................................................................................................110
2.3.12.8 Log........................................................................................................................ 111
2.3.12.9 Check For Updates................................................................................................111
2.3.12.10 About................................................................................................................... 111
2.4 Settings................................................................................................................................... 112
2.4.1 General............................................................................................................................ 113
2.4.1.1 Description.............................................................................................................. 113
2.4.1.2 Units........................................................................................................................ 114
2.4.1.3 Machine Type.......................................................................................................... 114
2.4.1.4 Notes....................................................................................................................... 114
2.4.2 Connection....................................................................................................................... 115
2.4.3 User Interface................................................................................................................... 117
2.4.3.1 Display Resolution:..................................................................................................117
2.4.3.2 Display Segments:...................................................................................................117
2.4.3.3 Display Limit:........................................................................................................... 117
2.4.3.4 Rotate:..................................................................................................................... 118
2.4.3.5 Mirror:...................................................................................................................... 118
2.4.3.6 Update:.................................................................................................................... 118
2.4.3.7 Tool-path History:.....................................................................................................118
2.4.3.8 Hover:...................................................................................................................... 118
2.4.3.9 XY-UV Distance:......................................................................................................118
2.4.3.10 Measure Speed:....................................................................................................118
2.4.3.11 Time Factor:........................................................................................................... 118
2.4.3.12 MDI Focus:............................................................................................................ 118
2.4.3.13 Reload G-Code:....................................................................................................118
2.4.3.14 G-Code Editor:......................................................................................................118
2.4.3.15 Set Colors:............................................................................................................. 119
2.4.3.16 Set Keys:............................................................................................................... 121
206
G-Code.......................................................................................................................................... 167
3.1
Overview................................................................................................................................. 167
3.2
3.3
3.4
3.5
Number................................................................................................................................... 168
3.6
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.14.39
3.14.40
3.14.41
3.14.42
3.14.43
3.14.44
3.14.45
3.14.46
3.14.47
3.14.48
3.14.49
3.14.50
3.14.51
3.14.52
3.14.53
3.14.54
3.14.55
3.14.56
3.14.57
3.14.58
3.14.59
3.14.60
3.14.61
3.14.62
3.14.63
3.14.64
3.14.65
3.14.66
3.14.67
209
3.15.18
3.15.19
3.15.20
3.15.21
3.15.22
3.15.23
210