Hello Guest it is September 15, 2019, 09:21:25 PM

Author Topic: Mach 3 toolchange for dummies???  (Read 60472 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach 3 toolchange for dummies???
« Reply #130 on: October 04, 2011, 02:33:09 AM »
Sorry missed the previous post. Where were you wanting the button placed?
Hood
Re: Mach 3 toolchange for dummies???
« Reply #131 on: October 04, 2011, 03:26:12 AM »
Hi Hood,

I was trying to put it to the left of  the X & Z DRO's and zero buttons on the standard screen. Thie other screen I downloaded with the A DRO and zero button from the forum seems to be working well and it does have a diagnostic page.

The problem I have now is that when I move from tool 1 to tool 2, G00 A46 followed by G00 A-40 to return against the ratchet (DRO shows 40 degrees) Then Move to Tool 2 by G00 A91 it moves the tool 51 degrees which requires a larger negative move to return against the ratchet. I know I could just say G00 A85 to get to tool 2 bbut I think that is going to get messy.
Is there a way that I could set the A DRO to the proper value for the tool after the move in the macro? ie After the G00 A-40 set the A DRO to 45.

Regards

Art

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach 3 toolchange for dummies???
« Reply #132 on: October 04, 2011, 03:35:28 AM »
Not sure how your macro is set up but you could set the A DRO to what you want after the toolchange by calling
SetOemDRO(803,XX)
where XX is the value you want. Make sure you have a
While IsMoving()
Wend
on the line before you do that so that it wont happen until the turret has reversed and the DRO is set.

Presume the reason you are needing this is because you are stalling the stepper so position is out a bit?

Hood
Re: Mach 3 toolchange for dummies???
« Reply #133 on: October 04, 2011, 03:45:09 AM »
Hi Hood,

Yes you have to stall it to keep it hard against the ratchet or there is movement in the turret.

Regards

Art

Re: Mach 3 toolchange for dummies???
« Reply #134 on: October 04, 2011, 03:52:58 AM »
Hi Hood,

SetOemDRO(803,XX)
I dont know where XX is going to be generated I will need to have some way of the program knowing that when tool 2 is selected that the DRO is set to 45 after the change etc.

Regards
Art

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach 3 toolchange for dummies???
« Reply #135 on: October 04, 2011, 04:08:06 AM »
All depends on how your macro is written I suppose.
Hood
Re: Mach 3 toolchange for dummies???
« Reply #136 on: October 04, 2011, 04:12:50 AM »
I was going to try and modify the one I emailed you earlier.

Regards

Art

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach 3 toolchange for dummies???
« Reply #137 on: October 04, 2011, 08:36:13 AM »
Well just looked at the macro and think this should work
Code "G53 A" & Apos      'For turret on A-axis change Z to A      
Code "G04 P1"         'Could be shorter pause or none?
Code "G53 A" & Alock      'For turret on A-axis change Z to A
Code "G04 P1"         'Could be shorter pause or none?
While IsMoving()
Wend
SetOemDRO(803,Apos)   'This bit added to set DRO back to position wanted.
Sleep 1000                    'Wait for 1 second for DRO to update, could put Code "G4P1" instead if wanted


Hood
Re: Mach 3 toolchange for dummies???
« Reply #138 on: October 04, 2011, 08:44:23 AM »
Hi Hood,

I have a label with tool position showing the degrees of the tool position which has an OEM code 106 Can I use this with SetOemDRO(803,xx) where xx is the number stated as the tool position?(OEM106)

Regards

Arthur

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Mach 3 toolchange for dummies???
« Reply #139 on: October 04, 2011, 08:47:27 AM »
Possibly, how do you set that user label?
Hood