Hello Guest it is June 03, 2025, 04:49:52 AM

Author Topic: Mach4 ESS Spindle Encoder Configuration  (Read 13816 times)

0 Members and 1 Guest are viewing this topic.

Mach4 ESS Spindle Encoder Configuration
« on: August 13, 2024, 01:42:05 PM »
Hello,
I could use some help/advice on getting my spindle encoder set up to display spindle speed and ultimately to use for threading.

I have an Omron E6B2-CWZ1X encoder.
it is connected to a CNC4PC C10 BOB.  Output A is on Pin 2, Output B is on Pin 4 and Output Z is on Pin 6
The BOB is connected to a Warp9 ESS Smoothstepper.
I have attached a document showing the Pin assignments in the ESS Plugin and under Configuration -> Control
I looked in Diagnostics and I don't see any change when I spin the encoder.

Any advice on my setup, and also on how to troubleshoot will be greatly appreciated.

For the record, I am not a machinist, an electrician, or well versed in electronics, so please use layman's terms with me.  Sorry for my ignorance, but I am a hobbyist trying to use a lathe to turn and thread simple parts

Offline Rimmel

*
  •  284 284
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #1 on: August 15, 2024, 08:55:32 AM »
post pics of the spindle tab in ess and spindle pin assignments. I cant open docs
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #2 on: August 15, 2024, 11:27:14 AM »
It looks like it is setup correctly. 
Check the wiring to your BOB and get the signals to read on your diagnostics.
Chad Byrd
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #3 on: August 15, 2024, 01:10:30 PM »
I can't figure out how to insert/post an image.  When I click on Insert Image I just get the {img} tags but I can't copy and paste an image in between those tags.

The document is a Microsoft Word document.  I hope that helps you Rimmel.
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #4 on: August 15, 2024, 01:11:40 PM »
Weird... but just take a screen shot. (Press "Print Screen")  then paste it into paint.  Then save that as a .jpg.  Then you can post it here.
Chad Byrd
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #5 on: August 15, 2024, 02:12:47 PM »
No luck on posting the image.  I've tried everything.

But, in other news, I am not getting signals in ESS Diagnostics from all three pins when I spin the encoder.  Yay!  I think my DB9 connector came loose without me noticing.

But....  the RPM is all over the place.  Jumps up and down, says 6000 revs when it's really spinning at about 120.  I read somewhere that electrical noise can cause that.  I am using an 8 conductor shielded cable, 2 conductors each for A, B and Z + and -.  The shield is connected to a pin on a DB9 connector, but honestly I don't know what I should connect the shield to.  Like I said, I'm clueless on this kind of stuff (kind of surprised I've made it this far).  So does it get connected to mains ground, the ground for the 5v power supply, the ground on the BOB and if so I think the C10 BOB has grounds for each pin and an isolated ground also, just going off menory.
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #6 on: August 15, 2024, 02:22:02 PM »
Connect it to earth. Whatever your machine ground is. And only connect it on one end of your cable.
I did notice your sampling is set to 1 second. Being that waaaayyy done.
Chad Byrd
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #7 on: August 15, 2024, 03:32:23 PM »
cbyrdtopper, you say " your sampling is set to 1 second. Being that waaaayyy done."
Did you mean 'bring that way down"?  should I be in the .01 sec or lower range?
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #8 on: August 15, 2024, 03:56:05 PM »
Yes.  That's what I meant to say.  That was probably sent from the phone and it autocorrected those words. 
I don't remember the speeds on the Smoothstepper.  Try 0.01 see what it does.  I don't remember what we had ours set to when we had the ESS.
Chad Byrd
Re: Mach4 ESS Spindle Encoder Configuration
« Reply #9 on: August 16, 2024, 08:20:04 AM »
Here are some thoughts on what you are trying to do:

- The C10 should be good for this, but make sure that the encoder signals go directly to inputs on the C10 and that the signals are not shared with anything else.
- The C10 handles the inputs using the pull-down option.
- The C72 is a very good option as it can buffer the signals: https://cnc4pc.com/c72-differential-line-driver.html

Arturo Duncan
https://cnc4pc.com