If you are going to do that, it shouldn't be a "translation matrix"; it
should be a "transform matrix". That would be a general affine
transformation. That would provide translation, rotation, and skew. So, if
your X and Y axes weren't exactly perpendicular,  that could be corrected.
We might want to require that Z be perpendicular to X and Y for a mill. It
wouldn't make sense to drill holes where it was not.

To me, the big implementation issue has to do with the display. Do you show
the G code coordinates or the transformed value? Can the user at the
interface (Axis or whatever) choose which one is displayed?

In any event, the current transformation matrix should be stored as a series
parameters (in the gcode sense). That way, it could be easily changed by G
code. Slap a part on the table, probe a few points with a gcode subroutine
which sets the origin and rotation (computing the transformation matrix),
and you're off and running.

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: Thursday, June 07, 2007 10:05 PM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] scaling G code


Jon Elson wrote:
> Ray Henry wrote:
>> Now fifw, it seems to me that it's time to modify the interpreter to
>> allow for a modal scaling g-code.
> Oh wow, cool idea!  If we're going to do that, 3-axis rotation
> would be a good thing to put in at the same time.  Then, you
> could scale/rotate the moves to fit the part, rather than try to
> align the part to the machine.  The "big boys" all have this,
> and the math is almost trivial and very localized.  You just run
> the time-honored translation matrix on all input coordinates.
>
> Jon

You volunteering Jon?  That would be a good thing to work on while you
are at the CNC workshop.  ;-)

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-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

-------------------------------------------------------------------------
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-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to