Page 1 of 1

encoder

Posted: Mon Sep 20, 2021 1:14 pm
by beerexalan
Lathe : Techno-Isel
encoder: omron e6b2-cwz1x
Controller: Acorn

Chanel b flatlines when connected to Acorn.

Encoder works when not connected to machine.

What is the next step to resolve this problem?

Re: encoder

Posted: Mon Sep 20, 2021 3:18 pm
by martyscncgarage
beerexalan wrote: Mon Sep 20, 2021 1:14 pm Lathe : Techno-Isel
encoder: omron e6b2-cwz1x
Controller: Acorn

Chanel b flatlines when connected to Acorn.

Encoder works when not connected to machine.

What is the next step to resolve this problem?
Assume this is the cheap ebay knock off of a GENUINE Omron encoder?
Provide us the color code of the encoder wires to which pin you connected the wires to.
Post a picture of your wiring to the DB9 connector.

Don't assume your encoder is good....how do you know it works when not connected to the machine? How do you test? Post video clip or photo.
I do not personally use the cheap ebay knock offs of the Omron encoder. Spend the money and buy a decent one from Automationdirect.com

BUT lets look at how you have it wired and connected first.
Have you gone into the PID screen F1 Setup / F3 Config / F4 PID / F3 Encoder
To watch the encoder counting up and down as you turn it?
Do you see the asterisk flash next to Axis 5?


Marty

Re: encoder

Posted: Mon Sep 20, 2021 4:20 pm
by beerexalan
This gets difficult for me.

Tested with scope when powered by a battery. All outputs work.
Checked with scope when connected to machine. Acorn channel b and -b was flatlined. Channel a and -a worked.
Swapped channel a and b. Checked with scope and Acorn b and -b flatlined.

When I had the encoder that came with the machine I get erratic counts on channel b. Channel b was flatlining off and on. That encoder is from Austria. I can find little information in that encoder but appears to be a dynapar. I was blaming it on encoder then.

Re: encoder

Posted: Mon Sep 20, 2021 6:34 pm
by cncsnw
It is hard to tell from looking at your picture, but:
1) it appears you have one of your battery leads, and the blue wire from the encoder, on pin 4
2) it appears you have some wire from the encoder on pin 1

Both of those things would be wrong, unless the printing on your board for pins 1-5 is backwards.

Pin-out for a DE9 encoder plug on a Centroid control is as follows:
pin 1: no connection
pin 2: 0VDC, also known as COM or GND
pin 3: channel /Z, or Z-
pin 4: channel /A, or A-
pin 5: channel /B, or B-
pin 6: channel Z, or Z+
pin 7: channel A, or A+
pin 8: channel B, or B+
pin 9: +5VDC, also known as Vcc

Re: encoder

Posted: Mon Sep 20, 2021 7:57 pm
by beerexalan
The wiring is not wrong. The battery is connected to pin 2 and 0v and common and pin 9 and vcc and +.

Pin 1 is nc. The screw is even loose.
pinout is:
1 || shield
2 || 6
3 || 7
4 || 8
5 || 9
connector end

As pictured on the setup the encoder functions correct. It only fails when connected to the Acorn.
brown is vcc
blue is gnd
white is B
black is A
orange is Z
not has red stripe on wire.
only pins 4 and 7 flatline when connected.

So am backwards calling it b then it is a.
I have swapped a and b from the encoder and the result is the same. The Acorn does not care about that as long signals are 90 degrees out of phase to each other.

I appears the board is loading the channel pulling too much current and not allowing the switching to occur.

Re: encoder

Posted: Mon Sep 20, 2021 9:20 pm
by tblough
What i see is pin 1 white, pin 2 black, pin 3 orange, pin 4 blue and black battery, and pin 5 is not connected. Cant read the numbers on the right side in the photo.

Definitely wired wrong.

Re: encoder

Posted: Mon Sep 20, 2021 9:24 pm
by martyscncgarage
The numbers next to the terminals correspond to the pin number in the connector.

I agree, it does not look like it's wired correctly.

Re: encoder

Posted: Tue Sep 21, 2021 2:30 am
by beerexalan
:oops: Yep wired wrong.
Output that did not work was wired to ground. Scope showed good signals on other outputs. ???
Can't wait to see how it works.
The machine seems to like it.

Thanks
Rex