Micron units in G-Code

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
14 years 1 month ago #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 to join the conversation.

More
13 years 5 months ago #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 to join the conversation.

More
13 years 5 months ago #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

Please Log in to join the conversation.

More
13 years 5 months ago #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)

Please Log in to join the conversation.

More
13 years 5 months ago #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

Please Log in to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum