Quantcast
Channel: Reprap Forum
Viewing all articles
Browse latest Browse all 39321

NC and Gcode. Is there a difference? (1 reply)

$
0
0
I am doing a project of building my own CNC machine using a gen6 board with teacup firmware on it. Currently I have Repetier as the firmware. I created a very simple sample file using Catia V5.

Catia has the ability to generate an NC file which I tried using with the help of youtube. I could be doing this part wrong but I did follow the examples very closely and the sample "video" of it going appears to be correct. The only thought of what may be wrong is that it uses a "post processor" file when generating this NC file. I selected Cenit SINUMERIK_840D_3X.pp for this but there are many others to chose from.

I am wondering first of all, is a ".NC" file the same as a ".gcode" file or does there need to be another step? Below is what my current NC file looks like:


;======================================================
;=== cPost Standard PP for SINUMERIK 840 D ===
;======================================================
N10 G0 G90 G40
N20 G17
N30 ;=============== TOOL CHANGE =================
N40 ; DESC :
N50 ;=============================================
N60 T1 M06
N70 D1
N80 G0 G90 G40 G17
N90 F0 S0
N100 G64 SOFT
N110 S70 M3
N120 G1 X3 Y-0.152 Z0.212 F300 G94
N130 Z-0.182
N140 Y0
N150 Y3 F1000
N160 X2.977
N170 Y0
N180 X2.954
N190 Y3
N200 X2.931
N210 Y0
N220 X2.907
N230 Y3
N240 X2.884
N250 Y0
N260 X2.861
N270 Y3
N280 X2.838
N290 Y0
N300 X2.815

However I have looked at other gcode files and they look more like this:

G90
G21
M103
M108 S210.0
G1 X3.756 Y3.362 Z7.0 F60.0
G1 X3.756 Y3.362 Z1.75 F60.0
M101
G1 X0.969 Y3.362 Z1.5 F67.1661
G1 X0.969 Y-0.606 Z1.5 F480.0
G1 X2.98 Y-0.606 Z1.5 F480.0
G1 X3.756 Y0.945 Z1.5 F480.0
G1 X3.756 Y3.362 Z1.5 F480.0
M103
G1 X3.756 Y3.362 Z7.0 F60.0
G1 X-0.606 Y-0.606 Z7.0 F1920.0
G1 X-0.606 Y-0.606 Z1.75 F60.0
M101
G1 X2.181 Y-0.606 Z1.5 F67.1661
G1 X2.181 Y3.362 Z1.5 F480.0
G1 X-0.606 Y3.362 Z1.5 F480.0
G1 X-0.606 Y-0.606 Z1.5 F480.0
M103
G1 X-0.606 Y-0.606 Z7.0 F60.0
G1 X3.756 Y3.362 Z7.0 F1920.0
G1 X3.756 Y3.362 Z1.25 F60.0

They seem quite different, yet similar. If people on here aren't as familiar with Catia I am not really set on using it if there is another option out there that works better to make an STL file into gcode that can be used by repetier or another controller software as well. I am just looking for some guidance on this. I assume that slicer will not work since that is meant for 3d printing.

Viewing all articles
Browse latest Browse all 39321

Trending Articles