Am 22.01.2012 um 03:31 schrieb andy pugh:

> There is a standalone interpreter in the LinuxCNC source, though I am
> not sure what it is for, or how it works, or if it works any more. Nor
> is it in Python. In fact, I don't know why I am bothering, but I guess
> I got this far, and it's now only Ctrl-V
> http://git.linuxcnc.org/gitweb?p=emc2.git;a=tree;f=src/emc/sai;h=c01f9e6223e3b713b68f9077c61cf27bdc34dadc;hb=HEAD

this is the linuxcnc interpreter, just linked with a 'text output only' canon 
(aka machine primitives) layer

to try it out:

$ ./rs274 -g
executing
    1 N..... USE_LENGTH_UNITS(CANON_UNITS_MM)
    2 N..... SET_G5X_OFFSET(1, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
    3 N..... SET_G92_OFFSET(0.0000, 0.0000, 0.0000, 0.0000, 0.0000, 0.0000)
    4 N..... SET_XY_ROTATION(0.0000)
    5 N..... SET_FEED_REFERENCE(CANON_XYZ)
READ => g0x10y10
    6 N..... STRAIGHT_TRAVERSE(10.0000, 10.0000, 0.0000, 0.0000, 0.0000, 0.0000)
READ => 

it is used extensively in automated tests when 'runtests' is executed (that's 
the stuff nobody likes to write, which is why rs274 is terra incognita ;)

-m
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to