Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Gordo on November 06, 2018, 03:48:41 PM

Title: G-Code and Mach3
Post by: Gordo on November 06, 2018, 03:48:41 PM
Hi I need some advice. When using V carve desktop I input the material dimensions, design the drawing and run the tool paths save the g code and take the code to the machine, set the zero position and run the program. The problem is that the drawing is not in the right position on the material when it cuts. I hope someone will understand what I an trying to say and be able to help. Thanks
Title: Re: G-Code and Mach3
Post by: ZASto on November 07, 2018, 02:18:35 AM
Where did you place the origin in VCarve?
Title: Re: G-Code and Mach3
Post by: Gordo on November 07, 2018, 01:03:24 PM
I placed the origin in the bottom left nhand corner of the material.
Title: Re: G-Code and Mach3
Post by: Gordo on November 07, 2018, 01:42:52 PM
See attached files
Title: Re: G-Code and Mach3
Post by: ZASto on November 07, 2018, 05:37:55 PM
Did you home your machine? Did you zero X and Y to your work coordinates?
In Mach3 it looks OK. But if you did not home your machine and zero X and Y to your work coordinates, how coudd Mach know where is your stock located.
Title: Re: G-Code and Mach3
Post by: RICH on November 08, 2018, 09:12:48 AM
I assume that your work material left bottom edge is located at X & Y =0 in the attached pic.Line N220 defines the origin for your Gcode at  X & Y =0 and line N230 is the first move for the X & Y axes in the program code.

Now understand the following, and if you don't, do some study on how to set up for a job.
Mach3, the controlling software, needs to know where the actual / physical  Machine Zero is. On start up Mach3 keeps track of where the axis is using machine coordinates at all times. When you reference the machine,  the user is defining to Mach3 where physical x & y zero is.If you reference the machine and are not at X & Y zero, then you need to define to Mach3 where the material  / part is. A work offset is some distance from Machine Coordinate 0,0. Now understand that Mach defaults to  G54 offset on start up. Also undestand that G54 work offset, machine coordinate 0,0  and Work coordinates can all be at 0,0 if so desired.

Confused .....?  Go study.

RICH
Title: Re: G-Code and Mach3
Post by: wmgeorge on November 11, 2018, 07:53:15 PM
If you just set your Origin in VCarve to be the Center of the work it solves a lot of problems.  On your work piece on the table just measure out the Center where you want the code to begin, move your spindle over to that point Zero X & Y,  make sure your Z is correct Zero and hit START.  Try it.