Hi Igor, and welcome to EMC2. I am on the fence about whether this is a good idea (to depart from the classic model of "external software generates g-code, then resulting g-code is loaded into CNC control").
But if you are going to do this, then it should be aimed not specifically at truetype-tracer, but at a general solution, following the Gnu model of connecting small modules together, so that we would be able to call anything from the CLI, maybe like this(?): (EXTERNAL_CLI truetype-tracer arg1 arg2 ...arg999 > filename_1.ngc) This just calls ttt from the CLI, exactly as ttt is used now. We can already call user-defined M-codes, so I'm guessing it won't be too hard to extend to the CLI generally. (EXTERNAL_CLI gcode-2-emc2subr arg1 arg2 ...arg999 filename_1.ngc > filename_2.ngc) This is a new program which adds, if needed, scaling and offset variables to any g-code input file, with an initial setting as per the arguments. Or sane defaults like all offsets = 0, all scaling factors = 1. It also adds, if needed, whatever is required to be a valid EMC2 subroutine file. Like sub(filename from args?), endsub(filename from args?), the final M2, etc. Output file is (filename from args?).ngc. ofilename_2.ngc Now all you have to do is use the file as an external subroutine file, exactly as shown in the User Manual under "O-codes", Chapter 17.7. That means AXIS won't be able to plot it. That's OK. Also, if the external CLI call takes a long time, EMC2 could seem to pause for awhile. That's OK too. Except we may need a way to ^C out of that. I hope I have not forgotten anything, and that this might prove to be more generally useful for things we haven't even thought of yet. Comments and suggestions for further improvement welcome. Thanks, K.J. Kirwan -----Original Message----- >From: Igor Chudov <[email protected]> >Sent: Aug 17, 2010 2:55 PM >To: "Enhanced Machine Controller (EMC)" <[email protected]> >Subject: [Emc-users] Use of Chris's truetype-tracer from G code? > >I am totally in love with truetype-tracer and already engraved a bunch >of stuff. I wish I had a faster spindle, but I digress. > >What I am thinking is that it would be really great to somehow >integrate it with G code a little bit somehow, so that we could do it >inside G code. Example of what I was thinking is to use comments, like >they are used for printing or MSG: > >(FONT /font/dir/myfont.ttf) >(TEXT To my beloved favorite person) >G777 X0.5 Y0.5 Z-0.02 P0.0001 F3 > >which would write the given text with the given font starting at (0.5, 0.5). > >Now I would not want to abuse anyone, especially if no one wants this, >but if the implementation of this sort of concept is straightforward, >I could try to take a stab at implementing it. > >------------------------------------------------------------------------------ >This SF.net email is sponsored by > >Make an app they can't live without >Enter the BlackBerry Developer Challenge >http://p.sf.net/sfu/RIM-dev2dev >_______________________________________________ >Emc-users mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
