Hello Guest it is September 19, 2019, 12:06:59 PM

Author Topic: Tool Offset Macro...  (Read 24876 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #90 on: August 19, 2016, 04:34:40 AM »
Yes, i think it all relies upon the Zdro being zeroed, i didn't do this yesterday as i presumed the G31 would read the machine dro, I will verify tonight.

Your suggestion is what i wanted t o do - use tool zero as TOM setting with Haimer and all tools are relative to that setting then as that is how they would be measured.

I like your setter but i think there is a big void between your usage levels and my mini-usage level at present ;)

What is the reading device you used?
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Tool Offset Macro...
« Reply #91 on: August 19, 2016, 04:48:31 AM »
On the Beaver NC5 I use a rotary encoder and belt system, first two pics.
On the Chiron I use a glass scale. Last pic.

No difference with the way they work just the glass scalle is a neater solution.

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #92 on: August 19, 2016, 05:17:44 AM »
As you say, the glass scale is neater, but i do have an encoder floating about somewhere, would just need a short linear guide of some sort.

Will bear it in mind ;)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Tool Offset Macro...
« Reply #93 on: August 19, 2016, 05:36:11 AM »
Yes, some form of linear guide just to keep things fairly rigid but easily moved. A couple  of round rails and bushes would do the same, just I had profile rails I bought cheap off eBay a lot of years ago, got 4 500m long rails and 4 trucks for under £10 delivered, I knew they would come in handy at some point. They are all used now, two of them on the height setters and two trucks and a rail chopped in half on the plasma Z.


Before I had the height setter I used to touch off the tools in the spindle and had the button to set the tool table in a similar manner as I use now.
 The  Beaver has a  hyd drawbar, so just a press of a button and the tool is loose, release the button and it clamps instantly but the  height setter is 10x quicker than that, no movements of X Y Z axis required :)

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #94 on: August 19, 2016, 06:47:08 AM »
Here it is, new in box, only 600 ppr but voltage will match the CSMIO ok.

:)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Tool Offset Macro...
« Reply #95 on: August 19, 2016, 06:49:27 AM »
Oh hang on, when you mentioned voltage just thought, do you have the Enc module? That is where I input it, not sure if it would be so easy or even work via a normal input.

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #96 on: August 19, 2016, 06:55:18 AM »
Ah, no, i was thinking just input via one of the spare encoder channels?

Also just found a bunch of these, basic linear movement rails, adjustable for slack, pretty smooth, would work ok i think.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Tool Offset Macro...
« Reply #97 on: August 19, 2016, 06:58:37 AM »
Ok not sure how that would work, better do some testing before you go to too much trouble.

Rail looks like it would work fine, doesn't need to be anything fancy, just has to have limited movement other than the direction of travel and no twist.

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #98 on: August 19, 2016, 07:32:31 AM »
It might work but only with Mach in reset.

Think of it - as i have it now, with Mach in reset I can spin the motors by hand and the DRO's all dance merrily around - I think this is what we're after with the height setter?

BUT put mach in run mode and an encoder input without commanded motor move would throw an ePid fault i think.

I reckon it will work, what is in the behind the scenes stuff - macro's etc?
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Tool Offset Macro...
« Reply #99 on: August 19, 2016, 07:54:12 AM »
I think your problem may be accessing the DRO. The Enc Module DROs have a modbus address but as far as I have seen the motor encoder inputs are internal and I have not seen any way to read them.

Regarding the workings, just some simple code in a button, here it is but as said it is looking at the Enc mdules address.

If GetOemLED(800) Then
MsgBox ("Mach In Reset, Enable and start again")
End
End If

Offset = GetOemDRO(1150)

SetOemDRO(1555,Question("Enter Offset Number"))

Tool = GetOemDRO(1555)

Code "G90" & "G10" & "L1" & "P" & Tool &"Z" & Offset
DoOemButton(121)


Also looking at that code I see it has a check to see if Mach is in or out of Reset, so I must have put that there because it doesn't work when in Reset.

Hood