Hello Guest it is September 19, 2019, 05:10:39 AM

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

0 Members and 1 Guest are viewing this topic.

Offline rcaffin

*
  •  1,003 1,003
    • View Profile
Re: Tool Offset Macro...
« Reply #160 on: August 25, 2016, 03:56:06 AM »
Basically, you need to enable the outputs.
I used the 26LS31 instead, but same idea.
Cheers
Roger

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #161 on: August 25, 2016, 05:22:14 AM »
Ooh, nice, little circuit works perfectly :)

Ok, now the next step:-

When mach is in reset the DRO works perfectly, accuracy can be set with motor tuning - nice.
But, we can't run the G-Code to read the DRO and load it into the tool table - what Hood said would happen earlier. The CSMIO still gets the data but does not let Mach see it unless in reset.

So, how do we tackle this hurdle :)

Do we have access to the CSMIO data, maybe we can read it direct, scale it and save it?

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

Offline rcaffin

*
  •  1,003 1,003
    • View Profile
Re: Tool Offset Macro...
« Reply #162 on: August 25, 2016, 05:41:50 AM »
I am totally confused here. My machine does not behave that way.
When you say 'in reset', do you mean as though an eStop has just been done?
Does the rest of the machine work -  X, y & Z axes move etc?

Cheers
Roger

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #163 on: August 25, 2016, 05:45:01 AM »
:)

To me "in reset" means Mach is not active, out of reset is ready to work.

Not quite an e-stop, just press the reset on mach screen.
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 #164 on: August 25, 2016, 06:22:25 AM »
Have you tried what I said earlier? Have Mach out of Reset and just have a massive following error set for the height setter axis so that it does not trip?

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #165 on: August 25, 2016, 06:43:57 AM »
Yes that works well, BUT the DRO in mach does not update if mach is active and there is no motor feedback.

Out of reset it works well but no G-Code, not the end of the world but not 100% cool ;)

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 #166 on: August 25, 2016, 06:48:33 AM »
Ah ok, not so good.
What about  having a routine.
Have Out of reset and Home it (set zero)
Put in Reset and move it onto tool.
Take back out of Reset and press the button to update the offsets?

Could maybe even be integrated into the button with a few message boxes informing you what to do next.

Or you could splash out for the Enc module and have rigid tapping as well ;D

Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #167 on: August 25, 2016, 06:54:34 AM »
Yeah, i was one step ahead of you there Hood :)

I did think of automating it but of course as soon as the macro takes mach out of reset its game over for further macro code ( i think? ) Can a macro put Mach back in reset???

There is always a way, your suggestion is exactly my line of thought and will work, just a tad clumsy, but hey if it means i get a height setter for £3 then its not all bad :)
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 #168 on: August 25, 2016, 07:06:07 AM »
Well I know the button I use works when Mach is in Rest, just the G Code part wont. Hence the reason the button code checks  whether Mach is In or Out of Rest  when the button is pressed.
Now whether the button would work whilst flip flopping between IN/ Out of Reset I don't know.
As for the button being able to take Mach In/Out of Reset, probably not, should be able to put into Reset but don't think it will allow you to take out.
The reason I say that is I had a weird one when I first started using the Chiron, couldn't get out of reset and was a while before I worked out it was because my Screen was from the Bridgeport and I had a VB Rest button which would take out of Rest then looked at encoder  feedback and compared  Machine coords and asked whether I wanted to update (if required)  The IP-A would not come out of reset via the button code.
Hood

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Tool Offset Macro...
« Reply #169 on: August 25, 2016, 07:10:22 AM »
sounds about right, didn't think you could macro out of reset.

still, as soon as i get the pulley and belt fitted I will have a working height setter at least, even if slightly clumsy, still better than the probing idea i think.

automating the job via messages would work, the dro does stay where it should when going in or out of reset and if you move it when in reset it does update when going out of reset :)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives