Machsupport Forum

Third party software and hardware support forums. => PoKeys => Topic started by: giannis121 on March 26, 2011, 09:15:44 AM

Title: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on March 26, 2011, 09:15:44 AM
I use an external potensiometer with pokeys, to control the Feed Rate DRO (0-200%).

I have made a brain that reads the 10bit value and multiplies by 0.1954 (to give 0-1024 = 0-200%).
The pot works very good. (No delay - as i have read to other topics.)

My problem is when i run Mach for first time and i hit reset button,
allthough the pot can be at any position, the DRO goes to 100%.

The value is not beeing refreshed, unless i move the pot.
So the Feed Rate DRO has a wrong value.

How can i move it to the true value?
Seems like the brain does not work when the value is the same...(???) (i dont know)

How can this be solved?
Have you faced it before?

Any ideas would help...

KInd regards,
Giannis
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: thosj on March 26, 2011, 10:14:33 AM
Take a look at mine and compare, mine works fine and if the pot is at, say 50% when Mach3 starts, that's what it shows. Mine does delay a bit, but I just thought it was Mach, not sure it has anything to do with the brain or not.

Tom
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on March 26, 2011, 10:28:38 AM
Its does the same thing!
(When i hit reset button to enable, goes to 100%)

Maybe it has to do with any configuration in Mach?

Title: Re: Pokeys analog input & Feed Rate DRO
Post by: thosj on March 26, 2011, 11:08:52 AM
Hmmm......I don't know. I just fired up my mill, had the FRO pot at approx. 3/4 range. When Mach started it said 72%. Hit Reset, it was still 72%.

When you tried my brain, you disabled yours, right? And be sure mine has the same PoKeys ModIO setting as yours. Mine is on Pokeys Pin 45, ModIO 126.

Here's how it works in Mach

Pokeys and Analog Pots

Pokeys pins 43 - 46 map to ModIO 124 - 127

Pin 43 = 124
Pin 44 = 125
Pin 45 = 126
Pin 46 = 127

I don't think any other config in Mach other than the brain.
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on March 26, 2011, 11:44:20 AM
Yes of course i made these changes and also bypassed your LED.
Giannis
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: thosj on March 26, 2011, 11:53:00 AM
I'm not much of a brain expert, but try it with the LED. The Led is just set, then used to RESET FRO, so maybe that's it.

You could post yours here and I'll see what it does on my machine. Or, if Hood shows up, he may have some insight, he's the guy who originally wrote the brain I use.
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on March 26, 2011, 12:35:33 PM
I just checked. (Thank you sharing the brain!)

The use of the LED, locks the value to 100%. (The pot cannot be used.)
Also the Reset FRO sets the Feed Override to 100%.

So, also with LED its the same reaction.

Maybe Reset button resets also the FeedRate Override.

Still looking for the answer...

Title: Re: Pokeys analog input & Feed Rate DRO
Post by: thosj on March 26, 2011, 05:25:43 PM
So....the first 3 lines of my brain just reset to 100% when it's about 3% either side, so it's not floating around near 100%, flickering the LED in Mach. You could delete those 3 lines of the brain and the last two lines should do the FRO thing at 150%. It doesn't do that for you? You could change the formula to a/5.12 to get 200%. If those don't work, I have no idea. Works for me just the way it's written, FRO starts up at whatever the pot is set to, lives thru RESET, and moves to whatever the pot sets it to, and it jumps to 100% when it's around 100% +/- approx. 3%.

Again, the offer stands, upload your brain and I'll see if it works here, and take a look at it, for what it's worth. Can't hurt!
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on March 27, 2011, 05:12:52 AM
Ok, the problem was found!
I went to Config-->General Config--> FeedOverRide Persist should be checked!

Thank you very much for your time and for the brain also (witch i will use - i like the "near 100%" method)

Kindest regard,
Giannis
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: progress on September 04, 2014, 05:23:12 PM
hello,

I have tryied to use your brain, but i need a feedoverride of 300% and i don't know how the formula works... How you can set the formula a/3.6 for 150% and 5.12 for 200%?

someone can explain me how this formula work?

thanks
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: cncalex on September 04, 2014, 06:13:54 PM
Hi,
when you use the current plugin you doent need a brain. Easy to setup.
Whitch kind of Pokeys do you use? 55 or 56 ?
Alex

Title: Re: Pokeys analog input & Feed Rate DRO
Post by: progress on September 04, 2014, 06:42:18 PM
I use the 56U model

I've set the analog input in the config of mach3 and set the gain at 300% and it work well, but I have the same problem of led red blinking when I try to set it at 100%.
I've read about this brain to reset the feed override to 100% when the value is between 98% and 102% but it don't work.

What I can do?
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: giannis121 on September 05, 2014, 03:30:30 AM
Forget about the brain and under Mach3 go to Plugin control -> Pokeys Plugin.
Play with the Gain and the DROs you want (DRO 3 and 821 i think).
On your hardware make a jumper between 2 analog inputs. So you will map one input at DRO 3 and one at 821.
I hope it helps...
Giannis
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: progress on September 05, 2014, 05:58:43 AM
why i need 2 analog inputs?

I have read here about a brain to set 100% when the control is between 98 and 102
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: cncalex on September 05, 2014, 10:22:02 PM
I tried to get it with a brain with no success. Look like it will not work with a brain.
Anyway, it will using the macropump.
No guarantee at all and at your own risk!
Map the analog input to a userdro instead of dro 821 ( FRO)
I used DRO1998.
check " use macropump " in general config.
content of macropump:

a = GetOemDro(1998)
If GetOemDro(1998) < 97 Or GetOemDro(1998) > 103 then
SetOemDro(821,a)
else
SetOemDro(821,100)
End If
If GetOemDro(1998) < 3  then
SetOemDro(821,0)
End If
End

Alex
Title: Re: Pokeys analog input & Feed Rate DRO
Post by: cncalex on September 05, 2014, 11:53:51 PM
looks like this brain is working.  ;D
Alex