Rotary encoder for feed/spindel override wiring Meas 7i77

More
27 Dec 2023 17:02 #289184 by CNCDoc
Has two rotary encoders. Which I intended to use as a feed/spindle override. Can I use encoder input 3/4?


 
Attachments:

Please Log in or Create an account to join the conversation.

More
27 Dec 2023 17:40 #289188 by PCW
Does that device have a quadrature output?
It's not clear from the markings.

Please Log in or Create an account to join the conversation.

More
27 Dec 2023 17:46 #289189 by CNCDoc
Yes it is quadrature. 

Please Log in or Create an account to join the conversation.

More
27 Dec 2023 17:53 #289190 by PCW
Probably best connected to the 7I77 MPG inputs  if you want 1X mode
but will work on regular encoder inputs if it has 5V signals

Please Log in or Create an account to join the conversation.

More
27 Dec 2023 18:11 #289193 by CNCDoc
I have one MPG connected.  Are there 3 "MPG" inputs?

Please Log in or Create an account to join the conversation.

More
27 Dec 2023 19:00 #289199 by PCW
No, there are only inputs for two MPGs on the 7I77 field I/O pins

Please Log in or Create an account to join the conversation.

More
28 Dec 2023 06:45 #289232 by CNCDoc
Is it much more complicated to use the encorder inputs?
Where can I find some example of hal config?

Please Log in or Create an account to join the conversation.

More
28 Dec 2023 16:08 #289259 by PCW
No, basically it just means you change the source of the jog count in the hal file.
it does mean you do not have the 1X mode so you will not get one increment
per detent.

Have you considered using  a potentiometer instead for the override?
(this has advantages and disadvantages because of it absolute position nature)

Please Log in or Create an account to join the conversation.

More
28 Dec 2023 19:20 #289275 by tommylight

Have you considered using  a potentiometer instead for the override?
(this has advantages and disadvantages because of it absolute position nature)

I always prefer this for overrides, easy to set just by looking at it.

Please Log in or Create an account to join the conversation.

More
31 Dec 2023 08:01 #289416 by CNCDoc
Got it working with the following code.
Used "ENC1" and Encorder.3.
Also moved the jumper to "Signal ended encoder" on the Mesa 7i77.

# connect feed overide increments - encoder


net fo-count     <=  hm2_7i92.0.encoder.03.count

# connect feed overide increments - encoder

    setp halui.feed-override.direct-value false
    setp halui.feed-override.scale .01
    setp halui.feed-override.count-enable true
net fo-count            =>  halui.feed-override.counts


# ---spindle override signals to mesa encoder - enc---

net so-count     <=  hm2_7i92.0.7i77.0.0.enc1.count

# connect spindle overide increments - enc

    setp halui.spindle-override.direct-value false
    setp halui.spindle-override.scale .01
    setp halui.spindle-override.count-enable true
net so-count              =>  halui.spindle-override.counts


 

Please Log in or Create an account to join the conversation.

Time to create page: 0.135 seconds
Powered by Kunena Forum