Quote from CNCnutz on March 26, 2020, 12:42 am
@deese
I should mention that I wasn't suggesting that the voltage was the cause of the issue. I mentioned it to illustrate that the MPG was a different unit from the one Masso supplies
The fact that you are seeing the A & B inputs changing probably means that they are working but maybe they don't output the correct sequence.
Another user having the same issue with a third party said they solved their issue by changing the MPG from an NPN unit to a PNP. What the difference is I don't know. Maybe you will be able to tell me because my research to date has turned up nothing. I don't know if this is your problem or not or even if that is the reason.
https://www.masso.com.au/forums/topic/pendant-issue/?part=1
Cheers Peter
So to my knowledge there are three basic types of encoders.
Open collector NPN this type pulls the input to 0 volts. So if your controller maintained vcc,or 5v,or 12v whatever on a circuit and wanted that circuit pulled to 0 volt to operate it thats what you want.
This type is also called pullup in some units because they use a resistor to pullup the collector(the a,b inputs) to vcc,5v,12v whatever. So when you turn the encoder you get a sq wave from 0v to Vcc.
Problem with this type is the pullup resistor has to be high value to keep current draw low on the NPN transistor when it pulls the signal to 0V, so when you try to use this type with any length of cable
the resistance has to push voltage into the cable passively,and the npn pulls it down actively so you get a really ugly signal on any cable with any parasitic capacitance,and inductance, which is every cable on earth.
Next
Push Pull Type has a totem pole arrangement of pnp,and npn transistors. The input(a,b) is connected at the center so that the pnp pushes voltage into the line,and the npn pulls the voltage down.
So with this type you have active pushing,and pulling of the voltage in the line and it will give a good signal through a cable. Albeit some overshoot on the leading edge of the sq wave,which also come through as artifacts
in your sq wave at the overlap of the a,and b signals. The more parasitics on the cable the worse the artifacts,and overshoot.
Next
Continuation of the push pull is the differential line driver type. Thats where your A,B,-A,-B, come in to play The a,b are the same as push pull signal starts at 0v and is driven to Vcc, in the differential side -a,-b starts
at Vcc and is pulled to 0V so if your controller will accept the differential signals it is supposed to be more reliable.
So my MPG uses a differential line driver type encoder,which I am using the A,B, signals which switch from 0V to Vcc. I am not using the inverted inputs per the masso documentation.
I have connected my mpg to 12 volts this morning,on the bench and tested it. It is perfect,as it was with 5 volts also.
I installed it into my control cabinet,and it behaves exactly as it has the last half a dozen times,no movement in neg direction,only moves positive if you jog it one click at a time or very slow.
I have taken the oscilloscope out to the shop floor and probed the signals at the db15 port on masso,and I have a perfect 12v square wave A,B quadrature signal on pins 3,an 4. With the mpg connected and turning.
With the MPG disconnected.
I have installed a db15 cable and a breakout card so that I could test the inputs of the db15 port. Measured from the db15 body-Ve, pin 1 is controller voltage 24vdc,all other pins are at 0Volts .
I have to assume this is what it should be.
In that other post there was talk about the opto couplers being damaged, arent they socketed in the masso? That would be worth while to swap out I think. I have some dip6 optos that are pretty standard.
I dont know what the masso uses but I could pull the cover off and check.