Hello Guest it is July 08, 2020, 05:59:37 AM

Author Topic: 3 axis lathe Mach3 tool charger Quicktech  (Read 506 times)

0 Members and 1 Guest are viewing this topic.

Offline RICH

*
  • *
  •  7,410 7,410
    • View Profile
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #10 on: January 10, 2020, 07:59:39 AM »
It will be always used as rear post.

If I recall the rear tool post uses G55 Work offsets  for the tools offsets.
So be carefull with your work offsets.

RICH

Offline RICH

*
  • *
  •  7,410 7,410
    • View Profile
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #11 on: January 10, 2020, 08:07:28 AM »
Remember also that the Lathe tool table is in terms of radii. Machine Coordinates are in radii.
You need to define what lathe mode you want use.

FWIW,

RICH
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #12 on: January 10, 2020, 11:40:00 AM »
I manage to get macro work, so I can chose all tools now. But when a chose any toll lat say T0202, machine only move for X,Y,Z written in M6 macro, it doesn't move for offsets I put in tool table. In screen I see requested tool and offset are shown in DRO for requested tool, but machine don't move for offsets.

Online TPS

*
  •  1,607 1,607
    • View Profile
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #13 on: January 10, 2020, 11:59:19 AM »
the X,Z Offset will be captured by the next move after toolchange, the toolchange itselve will only "correct" the DRO's/coordinates (for this axis).
« Last Edit: January 10, 2020, 12:03:18 PM by TPS »
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #14 on: January 14, 2020, 08:17:28 AM »
but then I have found this topics, and here is also Yaxis lathe.

http://www.machsupport.com/forum/index.php?topic=21851.0

So Can and If yes, how to use this M6 macro to work with my machine.

i think this macro's are a good base to start with.
you will have to design a custom screenpage where you can set your y-axis values.
X and Z Offsets will be covered by Standard tooltable.

in this example M6Start macro toolpositions are stored in OEMDRo's

Code: [Select]
toolpos1 = GetOemdro(1001)
toolpos2 = GetOemdro(1002)
...
...

and the it drives the y-axis to the defined value for each tool in machine coords
Code: [Select]
If (toolnew = 1)then
   Call Code("G0 G53 X105 Y4.5"&(toolpos1))
   While ismoving()
      Sleep 100
   Wend
End If

it also moves the X and Z axis to a tool Change position

Code: [Select]
   Call Code("G0 G53 X105 Y4.5"&(toolpos1))

i personaly would do this in two step's, first move X and Z out the collision aeria and then move Y,
or maybe in three step's      1.X 2.Z 3.Y or 1.Z 2.X 3.Y to make sure the is no collision possible.


I would really like to make script in 3 steps  1.X 2.Z 3.Y.
I kindly ask you if you could make quick look how should script look like, only for one tool, I will than modify myself for other tools.

I need to get modified this part:
If (toolnew = 1)then
   Call Code("G0 G53 X105 Y4.5"&(toolpos1))
   While ismoving()
      Sleep 100
   Wend
End If


Thank you

Online TPS

*
  •  1,607 1,607
    • View Profile
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #15 on: January 14, 2020, 09:24:15 AM »
Code: [Select]
If (toolnew = 1)then
   Code "G0 G53 X105" 'move X-axis
   While ismoving()
      Sleep 100
   Wend
   Code "G0 G53 Y"&toolpos1 'move Y-axis
   While ismoving()
      Sleep 100
   Wend
   Code "G0 G53 Z105" 'move Z-axis
   While ismoving()
      Sleep 100
   Wend
End If

you have to replace the 105 with your machine coords you whant to use!!!!!!!!!

anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #16 on: January 14, 2020, 10:27:09 AM »
Code: [Select]
If (toolnew = 1)then
   Code "G0 G53 X105" 'move X-axis
   While ismoving()
      Sleep 100
   Wend
   Code "G0 G53 Y"&toolpos1 'move Y-axis
   While ismoving()
      Sleep 100
   Wend
   Code "G0 G53 Z105" 'move Z-axis
   While ismoving()
      Sleep 100
   Wend
End If

you have to replace the 105 with your machine coords you whant to use!!!!!!!!!



Great thank you so much
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #17 on: January 15, 2020, 08:14:29 AM »
Can someone please explain me what is mean "&toolpos1  coz I have problems with Y height. Sometimes it goes to much up, and for tool 3 it goes all the way to the limit switch. If I delete &toolpos1 for all tools in m6start macro, then are all on the right position.  So where is the catch?

Thank you

Online TPS

*
  •  1,607 1,607
    • View Profile
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #18 on: January 15, 2020, 08:21:42 AM »
toolpos1 to toolposx are coming from OEMDro's at beginning of code
Code: [Select]
toolpos1 = GetOemdro(1001)
toolpos2 = GetOemdro(1002)
...
...


so you have to create a custom Screen, where you can set the Dro's corresponding to your particular tool.

this line of code

Code: [Select]
Code "G0 G53 Y" & toolpos1 'move Y-axis

is only the combination of fix code, in this case "G0 G53 Y" added by the "&" and value of variable toolpos1

let's value of toolpos1 = 1234 the excecuted code would be

G0 G53 Y1234

maybe you can post your actual code.

« Last Edit: January 15, 2020, 08:24:46 AM by TPS »
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: 3 axis lathe Mach3 tool charger Quicktech
« Reply #19 on: January 16, 2020, 07:17:29 AM »
Thanks to you guys, i have manage to setup tool change perfectly.

I would just like to make minor change in m6start macro, but I'm not sure if its possible.

This is tool1 :

If (toolnew = 1)Then
   Code "G0 G53 X38" 'move X-axis
   While ismoving()
      Sleep 100
   Wend
   Code "G0 G53 Z-113" 'move Z-axis
   While ismoving()
      Sleep 100
   Wend
   Code ("G0 G53 Y66."&(toolpos1)) 'move Y-axis
   While ismoving()
      Sleep 100
   Wend
End If

So I have fixed Y at 66 and then i get 0.*********xx from 1001 dro from my screen. So I can make minor adjustment on screen dro.
The question is, is it possible that my 1001 dro number change Y for +or-  number intered in1001 dro?    SO let say I have fixed Y66 from M6 macro, and I enter 10 in 1001 DRO, and that change actual position from Y66 to Y76.

Thank you

Gasper