Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Rune on June 29, 2012, 02:21:05 PM

Title: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on June 29, 2012, 02:21:05 PM
Hi... Im wery new to this program and badly wondurig about this. i have calibrated the mach3 software so 1 cordinate is 1 mm. when i upload the roadrunner gcode file the calibration changes so all table size cordinates are way more each cordinate therfore is all offsets wrong and way over the cnc mill board.. why`? I even tryed to make a gcode from phlatscript in mm but when i upload this the calibration of cordinates are way wrong.. when i start up the program all cordinates are good.. i really dont understand this please help.
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Hood on June 29, 2012, 02:25:19 PM
If you attach your xml I will take a look.
Hood
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on June 29, 2012, 03:31:00 PM
What is an xml? gcode?

Rune
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Hood on June 29, 2012, 06:37:10 PM
xml is your config settings. If you open Mach you will see lower right the name of the profile you use. Look in the main Mach3 folder for a file with that name and a xml extension. You may need to copy and rename it before attaching to the forum as the forum only accepts a file name to be uploaded once. So if you are using one of the stock profiles the forum will reject it due to it being already uploaded by someone else.
Hood
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on June 29, 2012, 08:01:23 PM
found it :)
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on July 01, 2012, 07:34:51 AM
Hi.. did you look at my file?
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Hood on July 01, 2012, 08:10:35 AM
Sorry I did look but with the forum being down the last day I could not reply and then forgot to later.
Your xml seems fine here and when I load the roadrunner it looks fine, it is a tingy dot in the corner of the table view. The reason I see it as tiny is the code is for inch units but there is no G20 in the code so Mach just displays it as native units, in your case it is mm.
So to clarify, when you start Mach you can go to MDI line and command a move and it is fine but if you load G Code then the units are way off?
Does the code you are using have a G20 at the start? If it does then that changes it to Imperial and if you dont change back to metric (G21) when trying to command a metric move then it will still think you are asking for an Inch move.
Could that be your problem?
Hood
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on July 01, 2012, 08:34:55 AM
Well I tried to change G20 to 21 and mach3 program used metric again but the scale of my model where way smaller than designed...  I think sketchup convert to inches when I make gcode and therfore the cordinates are wrong... My cnc board limits dont work when it changes to G20... how can i fix this? is there somthing i can do so that platscript makes the gcode in metrics?
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Hood on July 01, 2012, 09:21:06 AM
You do not have limits on your machine, or at least according to your xml you dont.
Not sure what you mean by platscript.
Hood
Title: Re: Why changes the cordinates from mm to somthing else when i pick a gcode file???
Post by: Rune on July 01, 2012, 09:49:05 AM
Okay... need to se the totural video again i think.. maby my limits is not working.. phlatscript is a gcode plugin for google sketchup... found out that they have a new metric update that i think will solve my problem..

Many thanks