Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: kdoney on July 17, 2009, 07:38:07 PM
-
I went into ports and pins and tried every combination of high, low, port on pin 11, my encoder input pin and machturn will not see it. It shows up on the scope at all speeds. Calculated correctly at 1 rpm. I used the automatic setup of input but still no luck.
Any ideas?
-
Are you using a breakout board?
Daniel
-
If this is the Index pulse from an encoder and you are using the Parallel port then it is unlikely to work as the pulse will be too short for the Parallel Port to see properly.
Hood
-
Yes, I am using the pmdx 132.
-
Hood raised a good point. If you're using an encoder then the pulse is too sort for the parallel port to be seen.
If it's not the case then I would check the PMDX input.
Daniel
-
I guess I can build a longer signal triggered by the real one. I don't see how that is going to help synchronize with the spindle speed though. If I increase the signal length that will limit my speed to whatever length I increase it to / what ever rpm the spindle is moving.
???
-
You are not quite correct. Mach3 needs the index pulse to be at least 200 microseconds to reliably read it. That means that your speed can be as high as about 150,000RPM as far as Mach3 is concerned (considering that it takes 200 microseconds for the pulse high state and the same amount of time for the pulse low state).
The simplest way to go, and one that I used before I had a servo on my spindle and SS to read the encoder index, is to build a simple circuit based on the 555 IC. You can calculate the resistors you need to get a pulse width just above 200 microseconds. It had worked perfectly for me.
Daniel
-
Thanks all! :)