Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Transformer on December 09, 2014, 11:38:30 PM

Title: Spindle speed on my lathe
Post by: Transformer on December 09, 2014, 11:38:30 PM
I am trying to get spindle speed to appear in the S True DRO in Mach3. For a sensor I am using an inductive proximity sensor which I think is type NPN (although I am not sure what that means).  With the controller I am using, the signal for this sensor goes into a Gecko board and then to pin 13 on the parallel port.  In Mach3, Pins and Ports, Input Signals, I have enabled Index, port #1, pin 13, and checked off active low.  Turning on the spindle and handholding the sensor I get no reading in Mach3, but the light is flashing at the base of the sensor indicating it is active.  The only thing I can think of is that no signal is getting through from the sensor but I am not sure how I would check this.

Of course it could be something different all togeather.

All suggestions, pointers and ideas appreciated.
Title: Re: Spindle speed on my lathe
Post by: Fastest1 on December 10, 2014, 09:28:27 AM
Are you getting spindle movement and the rpms arent showing on the DRO? Or no movement either?

Here is a little info on NPN & PNP transistors.https://www.google.com/search?q=npn+vs+pnp&biw=1366&bih=712&tbm=isch&imgil=0CiaTYo5u2l6NM%253A%253BDO8xC6Qu_HZkvM%253Bhttp%25253A%25252F%25252Fwww.theautomationstore.com%25252Fnpn-pnp-devices-and-connections%25252F&source=iu&pf=m&fir=0CiaTYo5u2l6NM%253A%252CDO8xC6Qu_HZkvM%252C_&usg=__IqDe8DoWKBadSZMWN6UXrc9v9oA%3D&ved=0CDQQyjc&ei=N1iIVK7DBMaeyATwyoLgBA#facrc=_&imgdii=_&imgrc=35xUOw89mmQf_M%253A%3Bz34ynTwUfJS8YM%3Bhttp%253A%252F%252Fsensortech.files.wordpress.com%252F2011%252F01%252Fsinking-and-sourcing.jpg%3Bhttp%253A%252F%252Fsensortech.wordpress.com%252F2011%252F01%252F18%252Findustrial-sensing-fundamentals-%2525E2%252580%252593-back-to-the-basics-npn-vs-pnp%252F%3B412%3B231

Damn, that was a long link! What happens on your diagnostic screen as you pass something thru the sensor? Does 1 of the LED's flicker?
Title: Re: Spindle speed on my lathe
Post by: Transformer on December 10, 2014, 05:22:12 PM
Well I had my VFD hooked up to my controller but I could get no movement on the spindle through Mach3, so I put everything back to manual control of the spindle through the VFD so I could just focus on spindle speed.

I checked the diagnostic screen, nothing flashes.  In port and pins, inputs, limit - if I leave unchecked the active low the index light in the diagnostic screen is on.  If I check active low the index light in the diagnostic screen does not come on.  However in both cases nothing in the diagnostic screen flashes with the spindle turning and the light at the base of the sensor flashing.

I also did this with a wizard running as I thought maybe the readout would not activate unless a program was running. Nothing.

Thanks for the google link.  I will see if there are any hints there I can use.  In the meantime all thoughts appreciated.

Dennis
Title: Re: Spindle speed on my lathe
Post by: Transformer on December 11, 2014, 12:31:40 AM
More of what I have tried.  In ports and pins, motor output, spindle, I enabled and set step pin to 1 and direction pin to 13.
Turned the spindle on at the VFD.  Still no read out at the S True DRO. When I click on the spindle button at the bottom of the screen the DRO counts down from a number I entered in the S DRO (which would not do anything as I am controlling the spindle speed from the VFD).

The spindle sensor I am using is putting out something.  Is there a way I can unplug the parallel port cable at the computer and see if a signal is coming in on pin 13?

I have tried all possible combinations of active low - emulated settings in ports and pins, input signals, limit that are possible.  So maybe no signal is getting through to the computer or the signal is of a type that is not recognizable.

Dennis