Hello Guest it is September 28, 2020, 10:03:24 PM

Author Topic: check if G68 is active  (Read 4962 times)

0 Members and 1 Guest are viewing this topic.

check if G68 is active
« on: May 18, 2010, 04:51:00 AM »
Hi,

I am setting up my machine so that it can handle a G68 job rotation.

Button-scrips for measuring the angle and setting G68 are already functioning.

From what I understood you have to switch off G68 before toolchange.
(Obvious: The toolsetter has a fixed location stored in machine coordinates.)

So I want my toolchange macro (M6) to check if G68 is active, switch it off, do the toolchange and switch on G68 again.

Does anybody know how to check if G68 is active? ???

Are there any other G-codes or macro's that require G68 to be deactivated?

Thanks for helping!

Rich
  


 
« Last Edit: May 18, 2010, 04:53:46 AM by zone023 »

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: check if G68 is active
« Reply #1 on: May 18, 2010, 04:50:12 PM »
IF I remember correctly the G68 does not effect machine coords only work coords so it should NOT effect a tool change posittion in machine coords.

There are other functions that don't work under a g68 I have a list somewhere IF I can find it I will post it.

There is little to no documention on the G68 effects so proceed with caution (;-)
Re: check if G68 is active
« Reply #2 on: May 18, 2010, 11:19:38 PM »
FYI - when playing with rotated coord systems, Be aware - mach jogs parallel to the machine coord axes - NOT the WC axes.
SO.... if you rotate the WC system, you have to think about what is happening -

example: if you have a rotated vise that you aligned the WC to, and you think you are jogging along the vise face, you can get surprised as you will not be jogging parallel to the vise face!

Dave
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Re: check if G68 is active
« Reply #3 on: May 19, 2010, 10:52:23 AM »
Hi,

Thanks for warning. From this forum I already understood that you have to be careful when using G68. :o

Just need to find out now if G68 really doesn't affect a toolchange in machine coords.

I'll do some testing later on...need to find a foam vise and cardboard toolsetter first... ;D



Rich

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: check if G68 is active
« Reply #4 on: May 19, 2010, 07:28:10 PM »
Testing here it looks fine for a tool change in Machine coords You just can't G28.1(refhome) you can G28 and G30 if needed.

And as Dave stated watch out for the jogging it JOGS in the original machine plains and NOT in the rotated plain.

(;-) Hope that helps

Offline BR549

*
  •  6,932 6,932
    • View Profile
Re: check if G68 is active
« Reply #5 on: May 20, 2010, 12:27:26 AM »
TO answer your original question(;-)

OEMLED(108) is used to indicate if G68 is active or not.
Re: check if G68 is active
« Reply #6 on: May 20, 2010, 04:54:43 PM »
Hi,


I did a G68 search, that's why I didn't find OemLed(108)...
And in fact I was looking for a way to read the state of G68, degrees of rotation, etc.
In that way I would be able to store the settings, switch it off for a toolchange, and switch on again afterwards with the correct settings.
But because of your testing it is clear that a toolchange can be executed without deactivating G68.

Thanks again!

Rich
  
Re: check if G68 is active
« Reply #7 on: May 20, 2010, 05:57:23 PM »
DRO 118 will give the rotation angle of the WC system.

Dave
Author of the MachStdMill Extensions for Mach3
www.CalypsoVentures.com
Re: check if G68 is active
« Reply #8 on: May 20, 2010, 06:14:02 PM »
Thanks Dave.

With the Led and Dro it is possible to do what I want(ed)
I'll try without deactivating first.
Not having to program myself seriously reduces the risk of damage...  ;D
The same reason why I was looking for mach g68 readouts.
It also would have been possible to assign a UserDro and led, but this increases the risk of making  mistakes (for me...)

Rich