John,

When I think of that approach, I don't think rewrite; I think port. Of
course, depending on what processor the USB device uses, that might range
from difficult, to impossible.

If the USB device has floating point and is reasonably fast, it should be
doable without much rewrite. Without floating point, it becomes
significantly more difficult.

Ken

[EMAIL PROTECTED]
Mark Kenny Products Company, LLC
55 Main Street       Voice: (888)ISO-SEVO (888)476-7386
Newtown, CT 06470                    Fax: (203)426-9138
http://www.MarkKenny.com


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John
Kasunich
Sent: Monday, April 23, 2007 9:22 AM
To: EMC developers
Subject: Re: [Emc-developers] DIY USB interface


Alex Joni wrote:
> Not quite correct.
> There are various parts that compose what we call EMC.
> We have : 1. interpreter (userlevel), 2. task controller (userlevel), 3.
io
> controller (userlevel, although using HAL), 4. GUI (userlevel), 5. motion
> controller (realtime).
>
> #1 and #2 are actually linked together, but that's a sideissue.
> What you want to do is look at emccanon.cc and canon.hh (located in
> emc2/src/emc/task and emc2/src/emc/nml_intf if my memory serves me right).
> Those are the canonical calls that get called after the interpreter
analyzed
> the g-code.
> It is around there that you want to translate those calls into commands to
> your USB device.
> So you'll send things like STRAIGHT_TRAVERSE or LINEAR_FEED to the
> microcontroller.

I didn't think of that approach.  But it basically means discarding
EMC's motion controller and writing a new one inside the USB device.
The EMC motion controller (including trajectory planner) is the result
of years of work, and would not be trivial to replicate.

Regards,

John Kasunich

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to