Micron units in G-Code

More
07 Sep 2012 14:47 #24026 by jpka
Hi Friends!
So i have time now to complete this work and turn it into filter. It is not a problem to make it handle command line arguments. But i not see a clear way to integrate it into LinuxCNC. Can anybody suggest me easy way to do it? Documentation can be helpful; while working example of filter is best way. I can rewrite my source code from C to anything what is more welcome by community (please suggest language, if so). Thank you! :side:

Please Log in or Create an account to join the conversation.

More
07 Sep 2012 15:02 #24027 by andypugh
jpka wrote:

Hi Friends!
So i have time now to complete this work and turn it into filter. It is not a problem to make it handle command line arguments. But i not see a clear way to integrate it into LinuxCNC. Can anybody suggest me easy way to do it? Documentation can be helpful; while working example of filter is best way. I can rewrite my source code from C to anything what is more welcome by community (please suggest language, if so). Thank you! :side:


There is a good example here:
thread.gmane.org/gmane.linux.distributio...er/28010/focus=28021

I think it is using a simple sed script, but it could be anything.

Please Log in or Create an account to join the conversation.

More
07 Sep 2012 16:30 #24030 by BigJohnT
Replied by BigJohnT on topic Re:Micron units in G-Code
jpka wrote:

So i currently gathering all needed information, especially about how to (easy) integrate my program as a filter in Axis's 'open' menu and then how to auto-transfer generated .ngc file to it...


Look at the Simple G Code Generators on the Wiki and find the line that tests for the existence of the Axis gui.

IN_AXIS = os.environ.has_key("AXIS_PROGRESS_BAR")

and

if IN_AXIS:
self.quitButton = Button(self, text='Write to AXIS and Quit',\
command=self.WriteToAxis)

and

def WriteToAxis(self):
sys.stdout.write(self.g_code.get(0.0, END))



wiki.linuxcnc.org/uploads/arcbuddy.py

John

Please Log in or Create an account to join the conversation.

More
02 May 2013 20:55 #33527 by jpka
Replied by jpka on topic Re:Micron units in G-Code
I just done the real production tests of program, and it looks ready to use. I prepare tarball with C code and two testcase files. Program written in C with optional GTK support. Program conforms with KISS rule (i hope).
If the program can be useful, lets discuss it, but probably in new topic, current is quite old. :-)
I will be happy to see actual results of program using. :-)
For more info, please look at C source file.

Please Log in or Create an account to join the conversation.

More
02 May 2013 20:56 - 02 May 2013 20:58 #33528 by jpka
Replied by jpka on topic Re:Micron units in G-Code
I just done the real production tests of program, and it looks ready to use. I prepare tarball with C code and two testcase files. Program written in C with optional GTK support. Program conforms with KISS rule (i hope).
If the program can be useful, lets discuss it, but probably in new topic, current is quite old. :-)
I will be happy to see actual results of program using. :-)
For more info, please look at C source file.

OOPS please delete the duplicate. Sorry
Last edit: 02 May 2013 20:58 by jpka. Reason: removing accidental duplicate

Please Log in or Create an account to join the conversation.

More
02 May 2013 21:00 - 02 May 2013 21:06 #33529 by jpka
Replied by jpka on topic Re:Micron units in G-Code
The file lost, try to re-posting:

gerb2ngc.tar.bz2

(file again lost, i will send via email when somebody need it)
Last edit: 02 May 2013 21:06 by jpka. Reason: File again lost... multiple server 500 errors...

Please Log in or Create an account to join the conversation.

More
02 May 2013 23:47 #33537 by BigJohnT
Replied by BigJohnT on topic Re:Micron units in G-Code
bz2 is not an approved extension. I think .tar or .zip and a few others work. Check the using this forum for the complete list.

John
The following user(s) said Thank You: jpka

Please Log in or Create an account to join the conversation.

Time to create page: 0.077 seconds
Powered by Kunena Forum