Navigation

  • Page 1

    CNC USB ControllerUser manual2014-09-101

  • Page 2

    DisclaimerCONTROLLER AND CONTROLLER SOFTWARE ARE PROVIDED TO YOU "AS IS," WITHOUTWARRANTY. THERE IS NO WARRANTY FOR THE CONTROLLER AND CONTROLLER SOFTWARE,EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PU...

  • Page 3

    1 Introduction1.1 OverviewThe PlanetCNC series of USB CNC motion controllers are link between a personal computer and motordrivers 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 se...

  • Page 4

    1.2 Features and specifications:•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 drive...

  • Page 5

    1.3 System RequirementsMinimum system requirements:•1 GHz or faster processor •512MB RAM•500 MB available hard disk space•Graphics with OpenGL support•USB 2.0 port•.NET Framework 3.5 SP1Recommended system requirements:•2 GHz or faster processor •2GB RAM•500 MB available hard dis...

  • Page 6

    2 Software2.1 OverviewCNC 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 ma...

  • Page 7

    2.2 InstallationCNC 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 ...

  • Page 8

    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 confirmat...

  • Page 9

    Wait until installation is complete.Driver installation might start during this step. This is explained in next chapter.On completion the setup wizard’ will display a report of successful installation. Press ‘Close’ to exit the wizard.9

  • Page 10

    2.2.2 Driver installationDriver installation is achieved by running “CNCUSBControllerDriver.exe”. The ‘Driver Setup Wizard’ will launch, press ‘Next’ to continue, or ‘Cancel’ to stop installation.The destination “C:\Program Files\CNC USB Controller\Driver” is applied by defaul...

  • Page 11

    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 o...

  • Page 12

    Driver is successfully installed.Press ‘Finish’ to exit setup.2.2.3 Completing driver installation (Windows XP)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 la...

  • Page 13

    The new hardware wizard will present additional options.‘Install the software automatically’ is the recommended option.Press ‘Next’ to continue, or ‘Cancel’ to stop installation.Windows XP will continue installation without further user input. The ‘Found New Hardware Wizard’ will ...

  • Page 14

    2.2.4 Completing driver installation (Windows 7)When the CNC USB Controller is connected to the USB Port, Windows 7 will detect controller hardwareand begin the driver installation process. ‘Windows Security’ will launch a ‘publisher verification’ request.Select ‘Install this driver so...

  • Page 15

    2.2.5 Completing driver installation (Windows 8 and Windows 8.1)Windows 8 and 8.1 will not install drivers automatically unless they are signed.Invoke the Charms bar and click on Settings. Open control panel by clicking on "Change PC Settings”.Windows 8: Select "General” and then &q...

  • Page 16

    •Continue•Troubleshoot•Turn offChoose "Troubleshoot".Then the following menu appears:•Refresh your PC•Reset your PC•Advanced OptionsChoose "Advanced Options".Then the following menu appears:16

  • Page 17

    •System Restore•System Image Recovery•Automatic Repair•Command Prompt•Windows Startup settingsChoose "Windows Startup Settings", then Click “Restart”.Now the computer will restart and the boot menu appears. Choose “Disable Driver signature Enforcement” from the menu. N...

  • Page 18

    2.3 Main windowOn 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...

  • Page 19

    2.3.1 Position panelThe panel displays currently active offsets, machineposition and speed. On panel are jog buttons used to move machine to desiredposition.There is also speed setting with speed override slider and checkbox.Offset:W – Working offsetT – Tool offsetM – Matrix transformationI...

  • Page 20

    Position display color description:Red and purple: Limit switch active and machine stop enabled. (Red for negative direction and purple for positive direction)Light red and light purple: Limit switch active and machine stop disabled.Yellow and Orange: Outside machine soft limits with soft limits ...

  • Page 21

    2.3.2 State panelThe State panel displays a range of information in respect of active parameters and settings. Information has reference to current machine state and program simulation state.Information displayed on the panel includes:2.3.2.1 Current:Units:millimeters or inchesPlane:XY, YZ or ZXM...

  • Page 22

    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 lineG-code:Corresponded G-code of currently executing G-code line22

  • Page 23

    2.3.3 Program panelThe program panel shows information about the active NC program. Information displayed includes:Name:name of programUnits:units used in this panelMin/Max:minimum and maximum values used inprogram Min Feed, Max Feed:minimum and maximum values used for feedmoves (cutting extents...

  • Page 24

    2.3.4 Graphical program visualization displayThis display shows 3D representation of machine, tool,toolpath,... •Orange box – machine limits•Gray grid – machine table•Axis arrows – displayed coordinate system origin•Red axis lines – selected coordinate system origin•White line ...

  • Page 25

    2.3.7 ToolbarEmergency stop:Executes immediate Emergency Stop (E-Stop)Open program:Loads a G-Code programStart execution:Start program executionStop execution:Stop program executionPause execution:Pause program executionTop View:Display G-Code program view from the topSide View:Display G-Code pro...

  • Page 26

    Set Position – Zero:Zero all axes. If any offset is checked, it will be used. Warning: “Set Position” will change machine absolute position! If absolute position is changed automatic tool change and fixed tool sensor position might become invalid!Go To Position - Zero: Moves the machine to ...

  • Page 27

    2.3.8 File menuThe file menu offers a group of methods for opening, closing, importing and exporting programs.Programs can be used for visualization, simulation, generating toolpath, cutting, and can be in various formats. Most import and toolpath features display user dialogs for entry of user p...

  • Page 28

    2.3.8.1 OpenOpens new program. Software will try to auto detect file format. 2.3.8.2 CloseCloses program that is currently opened.2.3.8.3 Recent ProgramsDisplays a list of recently opened programs. Select the file for open from a drop-down list.2.3.8.4 Import programs Imported programs assist at ...

  • Page 29

    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 Inch...

  • Page 30

    2.3.8.4.3.1.1 GeneralUse 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' procedur...

  • Page 31

    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 e...

  • Page 32

    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 '()'. 2.3.8.4.3.2 Advanced / Safe HeightIn this dialog you can set 'Safe Height' of your machine's traverse moves, you can set 'Base Height',...

  • Page 33

    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 “plunge”move.Flood:Insert 'Flood' 'ON' G-Codes, on selected 'Safe height' before downward “plunge” move. Insert 'Flo...

  • Page 34

    2.3.8.4.3.2.2 Base HeightBase Height feature comes useful when you are importing DXF program which includes differentZ coordinate values, and you do not intend to use them in conventional way. Laser or Plotter are one of the examples where this feature can be used, since you need only ON/OFF outp...

  • Page 35

    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-CodeStart Pause: Set Pause after inserted 'Spindle', 'Flood', 'Mist', ON G-CodesEnd Delay: Set Delay time after inserted 'Sp...

  • Page 36

    2.3.8.4.3.3 Advanced / StagesWith this feature you can define which output ('Spindle', 'Flood' or 'Mist') will be turned 'ON' at specific height. You can insert 'Delay' time or 'Pause' in certain stage as also when final stage is completed. This feature comes useful in cases when you are using Pl...

  • Page 37

    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 EndDelay:Set Del...

  • Page 38

    2.3.8.4.4 Import NC DrillImports NC Drill (Excellon) file. NC Drill files are generated by software for design of printed circuit boards. NC Drill files are used for drilling holes of printed circuit boards. Feed Speed: Sets 'Feed Speed'.Plunge Speed: Sets 'Plunge Speed' for plunge (down) moves.S...

  • Page 39

    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...

  • Page 40

    2.3.8.4.5 Import GerberFeed Speed: Sets Feed speed.Plunge Speed: Sets Plunge Speed for plunge (down) moves.Safe Height: Safe Height value for machine traverse moves withtraverse speed.Zero Height: Surface height. Machine moves down to this height at'Feed Speed'.Depth: Depth of milling, when mill...

  • Page 41

    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 calculat...

  • Page 42

    2.3.8.4.5.3 Drill Pads:Pad shape can be: Circle, Oval, Rectangle, Polygon or Other. You can drill selected pad shapes. You might want to drill hole on circled pad for trough hole component but not for rectangle pad for surface mount component.NOTE: Check if drill holes in generated g-code are cor...

  • Page 43

    2.3.8.4.5.5 Clear copperEnable:Enable to generate toolpath that will clear unused copper. Border: Distance from PCB outline where copper will still remain. Pause: Insert 'Pause' (M00) G-Code at the end of clearing copper.Tool Number:Number of the tool that will be used for clearing copper.43

  • Page 44

    2.3.8.4.6 Import Image 2DImports image file and tries to generate 2D toolpath from image.Image: Dimensions of image in mm and in pixelsScale: Sets scale of imported image.Resolution: This is calculating algorithm for internal resolution. Outline: Toolpath generation is based on the outline of sha...

  • Page 45

    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” filt...

  • Page 46

    2.3.8.4.7 Import Image 3DImports image file and tries to generate 3D toolpath from image.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...

  • Page 47

    2.3.8.4.8 Import TextFeature generates G-code from true-type font. Any TTF font on the system can be used, even ‘graphic’ fonts. Font, font size, styling and layout options can be applied. After setting text and styling options, DXF import dialog will appear.47

  • Page 48

    2.3.8.5 G-Code WizardContains functions for generating programs that can be used for various tasks. You can choose between: 'Round Pocket', 'Straight Pocket', 'Drill Array', 'Rotary Roughing', 'Lathe Turning', 'Airfoil' and 'Airfoil expert'. Main purpose of G-code wizard is to simplify certain t...

  • Page 49

    2.3.9 View menuThe view menu controls various aspects of the G-Code program visualization. Only program visualization is affected by view menu options, there are no changes applied to active program G-Code.For example, where ‘Settings’,options have defined user coordinate systems,‘View / Or...

  • Page 50

    2.3.9.1 OriginThe ‘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.2 Top ViewDisplay G-Code / tool-path as vi...

  • Page 51

    2.3.9.13SimulateStarts / Stops animated simulation of G-Code programs.Users can pan (left mouse button), rotate (right mouse button) and zoom (mouse wheel) without interruption of simulation.Simulation does not apply programmed cutting speed. Shift + F12 increases simulation speed, Ctrl + F12 slo...

  • Page 52

    2.3.9.15Show‘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

  • Page 53

    2.3.9.15.1 Show GridDisplay of grid on screen.2.3.9.15.2 Show AxesDisplay of coordinate system axes. 2.3.9.15.3 Show Working AreaDisplay of working area defined in Settings/Axes/Homing.2.3.9.15.4 Show ToolDisplay of tool.2.3.9.15.5 Show Tool HandleDisplay of tool handle.2.3.9.15.6 Show G28, G30Di...

  • Page 54

    2.3.9.15.15Show Path HistoryDisplay of toolpath history. Tool leaves a footprint displayed as line for every move it makes. 2.3.9.15.16Show 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 a...

  • Page 55

    2.3.9.16MaterialOpens a list of materials defined in Settings/Materials. Selected materials can be displayed as solid or complete with textured appearance.2.3.9.17Show 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...

  • Page 56

    2.3.9.17.1 InputIndication panel of 'Input' connector pins. 2.3.9.17.2 AuxIndication panel of 'Aux' connector pins. 2.3.9.17.3 LimitIndication panel of 'Limit' connector pins. 2.3.9.17.4 Active Limit SwitchIndication panel of active 'Limit Switch' connector pins. 2.3.9.17.5 Active soft Limit Swi...

  • Page 57

    2.3.10Program menuThe 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 b...

  • Page 58

    2.3.10.1Lines‘Lines’ functions allow easy navigation trough G-Code.2.3.10.1.1 Select Next:Next G-code line in G-code window is selected.2.3.10.1.2 Select Next Page:Next page in G-code window is displayed.2.3.10.1.3 Select Previous:Previous G-code line in G-code window is selected.2.3.10.1.4 S...

  • Page 59

    2.3.10.2BookmarksG-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 book...

  • Page 60

    2.3.10.3Shift'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. 2.3.10.3.2 Extents to Zero: Aligns the ‘minimum’ edges of the tool...

  • Page 61

    2.3.10.3.6 Extents to Zero XY:Aligns the ‘minimum’ edges of the tool-path extents with the machine zero position for X and Y axes only.2.3.10.3.7 Extents to Position XY:Aligns the ‘minimum’ edges of the tool-path extents with the current machine position for X and Y axes only.2.3.10.3.8 C...

  • Page 62

    2.3.10.4Scale'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...

  • Page 63

    2.3.10.5Mirror'Mirror' function mirrors the tool-path over X, Y or Z axis. Axis of reflection is selected in the sub-menu.2.3.10.6Rotate 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-p...

  • Page 64

    2.3.10.7Advanced: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 ...

  • Page 65

    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 ondisplay, in File/Settings/General/Machine type, Rotary ABC feature must be used.An...

  • Page 66

    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...

  • Page 67

    2.3.10.7.4 Transform from points:“Transform from points” calculates transformation of first group of points to second group of points.From Point 1:X: X coordinate of Point 1, from the first group of pointsY: Y coordinate of Point 1, from the first group of pointsFrom Point 2:X: X coordinate ...

  • Page 68

    To Point 1:X: X coordinate of Point 1, from the second group of pointsY: Y coordinate of Point 1, from the second group of pointsTo Point 2:X: X coordinate of Point 1, from the second group of pointsY: Y coordinate of Point 1, from the second group of pointsTo Point 3: X: X coordinate of Point 1...

  • Page 69

    2.3.10.8Set 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 F...

  • Page 70

    2.3.10.9Calculate SpeedThis 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...

  • Page 71

    2.3.10.10Copy XYZ → UVWG-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.11Swap XYZ ↔ UVWG-Code applied to the 1st and 2nd towers is exchanged / modified so that XYZ code becomes UVW code and vice ve...

  • Page 72

    2.3.11Machine menuThe machine menu provides means to directly interact with controlled machine and attached hardware. 2.3.11.1 Emergency StopSends an Emergency stop or E-Stop to the machine causing immediate ‘hard’ stop. Controller stops sending control signals to motor driver. Note: Using on...

  • Page 73

    2.3.11.2 StartStarts execution of the current G-Code program.2.3.11.3 Start LoopStarts looped execution of the current G-Code program. Count:Value represents number of loops of the G-code program. 2.3.11.4 Start Raw FileOpens program in RAW format and starts execution.2.3.11.5 StopStops the mach...

  • Page 74

    2.3.11.7.3 Start - From Bookmark To End: Execution of program from first bookmark to last G-code line. Bookmarked line is included in execution.2.3.11.8 MistToggle coolant 'Mist' output ON / OFF. Mist output is set in Settings/Output/Pins.2.3.11.9 FloodToggle coolant 'Flood' output ON / OFF. Floo...

  • Page 75

    2.3.11.12Go ToOptions of this item move the machine to a specified location.2.3.11.12.1Use Homing Sequence: 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.2Zero: If currently active coordinate display sh...

  • Page 76

    2.3.11.12.6G28: Machine moves to ‘G28' position defined in Settings/Parameters/G28. G28 position is absolute position.2.3.11.12.7G30: Machine moves to ‘G30’ position defined in Settings/Parameters/G30. G30 position is absolute position.2.3.11.12.8User: Opens user data entry dialog. The desi...

  • Page 77

    2.3.11.13Set PositionApplies 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.1Enable:...

  • Page 78

    2.3.11.13.4Park1:Sets the current machine position as ‘Park1’ position.2.3.11.13.5Park2: Sets the current machine position as ‘Park2’ position.2.3.11.13.6G28: Sets the current machine position as 'G28' position.2.3.11.13.7G30: Sets the current machine position as 'G30' position.2.3.11.13....

  • Page 79

    2.3.11.13.13 Store Current Position To:Stored Position 1-9:Stores current machine position to one of nine Stored Positionoptions.Park 1:Stores current machine position as 'Park 1' position.Park 2:Stores current machine position as 'Park 2' position.G28:Stores current machine position as 'G28' pos...

  • Page 80

    2.3.11.14OffsetSets the working offset based on current machine position or user defined parameters.2.3.11.14.1Zero: Sets working offsets to zero2.3.11.14.2Current: Sets working offset to current machine position for selectedaxes or axis.2.3.11.14.3Current XY: Sets working offset to current machi...

  • Page 81

    2.3.11.14.5User: Opens the data entry dialog. Entered value is set as working offset for all 9 axes. 2.3.11.14.6Selected Line:Sets the working offset to selected G-code line.2.3.11.14.7Selected Line XY:Sets the working offset to selected G-code line for X and Y axes only.2.3.11.14.8Camera XY:Sets...

  • Page 82

    2.3.11.14.9From Tool SensorSets working offset based on positions detected using the toolsensor.Current X+: Current X-:Sets working offset to current position for the X axis. Uses sensor size to compensate for positive or negative sensor placement.Current Y+: Current Y-:Sets working offset to cur...

  • Page 83

    2.3.11.14.11 From MaterialSets 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:...

  • Page 84

    2.3.11.14.12 Surface DistanceThese XYZ values are offset values that represent the distance from the center of rotation to thesurface of the piece mounted on the rotational axes. If you use 4th rotational A axis then only Z value needs to be applied. 2.3.11.14.13 Measure Offset XY:This feature ...

  • Page 85

    Corner Inside:Machine will measure inside corner offset with two moves. Green lines represent the tool-path ofthe machine.Corner Outside:Machine will measure outside corner offset with two moves. Green lines represent the tool-path of the machine.85

  • Page 86

    Sensor Setup - Tool Sensor Corner:For better understanding and description of parameters refer to pictures above.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...

  • Page 87

    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

  • Page 88

    Sensor Setup – Tool Sensor Center:For better understanding and description of parameters refer to pictures above.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 machin...

  • Page 89

    2.3.11.14.14 Measure Offset ZMeasures the Z axis working offset using movable tool sensor.2.3.11.14.15 Sensor SetupProvides convenient means to adjust sensor parameters without recourse to the main settings panel. This can be useful if it’s necessary to adjust the ‘Size’ parameter when tool...

  • Page 90

    2.3.11.15Tools2.3.11.15.1ActiveDisplays 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.2ChangeInitiates the tool-change procedure for manual or auto tool-change.In the case of manual tool change the mac...

  • Page 91

    2.3.11.15.7Set Tool OffsetOpens the data entry dialog. Tool Offset can be defined for all 9 axes.2.3.11.15.8Set Tool Offset from Active Tool Tool offset is set from 'Tool Table' in Settings. 2.3.11.15.9Measure Tool LengthMeasure tool length and set absolute position using a fixed tool sensor. Th...

  • Page 92

    2.3.11.15.11 Sensor SetupSize:If we use sensor or touching probe to measure X and Ycoordinates then this value represent radius of stylus ball at thepoint of touching probe. This is the same as Height parameterfor measuring Z coordinates.Return Distance: Value represents distance for which tool r...

  • Page 93

    2.3.11.16HomeInitiates automatic homing procedure, configured in Settings/Axes/Homing. Homing procedure gives machine absolute coordinates. Only now machine becomes “self aware” and therefore is capable of knowing where its position is at any given moment. (See example in 'Settings' chapter o...

  • Page 94

    2.3.11.17.2Set OffsetCamera 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 heightPoint2:Point 2 represents ...

  • Page 95

    How to set Camera two point offset:1. Open camera window with "Machine/Camera/Show Camera ..."2. Mark position on machine table. You can use marker, small drill or tool, ... Whatever you find useful.3. Position tool exactly over this marker and do "Machine/Camera/Set Offset/Mark&qu...

  • Page 96

    2.3.11.18TransformationWhen 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 ...

  • Page 97

    2.3.11.18.2Calculate Transformation MatrixCalculates transformation matrix from measured points. Measured points should define your workpiece position and optionally size. Points X-:Points X+:X+ and X- coordinate point countobtained by 'Measure' or 'Capture' featureis shown here. Points Y-:Po...

  • Page 98

    2.3.11.18.3Calculate Transformation Matrix From Points“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 ...

  • Page 99

    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 u...

  • Page 100

    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...

  • Page 101

    2.3.11.19Capture & Measure PointsMeasured 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, touch...

  • Page 102

    2.3.11.19.1MeasureInitiates measuring procedure using ‘movable’ tool sensor/touching probe.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 ca...

  • Page 103

    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 bal...

  • Page 104

    Measure Grid Z group of features are usually used for 'Warp'. Measure Point Z:If you need to measure single point on surface of material, you can use 'Measure Point Z'. Measure Grid Z:If you need to measure grid of points on surface of your material, you can use 'Measure Grid Z' feature. Usually ...

  • Page 105

    Measure grid Z Offset:Before you start measuring your grid, you need to measure Grid Z Offset. This is the surface height of your workpiece material.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 meas...

  • Page 106

    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 twoneighboring scan lines. Angle:Surface is scanned in lines at defined Angle.X,Y:With X and Y values we set the dimensi...

  • Page 107

    2.3.11.19.2CaptureCaptures machine position coordinates.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...

  • Page 108

    2.3.11.19.3ClearClear 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...

  • Page 109

    2.3.11.20Soft LimitsSoft 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. ...

  • Page 110

    2.3.12Help menuThe help menu provides access to offline and internet assistancefor CNC USB software. Reference content related to supported G-Codeis also linked.Software license activation and management are also catered for alongwith information regarding start-up, update status and software ver...

  • Page 111

    2.3.12.8LogSoftware 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.9Check For UpdatesChecks for software updates. An active internet connection...

  • Page 112

    2.4 SettingsThe panel allows setup of all software options and features. Settingsallow automation and integration of many features to provide advancedfunctions and simplify or speed-up many common tasks. Required optionsare dependent on user machinery, ancillary hardware and application.It’s MO...

  • Page 113

    2.4.1 GeneralIn ‘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 DescriptionAnything written in description bar, is displayed in top left corner of CNC USB software window. This is helpful when indicating ...

  • Page 114

    2.4.1.2 UnitsSets 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.2.4.1.3 Machine TypeYou can choose between different machine types. Each machine t...

  • Page 115

    2.4.2 ConnectionController 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 controllerAutomatic reconnect:When connection fails, controller automat...

  • Page 116

    Available Network Controllers:Scan:When enabled, you will be able to see all controllers that are connected to your network.IP and serial number are displayed for each controller visible in scan view list.IP:IP of selected controller from scan view list.Mask:Mask of selected controller from scan ...

  • Page 117

    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 assign’s controller its IP. Controller is th...

  • Page 118

    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.7 Tool-path History:Length of tool...

  • Page 119

    2.4.3.15Set 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. Visualizat...

  • Page 120

    Skin:You can set different look of main window. 120

  • Page 121

    2.4.3.16Set 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 throughmenus. Shortkey or key combination can be assign to certain feature by clicking the 'Tes...

  • Page 122

    122

  • Page 123

    2.4.4 AxesThis 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 inten...

  • Page 124

    Axes SPU Calibration:Motor Enable:Some motor drivers use Enable signal input. PlanetCNC controllers have Enable pin on their axis connectors.Use Motor Enable: 'Motor Enable' signal can be enabled or disabled.Invert:'Motor Enable' signal can be inverted. On Exit:Motors are disabled on exit of CNC ...

  • Page 125

    2.4.4.1 SetupSteps/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 val...

  • Page 126

    2.4.4.2 OptionsError 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 ...

  • Page 127

    Gear:Reduces speed of height compensation.2.4.4.3 BacklashBacklash 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 LimitsLimit Switches:Stop-:If checked, trigger of a limit switch in negative direction o...

  • Page 128

    2.4.4.5 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 use machine working area values. Soft limits...

  • Page 129

    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 ...

  • Page 130

    2.4.4.6 HomingEnable: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 T...

  • Page 131

    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 10m...

  • Page 132

    Speed Override Feed Only:If enabled, override affects feed rate only and leaves traverse speed at same rate.Speed Calculation:To calculate the speed, software needs to know the distance machine has traveled. Because some machines use rotational and tower axes, distance is calculated differently.A...

  • Page 133

    2.4.6 LookaheadAngle: 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 rad...

  • Page 134

    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 fr...

  • Page 135

    2.4.7 OptionsInterpolation: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 scr...

  • Page 136

    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: Disabl...

  • Page 137

    2.4.8.1 PinsHere 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. actionURI(http://www.planet-cnc.com/faq/output_board/):http://www.planet-cnc...

  • Page 138

    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:...

  • Page 139

    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, WAccelerate:If enabled, axis at each move accelerates.Decelerate: If enabled, axis ...

  • Page 140

    2.4.9.1 Jogging KeyboardEnable: Enables / disables use of hardware jogging keyboard.Invert: Allows use of Normally Open (NO) or Normally Closed (NC) switch hardware on jogging keyboards.Swap: Swaps the axis keys(Assuming axes order is X, Y, Z, A, B, C, U, V, W )First box: X axis and Z axis keys ...

  • Page 141

    2.4.10LimitLimit input pins can be inverted and 'Normal' or 'Single Input' mode can be selected.Invert Limit 1-9:Invert options are for use of Normally Open (NO) or Normally Closed (NC) switch hardware. Controllers can use 'Normal’ or 'Single Input' mode:Normal:Each switch (for positive and neg...

  • Page 142

    2.4.11InputMk2/4, Mk2 controllers:NOTE: Mk2/4 has only Input 5 and Input 1 pin.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 trig...

  • Page 143

    Mk3 controller:Mk3 has eight assignable input pins.Input 1-8:Each input pin ca be assigned for specific task:Invert Input 1-8: Invert options are for use of Normally Open (NO) or Normally Closed (NC) switch hardware.143

  • Page 144

    2.4.11.1 Input Ext With external input board you can greatly increase the number of input pins. 144

  • Page 145

    Ext 1-32:Each external input pin can be assigned for specific task:145

  • Page 146

    2.4.12CtrlE-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 ...

  • Page 147

    PPR:Set "PPR" to your encoder pulses per revolution value.Reverse:Enable "Reverse" to set reverse direction.2.4.12.1MPG PendantMax 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 contro...

  • Page 148

    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...

  • Page 149

    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 ...

  • Page 150

    2.4.14Tool 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

  • Page 151

    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:-Unkn...

  • Page 152

    Tool Change tab:Tools created in 'General Tab' get their position coordinates assigned in this tab. When tool position coordinates are entered, you assign them to selected tool with 'Update' button.152

  • Page 153

    2.4.14.1Tool ChangeTool Change settings are divided into three setting groups: 'Tool Change', 'Tool Offset' and 'Position'.153

  • Page 154

    Tool Change settings group: Here we set how we want our machine to “behave” during Tool change. 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: Machin...

  • Page 155

    Use Default Tool: If G-Code tool numbers are not in the tool table an error is reported. This option avoids this error. Default values from tool with number 0 are used instead. When tool 0 is not available, all 0 parameters are used. This option is useful, to load G-Code from another machine wit...

  • Page 156

    Tool Offset settings group:We define if Tool Offset will be set or measured for each newly changed tool. 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, t...

  • Page 157

    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 stopsat position where certain ...

  • Page 158

    Safe Height:Value of height to/from which machineascends/descends when it is in tool change procedure.Speed: Speed at which machine descends/ascends to lock orunlock tool.Lock:Lock output pin will activate/deactivate pneumatic tool-holder.Output pin:Define Output pin number for Lock.Delay:Delay v...

  • Page 159

    Move Unloaded:We can set sequence of moves when machine doesnot have any tool loaded in the tool-holder. First coordinate columnrepresents first move and second column represents second move.These are offset coordinates.This coordinate setup will do the following:When machine unlocks tool, it asc...

  • Page 160

    2.4.15Tool SensorMk1 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/ascen...

  • Page 161

    2.4.15.1Tool Sensor FixedWith 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 mac...

  • Page 162

    2.4.15.2Tool Sensor MovableSize: 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.6mmNOTE: When measuring...

  • Page 163

    2.4.16MaterialsTo visualize your raw work piece in CNC USB software 3D display, you can create the model of your work piece in Materials. 163

  • Page 164

    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 abs...

  • Page 165

    2.4.17ParametersYou can assign position coordinates to selected parameter from parameters list.165

  • Page 166

    2.4.18AccessoriesMk2 and Mk3 support I2C port. Current Position:With I2C or UART enabled you can receive data of current position. 166

  • Page 167

    3 G-CodeG-code interpreter used by CNC USB controller is implemented according to National Institute ofStandards and Technology RS274NGC Interpreter - Version 3 specification. Full documentation of RS274NGC is available at web page:actionURI(http://www.isd.mel.nist.gov/personnel/kramer/pubs/RS27...

  • Page 168

    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" isequivalent to "g0 x+0.1234 y7", for example. Blank lines are allowed in the input...

  • Page 169

    A non-zero number with no sign as the first character is assumed to be positive.Notice that initial (before the decimal point and the first non-zero digit) and trailing (after the decimalpoint and the last non-zero digit) zeros are allowed but not required. A number written with initial ortrailin...

  • Page 170

    operation is the modulus operation (MOD). The ninth operation is the "power" operation (**) of raisingthe 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, di...

  • Page 171

    3.10 Item RepeatsA line may have any number of G words, but two G words from the same modal group may not appearon the same line. A line may have zero to four M words. Two M words from the same modal group may not appear on thesame line. For all other legal letters, a line may have only one word ...

  • Page 172

    3.12 Modal and Non-modal modesIn RS274/NGC, many commands cause a machining center to change from one mode to another, andthe mode stays active until some other command changes it implicitly or explicitly. Such commands arecalled "modal". For example, if coolant is turned on, it stays o...

  • Page 173

    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,...

  • Page 174

    3.14.3 G02 - Arc/Helix Move (CW)3.14.4 G03 - Arc/Helix Move (CCW)A circular or helical arc is specified using either G2 (clockwise arc) or G3 (counterclockwise arc). Theaxis of the circle or helix must be parallel to the X, Y, or Z-axis of the machine coordinate system. Theaxis (or, equivalentl...

  • Page 175

    · when the arc is projected on the selected plane, the distance from the current point to the centerdiffers from the distance from the end point to the center by more than 0.0002 inch (if inches are beingused) or 0.002 millimeter (if millimeters are being used).When the XY-plane is selected, pro...

  • Page 176

    3.14.5 G04 - DwellFor a dwell, program G4 P- . This will keep the axes unmoving for the period of time in secondsspecified by the P number. It is an error if: •the P number is negative.3.14.6 G7 - Lathe Diameter ModeProgram G7 to enter the diameter mode for axis X on a lathe. When in the diam...

  • Page 177

    Example: G10 L2 P1 x 3.5 y 17.2 sets the origin of the first coordinate system (the one selected byG54) 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 ...

  • Page 178

    3.14.14G17 - XY-Plane Selection3.14.15G18 - XZ-Plane Selection3.14.16G19 - YZ-Plane SelectionProgram G17 to select the XY-plane.Program G18 to select the XZ-plane.Program G19 to select the YZ-plane.3.14.17G20 - Inch Units Selection3.14.18G21 - Millimeter Units SelectionProgram G20 to use inches f...

  • Page 179

    3.14.21G33 - Spindle Synchronized MotionG33 X- Y- Z- K-K - distance per revolution For spindle-synchronized motion in one direction, code G33 X- Y- Z- K- where K gives the distancemoved in XYZ for each revolution of the spindle. For instance, if starting at Z=0, G33 Z-1 K.0625produces a 1 inch mo...

  • Page 180

    3.14.22G40 - Compensation OffTo turn cutter radius compensation off, program G40. It is OK to turn compensation off when it isalready off. 3.14.23G41 - Cutter Compensation Left3.14.24G42 - Cutter Compensation RightCutter radius compensation may be performed only if the XY-plane is active. To turn...

  • Page 181

    3.14.27G43 - Tool Length OffsetTo use a tool length offset, program G43 H-, where the H number is the desired index in the tool table. Itis expected that all entries in this table will be positive. The H number should be, but does not have tobe, the same as the slot number of the tool currently i...

  • Page 182

    3.14.30G52 - Coordinate System OffsetTo offset the current point by a given positive or negative distance (without motion), program G52 X- Y- Z- 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...

  • Page 183

    3.14.32G54 - Use Preset Work Coordinate System 13.14.33G55 - Use Preset Work Coordinate System 23.14.34G56 - Use Preset Work Coordinate System 33.14.35G57 - Use Preset Work Coordinate System 43.14.36G58 - Use Preset Work Coordinate System 53.14.37G59 - Use Preset Work Coordinate System 63.14.38G5...

  • Page 184

    3.14.45G76 - Threading CycleProgram G76 P- Z- I- J- R- K- Q- H- E- L-It is an error if:•The active plane is not the ZX plane•Other axis words, such as X- or Y-, are specified•The R- degression value is less than 1.0.•All the required words are not specified•P-, J-, K- or H- is negative...

  • Page 185

    than the other. A positive Q value causes the leading edge of the tool to cut more heavily. Typical valuesare 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...

  • Page 186

    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-planehas been selected. The behavior is always analogous if the YZ or XZ-plane is selected. Rotational...

  • Page 187

    •inverse time feed rate is active during a canned cycle,•cutter radius compensation is active during a canned cycle.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,•the R number is less t...

  • Page 188

    4. a traverse parallel to the Z-axis to (4,5,3) Example 2. Suppose the current position is (1, 2, 3) and the XY-plane has been selected, and thefollowing line of NC code is interpreted. G91 G81 G98 X4 Y5 Z-0.6 R1.8 L3 This calls for incremental distance mode (G91) and OLD_Z retract mode (G98) and...

  • Page 189

    2. Move the Z-axis only at the current feed rate downward by delta or to the Z position, whicheveris 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 ...

  • Page 190

    3.14.53G86 - Canned Cycle: Boring, Spindle Stop, Rapid Move OutThe 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- P- 1. Preliminary motion, as described above. 2. Move the Z-axis only at the current feed rate to...

  • Page 191

    When programming this cycle, the I and J numbers must be chosen so that when the tool is stopped inan oriented position, it will fit through the hole. Because different cutters are made differently, it maytake some analysis and/or experimentation to determine appropriate values for I and J. 3.14....

  • Page 192

    least one must be used. If an axis word is not used for a given axis, the coordinate on that axis of thecurrent point is not changed. It is an error if: •all axis words are omitted.When G92 is executed, the origin of the currently active coordinate system moves. To do this, originoffsets are ca...

  • Page 193

    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 ininverse time feed rate mode does not affect G0 (rapid traverse) motions. It is an error if: •inverse ...

  • Page 194

    3.15 M - Codes3.15.1 M0 - Program StopTo stop a running program temporarily (regardless of the setting of the optional stop switch), programM0. 3.15.2 M1 - Optional Program StopTo stop a running program temporarily (but only if the optional stop switch is on), program M1. 3.15.3 M2 - Program E...

  • Page 195

    3.15.12M87 – Turn Spindle Clockwise and Mist Coolant On (M3M7)To turn spindle clockwise and mist coolant on program M87.3.15.13M88 – Turn Spindle Clockwise and Flood Coolant On (M3M8)To turn spindle clockwise and flood coolant on program M88.3.15.14M89 – Stop Spindle Turning and Coolant Off...

  • Page 196

    3.15.21M63 – Ext OutputM63 Pn Qx - Set ext output 'n' to value 'x'M63 Hn Qx - Set outputs on ext, port 'n' to value 'x'M63 Hn Qx;x;x;x... - Send values 'x' to ext, port 'n'3.15.22M64 – TX OutputM64 Hn Qx;x;x;x... - Send values 'x' to TX on port 'n'3.15.23M65 – I2C OutputM65 Ha Qx;x;x;x... -...

  • Page 197

    3.16 Other Codes3.16.1F - Set Feed RateTo set the feed rate, program F. The rate at which the controlled point or the axes move is nominally asteady 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), th...

  • Page 198

    3.17 Sample G-code programs3.17.1Square%M3G01 X0 Y0G01 Z-3G01 Z3G01 X-150 Y-150G01 Z-3G01 X150 Y-150G01 X150 Y150G01 X-150 Y150G01 X-150 Y-150G01 Z3G01 X0 Y0M5%3.17.2Circle%M3G01 X0 Y0G01 Z-3G01 Z3G01 X0 Y-150G01 Z-3G02 X0 Y-150 I0 J150G01 Z3G01 X0 Y0G01 Z-3G01 Z3M5%198

  • Page 199

    3.17.3One side of a ball in cage%G90G21#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 Y0o140 do #8 = [[SIN[#5]*#6]*SIN[45]] ( X and Y position) #9 = [0-[[1-COS[#5]]*...

  • Page 200

    Table of Contents1 Introduction........................................................................................................................................ 31.1 Overview.................................................................................................................

  • Page 201

    2.3.8.4.3.2.3 Traverse.............................................................................................342.3.8.4.3.3 Advanced / Stages.....................................................................................362.3.8.4.3.3.1 Stage 1 ....................................

  • Page 202

    2.3.9.14.1 Jog..................................................................................................................512.3.9.14.2 Reset..............................................................................................................512.3.9.14.3 Large...............

  • Page 203

    2.3.10.1.4 Select Previous Page:.....................................................................................582.3.10.1.5 Select Next Pause:..........................................................................................582.3.10.1.6 Select Previous Pause:..................

  • Page 204

    2.3.10.13 Convert All To Lines..............................................................................................712.3.10.14 Edit G-Code..........................................................................................................712.3.10.15 Edit DXF.................

  • Page 205

    2.3.11.13.9 Stored Position:..............................................................................................782.3.11.13.10 Selected Line:..............................................................................................782.3.11.13.11 Selected Line XY: .............

  • Page 206

    2.3.11.19.2 Capture........................................................................................................1072.3.11.19.3 Clear............................................................................................................1082.3.11.19.4 Load Points..............

  • Page 207

    2.4.4 Axes................................................................................................................................. 1232.4.4.1 Setup.......................................................................................................................1252.4.4.2 Op...

  • Page 208

    3.7 Expressions and Binary Operations........................................................................................1693.8 Unary Operation Value............................................................................................................1703.9 Comments and Message...

  • Page 209

    3.14.39 G59.2 - Use Preset Work Coordinate System 8...........................................................1833.14.40 G59.3 - Use Preset Work Coordinate System 9...........................................................1833.14.41 G61 - Set Path Control Mode: Exact Path..................

  • Page 210

x