Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Saumur on January 25, 2010, 01:10:39 PM

Title: Re-start the program from a different line
Post by: Saumur on January 25, 2010, 01:10:39 PM
Hey everyone,

I would like to know if it possible to re-start a program from a different line, not the 1st one.

I remember I tried to do it once but the axes moved strangely and hit the piece.

Anyone can explain me how to do it correctly if it is even possible?

Thanks!!
Title: Re: Re-start the program from a different line
Post by: BClemens on January 25, 2010, 02:22:03 PM
"Run from here" will do it and will also warn you of the axis moves that will happen to do it. Works fine - done it many times. Scroll through the program to your starting point and click on "run from here". Mach will run through the program up to your line and wait for the 'cycle start' - then you get the warning. The spindle will need to be manually started - F5.

Bill C.
Title: Re: Re-start the program from a different line
Post by: Hood on January 25, 2010, 02:38:22 PM
As Bill says Run From Here will do it, when you press Start a prep move box will pop up and you can choose to start the spindle by checking the box there. My coolant automatically starts but some people say theirs doesnt so check yours does. Also check that the coordinates it is giving in the prep move are correct before pressing OK. It is also advisable to have a safe Z set up so that the Z will raise before X and Y moving and thus will hopefully avoid any collisions.
Last thing to say is this is only a feature with the full version of Mach, if you are using the demo version the  Run From Here does not work.
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 26, 2010, 10:10:50 AM
Hey guys,

thanks for your fast and helpful answers as always.

Regarding the safe Z I didn't quite get what does it mean.

Let's say if I use a safe Z of 3mm what will happen? Note that I'm talking about Mach for Lathe.

Thanks again and regards
Title: Re: Re-start the program from a different line
Post by: M250cnc on January 26, 2010, 11:04:26 AM
Saumur,

There is no such thing on the lathe "Safe Z" it applies to the mill where the spindle will raise up an amount but normally it would raise up fully.

I've used the mill for a couple of years but the lathe scared the @~$* out of me for a month when using it. ;D

Phil
Title: Re: Re-start the program from a different line
Post by: Saumur on January 26, 2010, 11:17:44 AM
Hi Phil,

I understand, so the safe Z is useless on lathe.

One last important thing, when the axes move to prepare to start from a line is there a way to move the Z before the X so the part does not collide?

This is because the axes move at the same time and of course they collide with the piece.

If anyone knows the answer to this it would be really appreciated.

Thanks!!!
Title: Re: Re-start the program from a different line
Post by: Hood on January 26, 2010, 11:27:13 AM
Ah ok didnt realise it was a lathe, must have missed that :(
Think you can set a rapid Dia in the prep move box, should not go in further than that until the Z is the correct distance, but test cutting air first as I very rarely use Run From Here on the lathe.
Hood
Title: Re: Re-start the program from a different line
Post by: M250cnc on January 26, 2010, 11:44:28 AM
Saumur,

Sorry i'm not brave enough for that yet.

Listen to Hood as an ex fisherman he must be brave enough to try it. ;D ;D ;D

Phil
Title: Re: Re-start the program from a different line
Post by: Saumur on January 27, 2010, 11:05:33 AM
Seems no one is brave enough! :P

Anyway I did a test and when positioning it moves the X first and the Z second. Let me say this is really stupid since in a lathe this means piece collide.

If anyone knows a trick to invert this (Z first and X second) please let me know!!

Thanks again :)
Title: Re: Re-start the program from a different line
Post by: Hood on January 27, 2010, 11:57:00 AM
Just tried it here, went to the code line, pressed run from here, pressed start, made sure the spindle was checked, entered the X Dia for rapid and pressed enter. Spindle starts, X goes to dia I set, Z moves then X goes into programmed dia. Press start and off it goes.
So looks like its working as I would expect, do you think it should be different?

Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 27, 2010, 12:14:14 PM
I noticed that when I use the option start from here it won't let me choose the position the machine will start, it automatically choose the coords of the line before I want to start...
Title: Re: Re-start the program from a different line
Post by: Hood on January 27, 2010, 01:34:42 PM
Yes, that is normal on both Mill and Turn, just start from the next line and it will run from the one you want :)
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 27, 2010, 02:09:38 PM
What I was trying to say is that it I can't choose coords and it still moves the X 1st and Z 2nd...

thanks for your help anyway
Title: Re: Re-start the program from a different line
Post by: Hood on January 27, 2010, 02:13:49 PM
Yes X should move first but only  to the value you type in as the Rapid Dia in the prep move box.
If your X is at 20mm and you type 40 for the rapid dia it will go to 40, z will move then X will go back into the dimension the line of code has. Similarly if you were initially at 100 dia and you put a 40 in the rapid dia it would move X to 40 then z would move.
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 28, 2010, 09:04:02 AM
Hood thanks for helping.

I understand what you are tring to say but as I told you in the prep move box I can't type anything, only the safe Z which is useless in lathe.

You are telling me to put a different value in X so the Z moves 1st, but I can't!! The boxes are greyed out and I can't input any different value

Am I missing something??
Title: Re: Re-start the program from a different line
Post by: M250cnc on January 28, 2010, 09:05:56 AM
Saumur,

Are you using the demo version ?

Phil
Title: Re: Re-start the program from a different line
Post by: Hood on January 28, 2010, 09:07:51 AM
I will post a screenshot of the box I am meaning in a few mins.
Hood
OK heres where I mean you enter the dimension.
Title: Re: Re-start the program from a different line
Post by: Saumur on January 28, 2010, 05:55:29 PM
Hey guys,

no, I don't use the demo.
Also Hood my table is different from yours, instead of rapid dia mine says safe Z.... why???

Thanks....
Title: Re: Re-start the program from a different line
Post by: Hood on January 28, 2010, 05:58:18 PM
Sounds like you are using a mill profile rather than a turn profile. Have a look at Ports and Pins and see if the last tab says Turn Options or Mill Options.
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 28, 2010, 06:00:47 PM
Hey man,

it's a turn profile, no doubt, I even cheked.

Seriously I have no words to describe what's going on...
Title: Re: Re-start the program from a different line
Post by: Hood on January 28, 2010, 06:02:21 PM
If you want to attach your xml  I will see what shows up here.
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 29, 2010, 08:44:04 AM
xml?

sorry I'm a noob.
Title: Re: Re-start the program from a different line
Post by: Hood on January 29, 2010, 09:14:43 AM
You will find it in the main Mach3 folder, if you are using the standard Turn profile it will be called Mach3Turn.xml.
You will likely have to rename it before the forum will accept as  a file name can be uploaded once and I think Mach3Turn will already have been uploaded, you could copy it to your desktop and rename to saumur.xml and the forum should accept it.
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 29, 2010, 10:07:08 AM
Hey Hood,

I'm attaching my xml.

Anyway just to let you know I'm doing these test from my comp not the actual machine.

Still they have the same program version and everything so it's strange.

thanks
Title: Re: Re-start the program from a different line
Post by: Hood on January 29, 2010, 10:24:09 AM
Strange, its working fine here for me, see screenshot.
What rev of Mach are you using?
Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 29, 2010, 10:32:19 AM
I'm using the version R 2.63.

Just to make sure I'm using the From here option and then after pressing cycle that screen pops up.
Title: Re: Re-start the program from a different line
Post by: Hood on January 29, 2010, 10:35:04 AM
Yes thats the correct procedure.
Ok try a newer version just in case thats the problem, 2.63 is very old. I will see if I have 2.63 here and see what happens.
Hood
Title: Re: Re-start the program from a different line
Post by: Hood on January 29, 2010, 10:48:13 AM
Ok I just tried with 2.63 and right enough safe Z rather than Rapid Dia, you will need to upgrade to a newer version, 2.63 is probably 2 or 3 yrs old.

Hood
Title: Re: Re-start the program from a different line
Post by: Saumur on January 29, 2010, 10:59:56 AM
Thanks mate,

in the end we found the solution...

Thanks for being helpful as always.


C ya.
Title: Re: Re-start the program from a different line
Post by: Hood on January 29, 2010, 11:06:41 AM
No problem :)

Hood