Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: thedoctor on October 02, 2009, 07:38:45 PM
-
I have tried all kinds of methods to get a knob on the front of my panel to set feedrate manually. An arcade control (A-pac) with a pot is the only one I have gotten to work to date. I would like to just use an encoder/MPG to input through two parport inputs and do its thing. I got the encoder changing the MPG#1 DRO but that is as far as I have gotten. How do I get Mach to take this input and apply it to the feedrate? Simply. For dummies. Like me.
-
Just an ideia. If you have the keybord at and, you can assign a key to do feedrate+ and feedrate-. For example in my system, I use the 'S' key to start a cycle, so I belive that you can also do like this to feedrate+ and -.
I never did it, but I believe it works.
Filipe
-
You could set up 2 OEMTriggers, 1 for the A channel and 1 for the B channel, then you have to write 2 macros 1 for each trigger to run, in the macros is a bit of code to increment or decrement the feed rate.
Graham
-
You guys give me WAY more credit than I deserve! Dummies are people who are intimidated by such terms as scancodes, hotkeys, keycodes, oem triggers, oemcode, modbus, triggers, macros, brains, etc. I am talking MAJOR dummy! Also, I am rather unlucky. If there is a bad plugin or a misprint in an instruction sheet, I am the one who will use it or follow it. I know, this really doesn't inspire confidence in anyone kind enough to assist me. However, I am persistent and appreciative! And dumb.
-
Just curious why you want to use an encoder rather than using a pot? To me a pot is the ideal thing to use and is what all the industrial machines use.
Hood
-
^^ and they're much cheaper ;)
-
Well, a pot requires some kind of A/D conversion to input it to Mach. Then what do you do with it? Encoders, contrary to popular belief, are cheaper than quality pots. A good Clarostat or Bourns costs me about $9.00. A CTS 2-bit encoder costs me $3.20 and no A/D conversion needed. If there is a simple way to do the A/D conversion like I was doing with that A-pac, a pot and Keygrabber, I am willing to try it. Keygrabber is one thing that works for me, most of the time. Also, does anyone know the keystroke for "reverse run"? There may not be one.
-
No keystroke set up for Reverse Run but you can easily add one of your choosing by editing the screen with screen4.
Hood
-
Yeah, Hood, I'll bet I could get a lot of stuff I want done if I would get used to changing things in Screen 4. I don't know why I don't just set aside the time to learn a bunch more of the options available. I am an old panel builder and I guess that makes me want to fix everything with another relay or a stacked switch. I can just barely program a simple PLC. Everything else I have tried with Mach, including the Galil plugin and J-code, has made sense and has worked for me. I tried EMC2 for a while but the lack of documentation frustrated me to no end. It ran a good, tight closed-loop with PWM output to DC servos. What more can you ask of a group with a penguin fetish? Do I put in a LOL now?
-
What I am not understanding is you said you had the pot working fine, so why change to an encoder.
I use the PoKeys on the mill to provide the analogue input and on the lathe and the new Mill I will be using analogue inputs on the PLC's. I just wrote a Brain to look at the input and it writes to the FRO DRO.
Hood
Hood
-
Well, is is the simplicity of the thing. Digital input from a digital device. The A-pac required DC power, mounting, shielding and the use of Keygrabber. The encoder goes directly to the input section of the BOB or straight to the parport. I tried your brain and got errors (9991 I think) and the Pokey plugin I downloaded was defective. Since then, I have deleted all unused plugins and redownloaded the Pokeys plugin. I need to try your brain again because the Pokey would consolidate my inputs. providing I can get the Pokeys config to do the stuff I want. I like the concept of Brains because they are always there running in the background and they seem pretty fast. Now if I can get MY brain to agree!
-
Ok seems a few have had that error, if you rename the Brain it should work fine, just have a single word name, no spaces or that can give an error.
Hood
-
I have tried all kinds of methods to get a knob on the front of my panel to set feedrate manually. An arcade control (A-pac) with a pot is the only one I have gotten to work to date. I would like to just use an encoder/MPG to input through two parport inputs and do its thing. I got the encoder changing the MPG#1 DRO but that is as far as I have gotten. How do I get Mach to take this input and apply it to the feedrate? Simply. For dummies. Like me.
I have the same problem here. I have a CNC lathe and I want to add a pot or encoder for JOG/Rapid feed override. Anyone know a easyway to do that?
-
Using a PoKeys is about the cheapest option I think.
Hood
-
Using a PoKeys is about the cheapest option I think.
Hood
Just to be sure, I have a some questions:
Can I use a pot to control rapid feedrate? ( 0 to maximum)
Can I use a second pot to control feedrate overide? ( 0 to 200% programmed feed)
Can I use a third pot to control spindle RPM? ( 0 to 120% programmed RPM)
The plug-in do this or I need to use a external script?
Thank you
-
Using a PoKeys is about the cheapest option I think.
Hood
Just to be sure, I have a some questions:
Can I use a pot to control rapid feedrate? ( 0 to maximum)
Can I use a second pot to control feedrate overide? ( 0 to 200% programmed feed)
Can I use a third pot to control spindle RPM? ( 0 to 120% programmed RPM)
The plug-in do this or I need to use a external script?
Thank you
Yes you can do all three or you could link the Rapid to FRO and it would work with the FRO pot.
The easiest way is to do it via a Brain, easy enough to do :)
Hood
-
Well, I finally got all mine done with a LOGITECH joypad that I took apart and wired into a REAL joystick and some quality pots. The USB connection works well through Keygrabber but two of the pots wake up in a new world every time I restart the machine. I have to run them all the way up and all the way down before they will linearize. Not a small task with 5 and 10 turn pots. I wish they were digital but maybe next time.