Hi all,
 
I am looking to expose the feed rate as a pin to some component and
looking for some suggestions.
 
Background:
This is for a laser application, where I would like to keep the energy
applied to the part constant regardless of the velocity imposed by the
kinematics. I can do this by taking a ratio of the instantaneous
velocity to the feed rate. Currently I am doing this manually through
the user interface, which scans the G-Code for the feed rate on opening
and sets that value (adjusting for the feed override) to a parameter of
my scaling component. 
 
Presently all parts run with a single feed rate, so it works for my
applications, but could certainly be handled in a more generic manner,
and not dependent on a function of the UI.

Implementation: 
I see in emccannon.cc, there is a function SET_FEED_RATE, and two
internal variables currentLinearFeedRate and currentAngularFeedRate. I
only need the linear feed rate, but it is easy enough to expose both. My
thought was to add exported functions of getLinearFeedRate
(GET_LINEAR_FEED_RATE) and getAngularFeedRate (GET_ANGULAR_FEED_RATE) to
emccannon.cc/hh.

Using these calls, they can be exported as pins to some other component,
which may or may not need to apply the feed override. I am not entirely
sure whether that gets taken into account when SET_FEED_RATE is called,
but is easy enough to find out. The most likely candidates for
components in which to add these pins would seem to be either motion or
halui.

This is not a part of the code I have dug into very much, so any ideas
on better ways to do this are appreciated.

Regards,
Eric




------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to