Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: joeendo on June 05, 2012, 09:46:21 PM

Title: index sensor help please
Post by: joeendo on June 05, 2012, 09:46:21 PM
Im having trouble with the cnc4pc index card. I installed the card on my cnc converted atlas lathe trying to get rpm readout and for threading but cant get a readout and the index light in diagnostics is always on. Im not sure what im doing wrong as this is my first go at spindle index.  :(
Title: Re: index sensor help please
Post by: Hood on June 06, 2012, 11:18:24 AM
Check to see you have a low value, probably 0 ,for Index Debounce in General Config.
Hood
Title: Re: index sensor help please
Post by: joeendo on June 06, 2012, 07:31:41 PM
I must have screwed something up cause the index light will come on and off randomly without me doing anything. I probably wired it wrong though I fallowed the wiring diagram and it looks right ???
Title: Re: index sensor help please
Post by: joeendo on June 06, 2012, 08:39:41 PM
Well im getting a readout in turn but its varying wildly. It will be reading what looks like a close to actual rpm and then change going from a couple hundred to a few thousand and up.
Title: Re: index sensor help please
Post by: Hood on June 07, 2012, 02:50:02 AM
If you attach your xml I will have a look at your config to see if there is an issue with it.
Hood
Title: Re: index sensor help please
Post by: joeendo on June 07, 2012, 07:07:47 PM
how do I do that?
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 03:06:40 AM
You will have to copy it and rename it so that the forum will accept it, suggest you call it joeendo.xml . You can then use the additional options on the reply page to attach.
Hood
Title: Re: index sensor help please
Post by: joeendo on June 08, 2012, 02:39:03 PM
hope this works
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 04:06:57 PM
Think that is the Mach3 exe you attached instead of the xml.
Hood
Title: Re: index sensor help please
Post by: joeendo on June 08, 2012, 05:08:42 PM
let me try again
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 05:38:40 PM
XML looks fine but that is a mill xml and I thought you said it was a Turn one?
Hood
Title: Re: index sensor help please
Post by: joeendo on June 08, 2012, 05:42:32 PM
 Yeah wrong one again
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 05:50:05 PM
again all looks fine with the exception of possibly the Index Debounce on General Config page is set to 10, try 0 and see if it helps.
Also just in case you dont know but you need to tell Mach the spindle has started, either with M3/M4 or by pressing the spindle start button. I think you must be doing that as I think you said you were getting some sort of reading earlier on.
Hood
Title: Re: index sensor help please
Post by: joeendo on June 08, 2012, 06:03:07 PM
Yeah I was trying everything just to see if it would make a difference. Changing debounce and anything else I could think of.. Once I was frustrated and just sitting there thinking with the spindle running not changing anything the index light came on and it just started working with a erratic reading but working then a few minutes later it stopped. Thought maybe a bad connection with the break out board.  ???  Checked connections but couldn't find any problem.
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 06:15:06 PM
Would seem to be a hardware issue, have you asked Arturo for any help?
Hood
Title: Re: index sensor help please
Post by: joeendo on June 08, 2012, 06:39:52 PM
No I havnt but I have another BOB on the way so hopefully it will solve my issue. Anyways thank you for your help on this.
Title: Re: index sensor help please
Post by: Hood on June 08, 2012, 06:43:16 PM
No probs, fingers crossed for you :)
Hood
Title: Re: index sensor help please
Post by: joeendo on June 11, 2012, 08:26:13 PM
New board came in and still not working and now the index light flashing randomly and rpm is erratic. :(
Title: Re: index sensor help please
Post by: RICH on June 11, 2012, 10:27:52 PM
Make sure the photo transitor is working properly. You should be able to put a piece of paper between the prongs and see the index go on or off in MACH, or get a high and low voltage reading. If that part works then you can play with the slot width of the index disc. There is info in the Mach manual on how wide to make the slot.
FWIW,
RICH
Title: Re: index sensor help please
Post by: Vogavt on June 12, 2012, 12:23:39 PM
I looked through the Mach3 Manual for how wide to make the slot for indexing. Didn't see it anywhere.

I search for "slot", "width" & "index" but no joy on any of the details of which you stated.

Can you point me to the correct page and section please?

Thanks in advance,
Vogavt
Title: Re: index sensor help please
Post by: joeendo on June 12, 2012, 01:46:36 PM
I tried a inductive prox sensor and got the same results. Index light comes on randomly even with spindle off and erratic rpm.
Title: Re: index sensor help please
Post by: Overloaded on June 12, 2012, 03:52:49 PM
Hi Vogavt,
   Look in the "Turn" manual.
Only 1 slot is necessary. There is a formula for the required width.
Russ
Title: Re: index sensor help please
Post by: Vogavt on June 12, 2012, 06:39:09 PM
Well there you have it then. Right there on page 38.
I'd never downloaded the Turn Manual.

Thanks!
Title: Re: index sensor help please
Post by: Vogavt on July 17, 2012, 08:53:21 PM
Wondering if someone could take a look at another Opto Sensor type. It's the HOA1405-001 (http://datasheet.seekic.com/PdfFile/HOA/Honeywell_HOA1405-00108916.pdf).  It doesn't require a slot because the IR LED and the Sensor are pointed at an angle to each other so all that's needed is a reflective spot.

I'm just to ignorant to make a definitive call on how the wires go together.

I'm using the cnc4pc c11 board.

My thoughts were as follows but it didn't work.
C - Input Pin on BOB
E & K - Wired together and put on GND of BOB
A - Place 220 Ohm resister prior to connecting to 5V on BOB.



Any advice would be appreciated before I destroy something. I don't want to fry the IR LED nor burn out the Sensor. Also want to make sure I put the Ground wire where it's supposed to go on the c11 as well.

I have been trying to get the c11 board to recognize a signal from both the opto-sensor as well as a magnetic sensor for spindle speed.

I have tried multiple wiring configurations, but only if I thought they were safe and no danger of messing up the c11 board.

I have set Mach in various permutations of debounce numbers, active low, enabled, etc. for both the Input settings and the Spindle setup tab.

I've tried with and without a 4.7K Ohm resistor across the 5V and the Pin 13 wire (just like my probing setup) but can't even get the LED to light up on either Pin 12 or Pin 13 no matter what I do.


Any help would be appreciated.

I just opened a Work Ticket with cnc4PC a few minutes ago so understandably I haven't heard anything back yet.

Thanks,
Vogavt
Title: Re: index sensor help please
Post by: Vogavt on July 19, 2012, 12:02:16 PM
Got feedback from Arturo. I'm on my own on this one.

:o

I have verified that a proximity switch will in fact invoke the LED for Pin 12 to come on when a magnet passes by its end.
Pin 13 LED or circuitry may now be cremated from my various permutations of wiring.  

Man I hate flailing around like a fish on the sidewalk...


Anyone care to tackle it?
Title: Re: index sensor help please
Post by: Vogavt on July 19, 2012, 04:00:06 PM
Okay, I've managed to bet a pulse from the setup shown in the attachment.. well sorta....

Looking at the dotted burgundy colored line at the top: when I have an 5v LED and a 1K Ohm resistor inline I can visually confirm that the LED pulses when a reflective portion of something passes by. However the LED on the c11 board does not. So I thought maybe the LED and Resistor are pulling too much current and removed it. (as shown in the orange line). Still no LED lighting up on the c11 board.

I tried using low and high settings in Mach3 but didn't get anywhere there. (both with the extra items inline and without).

Should I put a pull-up or pull-down resistor between the Pin 12 and its neighboring 5V terminal?
Title: Re: index sensor help please
Post by: Overloaded on July 19, 2012, 04:12:40 PM
Welcome to the sidewalk ... it gets lonley here.

From previous experience with CNC4PC boards, the creamation of one pin can affect neighboring ones.
You might try it on a pin that is most assuredly working properly ... if there are any.

Russ
Title: Re: index sensor help please
Post by: Vogavt on July 20, 2012, 08:34:42 AM
Pin 12 is working with a Proxy Switch. Just can't get it to work with the optical one.