Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:55:34 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Feed rate override switch
Pages: 1   Go Down
Print
Author Topic: Feed rate override switch  (Read 417 times)
0 Members and 1 Guest are viewing this topic.
Aeroshade
Active Member

Offline Offline

Posts: 138


View Profile
« on: October 26, 2011, 11:32:24 AM »

Hello all, I have searched for an answer to this for awhile and have come up empty.

I have posted this in both Brains and VB to get both opinions.

I have a 16 position binary switch ( 4 pins - 1,2,4,8). I have the pins set to Input #1,2,3 and 4. The way this switch works is pin 1 = 1, pin 2 = 2, pin 1 and pin 2 = 3 and so on tell you get 16 (counting all pins off as a position).

I need to find a way to have this control my feedrate over ride, plus my rapid override at the same time. I'm not sure if the best way would be with a Brain or in VB - Macropump. The most important thing is that the switch works fast.

I don't have a problem writing it up in my Macropump, just need a little guidance on the code.

This is what I was think for the layout, just not sure about the DRO for the FRO:

If IsActive(INPUT1) = False And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
SetOEMDRO(0, 0) <--- Needs to set the DRO to 0%
End If

If IsActive(INPUT1) And
IsActive(INPUT2) = False And
IsActive(INPUT3) = False
IsActive(INPUT4) = False Then
SetOEMDRO(0, 0) <--- Needs to set the DRO to 10%
End If


So on and so forth, tell I get all 16 positions set.


Any help would be GREAT!! Smiley


Thanks,

Aero
« Last Edit: October 26, 2011, 11:36:13 AM by Aeroshade » Logged
Overloaded
Global Moderator
*
Offline Offline

Posts: 3,073



View Profile
« Reply #1 on: October 27, 2011, 12:17:50 PM »

Check this out.

http://www.machsupport.com/forum/index.php/topic,6631.0.html

Russ
Logged

"I haven't failed. I've just found 10,000 ways that won't work."         Edison

"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #2 on: October 27, 2011, 01:01:05 PM »

SOmething along these lines may work. This would be only 1 rung on the ladder for ALL 6 switches off then it sets the DRO to 0.0000


* TestBrain1.jpg (58.38 KB, 958x474 - viewed 60 times.)
Logged
Aeroshade
Active Member

Offline Offline

Posts: 138


View Profile
« Reply #3 on: October 27, 2011, 03:58:30 PM »

I tried that, but for some reason for it reads the largest %. This is how I set it up:

input 1 - invert
input 2 - invert
                              and - formula=0 - OEMDRO 821
input 3 - invert
input 4 - invert


input 1 - pass
input 2 - invert
                              and - formula=10 - OEMDRO 821
input 3 - invert
input 4 - invert



input 1 - invert
input 2 - pass
                              and - formula=20 - OEMDRO 821
input 3 - invert
input 4 - invert



input 1 - pass
input 2 - pass
                              and - formula=30 - OEMDRO 821
input 3 - invert
input 4 - invert



When I enable it, it sets my FRO DRO to 30%, and no matter what I switch it to it stays at 30%.


HELP Smiley


Aero
Logged
BR549
Active Member

Offline Offline

Posts: 2,557


View Profile
« Reply #4 on: October 27, 2011, 05:31:55 PM »

Then your inputs are not match to the brain correctly. IF they were then only the combinations of inputs it saw would activate the output. Try it with a value not just the pass /invert method.

Did you RUN the brain to test the output values based on the inputs. I normall y test each rung as I build it to VERIFY it is working correctly. THEN rebuild the tree with all the rungs.

(;-) TP
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #5 on: November 03, 2011, 07:44:39 AM »

see this:  http://www.machsupport.com/forum/index.php/topic,19877.msg138200.html#msg138200

Scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
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!