Hello Guest it is July 18, 2019, 04:14:02 PM

Author Topic: Dual head offsets.  (Read 7624 times)

0 Members and 1 Guest are viewing this topic.

Dual head offsets.
« on: December 05, 2014, 08:11:28 AM »
Hi!...My name is Glaucius, this is my first post, i'm from Brazil, so sorry my bad english  ;D

My question is about programing dual head on mach3 mill, i will try to explain my case:

I build a head for a router, this head is for "screwing" a bolt on a wood and steel panel, is pneumatic and his base is bolted on the Z axis (on the plate of the Y axis), so they move only on the" Y" axis, they don't move on Z axis...

Well...i need to make a g-code to make a hole and after this the head put a screw on the hole, how a made the offsets on the more easy way?...I already made tool offsets on the Machturn and was "peace of cake", but in Mach Mill seens to be more complicated  :-\

BTW, i need to make this process (hole and screw) about 50 times on every panel, so i don't wanna be putting a lot of "G52" on the code, there is a way to make this simple like in Mach Turn?

Thanks in advance!!!

Regards!
Re: Dual head offsets.
« Reply #1 on: December 05, 2014, 08:13:34 AM »
I read here this solution:

"tool = GetSelectedTool()
if tool=1 then
code"G52 x0 y0 z0"
end if
if tool=2 then
code"G52 x10 y0 z0"
end if"

Whit this code i don't need to repeat on every hole?

PS: I use Rhinocam to make the g-code, i'm newbee on G-code "by hand".
Re: Dual head offsets.
« Reply #2 on: December 06, 2014, 05:09:26 PM »
No one?   :'(

 ;D

Offline BR549

*
  •  6,874 6,874
    • View Profile
Re: Dual head offsets.
« Reply #3 on: December 06, 2014, 07:18:39 PM »
How about just setting a fixture offset then call it as needed.

G54,G55,G56, etc

Works well here, (;-) TP
Re: Dual head offsets.
« Reply #4 on: December 06, 2014, 08:33:32 PM »
Maybe this is the solution  :)

Another problem i was suffering is about "zero" the work offsets, is normal this dificulty to zero the work offset?.... I do it on the X and Y but on Z i can't zero, i try everything  >:(

Thanks!!

PS: This machine is in another town, so i can't test this here, i have only a Mill with small travel course...

Offline BR549

*
  •  6,874 6,874
    • View Profile
Re: Dual head offsets.
« Reply #5 on: December 06, 2014, 09:11:56 PM »
IN your case you are only accounting for the offset of the heads. IF

G54 = X0 Y0
and
G55 = X12Y0

then when you programmed from a G54 to a G55 the ZERO just moves over 12" to center the 2nd head over the workpiece.

SO you Reference the part in G54 mode then everything else takes care of itself when you change to G55.

(;-) TP
Re: Dual head offsets.
« Reply #6 on: December 06, 2014, 09:23:03 PM »
Ok...i will try this  ;)

I have to put this G-codes in every hole, rigth?....The code i posted here on my previous posts is not better?...I think with the another code i just have to put a tool change and the offset wil be automatically...

I have to program about 50 holes, so is a "pain in the a$$" to put this G54 and G55 on every hole  ::) hehehe

Thanks!!!  :)

Offline c30232

*
  •  122 122
    • View Profile
Re: Dual head offsets.
« Reply #7 on: December 06, 2014, 09:28:39 PM »
I don't know if it is proper to "ask in" on another's post.  If yes, then I apologize in advance. G54 accounts for X and Y.  How do you call, assuming both heads are riding the same Z. the extend and retract of each head?  That is one must get out of the way and the other must get to work.

Offline c30232

*
  •  122 122
    • View Profile
Re: Dual head offsets.
« Reply #8 on: December 06, 2014, 09:36:09 PM »
G54 requires just one call and remains untill the next call, say 55.

Offline c30232

*
  •  122 122
    • View Profile
Re: Dual head offsets.
« Reply #9 on: December 06, 2014, 09:38:28 PM »
Your 50 holes would always be as originally written.