Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mhasting2004 on January 29, 2011, 04:24:54 PM

Title: Run from here... possible bug
Post by: mhasting2004 on January 29, 2011, 04:24:54 PM
Hi guys

Just came across this and wonder if its a Mach "feature" or something else.

When i start a program using the "run from here" command the set spindle speed is ignored. Everything else seems fine with the spindle starting etc but the spindle speed parameter is not set so it defaults to the lowest speed (S0) configured which in my case is 1000rpm.

I believe this is a Mach issue but would appreciate any feedback from others who have a differnt setup to mine.

Mach3 R3.043.022
Mach std mill Beta12 ver 0.4.3
Smooth Stepper Beta2 Ver 0.015 ogx
Huanyang VFD using usb plugin

Cheers

Mark
Title: Re: Run from here... possible bug
Post by: angel tech on January 29, 2011, 04:46:46 PM
surely that is the function of the command "run from here". It will commence code from the command that you ask it to start from, and if there is no spindle command then it wont start it.
Title: Re: Run from here... possible bug
Post by: mhasting2004 on January 29, 2011, 05:00:34 PM
I wouldn't have thought so as all the other commands are executed (only the cummlative move to get to postion at the line of code) For example the spindle is started and all other movements are calculated inorder to restart the program at the line specified.

For me the run from here command is a way to restart a program after a failure or an edit to the gcode without having to start all over again. Maybe I'm wrong in assuming that is how it works

Thanks
Title: Re: Run from here... possible bug
Post by: angel tech on January 29, 2011, 05:24:19 PM
doesn't the reset switch off the spindle when activated, so it must be restarted.
Title: Re: Run from here... possible bug
Post by: Overloaded on January 29, 2011, 05:33:24 PM
Looks like there is something awry with it guys.
Checked Start Spindle in the Prep dialog and it starts as expected but reverts to the LAST speed selected at the END of the program. It doesnt change until it sees another S****.
Made a simple program with several speed changes throughout, RFH from various places, all the same result.
I'd say it's a critter.
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 06:07:43 PM
It works fine for me on my Mill and Lathe as I use RFH quite often, especially on the lathe when proving threading BUT I definitely dont have 022 rev, think its probably 020 I am using.
Is this only with 022?

My setup on both Mill and Lathes are
AC Servo spindle using Step/Dir
SmoothStepper

Hood
Title: Re: Run from here... possible bug
Post by: mhasting2004 on January 29, 2011, 06:56:07 PM
Only way I've found that will change the speed using RFH is issuing a MDI a "S" command.  The S6000 is set at the start of the Gcode I might see if other commands that set parameters like offsets or absolute/inc act the same with RFH. Maybe Mach only is looking at the move commands.

Thanks guys
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:00:32 PM
I wonder, what do you have the lookahead set to, just wondering if its a high number then it is maybe looking way ahead for the spindle speed.

Hood
Title: Re: Run from here... possible bug
Post by: Overloaded on January 29, 2011, 07:20:07 PM
Just simulating here as I manually start my mill spindle for now.
Tried several versions, 42.xx  and 43.xx  all the same.
Watching the on screen info on the spindle.

Look ahead was 200, set to 2 and get the same.
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:25:07 PM
Yes, thinking about it look ahead could not be the problem as I often do a RFH just before or after a toolchange and the spindle speed may change for then ne3xt tool but it always starts at the previous speed that was in the code.
Maybe something to do with me using Step/Dir but cant really see how that could be either as if you are simulating then it wouldnt matter.
Hood
Title: Re: Run from here... possible bug
Post by: Overloaded on January 29, 2011, 07:26:13 PM
I'll help if I can, let me know of any settings I need to make, otherwise I'll just watch and learn.
Russ
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:28:31 PM
Russ, you are testing with a licenced version I presume?
Hood
Title: Re: Run from here... possible bug
Post by: Overloaded on January 29, 2011, 07:34:40 PM
Yes
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:40:09 PM
I will have to see if I can break it tomorrow on my machines as I know it always works for me but maybe that is because I think normally I would have previously been running the code so there would be a value in the DRO anyway.

Hood
Title: Re: Run from here... possible bug
Post by: mhasting2004 on January 29, 2011, 07:49:27 PM
Doubt step /dir control as I'm not using that and controling the vfd via a USB plugin (direct comms similar to modbus).  As Russ says the spindle speed setting is not updated in the DRO in mach either. Mines also licensed.

Mark
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:52:07 PM
Ok I think I see what it is now, the RFH spindle start is issuing a M3 and as thats all its doing it will just start the spindle at whatever speed is in the DRO, it will be up to the operator to set the speed correctly in the DRO.
The reason I have never seen it is the DRO would always have the last commanded speed in it.

Hood
Title: Re: Run from here... possible bug
Post by: Hood on January 29, 2011, 07:56:57 PM
What might be an idea is in Rev4 there are a couple of extra boxes in the prep move, for example I would like to see a spindle direction option as I think the spindle just starts M3 when RFH, thats normally fine for a mill but can be a scary thing on a lathe when you realise the spindle is rotating the wrong way for your drill or whatever ;D Another thing may be a box to enter the spindle speed for the prep.
Hood
Title: Re: Run from here... possible bug
Post by: Overloaded on January 29, 2011, 09:25:59 PM
What you describe is exactly what I see here Hood, anxious to see what you find tomorrow.
The additions to the prep dialog would be good, but it might be best ... or as simple/simpler to just modify the RFH scan to include the direction and speed for the update. Then it wouldn't require any additional input, just click and go. It would then continue as expected.

RC
Title: Re: Run from here... possible bug
Post by: Hood on January 31, 2011, 07:06:13 AM
Personally I think I would prefer the options but the click and go approach again would be OK, just have to hope something like that is done.

Hood