Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 06:52:39 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Third party software and hardware support forums.
| |-+  PoKeys (Moderator: NeoTO)
| | |-+  Pokeys analog input & Feed Rate DRO
Pages: 1   Go Down
Print
Author Topic: Pokeys analog input & Feed Rate DRO  (Read 996 times)
0 Members and 1 Guest are viewing this topic.
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« on: March 26, 2011, 08: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...(Huh) (i dont know)

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

Any ideas would help...

KInd regards,
Giannis
Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #1 on: March 26, 2011, 09: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

* FRO.brn (3.67 KB - downloaded 108 times.)
Logged
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« Reply #2 on: March 26, 2011, 09: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?

Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #3 on: March 26, 2011, 10: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.
Logged
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« Reply #4 on: March 26, 2011, 10:44:20 AM »

Yes of course i made these changes and also bypassed your LED.
Giannis
Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #5 on: March 26, 2011, 10: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.
Logged
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« Reply #6 on: March 26, 2011, 11:35:33 AM »

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...

Logged
thosj
Active Member

Offline Offline

Posts: 200


View Profile
« Reply #7 on: March 26, 2011, 04: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!
« Last Edit: March 26, 2011, 04:28:38 PM by thosj » Logged
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« Reply #8 on: March 27, 2011, 04: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
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!