Heeks CNC .xml

Post Reply
Ing Chao
Posts: 72
Joined: Fri Dec 28, 2012 7:10 pm

Heeks CNC .xml

Post by Ing Chao » Sun May 18, 2014 10:29 pm

Has anyone else had problems opening the .xml output from Heeks?

I can't seem to get openscam & Grbl controller to open the files.

I click the "GO" button (post process) and then "Save nc file"
What am I doing wrong?
'Oko #1153- D Extended Y axis-1000mm. Dual X axis makerslide-900mm Nema 23 X and Y axis motors. Arduino Uno and Grbl shield controller running on 24v.

Ing Chao
Posts: 72
Joined: Fri Dec 28, 2012 7:10 pm

Re: Heeks CNC .xml

Post by Ing Chao » Thu May 22, 2014 5:44 pm

Anyone know where I might could get some help on this?

Should I just contact Mr. Heeks?
'Oko #1153- D Extended Y axis-1000mm. Dual X axis makerslide-900mm Nema 23 X and Y axis motors. Arduino Uno and Grbl shield controller running on 24v.

Llamas
Posts: 201
Joined: Fri Apr 19, 2013 3:36 pm

Re: Heeks CNC .xml

Post by Llamas » Thu May 22, 2014 7:36 pm

I'm not sure exactly what xml file you are talking about. When you post process and save an NC file, that file (no matter what extension you give it) is a simple text file containing lines of GCode. Controller software should be able to read it, though...

In the Output window in HeeksCNC, it should show the GCode that is generated when you click GO. That's the text that will be saved to the NC file. What does that output look like? If you open the NC file in a text editor, what does it look like?

Ing Chao
Posts: 72
Joined: Fri Dec 28, 2012 7:10 pm

Re: Heeks CNC .xml

Post by Ing Chao » Fri May 23, 2014 3:20 am

Looks like html/xml, I opened this up in notepad:

<?xml version="1.0" ?>
<nccode>
<ncblock>
<text col="program">O123</text>
<text col="comment"><![CDATA[(Test program)]]></text>
</ncblock>
<ncblock>
<text col="blocknum">N10</text>
<text>G10</text>
<text>L1</text>
<text>P1</text>
<text><![CDATA[ ]]></text>
<text col="axis">R1.500</text>
<text col="axis">Z15.000</text>
</ncblock>
<ncblock>
<text col="blocknum">N20</text>
<text>G10</text>
<text>L1</text>
<text>P2</text>
<text><![CDATA[ ]]></text>
<text col="axis">R3.000</text>
<text col="axis">Z63.500</text>
</ncblock>
<ncblock>
<text col="blocknum">N30</text>
<text>G10</text>
<text>L1</text>
<text>P3</text>
<text><![CDATA[ ]]></text>
<text col="axis">R3.000</text>
<text col="axis">Z63.500</text>
</ncblock>
<ncblock>
<text col="blocknum">N40</text>
<text>G10</text>
<text>L1</text>
<text>P4</text>
<text><![CDATA[ ]]></text>
<text col="axis">R1.500</text>
<text col="axis">Z63.500</text>
</ncblock>
<ncblock>
<text col="blocknum">N50</text>
<text>G10</text>
<text>L1</text>
<text>P5</text>
<text><![CDATA[ ]]></text>
<text col="axis">R7.990</text>
<text col="axis">Z63.500</text>
</ncblock>
<ncblock>
<text col="comment"><![CDATA[(tool change to 3 mm Carbide Slot Cutter)]]></text>
</ncblock>
<ncblock>
<text col="blocknum">N60</text>
<tool number="1" />
<text col="tool">T1</text>
<text col="misc">M06</text>
</ncblock>
<ncblock>
<text col="blocknum">N70</text>
<text>G17</text>
<text>G90</text>
<mode units="1.0" />
<text col="prep">G21</text>
<text>G54</text>
</ncblock>
<ncblock>
<text col="comment"><![CDATA[(Sketch)]]></text>
</ncblock>
<ncblock>
<text col="blocknum">N80</text>
<text col="rapid">G00</text>
<text col="axis">X-2</text>
<text col="axis">Y-3.5</text>
<text col="axis">S7000</text>
<text col="misc">M03</text>
<path col="rapid">
<line x="-2.000000" y="-3.500000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N90</text>
<text col="rapid">G00</text>
<text col="axis">Z2</text>
<path col="rapid">
<line z="2.000000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N100</text>
<text col="feed">G01</text>
<text col="axis">Z-1</text>
<text col="axis">F100</text>
<path col="feed">
<line z="-1.000000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N110</text>
<text col="feed">G02</text>
<text col="axis">X0</text>
<text col="axis">Y-1.5</text>
<text col="axis">I2</text>
<text col="axis">J0</text>
<text col="axis">F840</text>
<path col="feed">
<arc x="0.000000" y="-1.500000" i="2.000000" j="0.000000" d="-1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N120</text>
<text col="feed">G01</text>
<text col="axis">X10</text>
<text col="axis">Y-1.5</text>
<path col="feed">
<line x="10.000000" y="-1.500000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N130</text>
<text col="feed">G03</text>
<text col="axis">X11.5</text>
<text col="axis">Y0</text>
<text col="axis">I0</text>
<text col="axis">J1.5</text>
<path col="feed">
<arc x="11.500000" y="0.000000" i="0.000000" j="1.500000" d="1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N140</text>
<text col="feed">G01</text>
<text col="axis">X11.5</text>
<text col="axis">Y10</text>
<path col="feed">
<line x="11.500000" y="10.000000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N150</text>
<text col="feed">G03</text>
<text col="axis">X10</text>
<text col="axis">Y11.5</text>
<text col="axis">I-1.5</text>
<text col="axis">J0</text>
<path col="feed">
<arc x="10.000000" y="11.500000" i="-1.500000" j="0.000000" d="1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N160</text>
<text col="feed">G01</text>
<text col="axis">X0</text>
<text col="axis">Y11.5</text>
<path col="feed">
<line x="0.000000" y="11.500000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N170</text>
<text col="feed">G03</text>
<text col="axis">X-1.5</text>
<text col="axis">Y10</text>
<text col="axis">I0</text>
<text col="axis">J-1.5</text>
<path col="feed">
<arc x="-1.500000" y="10.000000" i="0.000000" j="-1.500000" d="1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N180</text>
<text col="feed">G01</text>
<text col="axis">X-1.5</text>
<text col="axis">Y0</text>
<path col="feed">
<line x="-1.500000" y="0.000000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N190</text>
<text col="feed">G03</text>
<text col="axis">X0</text>
<text col="axis">Y-1.5</text>
<text col="axis">I1.5</text>
<text col="axis">J0</text>
<path col="feed">
<arc x="0.000000" y="-1.500000" i="1.500000" j="0.000000" d="1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N200</text>
<text col="feed">G02</text>
<text col="axis">X2</text>
<text col="axis">Y-3.5</text>
<text col="axis">I0</text>
<text col="axis">J-2</text>
<path col="feed">
<arc x="2.000000" y="-3.500000" i="0.000000" j="-2.000000" d="-1" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N210</text>
<text col="rapid">G00</text>
<text col="axis">Z5</text>
<path col="rapid">
<line z="5.000000" />
</path>
</ncblock>
<ncblock>
<text col="blocknum">N220</text>
<text col="misc">M02</text>
</ncblock>
</nccode>
'Oko #1153- D Extended Y axis-1000mm. Dual X axis makerslide-900mm Nema 23 X and Y axis motors. Arduino Uno and Grbl shield controller running on 24v.

danheeks
Posts: 1
Joined: Wed Jun 25, 2014 1:44 pm

Re: Heeks CNC .xml

Post by danheeks » Wed Jun 25, 2014 2:41 pm

HeeksCNC uses an xml file for the backplotting.
The toolpath drawn in HeeksCNC is created from the g-code file using a python script to create an XML file which is imported into HeeksCNC.
You can load you existing g-code files into HeeksCNC from the menu "machining"->"Open NC file" and you will be able to see the toolpath in the graphics window.
This mistakes in the post-processor script can be seen visually.

Post Reply