On Thursday 20 August 2015 19:40:10 andy pugh wrote:

> On 21 August 2015 at 00:32, Gene Heskett <[email protected]> wrote:
> > What I need is the command line to use in the gcode file, right at
> > the top, which will reset ALL the co-ordinate systems to the current
> > G53 (machine) values.
>
> G10 L2 P1 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P2 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P3 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P4 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P5 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P6 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P7 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P8 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
> G10 L2 P9 X0 Y0 Z0 A0 B0 C0 U0 V0 W0
>
> Somehow I suspect that you don't really want  to do what you think you
> want to do.

There are 2 o<word> WHILE loops in this program.
Each has an o<bypass> test so the whole thing will be skipped while I 
troubleshoot the other.

The machine has beem homed and is sitting at a DRO reading of x0 y0 z0 on 
entry to the program.  Thats near the center of the xy travels, and 
about an inch down from the top of the post.

Inside the IF for each loop, is a
G10 L2 P1 X0 Y0 Z0 (to restore the homed co-ords to G54)
G92 X0 Y0 Z0 (to make sure its not off a 0.0001)

G1 F40 x(center of workpiece) y(offset to put tool at center of THIS 
circle) Z-8.828 (which is about 5 thou above the top surface of the 
workpiece as presently mounted)

G92 x0 y0 z0 (subsequent motions s/b absolute moves from the present 
location as it has moved by the line above)

Next move is a g1 f10 z-0.025

Error is "move exceeds negative limit on axis 2"  The machine is sitting 
at the homed position nearly 9" up the post and the DRO says everything 
is at 0,0,0,0.  But while I can move it anyplace in its envelope, the 
code can't lower it 25 thou? ? ? 

Since it doesn't physicly exceed the negative limit, and I can then run 
it by hand, downward at least another 1.25" by the time I hit the 
minimumas set in the ini file for axis 2, I have no other choice but to 
believe that the interpreter is NOT checking the present position 
against the value in the machines own G53 map.  No clue what its 
checking with, but the .ini files limits are not being hit.

I can put this file, messy as it is because I've now been fighting with 
this for 2 full days now, on my web page if someone else wants to swing 
a mad cat, or a 4 foot oak 2x2 at me.

Its on the Mill-stf page as 'make_spndle_lock.ngc' at the address in the 
sig.

Thanks.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to