Home
D2nc User Manual
Contents
1. they are zero degrees apart A detailed explanation of the heading can be found in the tangent reference section 107 t1 5 0 2 The shape created is the initial part of the arc to connect to the tangent line and the tangent line itself This leaves the heading at some value we can get by looking at the Shape detail display which shows 75 52 degrees We could draw an arc of 75 52 degrees with a radius of 5 a75 52 5 or we could just specify the quadrant completion setting of the tangent command The quadrant completion will extend the tangent line around the second circle until a quadrant boundary is reached t1 5 0 2 2005 2010 D2nc Software 113 D2nc User Manual Now we can specify another tangent this time from the small circle to the large Notice this time the heading will be 90 degrees between the current heading and circle centers We also need to extend to the next quadrant The program so far will now look line this t1 5 0 2 t 5 1 90 2 2005 2010 D2nc Software Shape Description Language 114 The shape can now be finished off with the bottom box shape t1 5 0 2 t 5 1 90 2 d1 90 d2 90 There you have the complete bracket outline ready to define a path and machine Example 2 The rocker arm illustrates the use of the tangent command and is a simple shape made up of four tangents This shape comes from a live project and is the reason behind
2. 2005 2010 D2nc Software 4 8 Mul CL Engrave Circle Pattern Wizard Parameter Entry D2nc Cirle Pattern Wizard Enter and outside and hub diameter and the density of circles in the patter a O er nn a APR RER N FRS TRES Em Se Sc Hi MEL a aa Af IN NAN AN SC SS ESSO E ANNA Se pc We pa Sei E Ca E a a i Le SS H a i CT SIT ver ae LITT F PL SE lt out dia 3 gt lt hub dia 1 gt lt density 10 gt O 2005 2010 D2nc Software Wizard Directory 62 Outside diameter of pattern Inside hub diameter of pattern Circle density 63 D2nc User Manual 4 9 Mill CL Engrave Scale D2nc Scale Engraving Wizard Create a scale of a specified length by entering the number of ticks minor and major ticks contained within the length Set the length for each tick type 100 25 A Length of scale 100 Total number of ticks 10 Number of major ticks 20 Number of minor plus major ticks 0 1 Tick length 0 3 Major tick length 0 2 Minor tick length Lab ia dein a Pa E aA Cancel DE 4 inch in 1 8 s lt len 4 gt lt ticks 32 gt lt majt 4 gt O 2005 2010 D2nc Software Wizard Directory lt mint 16 gt lt tlen 0 1 gt lt majtlen 0 3 gt lt mintlen 0 2 gt 10cm scale produced on an inch system EE PD PA RA JP A PA lt len 100 25 4 gt lt ticks 10
3. op 90 degrees right Continue to enter the following dih 90 which means draw a line 1 unit long then change heading 90 degrees left As can be seen from this simple sequence the D1 in step 2 and the D1 in step 4 both drew a line in the direction of the heading indicated by the yellow heading indicator Now consider that the shape represenis the outline of a machine part in plan view This is converted into g code by defining machine operations contouring drilling in subsequent steps Operations can be performed on single or multiple shapes that are added to a machining queue The queue is processed into g code and loaded into Mach3 with a single click of the Generate G Code to File button End to End Process In the end to end process look at the use of D2nc from describing a part to the output of g code First we describe a shape set the constraints define a path which we add to the machine queue Clicking on Generate G Code to File button will then generate the g code and save it in the interface file If you started D2nc from within Mach it will additionally load the g code into Mach3 so that its ready to run To start load D2nc from the Ge or from the D2nc button within Mach If the Mach button does not exist see the installation 5 guide for instruction on how to enable it O 2005 2010 D2nc Software Using D2nc Basic Concepts 36 3 1 1 Describe a Shape using SDL After D2nc s
4. option 2 optional anchor this point Excludes this jump being converted to construction line for a subsequent jump or to a cut on a subsequent jump or warp option 1 Usage Jump on the current heading for the specified distance Jump is used to position the tool with GOO moves when translated to g code Example The jump 97 works as you would expect but has a few qualifiers and some behaviour that needs further explanation The jump when translated to g code equates to the tool making rapid moves above the cutting plane at the safe Z height as set in constraints 14 In the shape display area the jump is represented by a red dashed line A single jump with a heading change produces the following 31 90 Consider a subsequent jump Normally you should expect the tool to make a rapid move on the shortest possible path To meet this expectation when there are two or more jumps in a row they are converted to construction lines blue and the resulting real jump or tool move calculated and shown in red 31 90 j1 2005 2010 D2nc Software 99 D2nc User Manual There are two qualifiers on the jump command an anchor and draw line to here There may have been a reason to have the tool follow both jumps in the previous example to avoid a clamp perhaps That would be one of the uses for the anchor Positioning with Jump or the closest thing to relative coordinates Jump
5. COT x CSC x DTR x EXP x INT x LN x LOG x y RTD x SEC x SGN x SIN x SQR x TAN x Returns the absolute value of a number The absolute value of a number is its unsigned magnitude For example ABS 1 and ABS 1 both return 1 Inverse Cosine ACOS x ATAN x SQR x x 1 2 ATAN 1 Inverse Sine ASIN x ATAN x SQR x x 1 Returns the arctangent of a number The Atan function takes the ratio of two sides of a right triangle number and returns the corresponding angle in radians The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle The range of the result is pi 2 to pi 2 radians Returns the cosine of an angle x The angle must be expressed in radians The Cos function takes an angle and returns the ratio of two sides of a right triangle The ratio is the length of the side adjacent to the angle divided by the length of the hypotenuse The result lies in the range 1 to 1 Cotangent COT x 1 TAN x Cosecant CSC x 1 SIN x Converts x from degrees to radians To convert degrees to radians the degrees are multiply by pi 180 Returns e the base of natural logarithms raised to a power If the value of number exceeds 709 782712893 an error occurs The constant e is approximately 2 718282 The Exp function complements the action of the Log function and is sometimes referred to as the antilo
6. Select the units you will working in Settings Interface Path File CAMach3 Geode D2nctap The fully qualified file name for interface with the machine controller Load pr voius Dre program at startup e prompt always The file name that the g code is saved to when you click the Generate G Code to File button Set the option of loading the previous program you were working on at startup Additionally you can be prompted to make a Yes or No decision to load the previous program or just load it every time 2005 2010 D2nc Software 31 D2nc User Manual Settings Units Interface Ane ll mode Move to 00 at start 2 Absolute C Move to 0 0 at end Incremental This option sets how the and J components of G02 and G03 are generated Either as an absolute coordinate or incremental to the X and Y coordinate of the G02 or G03 move This setting must match the same setting in Mach3 See installation 5 for further information If these settings are different all arcs will look strange and may manifest itself by showing arcs going in the wrong direction or as mirror images of what they should be Be aware that some of the Mach3 built in wizards may change the setting in Mach3 and cause it to be out of sync with the setting in D2nc Move to 0 0 at start and at end will include these moves in the generated g code if checked
7. Now that we have the shape defined lets proceed and setup to do an outside offset contour and generate the g code into Mach3 Click on the Constraint 14 tab to show the constraint panel Enter the following values Equipment SafeZ 5 Max Feed 40 Max spindle 1500 Material select Light metals Aluminum Tooling For this exercise we will use tool zero Tool zero cannot be defined in the tool table and its parameters are entered during the definition of the tool path in the next step Refer to the tool table 28 help on how to effectively use the tooling set the Rapid Feed transition to 0 1 This is the height at which a Z axis move down will change from rapid rate to plunge rate as defined in the path definition Check the progressive transition check box This will cause the transition height to move down by the step size on each subsequent pass The constraint section will now look like this Equipment Material Tooling Light Metals Aluminum Safe Z in Hard Steel Tool Steel Medium Steel Add or Change Max Feed in ri Light Steel es d Tool Stainless Free machining Max Spindle 1500 APM Stainless Hard Copper Alloy Free machining Copper Alloy Bronze low lead Brass Rapid F eed In Custom Material Setting transition feetimih On e Progressive transition Constraint 3 1 4 Define Path You are now ready to define a path and generate g code Click
8. Settings Shape Display Area Asis Lines Heading Indicator E Grid Lines Draw Arc Jump Warp Jump construction B Warp construction Ca J cmes tm You may customize the colors by clicking on a swatch and selecting a new color from the picker presented O 2005 2010 D2nc Software The User Interface Overview 32 Settings Tolerance for discriminating 0 0002 open and closed chains Enable CAD program launch button on DF import screen Name Launch CAD Path C Program FilesSC40 prog CSD prog EE When importing DXF files any element endpoint s within proximity to each other by the defined tolerance are considered joined together A CAD program launch button can be enabled allowing for easier creation or modification of DXF files Change the name of the button and the path to the CAD program executable for your environment Settings Ane conversion Max Angle Mas Length on The rotary table 15 mounted on the lett side of Une a axis The stock is parallel to the asis and extending to the right CW Clockwise Looking from the stock side a positive move rotates the table in clockwise CEW Counter Rotation Direction direction Specify the location and rotational direction of the 4th axis For each setting the narrative will change describing the setup The arc conversion converts all arc s to line segments the smaller of a max angle or
9. The difference to using a numbered block vs an inline block is that the numbered block can be repeated later in the same shape definition with a reference to it by the Repeat command The block number is referenced by the Repeat 108 command to repeat the commands enclosed by the The Repeat 108 may optionally specify a number of occurrences the commands are to be repeated Repeat block one four times would be written 107 D2nc User Manual r d1 90 r1 4 5 12 T Tangent Definition T radius1 radius2 heading distance T tangent command Jradius1 Radius of the first circle in working units positive value for CW and a negative for CCW Jradius2 Radius of the second circle in working units A positive value for outside tangent and a negative for inside tangent heading Heading in degrees relative to the current heading indicator of the vector connecting the center of the two circles distance Distance between the center of the two circles Complete the arc to the next quadrant crossing from the tangent point along the arc of the second circle Usage Understanding the heading can be a bit tricky Remember the heading is the angle formed between initial heading and a line connecting the circle centers A 90 degree angle is formed between two imaginary lines The first extending the initial heading and the second passing through the two circle centers t1 2 90 4 2005 2010
10. CL Spiral Pocket D2nc Spiral Pocket Wizard Mill CenterLine Cut a circular spiral pocket by entering a pocket diameter tool diameter and step over percent The pocket may be offset ma and Y 2 Pocket Diameter 25 Tool or endmill diameter Al Step over percent Con Direction of cut Conventional or Climb 0 offset T Y offset Cancel UK Climb cut O 2005 2010 D2nc Software 75 D2nc User Manual lt pkt dia 2 gt lt tool dia 25 gt lt step pct 50 gt lt dir 1 gt lt x offset 0 gt lt y of set 0 gt 4 17 Mill CL Surfacing in A axis Wizard Parameter Entry D2nc Surfacing in X axis Mill CenterLine Surface stock of x and dimensions by entering the tool diameter step over percent and the overhang which is the distance the tool wll clear the stock before reversing direction Offsets ma and may also be entered Length of stock Ia anis Width of stock Ir axis Tool diameter Step over percentage Overhang or tool clerance distance Ih x amp Aus offset Y Anis offset 2005 2010 D2nc Software Wizard Directory lt stock x 4 gt lt stock_y 2 gt lt tool dia 5 gt lt stepover 50 gt lt X Over 25 gt lt x offset 0 gt lt y of set 0 gt 76 2005 2010 D2nc Software 77 D2nc User Manual 4 18 Mill CL Surfacing in Y axis D2nc Surfacing in Y axis Mill CenterLine Surface stock of x and dim
11. DEN Constraint E nter a depth to cut the shape Add to Queue 2 5 6 Drill Dwell Drill Dwell Options Diameter Do Description Mist PO so OE Retract Feed DEN Full Depth Constraint Dwell Time E nter a depth to cut the shape Add to Queue 2 5 7 Drill Peck Drill Peck Options Shape g _ Flood Diameter Description Mist Full Depth PO E E ta C pm Z aile Step Speed er Retract Feed DEN The User Interface Overview 20 2 5 8 Drill Rapid Peck Drill Rapid Peck Options Diamet i me S Description DO Doo Z axis Step Speed er Retract Feed DEN Full Depth E E t E La E nter a depth to cut the shape Add to Queue 2 5 9 Other Position and Pause Position Pause Options Mist Constraint Add to Queue Used for hand operation of the quill X and Y axis will position to the hole and then pause while you hand operate the quill for center drilling drilling reaming or tapping head operations Start will then position to the next hole in the sequence 2 6 Machine Queue Machine Queue Contour Out SOTO Movellp Down Mat Clearll E dit Generate show G Code 6 Cade to File The Machine Queue allows the possibility to perform multiple operations in one g code program Either as multiple operations on one shape or several operations on multiple shapes to produce one part 2005 201
12. Mark ill Clear E dit Generate show G Code Cade ta File Click the Generate G code to File button D2nc will now generate the g code and close If you have several items in the machine queue only those items that are checked will have the g code generated This allows you to define several shapes with paths in creating a single part and to create code for each operation separately If you started D2nc from the desktop icon or other shortcut it will have created a g code file as specified in the interface file in D2nc settings 30 If you started D2nc from within Mach3 using the integration button Machs will now load the generated g code If you grab and tilt the Mach3 display with your mouse you will see the shape with compensation moves ready to cut 2005 2010 D2nc Software 43 D2nc User Manual When D2nc closed it not only generated the g code file but also saved the shape and machine queue in case any changes are necessary If you load D2nc again it will Ra by default if you would like to reload the last shape This is a settable feature in the D2nc settings 30 If you do that now and click Yes the shape will reload Click the path tab and the machine queue is already set Click on the queue entry to select it and then click the edit button below the queue You will see all your previous settings are preset e Go ahead and change the Z axis step to 2 e Click the Update Q
13. Constraint Enter a depth to cut the shape Cancel 2 5 2 Contour 4th Axis 4th asis Rotary table 4 axis Options Sequence Shape g d Each seg to depth _ Flood o All seg per step Diameter O Mist Wrap axis GOS axis 1 axis Scaling Description Avis units in 360 PU Peer Aas stock dia Z AMIS Step Wrap axis ratio Speed Cutter CenterLine Feed e Vertical Lock Aspect 1 Plunge Constraint Enter a depth to cut the shape Add to Queue 2 5 3 G41 G42 Offset Outside SS Offset compensation sta Shape o T Segment BA CS _ Flood Options a Diameter Conv Climb SE EM BP Description mx Mist E Stock to leave O 62005 201 FulDepth a 5 UE At Cale 7 speed CJ First Last pass Feed BB 2 Every pass Plunge ar ia 19 D2nc User Manual 2 5 4 G41 G42 Offset Inside Offset Opti SSC Offset compensation ee Shape Segment E DE pe _ Flood in O Conv O Cimb 89 DO hi CT Mist Full Depth Z anis Ste strategy speed LL H O At Satez peed L t First Last pass Feed L J e Every pass Plunge Do JE E nter a depth to cut the shape Add to Queue E E ta o 2 5 5 Drill Standard Onill Standard Options Diameter i no DIDO ue eBscription so OE Retract Feed
14. D2nc Software Wizard Directory 56 lt y nr holes 6 gt lt length x 4 gt lt Length y 4 gt lt x offset 0 gt lt y of set 0 gt lt angle 0 gt 4 5 Mill CL Bolt Circle Wizard Parameter Entry D2nc Bolt Cirle Wizard Mill CenterLine Enter a diameter and the number of holes in the bolt circle Enter the milled hole diameter and the tool or endmill diameter ef Circle diameter of bolt circle E Number of holes in circle 5 Hole diameter of the finished hole E Tool or endmill diameter O 2005 2010 D2nc Software 97 D2nc User Manual lt circle dia 2 gt lt nr holes 8 gt lt hole dia 5 gt lt tool dia 25 gt O 2005 2010 D2nc Software Wizard Directory 58 4 6 Mill CL Engine Flywheel Spoke Cutout Wizard Parameter E D2nc Flywheel Spoke Cutout Wizard Mill Flywheel cutout leaving a specified number of spokes Enter the number of spokes and the spoke width the tool diameter and the inner and outer radius of the cutout 4 nner radius of cutout 1 5 Outer radius of cutout 125 Tool diameter 15 Spoke width E Number of spokes Cancel DE lt in rad 4 gt lt out rad 1 5 gt lt tool dia 125 gt O 2005 2010 D2nc Software 59 D2nc User Manual lt swidth 15 gt lt nr_spokes 5 gt 4 7 Mill CL Engrave Bezel aa Wizard Param
15. OF O 2005 2010 D2nc Software Wizard Directory 68 lt in rad 5 gt lt out rad 2 gt lt tool dia 25 gt lt step pct 50 gt lt arc deg 90 gt lt start ang 90 gt 4 12 Mill CL Radial Slot Wizard Parameter Entry D2nc Radial Slot Wizard Mill CenterLine Cut a radial slot of the radius and degrees entered Degrees are ve for counter clockwise and Ave for a clockwise sweep b d Offset 0 Y Offset 75 Start Angle em Arc degrees DA or CCW P Arc radius 2005 2010 D2nc Software D2nc User Manual lt x offset 0 gt lt y of set 0 gt lt start angle 5 gt lt arc deg 60 gt lt arc rad 2 gt O 2005 2010 D2nc Software Wizard Directory 70 4 13 Mill CL Rectangular Pocket D2nc Rectangular Pocket Wizard Mill Centerline Mill a rectangular pocket of defined length and width The bottom left corner can be offset from the origin in and which can also be negative Enter the tool diameter and step over percent The path definition must be centerline contoured as the tool diameter is compensated in the shape The pocket can be rotated about the rotation point by entering an anale E Length of rectangle a Width must be less than or equal length 1 amp Ans offset 1 Y Seis offset 25 Tool Diameter Al Step over percentage 0 Angle of rota
16. Restart Select Options Chains Select All Keep Selected Elements De Select All Remove Selected ng jl Accept Click the Remove Selected button to eliminate the selected elements Click the Accept button to lock in the shape SOUrCe SOL DE Shape 5 A E t 1 E o E Po 2 BE Now that we have shape 0 locked in select shape 1 then the DXF source and then Import Select the same DXF to import and click Open Set the filter to Circles and click Next The five circles in the DXF file have been imported Click on the large center circle to select it Now click the Keep Selected button which will remove all elements that are not selected leaving us with the shape for the inside offset Click the Accept button to lock in the shape The last shape we need is that of the outside contour We have shape 0 and 1 locked in so select shape 2 then the DXF source and then Import Select the same DXF to import and click Open Set the filter to Lines and Arcs and click Next O 2005 2010 D2nc Software Using D2nc Basic Concepts 40 This shape needs no adjustment so we just click Accept to lock it in Congratulations you have successfully extracted the three shapes from the DXF file which are required for the three machining operations needed on this particular part You may now proceed to sei the constraints 40 define the tool paths 41 and then generate g code 42 3 1 3 Set Constraints
17. SDL Wizard from the program This step is planned to be automated in a future version of D2nc For now this has to be done manually The wizards are kept in the sub directory C D2nc Wizards 2005 2010 D2nc Software 47 D2nc User Manual Wizards are XML files with a d2w extension The format for the XML file is provided in a template in this directory called C D2nc Wizards Sample d2w txt Copy this template to another file giving it the name of the template as you would like it to appear in the wizard selection screen In this example copy it to a file My polygon wizard d2w The wizard selection screen will only show files with the extension d2w Edit this file you created in notepad or some other text editor The contents of the new file you copied from the template should be lt xml version 1 0 encoding ISO 8859 1 gt lt wizard gt lt title gt lt title gt lt desc gt lt desc gt lt graphic gt lt graphic gt lt parameters gt lt param gt lt prompt gt lt prompt gt lt variable gt lt variable gt lt value gt lt value gt lt mvalue gt lt mvalue gt lt param gt lt param gt lt prompt gt lt prompt gt lt variable gt lt variable gt lt value gt lt value gt lt mvalue gt lt mvalue gt lt param gt lt parameters gt lt SDL gt lt shape gt lt CDATA gt lt shape gt lt SDL gt lt wizard gt Adapt the contenis and save the file lt ti
18. a segment length For a particular radius an angle of 90 degrees will be generated with either 45 line segments spanning 2 degrees each or as many 010 segments fit the curve whichever is greater given the default values above 2005 2010 D2nc Software 33 D2nc User Manual 2 7 5 Material Settings Material settings allows you to customize the material description and the surface speed for thai material If D2nc is in inch mode you will be able to set the feet min and meters min will be calculated and visa versa Material Settings Light Metals Aluminum EE ard Steel Tool Steel Medium Steel ight Steel tainless Free machining Eri tainless Hard K C opper Alloy Free machining EN us Copper Alloy Bronze low lead Brass Metal Defaults Material Description Li ma p o Hi CH E mom os CH CH ees 30 UD Om bal Mol zl Ui CO co m tS o Co Ee 5 Cancel Clicking on the Metal Defaults button will return the list of material to their original installation defaults 2 7 6 Export DXF w Export DXF Select shapes to export to DF Jo kel The menu item Export DXF allows any shape from any shape source to be exported to a DXF file By default the current shape is checked for export You may select additional or alternative shapes to be exported All shapes selected for export are sent to a single layer O
19. can also be used to reach a position where you cannot possibly know the correct heading and line distance to that point This is most useful when working from a drawing Up 3 right 4 up 4 create a line to here First follow the directions UI 90 9 r r O u LI Aa B W Second convert the jump to a line j 3 90 3 4 90 4 4 Third lets assume the first jump was a positioning not a cutting move so lets anchor it j 3 90 j 4 90 j 4 Fourth if you actually wanted a cutting move instead of a positioning move you would use the draw ar d 3 90 3 4 90 4 4 2005 2010 D2nc Software Shape Description Language 100 5 7 A Arc Definition A angle radius heading A Arc command angle Range 360 to 360 Angle of the arc ve moves in a CCW direction and ve in a CW direction radius Radius of the arc in working units heading optional range 360 to 360 sets the heading relative to the current heading Usage The arc parameter angle sets the direction of the arc clockwise is a positive angle and counter clockwise is a negative angle The radius sets a point to the right or left of the starting point depending on whether the angle is positive or negative Arc is used to cut material and create G02 and G03 moves when translated to g code a90 1 Example In this next example a jump and cw heading change is made from the origin point The arc
20. d1 drew a line in the direction of the heading indicator The h90 caused the heading indicator to turn 90 degrees clockwise The next d1 drew a line in the 2005 2010 D2nc Software 37 D2nc User Manual direction of the heading indicator This second line is at a right angle to the first line due to the change in heading The second line started from where the first line ended Congratulations You have completed your first shape For more insight to SDL consider the following The shape description you just entered can be optimized by using features of the language The following shape descriptions describe the same shape you ve just completed a one unit square The setting of the heading can be specified using the optional heading parameter of the Draw ai command instead of a separate heading command d1 90 d1 90 d1 90 d1 90 The Repeat 106 command has an inline block definition further simplifying the shape definition Take the block enclosed by braces and repeat it four times r dl 90 4 There are many way to achieve the same thing in SDL as it is a language The next steps will be to define the constraints and a tool path to generate g code You may now proceed to the setting constraints 40 or take a look at Importing a shape from DXF Ga 3 1 2 Importa Shape from DXF DXF import was added to D2nc as a way of getting more complex shapes which cannot be described with SDL into D2nc like to refer t
21. gt lt start ang 0 gt O 2005 2010 D2nc Software Wizard Directory 88 4 26 Mill Off Shape Rectangle Centered Radius D2nc Rectangle centered on origin with radiused corners wizard Mill Offset Cut a square or rectangle by entering the a and Y dimensions and the radius of the corners Optionally enter a a and offset from 0 0 and angle of rotation 1 o asis side length 1 Y asis side length O Corner radius O o offset 0 Y offset O Angle of rotation lt x_side 2 gt lt y_side 1 gt lt rad 5 gt lt x offset 0 gt O 2005 2010 D2nc Software 89 D2nc User Manual lt y_offset 0 gt lt rot 0 gt lt x_side 1 gt lt y_side 1 gt lt rad 0 gt lt x offset 0 gt lt y of set 0 gt lt rot 0 gt O 2005 2010 D2nc Software Wizard Directory 90 4 27 Mill Off Shape Rectangle D2nc Rectangle wizard Mill Offset Cut a square or rectangle by entering the a and Y dimensions Optionally enter a a and Y offset from 0 0 and an angle of rotation H amis side length 1 Y asis side length o Offset 0 Y offset 0 Angle of rotation lt x_side 1 gt lt y_side 1 gt lt x_Offset 1 gt lt y_offset 5 gt 2005 2010 D2nc Software 91 D2nc User Manual 9 1 lt rot 0 gt Shape Description Language The Shape Description Language definition Assignment Definition lt varname value var
22. in the DXF file Clicking on the O 2005 2010 D2nc Software The User Interface Overview 34 Export bution prompis for a DXF file name and location 3 Using D2nc Basic Concepts Understanding a few basic concepts will go a long way to helping you use D2nc There are three stages to producing g code with D2nc 1 Describe a shape or import and extract a shape from a DXF file 2 Set machine material and tool constraints 3 Define operations which are added to a machine queue D2nc is based on a simple Shape Description Language a SDL When you initially load D2nc you will see an arrow in the black shape display You type commands in the shape description area and the result is reflected in the display area The process of describing a shape can be thought of as navigating along a course or driving a vehicle Each move or turn you make is a continuation from your last move The current heading or direction is the key to describing a shape The heading indicator is the gold arrowhead in the shape display area It is used as an aid to track the current heading The arrow indicates the point at which the next command will start and direction it which it will go Initial displa Enter the following in the Shape Description Area 11 al which means draw 97 a line 1 unit long O 2005 2010 D2nc Software 39 D2nc User Manual 3 1 Now enter h90 which means change headin
23. radius heading diztancel Shape Detail hd coord coord L Xcoord coord library tem Jecale C distance offset heading Y distance offset heading A lt gt parser variable definition assignment math function lt variable substitution valable gt value true block false block Shape Detail For each shape the table shows the absolute heading in the unit circle the number of closed and open chains in the shape the number of points in the shape and if the shape can be used for drilling For the rules on how shapes can be used see the path 15 help Shape Help Mr Heading Closed Open Point Dnill i HU U U i 1 HU U i Z HU D D A HU U U i 4 HU D D a HU U U i D HU D D D T HU U U i 3 HU D D H HU U U i Message Line The message line will give information about any error in the SDL syntax 2005 2010 D2nc Software 13 D2nc User Manual 2 2 Shape DXF celine SOL DE Import DXF File Launch CAD er ET 15H al G 5 pe T The DXF Shape source initial screen Either import a DXF file or launch your CAD program to create or modify a DXF file The CAD launch button can be enabled in the settings 301 Lines SOL DF wen L Filter E Elements Layers E E All aj all e z Lines and Arcs E Circles as Ponts Circles i Points E Points Circles as Pnt Next Es ET shape DXF element filter screen Filters wh
24. the creation of the tangent command While the shape could have been define previously it required some math to calculate the arc angles and line distances Too much to do in the machine shop and a simple command was needed The rocker arm is three circles spaced 67 apart the outer two circle have a radius of 1 and the center circle a radius of 1625 Given those dimensions the following four tangent commands create the shape 2005 2010 D2nc Software 115 D2nc User Manual t 1 1625 90 670 t 1625 1 0 670 Cally 1625 90 46 102 E 1625 e E ege Or 4 t 1 1625 90 670 t 1625 1 0 670 2 5 13 M Move Definition M Xcoord Ycoord M Move command Xcoord X axis absolute coordinate for destination of the move Ycoord axis absolute coordinate for destination of the move Usage The M move command is coordinate based Using this command can reduce the flexibility of SDL as the shape cannot be rotated This could limit its use in repeated blocks and procedures Move is from the current position to the X and Y location specified in the move Example Move to four specific X Y coordinates and drill a hole there O 2005 2010 D2nc Software Shape Description Language 116 5 14 E Etch Definition E Xcoord Ycoord E Etch command Xcoord X axis coordinate for destination of the move Ycoord Y axis coordinate for destination of the mo
25. 0 D2nc Software 21 D2nc User Manual An example of the former is a contour roughing pass You may leave a few thousandths allowance in the first queue operation and in a second make a finishing pass at full depth with no allowance An example of the latter would be three operations on three shapes to produce a drilled flange For example an inside contour for the cut on shape 1 a drill cycle on a bolt circle shape 2 and finally an outside contour of shape 0 Entries in the Machine Queue show three items of information Operation type Shape Nr Tool Nr Only the machine queue items that are checked on the left will be included in the g code generated You may define several items in the queue and then machine them sequentially one at a time by checking and unchecking the appropriate queue entries Entries in the queue can be reordered by highlighting the entry to move and click the MoveUp and Down buttons Generate G code to File This button generates g code for each entry checked in the machine queue and writes it to a file The output file name is set in the menu item Settings 30 This button will not work if a license is not installed or the trial period is over Show G Code O 2005 2010 D2nc Software The User Interface Overview 22 Dene generated code GIF set xy plane G90 absolute mode G40 cancel cutter radius comp G49 cancel tool len offset GeO cancel canned cyc
26. 0 gt lt majt 10 gt lt mint 20 gt lt tlen 0 1 gt lt majtlen 0 3 gt lt mintlen 0 2 gt 4 inch scale produced on a metric system 64 2005 2010 D2nc Software 65 D2nc User Manual lt len 4 25 5 gt lt ticks 32 gt lt majt 4 gt lt mint 16 gt lt tlen 2 gt lt majtlen 6 gt lt mintlen 4 gt O 2005 2010 D2nc Software Wizard Directory 66 4 10 Mill CL Radial Pocket tool centerline D2nc Radial Pocket Wizard Tool centerLine Cut a radial pocket by entering the pocket made and outside radius tool diameter and step over percent The start angle of the pocket as well as the degrees of the pocket must be set 5 Inside pocket radius a Outside pocket radius 35 Tool or endmill diameter El Step over percent 200 Pocket angle op Start angle Cancel OF lt in_rad 5 gt lt out_rad 2 gt lt tool dia 25 gt lt step pct 50 gt O 2005 2010 D2nc Software 67 D2nc User Manual lt arc deg 90 gt lt start ang 90 gt 4 11 Mill CL Radial Pocket tool edge D2nc Radial Pocket Wizard Tool edge Cut a radial pocket by entering the pocket made and outside radius tool diameter and step over percent The start angle of the pocket as well as the degrees of the pocket must be set 5 Inside pocket radius a Outside pocket radius 35 Tool or endmill diameter El Step over percent 200 Pocket angle op Start angle Cancel
27. 10 D2nc Software Introducing D2nc 8 Visit www d2nc com to purchase a license key The key will be emailed to you shortly after payment is received Select the menu Option gt License E E E settings H Fie Tools Help Enter the Name and Key as provided to you in the email D2nc Registration o Cancel LOK Confirm your registration by viewing the Help gt About screen File Tools Option C E E Contents Tutorial D2nc Website 1 4 Copyright D2nc is copyright Graham Hollis www d2nc com Machs is copyright Artsoft www machsupport com O 2005 2010 D2nc Software D2nc User Manual 2 The User Interface Overview Sen D2nc Icon Bar SES Shape UK enter command Menu Bar Program Menu 2 Del HE LE New Save Arrow Grid Auto Size Open Wizards Axis Construct Icon Bar New Open Full Caret Line Auto Man SE Status rea Inch hore Shape Help H heading D distance heading J distance heading A degrees radius heading YY degrees radius heading B black nricommands occur M block oricommands Joccur R Block nr commands occur T radius radiusa heading distance C0 0 1 POON 1 1 Inch Closed Open Point Current Units counts and X Y of Drill indicator heading current shape indicator 2005 2010 D2nc Software
28. Cut a circular spiral pocket by entering a pocket diameter tool diameter and step over percent The pocket may be offset ma and Y Pocket Diameter 26 Tool or endrall diameter 0 Step over percent fe se Direction of cut Conventional or Climb offset Y offset Enter the desired values for the available parameters of the wizards you selected The wizard may display a graphic illustrating the basic wizard function and the meaning behind the individual input parameters Once you satisfied with the input click the OK button to generate the SDL into the shape description area ox lt pkt_dia gt tool dia 25 gt step pct 50 gt lt dir 1 gt x offset 0 gt lt y offset 0 gt lt tdia pkt diatool dia gt See Shape UK enter a command The SDL program in the shape description generated by the wizard is a live program and may be adjusted before proceeding to set the constraints 4 and define a tool path 41 The convention for wizards Is to assign oi the value input to a variable one input parameter per line The input variables are separated from the static part of the SDL program by a dashed comment line You may adjust the values of the variables to make changes to the displayed shape or you can re run the wizard to input new values 2005 2010 D2nc Software The User Interface Overview 26 2 7 2 Shape Library Shape Library Mame Descr
29. D2nc D2nc User Manual Table of Contents Part Introducing D2nc 4 KUER a DP RR 5 2 installation Ce en 5 gt Homo DUV D200 SR EE 7 A e ed Te In dE 8 Part Il The User Interface Overview 9 Shapes E 11 2 MAO D eege 13 gt CONSUMO quaspiansass is nda nona sa Lda Sia E am a a dia 14 D 15 5 ei d E 16 Contour COMES TING 2 660 ssnc can sanem nus EEEE A E E dis cn pm amsn dade E A na gassa nas 18 Contour uf E 18 G41 G42 Oset e ECHT TE 18 G41 G42 Offset Inside a teen din eee een tie ns 19 DE Standard RE 19 D Dwel oeenn asacnerueseesc ccue cacssiesasteccecuccecsesacsnesuoncec de uetsatepocaucieeeaeecsece nets 19 DAC ae ea ee ee ee el et 19 WAT Er Re eee eee is 20 Other Position and RT 20 6 Machine Queue cccccccssseeccenseeeccnnseeccenseeseenseeeecenseeseeseeeeoaseeeeengseeseeseeeeesseeseaseeseonssessennsesses 20 M De no gn ea 22 SDE tege DEEN 23 SIDE ANY css ancannenanca canso acuna poda EEEE nda cuia EE RE EEE masa nuas anna 26 TOO TIDO SS S S EDS 28 OS DL das a de 0 30 ENNER ue CN 33 Eb dolo q 5 4 ee 33 Part Ill Using D2nc Basic Concepts 34 1 ENGO End PROCESS E 35 Describe a Shape using EC KI BE 36 Importa Shape kom DRE en E E ae Dada ne te ane ete 37 Sl COMORES ee 40 DEINE PA am ee 40 Generale GO EE 42 NAS SD a de miens dan DD 44 3 Sue 45 4 Creating your own SDL Wizards ee eeeeeeeecceeneeeeconaneeneconaaeereeconaaaneneconaaanaa 46 gt
30. D2nc Software Shape Description Language 108 In this example a 45 degree angle is formed The quadrant completion has been set to extend the tangent line around the target arc to the next quadrant boundary t1 2 45 47 There are four combinations of clockwise counterclockwise and inside outside as follows CW outside t1 2 90 4 2005 2010 D2nc Software 109 D2nc User Manual CW inside t1 2 90 4 CCW outside t 1 2 90 4 CCW inside t 1 2 90 4 O 2005 2010 D2nc Software Shape Description Language The same examples with quadrant completion set CW outside t1 2 90 4 CW inside t1 2 90 4 CCW outside t 1 2 90 4 110 2005 2010 D2nc Software 111 D2nc User Manual CCW inside t 1 2 90 4 Example 1 The tangent command is perhaps the most powerful D2nc command It opens up the possibility of countless shapes not possible before in the previous versions Wo V KC Me Se GG na a t 2 2 90 1 4 amp r t 2 1 90 1 45 In this example a bracket is formed by two tangent lines on two circles with a box shape below The bottom circle is 2 inches in diameter and the top 1 inch The center of the circles are 2 inches apart The heading of the line connecting the circle centers is on the same heading as the initial heading so 2005 2010 D2nc Software Shape Description Language 112
31. Draw command distance Distance in working units to draw line in the direction of the current heading heading optional range 360 to 360 sets the heading relative to the current heading Usage Draw straight lines on the current heading of the specified distance Draw is used to cut material and create G01 moves when translated to g code Example Enter the following into the Shape Description Area 11 ss 25 9 5 H Lo H Lo H LH O LO which will produce the following display in the Shape Display Area 9 Let s examine what happened here The first d1 drew a line in the direction of the heading indicator The h90 caused the heading indicator to turn 90 degrees clockwise The next d1 drew a line in the direction of the heading indicator This second line is at a right angle to the first line due to the change in heading The second line started from where the first line ended J Jump Definition O 2005 2010 D2nc Software Shape Description Language 98 J distance heading O J Jump command distance Distance in working units to jump in the direction of the current heading heading optional range 360 to 360 sets the heading relative to the current heading option 1 optional line converter Cause a line to be drawn to this point Any sequence of jumps and warps will be converted into a cutting line from the last cut or anchor point
32. G41 G42 Offset Operations Outside 18 The path is offset to the outside of the shape using G41 G42 offsetting The offset is the radius of the tool plus any stock allowance O 2005 2010 D2nc Software The User Interface Overview 16 2 5 Inside 19 The path is offset to the inside of the shape using G41 G42 offsetting The offset is the radius of the tool plus any stock allowance Drilling Operations Standard 19 G81 canned cycle generated g code Dwell 19 G82 canned cycle generated g code Peck 19 G83 canned cycle generated g code Rapid Peck 2 G73 canned cycle generated g code Other Operations Position and Pause 2 Creates a series of GOO and M01 in g code for each point in a drill shape Useful for mill drill machines with a quill allowing the positioning over a hole for manual drilling or tapping using a tapping head No Z axis moves are generated for this path Operations Contour Out Opti Pensa Offset compensation re Shape Segment n BA Flood a Diameter O Com Ce Climb seg IL Lin Mist Description Strat zion 1 i ed OA O First Last pass Feed LL e Every pass Plunge Do E nter a depth to cut the shape Add to Queue Shape E O t 5 Lan Each operation has its own unique panel The contour Out panel is shown above Generally the panels are divided into two parts The operation parameters on the left and the tool parameters on th
33. ROTATV USING X OF EE 50 Part IV Wizard Directory 50 2005 2010 D2nc Software Contents Il 1 Drill Bolt CIC en ea dan en 51 EU OI AA a a jd een 52 3 Drill RI Hole En EE 54 4 Drill Rectangular Hole Pattern sicie aaa 55 gt MIN CL BOI Circle ass ont ne re eS ern Sn fe Sn as lados al an ner oe erie een ere See ar ee 56 6 Mill CL Engine Flywheel Spoke Cutout ccccceeeessccssseeeeeeeeeeeceenseeeeeeeeeceeenseeeeesseeooeees 58 FMI CE ENGlave Bezel 2 sass aa n anii 59 8 Mill CL Engrave Circle Pattern ccccssssseececssssseeesscessseeeescessseseescesseeeseooessseseeeoeasseseesonsseees 62 MIN CES Eng ave UE 63 10 Mill CL Radial Pocket tool Centerline e seeeeeeereneceeeereenenenoa 66 11 Mill CL Radial Pocket tool edge nnrrrrennrrrrnnnrrrnnnnennenennnnnennnenenennnnnnenns 67 12 Mill CL Radial Slot esa sms le sc isisen ss tin este tentes sien isa Eai sad ere tin er Pede sia gi sasisa t s 68 13 Mill CL Rectangular Pocket assa 2 70 m IM CE Shapes ed 71 15 Mill CL Slotted Timing DiSk nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn nnmnnn 73 16 Mil CL Spiral POCRO SR nn eae CU a a 74 17 Mill CL SUMaCIng IN X axis sorusundan a needs nisi desc 75 18 Mill CL Surfacing BIREN 77 19 Mil Muhi Engine Bea E 78 20 Mill MuUlti Engine Conrod WEE 80 21 MO D Ole Eat nan Goi ii
34. Seg moves the location of the compensation move from 0 to 99 along the selected segment The compensation move is only shown after the tool has been selected or the diameter entered The compensation move is always 150 the tool diameter Leave Stock to leave blank for now It is possible to define a finishing pass allowance and then add another contour left operation to the machine queue at say full depth in one pass with no allowance The compensation strategy selects where the compensation moves occur Select First Last pass to have the compensation occur only on the first and last pass The other options At Safe Z makes the moves at Safe Z height so it will not remove stock and Every pass makes the moves at every Z axis step Increase the feed and plunge if necessary by clicking on the plus next to these settings Your input should look as follows 2005 2010 D2nc Software Using D2nc Basic Concepts 42 Contour Out z Opti E ds Offset compensation See Shape Segment E er Flood z Diameter 25 4 Gm EIER SE JL DI Mist Description ate First Last pass Feed L JL Calc Ever pass Plunge er Add to Queue Shape E E t 5 lj Click the Add to Queue button The path is now defined and you ready to generate g code 3 1 5 Generate Gcode The Machine Queue now has the entry Contour Outside Shape O Tool O in it Machine Queue Contour Out SOTO Movellp Down
35. The User Interface Overview 10 Save Wizards loads the SDL wizard selection screen Arrow shows hides the yellow arrow heading indicator Axis shows hides the X and Y axis and the zero intersect Grid shows hides the display grid lines Construct shows hides the red and blue jump and construction lines Autosize Auto Manual resize of the shape in the display area Status Area C shows the number of closed chains in the current shape O shows the number of open chains in the current shape P shows the number of points in the current shape NOTE The first 3 counts are important as only a single closed shape with no open shapes and points can be offset using G41 G42 That is offset buttons will only be enabled if the status is C 1 O 0 P 0 D indicator Y N shows if the shape can be used for drilling The drill operation buttons are only enabled if this is a Y X Y shows the current location of the heading indicator in the shape display area Units shows the current working units Inch or Metric This is changeable in the settings 30 menu Shape Display Area The black area is where shapes are displayed This is an output only area Shapes are defined using the Shape Description Language oi while in the Shape 11 mode Using the Mouse Right drag Hold the right mouse button down to drag the shape around Shift left drag or scroll wheel Hold the shift key and left mouse button down and move the mouse up to z
36. al and tool constraints New in V2 0 are SDL Wizards 23 for generating shapes for common tasks Dj pm E 3 375 0 625 L Inch Shape Help 2 H heading D distance heading J distance heading lt offset_y 5 gt A degrees radiue heading tool dia 25 gt C distance offset heading lt step_pct 50 gt DIN block nrfcommande Wl Joccur lt ang 0 gt E block nr commande Wf Joccur T radius1 radiu 2 heading distance Enter a command E K K D2nc can be run as a stand alone application or launched from a button on the Mach screen To activate this button in Mach3 refer to the installation 5 steps for post install To learn to use D2nc it s best to follow the tutorials 34 but at the very least review the basic concepts 34 page The Shape Description Language oi can be simple to use There are only three basic commands used to produce most shapes They are Jump Draw and Arc SDL can also be used as a programming language for writing SDL wizards and can produce complex shapes All of the wizards in D2nc are written in SDL This help file last updated for release 2 2 0 2005 2010 D2nc Software D2nc User Manual 1 1 1 2 Why D2nc D2nc originated from my need to create g code in the machine shop not at some remote CAD CAM workstation for simple tasks that occur so frequently The Mach3 wizards only went so far and it was a case of More P
37. angle x The angle must be expressed in radians The Cos function takes an angle and returns the ratio of two sides of a right triangle The ratio is the length of the side adjacent to the angle divided by the length of the hypotenuse The result lies in the range 1 to 1 Cotangent COT x 1 TAN x Cosecant CSC x 1 SIN x Converts x from degrees to radians To convert degrees to radians the degrees are multiply by pi 180 Returns e the base of natural logarithms raised to a power If the value of number exceeds 709 782712893 an error occurs The constant e is approximately 2 718282 The Exp function complements the action of the Log function and is sometimes referred to as the antilogarithm Returns the integer portion of x Int returns the first negative integer less than or equal to number For example Int converts 7 4 to 8 Returns the natural logarithm of a number The natural logarithm is the logarithm to the base e The constant e is approximately 2 718282 Returns the logarithm of a number x in the base y Also see LN The logarithm in base y for any number x is calculated by dividing the natural logarithm of x by the natural logarithm of y as follows Log x LN x LN y Converts x from radians to degrees To convert radians to degrees the radians are multiply by 180 pi secant SEC x 1 COS x Returns an integer indicating the sign of x If x is greater that zero SGN returns 1 If x is e
38. at elements and from what layers elements are imported SOL CF Restart Select Options Chains Select All keep Selected De Select All Remove Selected Elements Ir il J bt Accept HE There are elements in the shape Chain and element selection screen allowing you to keep or delete selected items Click on accept to lock the shape in 2005 2010 D2nc Software The User Interface Overview 14 Do pot z a S O 5 6 q Once a shape has been locked in you may restart the DXF import from the beginning 2 3 Constraint Equipment Sate Z iri Mas Feed inmin May Spindle APM There are elements in the shape Material Tooling Ce Light Metals Aluminum Hard Steel Tool Steel Medium Stee Tooling in the Tool Light Steel 7 T able Stainless Free machining Stainless Hard Add or Change Copper Alloy Free machining Copper Alloy Bronze low lead Brass Rapid F eed In Custom Material Setting transition feet mih s0 Progressive transition There are three types of constraints Equipment The equipment constraints describe the limits of your machine in feed rate and spindle speed These are used to limit the maximum speed or feed calculated in the g code during the next step The safe Z is the height that the tool will be for all rapid moves The top of the material to be cut is always at a Z axis value of ze
39. aw line one inch long a90 5 arc 90 degrees with a radius of 5 inch close inline block 4 repeat inline block 4 times If you are having trouble understanding how this sequence of commands produces the shape shown please refer to the basic concepts E 3 4 Creating your own SDL Wizards SDL Wizards are easy to create Lets walk step by step through the process of creating a simple SDL wizard 1 Create a variable driven SDL program Remember the four sided square We can change that into a wizard where you can specify the length of the side and the number of sides r d1 90 4 the variable components here are 1 length of side 90 heading change 4 occurrences The 90 heading change is really 360 degrees divided by the occurrences and so can be calculated The other 2 are input variables so lets define them The syntax for variable definition is in the SDL reference under assignment 9 lt len 1 gt lt side 4 gt The variable names len and side can be anything you like as long as they start with an alpha character Now we can use those variables in SDL as follows r d len 360 side side You can see the variables have been inserted into the SDL command by way of functions 93 By changing the values of len and side you can create any size equilateral polygon The completed variable driven SDL program is the foundation of a SDL Wizard lt len 1 gt lt side 4 gt r d len 360 side side 2 Create the
40. below or cancel to return Cancel Filter DRILL Bolt Circle gt DRILL Hole Array DRILL Linear Hole Pattern DRILL Rectangular Hole Pattern HILL CL Bolt Circle MILL CL Engine Flywheel Spoke Cutout HILL CL Engrave Bezel HILL EL Engrave Circle Pattern HILL CL Engrave Scale MILL CL Radial Pocket tool centerline HILL CL Radial Pocket tool edge MILL CL Radial Slot MILL CL Rectangular Pocket HILL CL Slotted Timing Disc MILL CL Spiral pocket HILL CL Surfacing in X axis complete list of available wizards and sample output can be seen in the Wizard Directory 50 Each wizard is assigned its own button If there are more wizards than can fit on the screen the list can be scrolled top to bottom To find a particular wizard start typing any sequence of letters you know occur in the wizard name and the list will dynamically update and only show wizards containing that String of letters You can click the Clear button to remove the filter and show all the wizards Wizards are easy to create if you have worked with a programming language and understand XML Refer to the guide to creating your own wizard 1 Click on a wizard in the selection screen to load the parameter entry screen O 2005 2010 D2nc Software 25 D2nc User Manual Wizard Parameter Entry D2nc Spiral Pocket Wizard Mill CenterLine
41. block number commands occurs N Procedure command block number A number ranging from 0 to 9 The block number must be unique between both N and B type blocks and can only be used once across all shapes in a program commands Any commands in combination occurs Default O The number of times the block of commands enclosed in braces will be repeated The occurs is ignored when the block number is referenced by the repeat command Usage The block and procedure are identical with one minor difference The block B has a default occurrence of 1 while the procedure N has a default occurrence of 0 This allows the procedure to define a shape without that shape being represented in the shape until referenced by a repeat R command The Block 103 command along with its occurs option is used to enclose a series of commands and have those commands used in the shape Repeating a Block or Procedure 105 is the function of the Repeat 106 command The following are all equivalent pital 20 n1 d1 90 ri nidi A b1 d1 90 0 ri r d1 90 2005 2010 D2nc Software Shape Description Language 106 In the last example above the repeat uses the inline block specification The difference to using a numbered block vs an inline block is that the numbered block can be repeated later in the same shape definition with a reference to it by the Repeat command The block number is refe
42. c radius 25 Slot width 0 Offset 0 Y Offset Cancel OK lt start angle 5 gt lt arc deg 60 gt O 2005 2010 D2nc Software Wizard Directory 84 lt arc rad 2 gt lt slot_width 25 gt lt x offset 0 gt lt y of set 0 gt 4 23 Mill Off Shape Circle Wizard Parameter Entry D2nc Circle wizard Mill Offset Cut a circle by entering the diameter Optionally enter and offset from 0 0 1 E Circle diameter fb f offset offset 2005 2010 D2nc Software 85 D2nc User Manual lt dia 1 gt lt x offset 0 gt lt y_offset 0 gt 2005 2010 D2nc Software Wizard Directory 4 24 Mill Off Shape HEX across flats D2nc HEX across flats Wizard Mill Offset Cut a Hexagon by entering the dimension across the flats Optionally enter a start angle H Distance across the flats 0 Start angle SS Sai lt acc flat 2 gt lt start ang 0 gt 86 an 2005 2010 D2nc Software 87 D2nc User Manual 4 25 Mill Off Shape HEX across points D2nc HEX across points Wizard Mill Offset Cut a Hexagon by entering the dimension across the ponts Diameter of the circle that the hex fits within Optionally enter a start angle H Distance across the points 0 Start angle au lt cir dia 2
43. e right Once all entries have been made click on the Add to Queue or Update Queue if in edit mode to add the shape to the Machine Queue 2 Offset compensation Strategy The offset compensation strategy is only available for the G41 G42 inside and outside offsetting operations and has the following three selectable options At Safe Z 2005 2010 D2nc Software 17 D2nc User Manual The compensation occurs at Safe Z height When the tool plunges into the material it is in an already compensated state Once the final pass has completed the tool retracts to Safe Z before cancelling offset compensation First Last pass The compensation moves occur on the first and last pass only and at the material level This should not be used where these is a possibility of the exit compensation move occurring at full depth into material That would include any inside offsets and outside where the contour was not on the edge of the material Every pass This is the default setting and although slower due to the repeated lift and plunge it should leave the cleanest finish O 2005 2010 D2nc Software The User Interface Overview 18 2 5 1 Contour Centerline Contour CenterLine Options Sequence shape 0 a Each seg to depth Flood All seq per step Diameter C Mist Description Full Depth Z aris Step Do Speed Sg Feed DEN Plunge DEN
44. ensions by entering the tool diameter step over percent and the overhang which is the distance the tool wll clear the stock before reversing direction Offsets in and may also be entered H Length of stock Ia anis a Width of stock Ir axis E Tool diameter El Step over percentage 25 Overhang or tool clerance distance in 0 o dis offset 0 Y Asis offset Cancel pa DE E lt stock x 4 gt lt stock_y 2 gt lt tool dia 5 gt lt stepover 50 gt 2005 2010 D2nc Software Wizard Directory 78 lt y Over 25 gt lt x offset 0 gt lt y of set 0 gt 4 19 Mill Multi Engine Beam Wizard Parameter Entry D2nc Beam Wizard Define the left and right side arm lengths and three radi The central radius and the radius of the left and right arm ends An second drill shape iz created for the three holes Center radius Left radius Right radius Left arm length Fight arm length Unequal arm lengths 2005 2010 D2nc Software 79 D2nc User Manual lt c rad 0 3 gt el rad 0 2 gt lt r rad 0 2 gt el len 1 25 gt lt r_len 1 75 gt Flange cutout lt c rad 1 gt el rad 0 2 gt lt r rad 0 2 gt el len 1 25 gt O 2005 2010 D2nc Software Wizard Directory 80 lt r len 1 25 gt 4 20 Mill Mu
45. et to zero and a center line contour path made h90 h90 d1 180 31 908 3 35 110 Wizard Directory The naming convention for the wizards are as follows Primary function Drill Drilling holes with a drill bit Mill Cutting using an end mill Contour type for mill 2005 2010 D2nc Software 51 D2nc User Manual CL Centerline contour generated Shape already compensated for tool diameter Off Offset contour generated Shape is actual part dimension and needs to be offset Multi Advanced wizard creating multiple shapes for the part being machined Name Name describing the wizards main function 4 1 Drill Bolt Circle Wizard Parameter Entry D2nc Bolt Cirle Wizard Drilling Specify the diameter of the bolt circle the number of holes in the circle and the start angle for the first hole Po Diameter of bolt circle fiz Number of holes in circle af Start angle in degrees 2005 2010 D2nc Software Wizard Directory 52 WEEK ee Sst LL Emp areas lt circle dia 2 gt lt nr holes 12 gt lt head 90 gt 4 2 Drill Hole Array D2nc Hole Array Wizard Drilling Drill an array of holes by entering initial offsets ines and Y the number of holes in and and the spacing between the holes ma and T 5 dis offset 1 Y Asis offset d number of holes across a number of holes wide 11 Spaci
46. eter Entry D2nc Bezel Engraving Wizard Engrave bezel measurement compass degrees and clock faces Enter the total number of ticks the number of major and minor ticks The minor tick count needs to include the major ticks count as each major tick includes a minor tick Also enter the lingth of each tick type and the inner circle diameter where all ticks align 100 Total number of ticks w Ke Z re us pr H TO d Anni H Ri l EA Number of Major ticks Number of Minor ticks 01 Tick length Major tick length A nn E V Ku E Ki re g Se prt Minor tick length Bezel inner circle diameter 100 Divisions 2005 2010 D2nc Software Wizard Directory 60 NS MM A x 3 Z Ki OUR oc E gt a 5 E E we ve E e da fy Yt ry lt ticks 100 gt lt majt 10 gt lt mint 20 gt lt tlen 0 1 gt lt majtlen 0 3 gt lt mintlen 0 2 gt lt dia 2 gt Compass Rose lt ticks 360 gt 2005 2010 D2nc Software 61 D2nc User Manual lt majt 36 gt lt mint 2 gt lt tlen 0 1 gt lt majtlen 0 3 gt lt mintlen 0 2 gt lt dia 2 gt Clock Face lt ticks 60 gt lt majt 12 gt lt mint 0 gt lt tlen 0 gt lt majtlen 1 gt lt mintlen 0 gt lt dia 2 gt
47. f the linear move controlled by a negative or positive of set Positive of set away from arc cl 5 Example ConCave is the same as ConVex except is used for going in the reverse direction See example from ConVex 117 O 2005 2010 D2nc Software Shape Description Language 120 5 18 amp Close Definition amp amp Close command Usage Draw to close will close the currently open shape with a Draw 97 move to the start of the first segment of the current shape If no shape is currently open it will draw back to itself effectively creating a point The heading oe remains unchanged by the amp command Example 31 45 d1 2 135 d1 2 31 45 d1 2 135 d1 2 2005 2010 D2nc Software 121 D2nc User Manual 5 19 Reflect Definition Yo Reflect command Usage Reflect will close the currently open shape with a reflection of the shape across and imaginary axis from the current point to the first point in the current contiguous line The imaginary axis will be shown as a construction line in the shape display area Useful for describing any symmetrical irregular shape Example a 90 5 d1 90 d1 90 a90 5 d1 5 2005 2010 D2nc Software Shape Description Language a 90 5 d1 90 d1 90 a90 5 d1 5 122 2005 2010 D2nc Software
48. flange requiring three operations One drill the four corner holes Two cut the center hole offset to the inside and three cut out the part from the stock by offsetting to the outside The three operations we ve now determined will require importing the DXF three times and each time extracting different elements into a new shape To create our first shape to drill the four corner holes change the filter to Circles as Points and click the Next button In D2nc only points can be used for defining a drilling operation The five circles in the DXF file have been converted to poinis and imported The poinis are indicated by the white dots in the display area and the read dashed lines the tool movement All other elements in the DXF file have been ignored We have a point in the center of the shape originating from the large center circle It too was converted to a point but as we don t want to drill there we need to remove it Place the mouse pointer over the white dot and click to select it Once selected it will turn red NOTE some older graphic card that do not support OpenGL V2 will not be able to click select chains and elements with the mouse An alternate method is to use the left and right arrow keys to cycle through chains or elements depend on the selected option One one chain or element can be selected at a time Use the DEL key to remove the selected item 2005 2010 D2nc Software 39 D2nc User Manual
49. g represented in the shape until referenced by a repeat R command The Block wo command along with its occurs option is used to enclose a series of commands and have those commands used in the shape Repeating a Block or Procedure 105 is the function of the Repeat 106 command The following are all equivalent b1 d1 90 n1 d1 90 agi EC Zeil 9041 b1 d1 90 0 ri r d1 90 In the last example above the repeat uses the inline block specification The difference to using a numbered block vs an inline block is that the numbered block can be repeated later in the same shape definition with a reference to it by the Repeat command 2005 2010 D2nc Software Shape Description Language 104 The block number is referenced by the Repeat 108 command to repeat the commands enclosed by the The Repeat 108 may optionally specify a number of occurrences the commands are to be repeated Repeat block one four times would be written r1 4 Example Defining a few shape elements in blocks and then repeating the blocks in an inline block of the repeat command can be quite useful The blocks are referenceable anywhere in the code and is how the long arm of the cross is made E b1 d 5 a 90 1 d 5 b2 a90 1 d 3 a90 1 3 al e el Shape produced by block 1 O 2005 2010 D2nc Software 105 D2nc User Manual 5 10 Shape produced by block 2 N Procedure Definition N
50. garithm Returns the integer portion of x Int returns the first negative integer less than or equal to number For example Int converts 7 4 to 8 Returns the natural logarithm of a number The natural logarithm is the logarithm to the base e The constant e is approximately 2 718282 Returns the logarithm of a number x in the base y Also see LN The logarithm in base y for any number x is calculated by dividing the natural logarithm of x by the natural logarithm of y as follows Log x LN x LN y Converts x from radians to degrees To convert radians to degrees the radians are multiply by 180 pi secant SEC x 1 COS x Returns an integer indicating the sign of x If x is greater that zero SGN returns 1 If x is equal to zero SGN returns 0 If x is less that zero SGN returns 1 Returns the sine of an angle x The angle must be expressed in radians The Sin function takes an angle and returns the ratio of two sides of a right triangle The ratio is the length of the side opposite the angle divided by the length of the hypotenuse The result lies in the range 1 to 1 Returns the square root of a number The value of x must be greater than or equal to zero Returns a Double specifying the tangent of an angle The angle must be expressed in radians Tan takes an angle and returns the ratio of two sides of a right triangle The ratio is 95 D2nc User Manual 5 3 Conditional test Definition c
51. her For readability and problem solving its recommended to enter one command per line The control f key sequence will reformat the area placing one command per line Full Caret Line Each keystroke is evaluated and the resulting shape is displayed By default the full shape is processed By selecting Caret the shape is displayed only up to the current cursor position The Line option will display the shape up to the end of the current cursor line These two options are a great way to debug your shape description if its not producing the shape you think it should Auto Manual In auto mode the shape is redrawn after each keystroke In manual mode the shape is redrawn only when the Draw button is pressed Draw When in manual mode the Draw button processes the full shape description Format The format button restructures the SDL input to one command per line Panel Selector button Shape Detail Shape Help The selector button cycles through the following panels Shape Help A quick reference to the complete Shape Description Language For more detailed help on any one command click on that command 2005 2010 D2nc Software The User Interface Overview 12 More Shape Help H heading D distance heading J distance heading A degrees radius heading VY degrees radius heading B block nrpcommands Joccur M bock nrpcammands Joccur R Block nt commande Joccur T radive
52. in the shape display area 9 The heading is changed by this H command or it can also be changed by the optional heading qualifier to the Draw 97 Jump 97 Arc 100 Warp tot Convex 117 and Concave 118 commands The heading has a optional absolute qualifier which is invoked by setting the heading with the equal 2005 2010 D2nc Software Shape Description Language 96 sign It is recommended that you avoid using an absolute setting for the heading as it breaks the relative nature of the language and causes problems with rotating shapes with a warp Having said that it does provide function for some difficult shapes and has been made available for those instances The absolute setting must be followed by a heading of O to lt 360 degrees and is not available as a qualifyer on those commands that support the heading qualifyer We take the following program and step through it h45 Set heading 45 degrees clockwise from the initial 90 setting sas Draw line 5 long then set heading 45 degrees clockwise d 5 125 Draw line 5 long then set heading 125 degrees counter clockwise d 5 Draw line 5 long H 180 Set the heading to an absolute heading of 180 degrees Disregard current heading da Draw a line 2 long amp Close the shape leaving the heading unchanged O 2005 2010 D2nc Software 97 D2nc User Manual 5 5 D Draw Definition 5 6 D distancel heading D
53. iption Metric Shape o o y O inz Tinch square False d1 90 d OU dl OU border Border frame False Inlidla90 1 n h90a 1 80 549090 1 n rlrarre PO oOo E WW Add Ed Delete Insert Block into Insert Code into Close Edt JL tee inset Blog nto rene Des O 2005 2010 D2nc Software 27 D2nc User Manual Shape Library Add Shape Library Edit mea O 2005 2010 D2nc Software The User Interface Overview 2 7 3 Tool Table am Tool Table Toor Description Diameter Metice Kli Roughing End Min D Fass ID nend D Fake a d 0375 Fake 5 End M ram a True Ip End MA rm E Tue Add Edit Delete 28 2005 2010 D2nc Software 29 D2nc User Manual Tool Table Add Tool Nr Do _ Metric ss Diameter Cut Length Type Teeth E Endmill Ball Erdmil Ov bit Min cut per tooth pn onos Max cut per tooth pn Plunge Material Has O Carbide Coating Un Coated Coated Tool Table Edit Tool Nr _ Metric Description 1 4 inch end Diameter Cut Length Type O Dil Erdmil Ball Endmil Oy bit Teeth Min cut per tooth pn ongs Max cut per tooth Plunge Material Coating Gei Un Coated O Coated 2005 2010 D2nc Software The User Interface Overview 30 2 7 4 Settings Settings Units C Metric Inch
54. le DU reset scale 1 1 G20 inch mode MOS stop spindle MOB TO tool change MOS 57500 spindle on GOO 2 5 GOO 0 ri GOO a 0000 4 1250 GOO 1000 GOT 1000 F10 G02 3 1250 7 0000 1 0000 J 0000 F5 GOT a ZS 7 0000 GOS a 0000 7 2750 1 0000 J 0000 GOT 0000 r 4250 G02 a 4250 7 0000 1 0000 J 0000 GOT 4 5750 7 0000 GOS a 0000 7 5750 10000 J 0000 GOT 0000 7250 GO 7250 7 0000 1 0000 J 0000 GOT 3750 7 0000 This button generates g code for each entry checked in the machine queue and displays it in the g code window From here you can make adjustments to editable g code and then copy it to the windows clipboard or save it to a new file This button will not work if a license is not installed or the trial period is over 2 1 Menu This is the full menu structure in D2nc Click on the links below to learn about those features where available File New Open Save Save As Export DXF Exit Tools SDL Wizards 2 O 2005 2010 D2nc Software 23 D2nc User Manual Shape Library 2 Tool Table 2 Material Settings Option Settings License 7 Help Contents Tutorial D2nc Website About 2 7 1 SDL Wizards The SDL Wizards in D2nc take advantage of D2nc version 2 s SDL extensions of variables and functions 2005 2010 D2nc Software The User Interface Overview 24 Wizard Selection Select one of the available wizards
55. lt value if D2nc is in metric mode lt SDL gt lt shape gt The lt SDL gt section contains lt shape gt parameter which contains the static part of the SDL program The SDL program must be placed within the XML lt CDATA and gt so that it is not interpreted as XML code lt xml version 1 0 encoding I SO 8859 1 gt lt wizard gt lt title gt My Polygon Wizard lt title gt lt desc gt Enter the length of a side and the number of sides to generate an equilateral polygon lt desc gt lt graphic gt polygon jpg lt graphic gt lt parameters gt lt param gt lt prompt gt Enter the length of a side lt prompt gt lt variable gt len lt variable gt lt value gt 1 lt value gt lt mvalue gt 25 lt mvalue gt lt param gt lt param gt lt prompt gt Enter the number of sides lt prompt gt lt variable gt side lt variable gt lt value gt 4 lt value gt lt mvalue gt 4 lt mvalue gt lt param gt lt parameters gt lt SDL gt lt shape gt lt I CDATAI r d len 360 side side IG lt shape gt lt SDL gt lt wizard gt 3 Test your new wizard Load D2nc and click on the wizard icon You will find your newly created wizard shown in the list of available wizards O 2005 2010 D2nc Software D2nc User Manual Click on the My polygon wizard button to show the Wizard Parameter Entry screen Wizard Parameter Entry My Polygon Wizard Enter the length
56. lti Engine Conrod Wizard Parameter Entry D2nc Conrod Wizard Mill Offset Create a conrod profile shape from the entered five dimensions An second drill shape is created for the holes at each end F Small end arm width Big end arm width Small end diameter Big end diameter Distance between centers O 2005 2010 D2nc Software 81 D2nc User Manual lt S arm 4 gt lt b arm 55 gt lt S dia 55 gt lt b dia 8 gt lt dbc 2 8 gt 2005 2010 D2nc Software Wizard Directory 82 4 21 Mill Off D Hole D2nc D hole Wizard Mill Offset This wizard was inspired by Mars Make a cutout of a circle with a flat on one side Intended for a panel connector cutout hole but has several other uses Input the two dimensions any offset in and Y required and a start angle 1 Diameter 295 Width i amp anis offset O Y axis ofset 0 Start angle Cancel UK lt dia 1 gt lt acc 895 gt lt x offset 0 gt lt Y offset 0 gt O 2005 2010 D2nc Software 83 D2nc User Manual lt start_ang 0 gt 4 22 Mill Off Radial Slot D2nc Radial Slot Wizard Mill Offset Cut a radial slot of the radius and degrees entered using G41 G42 offsetting 75 Start Angle BO Arc degrees Ci or CC E Ar
57. n the desktop and a program group created D2nc will be installed into the directory C D2nc Mach3 Integration Two modified mill screen sets 1024d2nc_200 set and 1024d2nc_300 set are placed in the C Mach3 directory These are the standard 1024 set screen sets which have been modified by adding a single button to the Program Run screen The button is labeled D2nc To add the button to Mach3 you need to change the standard screen set to the modified one 2005 2010 D2nc Software Introducing D2nc 6 From the Mach3 menu select View gt Load Screens e Mach3 CNC Controller File Config Function Cfas MIS Wizards Operator Help Program Run Alt emm save Current Layouw Regen ToolPath Video Window If you re running Mach3 v2 x select the 1024d2nc 200 set file so its name appears in the File name box If you re running Mach3 v3 x select the 1024d2nc 300 set file as this uses the built in sleep call Click the Open button 1024 set 1024d2nc_184 set 1024d2nc_200 set Plasma set SETUP Subroutines 3 E E TurnAddons PE Wav My Computer My Documents File name My Network Files of type Mill Files set Places Open as read only Mach3 will now have the D2nc program button ready for use Additionally you should check the following settings in Machs These are found on the Mach3 menu Config gt General Config O 2005 2010 D2nc Software D2nc Use
58. name mathfunction gt lt varname varname operator value varname mathfunction gt Varname Variable name may be any alphanumeric name starting with the letter A thru Z but must not be RO thru R9 which are reserved as a form of the repeat command and must not be any of the math function names Operators Used to sum two numbers Used to find the difference between two numbers H Used to divide two numbers Used to multiply two numbers di Used to raise a number to the power of an exponent KC Used to divide two numbers and return only the remainder Math functions O 2005 2010 D2nc Software Shape Description Language 92 ABS x ACOS x ASIN x ATAN x COS x COT x CSC x DTR x EXP x INT x LN x LOG x y RTD x SEC x SGN x SIN x SQR x TAN x Returns the absolute value of a number The absolute value of a number is its unsigned magnitude For example ABS 1 and ABS 1 both return 1 Inverse Cosine ACOS x ATAN x SQR x x 1 2 ATAN 1 Inverse Sine ASIN x ATAN x SQR x x 1 Returns the arctangent of a number The Atan function takes the ratio of two sides of a right triangle number and returns the corresponding angle in radians The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle The range of the result is pi 2 to pi 2 radians Returns the cosine of an
59. ng of holes ma across 9 Spacing of holes mr wide Cancel DE O 2005 2010 D2nc Software 53 D2nc User Manual lt X_offset 0 gt lt y_offset 0 gt lt x number 8 gt lt y number 3 gt lt x spacing 9 gt lt y_spacing gt 2005 2010 D2nc Software Wizard Directory 54 4 3 Drill Linear Hole Pattern D2nc Linear Hole Pattern Wizard Drill Drill a row of holes by specitying the number of holes and the spacing between them The row of holes may be offset from the origin Ih A opd and may be rotated about the first hole by the degrees entered E Humber of holes 1 Hole spacing i amp Ans offset O Y Asis offset 0 Rotation angle Cancel UK lt nr holes 3 gt lt hole spacing 1 gt lt x offset 0 gt lt y of set 0 gt O 2005 2010 D2nc Software 55 D2nc User Manual lt angle 0 gt 4 4 Drill Rectangular Hole Pattern D2nc Rectangular Hole Pattern Wizard Drill Drill a rectangle of holes with the number of holes and length of each asis independent of the other The rectangle may be offset from the origin Ip A and and may be rotated about the bottom left hole by the degrees entered number of holes across Y number of holes wide Length of A axis Length of axis es Sas offset Y Axis offset Qro catia Rotation angle Cancel UK mmm ml mm dos lt x nr holes 6 gt O 2005 2010
60. nn Lua Goi cio a ee ane eee Sn ee aS Se ene 82 22 Mill Off RS asa do Nn rer nn oer nS ere ese 83 23 Mill Off Shape TE 84 24 Mill Off Shape HEX across flats ccceceeesseeeeeeeenseeeseeeenseeeeeoesseeeeseeeseeeseoeesseesseoeesseessees 86 25 Mill Off Shape HEX across points eee ceeeeeeeeceneerereeconaseeerecenaanennaoo 87 26 Mill Off Shape Rectangle Centered Radius nesse sssssieeeeeeeassssenerenemeoonaaaas 88 21 NII OIF ShAape e Tute LE 90 Part V Shape Description Language 91 T ASSINE ne seance E owes Sete eet nie esse es ai 91 2 All Le 1 CN 93 3 COMIC a lesi aar a an den tac ss nets 95 E AA TIC AGUNG RP eee ee ee ER 95 o erte 97 SEE Tue EE 97 L We H SE 100 o VOID NEE 101 RO eee ee ener ee ee eee 103 TO N PrOCOdUIO EN 105 NW MEDO RER een renda sda ne eee ee eee 106 2005 2010 D2nc Software D2nc User Manual 12 13 14 15 16 17 18 19 ME AOU LR AO MD E ROSA OE 107 OR de EE 115 GC e n 116 Fe LIDERADO E 116 UR CORNE a a da ai 117 C ee le 118 E e E E 120 Ax RO OO EE DE EE EEA AEA Ri 121 Index 0 2005 2010 D2nc Software Introducing D2nc 4 Introducing D2nc D2nc is used to describe shapes with a Shape Description Language or extract them from DXF files Shapes represent the tool path a tool must follow to produce a part The shapes are converted to g code by setting machine materi
61. o it as shape extraction where a shape is extracted from the DXF file Once you have extracted a shape the steps required to generate g code that is the setting of constraints and defining tool paths are the same as if the shape had been described with SDL o SOL DF GUST To import a DXF file first select the DXF shape source and then click the Import button In the open file dialog browse to the directory containing your DXF file select the file you wish to import and then click the Open button You will find a sample DXF file in CAD2nc directory with the name D2ncsample dxf which will use in this tutorial O 2005 2010 D2nc Software Using D2nc Basic Concepts 38 Path Lines o SOL OF 1 Filter 2 Elements Layers 5 All e T d J e p Lines and Arcs E Circles as Points Circles i Paints D Ponte Circles as Prit Next EE shape The filter panel is the first of two panels used during shape extraction The Elements defaulted to Lines and Arcs control which elements in the DXF are extracted into the shape The Layers determine from which layer those elements are extracted The choices are either the default All layers or any other named layer in the DXF file Note The idea is to import just the elements needed for one machining operation into one shape Change the filter to All elemenis and All Layers to reveal the full contenis of the sample DXF file This file contains a
62. of 360 degrees has the same radius as the jump which puts the start position a default of x y coordinate of 0 0 at the center of the circle 2005 2010 D2nc Software 101 D2nc User Manual 5 8 W Warp Definition W angle radius heading W Warp command angle Range 360 to 360 Angle of the warp ve moves in a CCW direction and ve in a CW direction radius Radius of the warp in working units heading Range 360 to 360 sets the heading relative to the current heading option 1 optional line converter Cause a line to be drawn to this point Any sequence of jumps and warps will be converted into a cutting line from the last cut or anchor point option 2 optional anchor this point Excludes this warp and any jumps or warps before it from being converted to a line on a subsequent jump or warp option 1 Usage Warp is used for making arc type movements above the cutting plane and translate to GOO moves ina straight line The blue line in the graphic below is the arc created by the warp and the red line is the path the tool would take in positioning to the end of the warp move 2005 2010 D2nc Software Shape Description Language 102 w90 1 Example Warp is most useful for rotating a shape about a point Creating bolt circle uses warp in the following way 1 A Jump 97 for the distance of the radius from the center
63. of a side and the number of sides to generate an equilateral polygon 5 Enter the length of a side E Enter the number of sides Change the length to 0 5 and the number of sides to 6 and then click the OK button rr len 5 gt lt side 6 rid len 560 side H sidel FFF In the shape description area you will see the generated SDL In the shape display area the resultant shape Congratulations on creating your first SDL Wizard O 2005 2010 D2nc Software Using D2nc Basic Concepts 50 3 5 Rotary using X or Y D2nc only generates g code for 2 1 2d While there is no ability to generate g code for a 4th axis anda rotary table some rotary operations can be done by using the rotary table connected to either the X or Y motor controller To do this you need to calculate what linear move on the X or Y axis produces one rotation of the rotary table Once you calculate this distance 3 5 inches in the examples below you divide it by the number of holes or teeth you need to drill or cut and use that as the jump step over as per the examples Radial Drilling or Spoking Use to drill a series of holes or with a position pause operation to position for manual drilling or boring h90 r d03 35 10 Gear Cutting For gear cutting in this example the rotary is in the X axis drive and Y is driven to cut the teeth The SafeZ Depth and Step all need to be s
64. of the circle to the circumference and setting the heading in the direction of rotation 2 A Warp 101 along the circumference by the number of degrees equal to 360 number of holes or in this example 60 with a radius the same as the initial jump from the center 3 Draw 97 line of zero length which makes a point When defining a path even for drilling operations material removal is only possible for segments of a shape created with the Draw 97 Arc 100 and the ConVex 117 ConCave 118 command s 4 Repeat steps 2 amp 3 a total of the number of holes 41 90 w60 1d0 w60 1d0 w60 1d0 w60 1d0 w60 1d0 w60 1d0 or 41 90 2005 2010 D2nc Software 103 D2nc User Manual 5 9 B Block Definition B block number commands Joccurs B Block command block number A number ranging from 0 to 9 The block number must be unique between both N and B type blocks and can only be used once across all shapes in a program commands Any commands in combination occurs Default 1 The number of times the block of commands enclosed in braces will be repeated The occurs is ignored when the block number is referenced by the repeat command Usage The block and procedure are identical with one minor difference The block B has a default occurrence of 1 while the procedure N has a default occurrence of 0 This allows the procedure to define a shape without that shape bein
65. on the Path 15 tab to show the path panel In the Select operation panel you should see the three buttons Centerline Outside and Inside enabled 2005 2010 D2nc Software 41 D2nc User Manual and the remaining buttons greyed out Only the operations for which there are eligible shapes are enabled If this is not the case go back to the Describe a Shape step and check your shape definition Select Operation Contour 41 42 Offset Drill Misc Select the Offset Outside button The shape to use for this contour will be preselected to Shape O as this is the only shape available e The Conv or Climb option sets the direction the tool will move around the shape A climbing cut outside would be in a clockwise direction Full Depth enter 1 to cut the shape to a depth of 1 inch e Z Axis Step enter 1 for each pass to cut a maximum of 1 10 of an inch on each pass Tool enter a diameter of 25 for a 1 4 inch end mill As soon as you enter the tool diameter the lead in out moves are calculated and shown in the display area as well as the speed feed and plunge Enter 1 4 end mill as a description This description will be included in the generated g code as a reminder for what tool the code was generated For off set compensation select the second segment by clicking the plus to increase the segment number which contains the compensation moves You will see the compensation move relocate to the second segment The
66. onditional test lt gt true commands false commands Usage The conditional test works like the IIF function from visual basic A good reference on the use of IIF can be found in the wikipedia IIF The colon indicates the start of the conditional test The first semi colon is the start of the true SDL The second semi colon is the start of the false SDL The third semi colon ends the false code and is the end of the conditional statement All four the colon and three semi colons must be present to form a valid conditional statement Example To toggle a heading between 90 and 90 degrees based on its current setting a 90 lt a 90 gt lt a 90 gt Test Is a 90 If true set a 90 If false set a 90 5 4 H Heading Definition H heading H Heading command optional modifier to set an absolute heading with zero being a positive direction on the x axis heading Range 360 to 360 sets the heading relative to the current heading Usage Use to change the current heading Any subsequent command starts on the new current heading Example Any change in heading is relative to the current heading A positive change is clockwise and a negative counter clockwise Every shape 115 has its own heading Every shape starts with a heading straight up or north or in absolute terms a heading of 90 degrees When the D2nc starts shape 0 is active by default and the heading indicator is active
67. oom in or down to zoom out This can also be done by clicking on the display area and rolling the mouse scroll wheel Stage Selector There are three program stages which need to be followed to generate g code The stages are Describe Shapes 11 Set Constraints 14 Define Paths 15 Stage Panel Activities for the current stage are carried out in this area See Stage Selector above for descriptions of the stages 2005 2010 D2nc Software 11 D2nc User Manual 2 1 Shape SDL MS sn o rs Sars Feed ki H heading Ful D distance heading J distance heading Line A degrees radius heading ore WV degrees radius heading Auto block nricommande zU Joccur Man M block nricommande Joccur R Block nr commands Joccur T radiu 1 radive2 heading distancel Constraint HEEL Shape UK enter a command Shape Selector You can describe multiple shapes up to 10 are supported using the shape selector Each shape described is separate from any other The selector is in two parts Active and Visible Only one shape can be active at a time but any number can be visible The visibility selector can be in three states green visible blue hidden red hidden with parsing errors Shape Description Area The shape description area is where you enter commands from the Shape Description Language to describe a shape No formatting is required and all commands can run toget
68. ower Scotty D2nc has grown into a fairly complex program which rely on in my own shop D2nc creates shapes from a language I ve named Shape Description Language SDL SDL can be quite simple to use for creating basic shapes The addition of variables and math functions to SDL in version 2 of D2nc has greatly enhanced its ability A wizard interface allows for the rapid creation of g code for some of the more common operations For complex shapes the option exists to import a DXF file and extract a shape from that D2nc will not suit everybody nothing ever can There is a built in 15 day trial key to allow you test its Suitability for the way you work D2nc Designed and written by Graham Hollis Enjoy Installation The installation process of D2nc consists of running an installation program and following the on screen prompts The first time you install D2nc you should reboot your system For install patches or upgrade releases it should not be necessary to reboot unless otherwise instructed D2nc is a stand alone program which can be run from a D2nc icon placed on the desktop or launched using a button within Mach3 One of the options presented during the install is installing the D2nc Mach3 screen sets Selecting this option will install screen sets into the Mach directory to allow D2nc to be launched from within Mach Launch the install program and follow the installation program prompts A D2nc program icon will be placed o
69. qual to zero SGN returns 0 If x is less that zero SGN returns 1 Returns the sine of an angle x The angle must be expressed in radians The Sin function takes an angle and returns the ratio of two sides of a right triangle The ratio is the length of the side opposite the angle divided by the length of the hypotenuse The result lies in the range 1 to 1 Returns the square root of a number The value of x must be greater than or equal to zero Returns a Double specifying the tangent of an angle The angle must be expressed in radians Tan takes an angle and returns the ratio of two sides of a right triangle The ratio is 93 D2nc User Manual 5 2 Functions Definition varname varname operator value varname mathfunction varname varname operator value varname mathfunction Varname Variable name may be any alphanumeric name starting with the letter A thru Z but must not be RO thru R9 which are reserved as a form of the repeat command and must not be any of the math function names Operators Used to sum two numbers Used to find the difference between two numbers Used to divide two numbers Used to multiply two numbers Used to raise a number to the power of an exponent Used to divide two numbers and return only the remainder Math functions 2005 2010 D2nc Software Shape Description Language 94 ABS x ACOS x ASIN x ATAN x COS x
70. r Manual 1 3 Je Mach CNC Controller File Regi Function Cfg s Pr Select Native Units Ports and Pins Motor Tuning General Config System Hotkeys Homing Limits ToolPath Slave Axis Backlash Fixtures ToolTable Config Plugins View Check your Mach3 IJ Mode setting LU Mode f Absolute e Inc D2nc needs to be set the same way Mach3 is set Both programs default to incremental In D2nc the setting is on the Options gt Settings 30 menu If you plan on using D2nc s position pause mode which allows for using the quill for drilling and tapping on mill drills then you must check Stop on M1 Command HOT Control i Stop on Mi Command To make Mach3 stop and wait when a tool number changes set the Stop spindle Wait for Cycle Start Tool Change setting Tool Change f Ignore Tool Change e Stop Spindle Wat for Cycle Start AutoT ool Changer How to buy D2nc D2nc has a built in 15 day trial key that activates when the program is first used The trial period should allow sufficient time to determine if the program is useful to you If the trial expires and you feel you need extra time to evaluate it contact support d2nc com and request a trial key extension These will be provided on a case by case basis When the trial period expires you may still use the program to define shapes but the Show G Code and Generate G Code to File buttons will cease to work 2005 20
71. renced by the Repeat 108 command to repeat the commands enclosed by the The Repeat 108 may optionally specify a number of occurrences the commands are to be repeated Repeat block one four times would be written r1 4 5 11 R Repeat Definition R block number commands Hl Joccurs R Repeat command block number A number ranging from 0 to 9 The block number must be defined in the code with either a N or B type blocks specification Mutually exclusive with inline block of commands commands Any commands in combination Mutually exclusive with blackener occurs Default 1 The number of times the referenced block number or the commands enclosed in braces will be repeated Usage The block and procedure are identical with one minor difference The block B has a default occurrence of 1 while the procedure N has a default occurrence of 0 This allows the procedure to define a shape without that shape being represented in the shape until referenced by a repeat R command The Block 103 command along with its occurs option is used to enclose a series of commands and have those commands used in the shape Repeating a Block or Procedure 105 is the function of the Repeat 106 command The following are all equivalent b1 d1 90 n1 d1 90 Ech ECK E SOUL b1 d1 90 0 ri 2005 2010 D2nc Software In the last example above the repeat uses the inline block specification
72. ro Any cutting moves at feed rate will be with Z less than zero Rapid moves will occur with Z greater than zero at the safe Z height Material There is list of pre defined materials each of which have a predefined surface feet or meters per minute as a cutting speed It is also possible to select the Custom Material Setting and enter your own surface speed for the material you are cutting The surface speed is used to calculate the speed and feed in the g code during the next step Tooling D2nc supports a tool table 28 to build a library of tools Tools added into the tool table can be selected during the next step when defining paths Various aspects of the tool described in the tool table are used to calculate the speed and feed and what type of operation the tool is suitable for While defining tools is optional it is recommended for the following reasons 1 If there is no tool defined in the table you are asked to enter a tool diameter which is assigned to the default tool 0 If you define several machine operations and each operation uses a different diameter the g code will have the same tool 0 for each operation making tool changes a problem 2005 2010 D2nc Software 15 D2nc User Manual 2 4 2 Tool O uses a generic set of parameters and may not produce the optimal speed and feed Rapid feed transition is the height during a move downwards at which a Z axis will change from the rapid rate to
73. taris you are presented with a clear black Shape Display Area and empty Shape Description Area below The first task in D2nc is to describe a shape using Shape Description Language o This is accomplished by entering commands into the Shape Description Area These commands are interpreted and the resulting shape is displayed in the Shape Display Area D2nc supports multiple shape sources Currently there are two shape sources SDL and DXF Think of a shape source as a provider of geometry to D2nc s CAM engine Once you have sourced a shape steps 2 and 3 setting constraints and defining a tool path are the same Source so me As a to this tutorial for SDL shape entry you can follow the tutorial Importing a shape from DXF a We begin this first shape by introducing two commands They are Draw e and Heading 1 With these two commands we will describe the profile of a one inch or millimeter cube depending on your native units The native units are displayed top right above the shape display area Inch All the following examples are sized appropriate for inches If you re using metric you can switch to inch 30 for this tutorial or substitute a d25 wherever there is a d1 used below Enter the following into the Shape Description Area 11 to H KO k OO ki O O DO 0 0 0 0 0 0 LO which will produce the following display in the Shape Display Area a Let s examine what happened here The first
74. the plunge rate that is defined in the path definition If progressive transition is checked the transition height will move down by the step size on each subsequent pass Path Select Operation Machine Queue Contour G41 42 Offset Dud E E T E Le Generate Soh bode podera Eile On the left side of the panel you will see buttons for each possible ane which can be used to define a path On the right side of the panel is the Machine Queue 20 You will see some are greyed out and some are selectable Those for which there is no shape described that would allow their use are greyed out The rules for greyed out buttons are as follows e The center contour can be used for all shapes that have any number of open and closed entities in them e The G41 G42 offset can only be used on shapes comprised of a single closed chain with no points When defining a shape the status must be C 1 O 0 P 0 to use offsetting e The drill group of buttons can only be used on shapes which have no linear movement A drill shapes consists of a series of jumps and or warps with dO draw point cutting strokes Operations Contour Operations Centerline 13 Centerline has the center of the tool follow the shape outline The diameter of the tool used must be taken into account when defining the shape 4th Axis 18 Wrap either the X or Y axis of a shape SDL or DXF sourced around the A axis with optional scaling and aspect ratio adjustment
75. tion Cancel DE lt length 3 gt lt width 2 gt lt of set x 1 gt lt of set y 1 gt O 2005 2010 D2nc Software 71 D2nc User Manual lt tool dia 25 gt lt step pct 50 gt lt ang 0 gt 4 14 Mill CL Shape Circle Wizard Parameter Entry D2nc Circle wizard Mill Offset Cut a circle by entering the diameter Optionally enter and offset from 0 0 1 Circle diameter ze Tool or endrall diameter side v Select tool side for offset fr offset a offset 1 inch circle compensated inside for a 1 4 in tool 2005 2010 D2nc Software Wizard Directory lt dia 1 gt lt tool dia 25 gt lt side 2 gt lt x offset 1 gt lt y_offset 1 gt 72 2005 2010 D2nc Software 73 D2nc User Manual 4 15 Mill CL Slotted Timing Disk D2nc Timing Disc Wizard Mill Cut a number of slots in a circular arrangement Enter the length of the slots and length of an index slot hr Base diameter of timing disc 2A Slot length E Index sloth length 24 Number of slots Cancel OK 10 degree divisions in a circle for engravina lt base dia 1 5 gt lt slot_len 25 gt lt idx_len 25 gt 2005 2010 D2nc Software Wizard Directory 74 lt nr slots 36 gt 4 16 Mill
76. tle gt and lt desc gt This text is shown at the top of the wizard parameter entry screen as a way to explain how the wizard works lt graphic gt The name of a jpg file used to illustrate the wizard If no name is entered or the name entered is not found a default no image found will be displayed The image can be created with any screen capture and paint application that saves jpg files The image will scale to fit in the graphic window but the actual size is 340x340 pixels It is always better to create graphics exactly this size as scaling causes loss of quality lt parameters gt lt param gt lt param gt lt param gt lt param gt lt parameters gt This lt param gt section contains the four fields lt prompt gt lt variable gt lt value gt and lt mvalue gt The lt param gt section can be repeated up to a maximum of 12 times within the lt parameters gt section lt prompt gt Text describing the input parameter lt variable gt The name of the variable used in the static part of the SDL program Note A variable named tool_dia has special meaning when used in a wizard The value entered for tool dia is passed as a hint to the centerline tool path definition and pre fills the tool O dia with this 2005 2010 D2nc Software Using D2nc Basic Concepts 48 value lt value gt and lt mvalue gt The default value entered in the parameter entry screen The lt mvalue gt is the defau
77. to 360 sets the heading relative to the current heading Usage Convex allows a linear move with an arc connecting the start and end points The offset can be either side of the linear move controlled by a negative or positive offset Positive offset away from arc E e Negative offset towards arc O 2005 2010 D2nc Software Shape Description Language vl 5 Example This con rod outline is an example of using the convex shape For the outline of the con rod enter the following in an empty shape h90 Tey 90 peep J00 12 90 Te ER v 6 5 180 Ds yo 12 90 Vador To define points to drill the centers select a different shape and enter d0 90 2 8 do 5 17 C ConCave Definition C distance offseil heading 118 O 2005 2010 D2nc Software 119 D2nc User Manual C conCave command distance Distance in working units to move in the current heading direction to set the end point of the concave arc offset Chord perpendicular to and at the mid point of the distance set in the first parameter Endpoint of the cord is the center of the arc A positive offset sets the chord away from the arc and negative towards the arc heading Range 360 to 360 sets the heading relative to the current heading Usage Concave allows a linear move with an arc connecting the start and end points The offset can be either side o
78. ueue button Click the Generate G code to File button Look at the Mach3 display and you will see the number of passes have been reduced from 10 to 5 2005 2010 D2nc Software Using D2nc Basic Concepts 44 3 2 What s a Shape A shape is defined using the Shape Description Language Up to 10 shapes can be defined in the same program numbered from 0 to 9 The shape selector buttons select the active shape or the shape you currently working with The small shape display buttons alongside the selector enable you to show or hide that particular shape Define Shape 0 r d1 90 4 j 2 90j 2 90 r j 6 90 4 Click on the Shape O display button to toggle the display of shape O on so that it is displayed along with the active Shape 1 O 2005 2010 D2nc Software 45 D2nc User Manual 3 3 2 905 2 90 r 6 90 4 Later on during path definition 40 each of the operations for example contouring or drilling are performed on an entire shape definition In this example Shape O could be left contoured while Shape 1 could be peck drilled Simple Shape This quick one line shape may help you grasp Shape Description Language ALA Oy RECKEN ALAS dlag p O1 O1 O1 O1 or r dla90 5 4 r repeat open inline block 2005 2010 D2nc Software Using D2nc Basic Concepts 46 d1 dr
79. ve Usage The E etch command is coordinate based Using this command can reduce the flexibility of SDL as the shape cannot be rotated This could limit its use in repeated blocks and procedures Etch is from the current position to the X and Y location specified in the etch Example Move to a start coordinate 1 1 and etch a 1 inch square HECK 2 el 2 e2 2 e2 L ell 5 15 1I Library Definition libraryitem scale Library command letter i libraryitem Name of a shape contained in the Shape Library scale A scaling factor to reduce or increase the shape by A factor less than 1 will reduce the size and larger than 1 will increase the size The default value is 1 if left unspecified Usage Used to insert predefined shapes contained in the shape library 28 into a shape Example 2005 2010 D2nc Software 117 D2nc User Manual Insert library shape oct after a positioning warp move WR NN eee w90 1 90 1 A oct A 5 16 V ConVex Definition V distance offset heading V conVex command distance Distance in working units to move in the current heading direction to set the end point of the convex arc offset Chord perpendicular to and at the mid point of the distance set in the first parameter Endpoint of the cord is the center of the arc A positive offset sets the chord away from the arc and negative towards the arc heading Range 360
Download Pdf Manuals
Related Search
Related Contents
Linux-Shop.info - Artikelkatalog SOLO 2200 USER MANUAL Guía del usuario del Soporte para imágenes SU-4 de Nokia サーモレコーダー RT-13/RS-13 取扱説明書 eQuality™ 506DN Vital Signs Monitor Service Manual CG27ES CDA HCE340SS hob 307426 – LogiLink MR0006 Mode d`emploi en Français ABUS TV8726 TEST REPORT EHPA-DACH Testing Regulation Copyright © All rights reserved.
Failed to retrieve file