Welcome, Guest. Please login or register.
Did you miss your activation email?
September 01, 2014, 02:30:03 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  G-Code, CAD, and CAM
| |-+  G-Code, CAD, and CAM discussions
| | |-+  Mach3 tracing out weird paths
Pages: 1   Go Down
Print
Author Topic: Mach3 tracing out weird paths  (Read 3297 times)
0 Members and 1 Guest are viewing this topic.
outsider
Active Member

Offline Offline

Posts: 3


View Profile
« on: April 29, 2012, 10:10:00 PM »

I just output an NC file from Mastercam, and brought it into Mach3 to inspect. Mach3 has been set to mm (for units) and Mastercam file was designed in mm as well.

I have also included a screenshot out of Mach3.
Code:
SIDE-TAKE02.NC
%
O0000(TOP SIDE-TAKE02)
(DATE=DD-MM-YY - 29-04-12 TIME=HH:MM - 22:51)
(MCX FILE - V:\ADRIAN\AF ASSIST TOOL\V3.1\MILLING THE CASE POCKETS\TOP SIDE\TOP SIDE-TAKE02.MCX-6)
(NC FILE - V:\ADRIAN\AF ASSIST TOOL\V3.1\MILLING THE CASE POCKETS\TOP SIDE\TOP SIDE-TAKE02.NC)
(MATERIAL - ALUMINUM MM - 2024)
( T210 |    1. FLAT ENDMILL | H210 )
N100 G21
N102 G0 G17 G40 G49 G80 G90
N104 T210 M6
N106 G0 G90 G54 X-37.5 Y-28.9 S3000 M3
N108 G43 H210 Z5.
N110 Z2.
N112 G1 Z-.5 F400.
N114 X-38.5
N116 G2 X-39.5 Y-27.9 R1.
N118 G1 Y-22.4
N120 G2 X-39. Y-21.9 R.5
N122 G1 X-21.
N124 G2 X-20.5 Y-22.4 R.5
N126 G1 Y-33.4
N128 G2 X-21. Y-33.9 R.5
N130 G1 X-39.
N132 G2 X-39.5 Y-33.4 R.5
N134 G1 Y-27.9
N136 G2 X-38.5 Y-26.9 R1.
N138 G1 X-37.5
N140 G0 Z4.5
N142 Y-28.9
N144 Z1.5
N146 G1 Z-1.
N148 X-38.5
N150 G2 X-39.5 Y-27.9 R1.
N152 G1 Y-22.4
N154 G2 X-39. Y-21.9 R.5
N156 G1 X-21.
N158 G2 X-20.5 Y-22.4 R.5
N160 G1 Y-33.4
N162 G2 X-21. Y-33.9 R.5
N164 G1 X-39.
N166 G2 X-39.5 Y-33.4 R.5
N168 G1 Y-27.9
N170 G2 X-38.5 Y-26.9 R1.
N172 G1 X-37.5
N174 G0 Z4.
I have also tried other post processors out of Mastercam which output IJ arcs, and identical results come out of Mach3

What am I doing wrong?


* Mach3-screen.png (264.72 KB, 1277x833 - viewed 118 times.)
Logged
BR549
Mach4 Alpha

Offline Offline

Posts: 5,118


View Profile
« Reply #1 on: April 30, 2012, 01:54:42 PM »

Looks like Crop circles or incorrect IJK mode.


YOU can use either the R or IJ method for arcs BUT you must tell MACH3 whether it is INC or ABS   IJK.  The two have to talk the same language.

It should have been defined in the safety block of Gcode to set the correct mode. Previous programs may have left it in an odd state.

G90.1 ABS IJK
G91.1 INC IJK

(;-) TP
« Last Edit: April 30, 2012, 02:02:29 PM by BR549 » Logged
outsider
Active Member

Offline Offline

Posts: 3


View Profile
« Reply #2 on: April 30, 2012, 07:03:00 PM »

It's not just that.
I have told Mach 3 which mode to be in, and I've also tried to manually change the G90 command to G91.1 and the results are the same regardless of what mode I put the NC file (and Mach3) in.
Logged
outsider
Active Member

Offline Offline

Posts: 3


View Profile
« Reply #3 on: April 30, 2012, 07:30:54 PM »

Never mind.
Got it working.

I was running this code on an installation of Mach 3 that didn't have a CNC machine attached to it.
When I ran the NC code on the computer with the CNC attached, it all worked beautifully. Don't know why, but it worked.
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!