Here is info i have found so far on pendant.
Here is info i have found so far on pendant.
It looks like i might have to bypass the circuit board inside. Been trying to trace wires from switches to pins and the axis selector has a couple axis on each wire/pin? Is this what the pdf on pendant means when it says it is digital? Are they doing this by resistance?
My MPG selectors did not have a separate pin for every axis. For example they used something like pin 10 for X, pin 11 for Y and both pin 10 and 11 on at the same time for Z. And they did the same thing for the speed selector. Yours could be more complicated then this but I thought id mention it.
I agree. I think the "encoder board" is converting a bunch of mutually exclusive selections into a binary code to save IO pins. A 4 bit binary code can have 16 unique states so the 6 axis selections plus a few others are encoded into a 4 bit code. I didn't see the pinout coming out of the cable after the encoding.
Based on your model number is seems you have the 24V encoder. That might be a problem. You might need to use resistor dividers to get the voltage down to 3.3V or less.
Regards
TK
http://dynomotion.com
Would the voltage divider go on both A and B outputs?
Also here is a picture of pendant encoder board.
Hi Troy,
Yes. But you would need to determine what type of outputs they are. ie open collector or source 24V or something else.Would the voltage divider go on both A and B outputs?
It should be easy to use the encoded value. Just change the part of the MPG C Program that selects the Axis by looking for specific individual Inputs to instead check for a pattern of inputs.Thats what i was getting. Did you find a way to use it as is or just bypass the encoder board?
Regards
TK
http://dynomotion.com
Yes as Tom said its farily easy, just tell your mpg program to look for the exact combination of inputs being on and off for each axis. Heres the code for mine as an example:
if (ReadBit(1024) && !ReadBit(1025)) // is x selected?
{
Axis=0;
Factor = Factor * -1219.2;
}
else if (!ReadBit(1024) && ReadBit(1025)) // is y selected?
{
Axis=1;
Factor = Factor * -1219.2;
}
else if (ReadBit(1024) && ReadBit(1025)) // is z selected?
{
Axis=2;
Factor = Factor * -1524.0;
}
Also FWIW, mine did not have a circuit board. The rotary switch output was this way. I think this is fairly common, there was a 6 position rotary switch in my old controller that i considered using for something and that only had like 3 outputs i think. Great way to save some wires and inputs. Good luck with it.
Hi Troy,
Its going to be difficult if you don't have specifications on what you have and how it is supposed to work. But yes you should test it before connecting it to anything. Apply 24V or whatever you think it should have then check the outputs with a voltmeter or scope to see what they do. For example do they toggle between about 24V and 0V?Is there a way to check this? I have not found any info besides it is 24V with A/B channels.
Regards
TK
http://dynomotion.com
There is a chopper regulator and ATINY 2313V-10SU. The regulator can take 40v.
Tom,
Where should the A and B channels of a MPG be wired to when using KFLOP/Kanalog/Konnect? I have found examples of wiring them to KFLOP single ended inputs but not to Kanalog.
Troy
Is this because the signals from A and B are already LVTTL?
Im not really an expert on the fine details, but you almost cant go wrong with the optical inputs. They handle a wide range of voltages and are isolated. Thats what i used and it works fine. You cant use the encoder inputs on top because they are differential and your mpg is single ended.