> > emc and gcode don't, but of course hal does. You could create a > > component which offsets the commanded X according to the spindle angle > > and the shape of the cam. > > The component would include the mathematical > > description of the cam shape, r=f(theta)+r0. > > On Mon, Jul 20, 2009 at 05:25:19PM +0100, Leslie Newell wrote: > Hmm, interesting idea. Not too bad for a simple circular cam but > unfortunately I have been supplied with CAD drawings and they are wacky > profiles. Several different profiles, all one-offs. Is there any way for > a RT component to read a file when it initializes? I could store the > profile in a text file which I could generate with SheetCam.
rtai has shared memory between realtime components and userspace. This is how the communication between task and motion works, and how it works between the userspace and realtime parts of scope, sampler, and streamer. In this case, you'd have to arrange for userspace to load a 1D array of f(theta) values before beginning the cam cycle, then the realtime f(theta) becomes: find nearest table values to theta, and use an interpolation algorithm on those values (such as linear interpolation on two values) to give the offset. Jeff ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users