Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 07:45:12 PM

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

Offline Offline

Posts: 5


View Profile
« on: July 02, 2009, 03:56:12 PM »

I have an MPG pendant for manual jogging of my mill, and it works great.  I'd like to extend its capabilities by using the MPG encoder for increasing/decreasing the feedrate override % (FRO) and the spindle speed override % (SRO).  The pendant has a 6-axis selector switch for jogging, and since I don't need axes 5 and 6 for my mill, I'd like to use these selections to control FRO and SRO.

I have some experience programming PLCs, but I'm having trouble getting my Brain to behave as I wish.  Here's the behavior I'd like for the feedrate override function:

1)  Turn the axis selector switch to FRO.
2)  Rotate the encoder CW or CCW to increase/decrease the FRO % from its current value.
3)  Upon turning the selector switch from FRO to another mode, I'd like the FRO value to remain at its setting from step 2, even if I spin the MPG.

Has anyone attempted this?  If so, can you send me your brain?  I've used the better part of a vacation day on it, and I don't have anything to show for it.  BTW, I'm not using ModIO since I have enough inputs on my parallel port to do the job.



Thanks,

M
Logged
thedoctor
Active Member

Offline Offline

Posts: 23


View Profile
« Reply #1 on: September 26, 2009, 12:44:12 PM »

I have been watching this post for an answer, also. I have issues getting MPGs to do the functions (similar to yours) I need. I have tried a couple of posted brains and have written 2 of my own and keep hitting a brick wall at some point. Maybe someone will have pity on us!
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #2 on: October 16, 2009, 08:34:22 AM »

you guys dont want to do that in a brian unless you just like pain.

Do it in VB where you can compare an old value, and set your range limiters.

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/
rbaenziger
Active Member

Offline Offline

Posts: 2


View Profile
« Reply #3 on: July 13, 2011, 11:21:59 PM »

I did it.  It took me awile, but I wanted it so that I could reset my override and not have the potentiometer in an "off-zero" position and I didn't want the delay of macropump.  Not sure if I worded that well.  Anyhow, the trick is to reference the MPG velocity and not the counts. 

--input = MPG Velocity--  --Lobe = A/10--  --Terminate=V1--

--Input= V1--  --Lobe=Pass through--
                                                            ---Lobe=A+B---  --Terminate=FRO DRO--
--Input= FRO DRO--

You may need to adjust the A/10 Formula to A/100 or A/500 etc. depending on your MPG.  Just tweak it till it works good for you.

--Bob--
Logged
BR549
Active Member

Offline Offline

Posts: 2,549


View Profile
« Reply #4 on: September 28, 2011, 08:59:10 PM »

What type of pendants are we talking usb modio LPT HuhHuh

(;-) TP
Logged
BR549
Active Member

Offline Offline

Posts: 2,549


View Profile
« Reply #5 on: September 28, 2011, 10:25:12 PM »

IF I remember correctly we did this years ago. Bring the MPG in also as an encoder(use the same pins/ports and set teh steps per to the resolution you want to control the FRO. THen when you need to do the FRO FUNCTION send the encodered dro value to the FRO % of override value DRO.

When you call the function into play at the same time reset the encoder dro to the same value as the current FRO value so it is in sync at startup of the function.

Just a thought, (;-) TP

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!