Micron units in G-Code

More
14 years 11 months ago #14817 by andypugh
Replied by andypugh on topic Re:Micron units in G-Code
jpka wrote:

1. When i change (multiply) it all by factor of 1000, i probably get Emc2 working in microns domain, but, now i can't anymore use [+] and [-] manual jog buttons in Axis GUI, they are now 1000x times slower.


Have a look at INCREMENT in the INI file.
www.linuxcnc.org/docview/html/config_ini...5BDISPLAY%5D-section
(You probably also want to change the default jog velocity too)

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

More
14 years 11 months ago #15055 by jpka
Replied by jpka on topic Re:Micron units in G-Code
Hi!
I almost done a small C program to optimize jogs a bit. While C programming is a big headache (>90% of time is hair tearing solving tasks like why strcpy not work or why variable named 'mm' works like null device), i still get some useful results. It contain Gerber parser also, so i not need anymore to turn Emc2 to work with microns. (How to mark topic as [Solved]?) I keep the code as simple and small as possible, so i hope it will be useable by others for paste or even drilling the PCB. The optimizer must minimize total path length (it's what others want), but, as side effect, result shows almost all individual jogs good enough (it's what i want).

File Attachment:

File Name: gerbcream.txt
File Size:6.12 KB
image missing http://www.linuxcnc.org/media/kunena/attachments/legacy/images/optimized_gerber_to_gcode.png

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

More
14 years 11 months ago #15056 by andypugh
Replied by andypugh on topic Re:Micron units in G-Code
I think if you can make that work using command-line arguments, then you could use it as a filter program for EMC2, so that opening the .gbr file in Axis would call it automatically, and pass the resulting G-code to EMC2. That sounds like a useful function, and one that might be worth considering adding to the EMC2 main project.

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

More
14 years 10 months ago #15421 by jpka
Replied by jpka on topic Re:Micron units in G-Code
I consider to do this in near future and add tiny GUI to it for user selection of work area, shift coordinates, etc. 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...
I also test it on other pcb's and get very nice results, these are production-quality and quantity, i already put these pcb's in my radio stations and turn it on. (pick'n'place was done too and it of course EMC-controlled; there is not too much of programming because of optimizing almost not need; if anyone need then i publish my C code.) I was impressed how quality and precise is EMC-controlled hardware work! Thank you developers for such a quality software suite! :silly: image missing http://www.linuxcnc.org/media/kunena/attachments/legacy/images/optimized_gerber_to_gcode2.png

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

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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.631 seconds
Powered by Kunena Forum