Encoder switch for feed & spindle overrides

More
10 Nov 2013 06:35 #40694 by microsprintbuilder
Has anyone used encoder switches for aux panel feed and spindle overrides with a mesa 5i25/7i77?
this is a link to the switches

www.ebay.com/itm/350622238259?ru=http%3A...622238259%26_rdc%3D1


I have hooked them up to the encoder inputs on the 7i77 and switched the jumpers to single ended. I get no signal at all.

I have 5v to pin 2
channel A+ to pin 1
channel B+ to pin 3

the other two pins are a switch I'm using to enable the override. They work.

This is what I have in my hal

# ---feed override signals to mesa encoder - mpg---


# --- FO-ENABLE ---
net fo-enable <= hm2_5i25.0.7i77.0.0.input-30

# --- SO-ENABLE ---
net so-enable <= hm2_5i25.0.7i77.0.0.input-31




net fo-count <= hm2_5i25.0.encoder.03.count
setp hm2_5i25.0.encoder.03.filter true
setp hm2_5i25.0.encoder.03.counter-mode true

# connect feed overide increments - MPG

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

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

net so-count <= hm2_5i25.0.encoder.04.count
setp hm2_5i25.0.encoder.04.filter true
setp hm2_5i25.0.encoder.04.counter-mode true

# connect spindle overide increments - MPG

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

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

More
10 Nov 2013 07:19 - 10 Nov 2013 07:20 #40695 by PCW
The 7I77 encoder inputs have pullups so you would have to connect the
switch common to ground for this to work, but note: counter mode is a count/dir counter mode, not a X1 encoder mode so if you dither between two counts it will continue to count in one direction.

For this reason I would suggest not using the high speed encoder inputs, but rather the MPG inputs on the 7I77 (which default to 1X encoder mode) These inputs are active high so will work with 5V common on the switch
Last edit: 10 Nov 2013 07:20 by PCW.

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

More
10 Nov 2013 10:04 #40697 by andypugh

Has anyone used encoder switches for aux panel feed and spindle overrides with a mesa 5i25/7i77?


I am using similar switches on my machine. However, as my machine uses resolvers not encoders, I ended up using software encoder counters and the handwheel actually runs from GPIO in the servo thread. It works fine.

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

More
10 Nov 2013 22:54 #40703 by microsprintbuilder
My board I/O are full except for the encoder inputs. That was my reason for going this rout. I'll try the common to ground and see what happens.
Thanks!

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

More
11 Nov 2013 01:11 #40705 by microsprintbuilder
I changed pin 2 to from the 5 volts terminal to the ground terminal and changed the counter-mode true to false and it works perfect. Thanks for you help. I'm very pleased with this retro. The only thing I would like to see different is the implementation of line numbers so the G71 G72 lathe canned cycles could be put in. I know there are some subroutines made but when you run several machines, most with with a OEM control and then this one it would be nice if the code where all the same. Anyway Thanks to all of you for your help. I'm attaching my files. My machine is a Hardinge HXL. it has a four position auto tool changer , m codes for collet and tailstock. I'm buying another machine to do it all over again.

File Attachment:

File Name: HXL_2013-11-10.zip
File Size:69 KB
Attachments:

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

Time to create page: 0.267 seconds
Powered by Kunena Forum