Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: JC on June 28, 2015, 01:06:04 PM

Title: Question about simulation
Post by: JC on June 28, 2015, 01:06:04 PM
Sorry if the name of my topic isn't accurate or if this question has been answered a thousand times.  I searched and wasn't able to find what I need for whatever reason.  Probably can't think of the right search terms.    I'm pretty new to the world of CNC and brand new to this forum but quite an experienced computer user.

I have Mach3 and a very simple two axis lathe setup plus a stepper spindle and a motor control relay.  No problem at all with controls, machine running great so this should be easy right?

How can I run or move my program quickly to an exact spot (simulation only) and make it stop there for the purpose of coordinate information?   What I want to do is find the exact position of X at a given spot of Y so I can use that number coordinate as an exact point in tweaking the G code file.   

Of course I know I can use a calculator and math to find my answer but using the DRO would be much easier.  I suspect there is an easy way of doing this but I just don't see it so I thought I would ask.  I have watched the half hour long controls video a couple of times and if the answer is there I missed it.  Rather than watch it again hoping to see what I'm looking for I would like someone to just explain how to do it.  I will probably go "Duh" when I learn how to do this.

Thanks

JC
Title: Re: Question about simulation
Post by: ger21 on June 28, 2015, 01:48:27 PM
I don't quite understand what you're trying to do??
Title: Re: Question about simulation
Post by: BR549 on June 28, 2015, 02:14:38 PM
Same here could you lay your idea out a little clearer  or in more detail.

(;-) TP
Title: Re: Question about simulation
Post by: JC on June 28, 2015, 05:56:32 PM
I want mach3 to stop at a given point so I can read the coordinates.

For instance if the current move is G01 x0 y0 and my current position is x1 y17 I would like to get y to stop at an exact spot, say 10 so I can read where x is located at that exact spot of y.  If I run the program it will pass by the location I want to survey no matter how slowly I run it.  Again I know I can calculate this with math but am hoping there is a way for Mach3 to do it for me.  Sorry if I am not clear.  It's to help me modify my code.

JC
Title: Re: Question about simulation
Post by: JC on June 28, 2015, 10:15:32 PM
Let me rephrase to make it simpler.  You can stop a program while it's running three different ways.  Is there any way to stop it at an exact predetermined spot using a g code command or mach 3.  I wish to do this in offline mode only.

JC
Title: Re: Question about simulation
Post by: BR549 on June 28, 2015, 10:57:04 PM
Not that I am aware of. 

(;-) TP
Title: Re: Question about simulation
Post by: magicniner on June 29, 2015, 12:42:37 PM
You could always video the run and use a player with fast forward, rewind single step and freeze frame to review the live data
Title: Re: Question about simulation
Post by: JC on June 29, 2015, 03:30:03 PM
You could always video the run and use a player with fast forward, rewind single step and freeze frame to review the live data
That might be worth a try.  Not sure what it will look like at 60 frames per second.  May just be a blur.

At any rate I'm almost relieved to know there isn't a simple well known way to do this.  Make me feel less of an imbecile since I couldn't figure it out.

JC
Title: Re: Question about simulation
Post by: micchero3000 on June 29, 2015, 09:26:39 PM
why not open the gcode in lazy cam and figure out the layer or chain and then start from there when back in mach3?
Title: Re: Question about simulation
Post by: JC on June 30, 2015, 12:49:44 AM
why not open the gcode in lazy cam and figure out the layer or chain and then start from there when back in mach3?


I think I can accomplish what I want to do pretty easily in Excel but I was hoping to do it right inside of mach3.

I don't know anything about lazy cam but if you say it's worth looking at/learning then I'm all over it.  I see it in the menu but to date have never even clicked on it.

Thank you for pointing me there.

JC
Title: Re: Question about simulation
Post by: BR549 on June 30, 2015, 01:00:11 AM
IF you had an MPG you might be able to pull it it off in Mach3 using Shuttle mode.

(;-) TP
Title: Re: Question about simulation
Post by: BR549 on June 30, 2015, 01:02:08 AM
missfired

(;-) TP
Title: Re: Question about simulation
Post by: JC on June 30, 2015, 12:53:14 PM
IF you had an MPG you might be able to pull it it off in Mach3 using Shuttle mode.

(;-) TP

 if I run down to a point close to where I want to stop I can pause the program and then drag the feed override bar all the way to the bottom speed and with a well timed mouse click I can usually stop the action within a couple of thousandths of a point I want to reference but it's tedious. 

I ended up just drawing a chart in Excel that gives me the exact coordinate of X for every possible position of Y to the tenth of an inch.  I can refer to it when I need to tweak my code and for my purposes that's fine.  I just thought mach3 may have the ingrained capability and I just wasn't seeing it.

JC

Title: Re: Question about simulation
Post by: RICH on June 30, 2015, 03:34:41 PM
You could modify the code by adding a G4 in the code, but , that still doesn't do what you want.
Other than a spread sheet, backplot the code and measure in CAD as that can be anywhere you want and
as accurate as you wish.

RICH
Title: Re: Question about simulation
Post by: micchero3000 on July 17, 2015, 03:52:32 PM
I'm super new also.  I'm just winging it!  What gcode program are you using?