Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: jasura on September 29, 2011, 03:50:16 PM

Title: Scale involuntarily flipping between negative and positive while running.
Post by: jasura on September 29, 2011, 03:50:16 PM
Randomly while running the scale for my x axis, by it self, changes form 1 to -1. Mirroring my project mid mill. Has anyone seen this, can the scale be locked or is something in the gcode changing it? Thanks for any help.
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Overloaded on September 29, 2011, 04:53:41 PM
Look for G51 and G50 in your code.
If you have X scaled, G50 will reset it.
G51 X -1 will set the scale.
Maybe ?
Might post your code here too.
Others will surely help.
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Dusty_in_the_Shop on September 29, 2011, 09:18:38 PM
I see this occasionally too.

I'm running the latest, stable build of Mach3 with a Geckodrive G540 BoB.

I've attached my latest project (and my .xml code...which reads like Greek to me).  I can find no instance of G51 or even begin to understand why my scale is flipping +/- during operation.

Thoughts?

Thanks,

Dusty
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: jasura on September 29, 2011, 09:24:58 PM
G00 G49 G40.1 G17 G80 G50 G90
G20
(MOP NAME: top of wheel)
M6 T1
M03 S15000
G00 Z0.6441
X4.1766 Y-0.3933
G01 Z0.0236  F30
Z0.0000  F50
X-0.3938
X-0.3937 Y-0.3835
X4.1766
Y-0.3736
X-0.3938
//all x, y, and z from this point on with : M5 M9
M30: at the end

3.043.0229 (lockdown), occurs with both my probitix 3 axis sidesteps and my 5 Axis TB6560(only using 3 axis).
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Hood on September 30, 2011, 02:40:02 AM
j72988
can you attach your xml please.
Hood
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Tweakie.CNC on September 30, 2011, 03:41:35 AM
This has been discussed in another thread, which I can't find now I want it but this problem crept in with the latest or last but one Mach revision and sometimes occurs when an error in the GCode is encountered. It only affects the X Axis scale DRO and can be triggered by an unrecognised GCode or multiple instances of the same code such as the M10 / M11 combination.

Tweakie.
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Tweakie.CNC on September 30, 2011, 11:56:32 AM
Jasura,

If you could possibly post your .xml  it may help us get to resolving this problem.

Thanks.

Tweakie.
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Dusty_in_the_Shop on September 30, 2011, 12:11:26 PM
And, for the sake of clarity, my version of Mach3 is:

R3.043.022

@ Tweakie & Hood: thanks for looking into this for us.

Regards,

Dusty
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Hood on October 01, 2011, 03:40:05 AM
Well doesnt look like jasura is going to come back and post his xml which is a shame as I can only say with approx 99.9999% certainty that his issue is the same as Dustys. In other words this reversal is caused by using a pirate version of Mach.
Hood
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: stirling on October 01, 2011, 03:55:09 AM
LOL - I reckon your 4 digits of precision is a tad on the conservative side...

Ian
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Hood on October 01, 2011, 06:51:40 AM
LOL - I reckon your 4 digits of precision is a tad on the conservative side...

Ian

I prefer to err on the side of caution ::)

Hood
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: Tweakie.CNC on October 01, 2011, 07:09:58 AM
LOL - I reckon your 4 digits of precision is a tad on the conservative side...

Ian


I think it is his Hive mind Ian.  ;D

Tweakie.
Title: Re: Scale involuntarily flipping between negative and positive while running.
Post by: stirling on October 02, 2011, 04:24:32 AM
arf - reckon so  ;D