Mechanical encoder with BCD Output for 7i73 source?

More
6 years 3 months ago #174816 by Schneckerich_63
Hy folks
i did not find a supplier for a mechanical encoder with bcd output and a shaft for fixing it in the housing of my 7i73 based
operating paneel. This is needed for switching from one axis to the next and another one changes the resolution of toggling.

Would be nice if anyone coud give me an information.

Bye

Schneckerich_63

Please Log in to join the conversation.

More
6 years 3 months ago #174858 by Aciera
I'm not sure what you mean by

another one changes the resolution of toggling


You mean something like this?

uk.rs-online.com/web/p/rotary-switches/7392915/

Another idea might be to use the 7I73 analog inputs with a rotary switch and different resistor values. That would require a bit of HAL programming but you would only need two of the analog inputs.

Please Log in to join the conversation.

More
6 years 3 months ago #174861 by PCW
Another option (if you can spare the input pins) is just to use a standard rotary
switch and make a linear select multiplexor in hal:

loadrt tristate_float count=4
addf tristate_float.0 servo thread
addf tristate_float.1 servo thread
addf tristate_float.2 servo thread
addf tristate_float.3 servo thread

setp tristate_float.0.in 0.001
setp tristate_float.1.in 0.01
setp tristate_float.2.in 0.10
setp tristate_float.3.in 1.00

net jog-increment tristate_float.0.out tristate_float.1.out
net jog-increment tristate_float.2.out tristate_float.3.out
net t jog-increment axis.x.jog-scale axis.y.jog-scale axis.z.jog-scale

net tristate_float.0.enable hm2_[card].0.7i73.n.m.input-01.not
net tristate_float.0.enable hm2_[card].0.7i73.n.m.input-02.not
net tristate_float.0.enable hm2_[card].0.7i73.n.m.input-03.not
net tristate_float.0.enable hm2_[card].0.7i73.n.m.input-04.not

( using the -not pins assumes using 7i73 input pins with pullups and grounding
the pins with a rotary switch )

Please Log in to join the conversation.

Time to create page: 0.780 seconds
Powered by Kunena Forum