Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: CNC-AL on February 02, 2013, 07:03:27 AM

Title: Control feedrate with rotary encoder switch.
Post by: CNC-AL on February 02, 2013, 07:03:27 AM
Hi Everyone,

Ive seen these 20ppr greyscale rotary encoder switches on Ebay.
10 for about $6.
I was just thinking maybe they would make a good feedrate overide control.
Has anyone done this?
Would be great to hear if it worked well or not.

Cheers Allan.

http://www.ebay.com.au/itm/10-Pcs-12mm-Rotary-Encoder-Switches-Dia-6mm-360-Degree-New-/290813008576?pt=AU_B_I_Electrical_Test_Equipment&hash=item43b5ce5ac0
Title: Re: Control feedrate with rotary encoder switch.
Post by: Hood on February 02, 2013, 09:32:32 AM
Do you have a means of getting the values into Mach?
Hood
Title: Re: Control feedrate with rotary encoder switch.
Post by: CNC-AL on February 02, 2013, 10:42:02 AM

I was thinking maybe use mpg #2 input and then write a brain to control the feed override.
What do you think?

Cheers Allan.
Title: Re: Control feedrate with rotary encoder switch.
Post by: Hood on February 02, 2013, 02:27:22 PM
Yes that should work.
Hood
Title: Re: Control feedrate with rotary encoder switch.
Post by: CNC-AL on February 02, 2013, 03:23:22 PM
Just did a little brain and it works fine. ;D

Cheers Allan.


Title: Re: Control feedrate with rotary encoder switch.
Post by: BR549 on February 02, 2013, 04:50:39 PM
You can do the spindle override the same way. Saves having to use a analog conversion board.

(;-) TP
Title: Re: Control feedrate with rotary encoder switch.
Post by: Cbyrdtopper on March 31, 2015, 12:04:27 PM
How did you write your brain to control the feedrate with this encoder switch?
Title: Re: Control feedrate with rotary encoder switch.
Post by: BR549 on March 31, 2015, 06:09:28 PM
Try this I just changed his example brain to control the SSO instead of the FRO.
Title: Re: Control feedrate with rotary encoder switch.
Post by: Cbyrdtopper on March 31, 2015, 07:14:51 PM
Awesome!  I'll give it a try tomorrow! Thanks!
Chad
Title: Re: Control feedrate with rotary encoder switch.
Post by: Cbyrdtopper on April 01, 2015, 09:08:44 AM
I don't have my encoder switches in yet, I just hooked in an MPG to test this.  With the MPG it goes from 100% down To 0% and moves from 0 - 1 % but doesn't do anything else.  It does this with the SSO and the FRO.  Do I need to have my calibration set differently and/or do I need to wait for those encoder switches to get here.  I have the calibration set to 1.000 Count and velocity to 100.00