Hello Guest it is March 28, 2024, 08:42:40 PM

Author Topic: Pulse on scope but not being seen by machturn  (Read 4684 times)

0 Members and 1 Guest are viewing this topic.

Pulse on scope but not being seen by machturn
« 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?

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Pulse on scope but not being seen by machturn
« Reply #1 on: July 18, 2009, 12:58:15 AM »
Are you using a breakout board?

Daniel

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Pulse on scope but not being seen by machturn
« Reply #2 on: July 18, 2009, 03:03:16 AM »
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
Re: Pulse on scope but not being seen by machturn
« Reply #3 on: July 18, 2009, 10:51:59 AM »
Yes, I am using the pmdx 132.

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Pulse on scope but not being seen by machturn
« Reply #4 on: July 18, 2009, 12:54:03 PM »
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
Re: Pulse on scope but not being seen by machturn
« Reply #5 on: July 18, 2009, 01:21:18 PM »
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.

 ???

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Pulse on scope but not being seen by machturn
« Reply #6 on: July 18, 2009, 01:38:30 PM »
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
Re: Pulse on scope but not being seen by machturn
« Reply #7 on: July 18, 2009, 01:43:25 PM »
Thanks all! :)