Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Craig1 on May 08, 2011, 02:35:02 AM

Title: Tool plate/setter wiring.
Post by: Craig1 on May 08, 2011, 02:35:02 AM
I am planing on using the simple PCB board style setter. How do you physically wire the input? I have a Sherline controler which has tamper seals. Do i have to wire through box or can it be wired anothe way?

If you know of another post that i should i would appriciate it.

Thanks you.
Title: Re: Tool plate/setter wiring.
Post by: Hood on May 08, 2011, 03:44:13 AM
It needs to go into Mach via your parallel port so really you need to go into your box to connect. You could break into the parallel port cable and wire direct but that would not really be recommended unless you knew what you were doing. Best bet would be to email Sherline and ask how you could get round the issue without voiding the warranty as I assume that is what your dilemma is?
Hood
Title: Re: Tool plate/setter wiring.
Post by: stirling on May 08, 2011, 06:46:16 AM
or you could make yourself a breakout box between the controller and the PC. A couple of IDCs and a short piece of ribbon should do the trick.

Ian
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 08, 2011, 06:30:37 PM
That is the concern i have. Thanks
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 18, 2011, 09:18:26 PM
I think i have found a solution. I did contact Sherline. They said as long as my mod didn't cause the problem i was fine. I did find photos of the the box insides. It did not look like an easy hook up. Rather tight for open spots to solder to. After a long exhaustive internet search i found this. Mainly so long because i didn't know what it was called. Its a printer jumper box. I'm going to buy male female ended. Wiring for normal use and splice in here for tool setter ect. Hope my soldering skills are up to the challenge. Sells for about 10 bucks through amazon. Hope this helps those worried about their warranties.
Title: Re: Tool plate/setter wiring.
Post by: stirling on May 19, 2011, 07:06:58 AM
Goodness - who'd have thought of that - brilliant  ;D
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 19, 2011, 09:05:44 AM
I work for Ford Motor Company and deal with warranties daily. It's best not to void them when when you can!!! I'll update on progress as i go.
Thanks
Title: Re: Tool plate/setter wiring.
Post by: stirling on May 19, 2011, 11:22:28 AM
I'm off for a lay down in a darkened room for a while...
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 19, 2011, 10:34:31 PM
I went to the local radio shack and found not exactly what i was looking for but close enough. Its ugly but it work. I think i'll unsolder one side and go back and put on heat shrink. I'll also put it in a project box. Then but the well made jumper box as aposed to my home made junk box  ;D.
Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 20, 2011, 01:59:23 AM
Craig,

I know those DB25s are difficult to solder but definitely go back and put sleeving over those solder joints before you do anything else.

(It could take just one whisker from any of those wires to short to an adjacent terminal and if luck was not on your side disaster could strike).

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 20, 2011, 12:14:52 PM
I agree
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 22, 2011, 01:41:40 PM
The 10K resistor goes from where to where? I have done some searching with no luck

Thank you
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 22, 2011, 05:04:22 PM
well i answered my own question after contining to search. The resistor goes between the plate and pin # 10. I have configured that as an input. Now where do i pull the +5 volts from?

I referenced this post for picking pin #10. http://www.machsupport.com/forum/index.php/topic,12742.0.html
Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 23, 2011, 04:29:20 AM
The resistor is used to pull-up the voltage on the the plate to +5 so the resistor goes between the plate (pin10 ?) and +5 volts. You could get the +5 from a spare USB socket if you have a USB lead you can cannibalise.
When the tool touches the plate it should then make the plate (pin 10?) zero volts.

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 23, 2011, 09:06:19 AM
Pin 10 is what i found the other post. I assume I can use any in put pin? Or is there a preferred pint to use?  I'll scrounge up a USB to take power from.
Thanks
Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 23, 2011, 10:29:20 AM
Craig,

Any input pin# is OK.
Whichever you choose has to be configured to Probe in Ports and Pins.

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 23, 2011, 06:59:20 PM
testing prfile info
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 27, 2011, 09:42:52 PM
Ok, I have moved on to actual functioning of the setter. I have used Tweakias seggested script from another post. It moves the Z axis no issues. Now i have also tested that the led would either come on or go off depending on its active state which it DID NOT. I hought possibly my circuits were not complete (soldered properly) or wires to long. I have checked with a multimeter and all seem well less one. I have no continuity on the plate wire after the 10k resistor(it may be too large). I did try jumping to pin 10 after the resistor no change.

As an experiment i jumped pin 10 to what i beleive is USB plug ground. Doing this the digitize LED came on or went off when jumped depending on active high or low.

I feel i'm right on the cusp of having the setter work properly just a set up issue at this point. Suggestions are much welcome.

Thanks you again

Code: [Select]
DoOemButton (1010)
Code "(Setting Tool Zero)"
While IsMoving ()
Wend
If GetOemLED (825) = 0 Then
Code "G90 G31 Z-3 F20" & ProbeFeed
While IsMoving ()
Wend
If GetOemLED (825) = True Then
End If
ProbePos = GetVar (2002)
Code "G0 Z" & ProbePos
While IsMoving ()
Wend
Call SetDRO (2, 0.125)
Code "G0 Z1"
While IsMoving ()
Wend
End If

Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 28, 2011, 01:12:44 AM
Hi Craig,

Sounds like you are almost there.
Your current problem seems to be with GND. The cutter should be at the same potential as your USB GND, that way when the cutter contacts the plate the digitize LED illuminates.
The resistor does not go in series with the plate. The resistor just connects your pin 10 to +5 volts, then the plate connects to pin 10 as well.

Hope this helps,

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 28, 2011, 01:26:11 AM
Does pint 10, +5 and have to wires in any particular configuration or just end end up together?
From what i could find per USB pinout Red is +5 and black is GND.

Well so much for going to bed. more work to do.
Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 28, 2011, 01:38:30 AM
Hope this makes sense.

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 28, 2011, 01:41:12 AM
Yes it does,
   
  Cutting and re-solding as we speak.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 28, 2011, 02:28:59 AM
Al right,

The LED comes on when the clip and plate are touched (I believe it was supposed to be on then go off) . I tried using the code of yours yet it doesn't set the DRO. I believe in the script phase now. WOO HOO.

The schematic was great help.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 28, 2011, 02:53:02 AM
CORRECTION

The script is working. I wasn't watching the DRO close enough
Title: Re: Tool plate/setter wiring.
Post by: Tweakie.CNC on May 28, 2011, 04:25:01 AM
Great news Craig. Pleased you have it working. (the LED is usually off and only comes on when the plate is touched)

Tweakie.
Title: Re: Tool plate/setter wiring.
Post by: Craig1 on May 28, 2011, 02:55:10 PM
Can you direct to scripts for programing the X/Y  + & - buttons. I'll do some searching in the mean time

Thanks again.