Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Len-Tikular on April 13, 2012, 02:07:00 PM

Title: Tool zero with touch
Post by: Len-Tikular on April 13, 2012, 02:07:00 PM
I'd like to use pin 13 on my C11 multifunction board for the input of my touch plate.
My touch plate is 5mm thick
I understand how to edit the Button Script.

I need a code & routine to insert the plate thickness.

I'm getting confused with 'inputing the plte thickness' into a DRO

Anyone clear this up for me please.
Title: Re: Tool zero with touch
Post by: ger21 on April 13, 2012, 06:02:26 PM
You don't need to use a DRO if the plate thickness isn't changing. Just code the script to use a 5mm thickness.
Title: Re: Tool zero with touch
Post by: Len-Tikular on April 14, 2012, 04:41:23 AM
You don't need to use a DRO if the plate thickness isn't changing. Just code the script to use a 5mm thickness.
Thanks Gerry,
My machine is setup to use MM (Metric)
You got a code example please or point me.
Thanks
George
Title: Re: Tool zero with touch
Post by: ger21 on April 14, 2012, 04:17:20 PM
Do you want an entire macro, or just the part with the plate thickness?
Here's a good thread with lots of info.
http://www.cnczone.com/forums/cnc_wood_router_project_log/36099-another_aussie_auto_tool_zero.html
Title: Re: Tool zero with touch
Post by: Len-Tikular on April 15, 2012, 08:32:26 AM
Thanks Gerry.

Wow that thread is long.!

I have a C11 breakout board from CNC4PC. Been running it for quite some time with no problems.

I just wired in the touch plate to pin 15 and set it active low.

The documentation for the board is confusing. One say use a 10K pull up to 5V another says use a 200Ohm pull up and anothr shows no pull up at all.

Do I need a pull up. Right now it does not work under mach3 using the diagnostic screen or the auto setup routine.

Board ground is a little unclear also.

George
Title: Re: Tool zero with touch
Post by: ger21 on April 15, 2012, 08:40:52 AM
Looking at the manual, I think you want to set the jumper to pull up. See section 5.4 in the manual
http://cnc4pc.com/Tech_Docs/C11R9_3_USER_MANUAL.pdf

Use the ground in the lower left corner, next to the +5V in this pdf.
http://cnc4pc.com/Tech_Docs/E_STOP_N_EN_Wiring.pdf
Title: Re: Tool zero with touch
Post by: Len-Tikular on April 15, 2012, 09:40:26 AM
Thanks Gerry,

Looks like my board is Rev8 . No jumpers like you suggest.
Also shows a Pullup to 5v with a 200 ohm Resistor.
I'll try it but I dont want to blow my board.

George
Title: Re: Tool zero with touch
Post by: ger21 on April 15, 2012, 10:22:34 AM
Not an electronic expert, but yes, it looks like the 200ohm resistor is what you want to use, according to the R8 manual.