Hello Guest it is October 19, 2019, 06:42:14 AM

Author Topic: Duplomatic turret for Colchester  (Read 24444 times)

0 Members and 1 Guest are viewing this topic.

Re: Duplomatic turret for Colchester
« Reply #30 on: October 19, 2011, 06:09:44 PM »
The value in UserDRo(1101) now doesn't flash up - The Current Tool DRO is set to 1

If I take out the line Code"T0100"  as a test, the value in UserDRo(1101)  appears in the Current Tool DRO

It looks like some thing in the M6 macro is jumping over the 
SetCurrentTool(Offset)  command in the button.
Looking in to that and will post any findings in the morning.... Cheers,
Dave.

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #31 on: October 19, 2011, 06:15:19 PM »
The tool DRO will show 01 as that is the tool number, to see the full tool number and offset you will need to add a DRO on the screen or change that DRO to OEM 246. And if you have T%04.0f  in the format string it will show the T as well as the full tool number and offset, see screenshot.
Hood

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #32 on: October 19, 2011, 06:17:49 PM »
You dont want the SetCurrentTool(Offset)  in the buitton, that should be handled by your m6start macro and all you are doing from the button is basically calling a toolchange which then gets passed to the m6start and then back.

Hood

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #33 on: October 19, 2011, 06:30:40 PM »
Here is the standard screenset modified for the tool number/offset DRO
Place it in your Mach3 folder then use the View and Load Screens to open it.
Hood
Re: Duplomatic turret for Colchester
« Reply #34 on: October 20, 2011, 03:12:23 AM »
Thanks Hood. I'll look through that lset today and see if I can get it to work here.
Cheers,
Dave.

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #35 on: October 20, 2011, 03:19:40 AM »
No probs Dave. Could I ask a favour, can you measure the dia of the wedge piece that locks the VDI shank in place? I got a VDI tool plate from a friend but some of them are missing and I am wondering if its just a standard size on all VDI or whether these wedges as different Dia for different VDI sizes.
Not sure if that is the correct terminology for the part so I have attached a pic of it.
Hood
Re: Duplomatic turret for Colchester
« Reply #36 on: October 20, 2011, 10:25:33 AM »
Hi Hood,

Here is a photo of our VDI wedgie.
It is 30.0mm OD.

ATB
Derek
You can "chop it off" but can't "chop it on"

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #37 on: October 20, 2011, 11:31:14 AM »
Thanks Derek, much appreciated. They are much bigger than the ones on the plate I have so obviously not a standard between sizes, think mine are only 18mm Dia

Tool plate is not really going to work for me I dont think as its only a VDI20 which is a bit small for my lathe. Looks like I will have to make up my own, not sure if VDI or some other method of repeatable holders is the way to go.

Hood
Re: Duplomatic turret for Colchester
« Reply #38 on: October 20, 2011, 02:13:22 PM »
Success at last !
The problem was the number of digits of the tool offset number when 'converted' to a string.
The USerDRO dropped the leading zero for tool offsets below 10 (even with the correct format string set)
The tool command sent to M6Start was something like T014 which didn't work.
The macro now checks if the offset is a single digit and adds the extra leading zero if the offset is 0 - 9.
The Tool 1 select buton macro looks like this -

Sub Main
Code "G91 G28 X0 Z0"
Dim Offset As Single
Offset=GetOemDRO(1101)
If Offset<10 Then
Code"T010" & Offset
End If
If Offset>9 Then
Code"T01" & Offset
End If
Code "G90"
End Sub

I just enter the tool offset in to the Userdro on the initial set up and when ever I need to switch the tool manually I click the relevent button - the tool is selected and the tools offset loads as well.

Thanks for all your help Hood.
All good fun.  Dave

Offline Hood

*
  •  25,855 25,855
  • Carnoustie, Scotland
    • View Profile
Re: Duplomatic turret for Colchester
« Reply #39 on: October 20, 2011, 02:20:59 PM »
You could also have altered the format string of your user DROs to have the leading zero, %02.f would do that.
Good you have it working as you want :)
Hood