APT NC PART PROGRAMMING

More
08 Jan 2020 19:31 #154338 by bryantthomason@aol.com
DOSE LINEX HAVE APT NC PROGRAMMING SOFTWARE??

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

More
08 Jan 2020 19:37 #154339 by bryantthomason@aol.com
IS APT NC PROGRAMING SUPPORT BY LINEXCNC??

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

More
09 Jan 2020 01:43 #154384 by andypugh
Replied by andypugh on topic APT NC PART PROGRAMMING
No.

It could be, as the interpreter is a pluggable component. You can configure the interpreter to be used in the INI file.

There is an example config which uses a non-g-code interpreter:
github.com/LinuxCNC/linuxcnc/blob/master...sim/axis/canterp.ini

This line:
INTERPRETER = libcanterp.so

means that it uses input files that look like this:

github.com/LinuxCNC/linuxcnc/blob/master.../canterp_example.can

So: No, linuxcnc only currently supports G-code and the (example) .can as input files. But if someone wrote an interpreter, it could use any other input file type.

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

More
09 Jan 2020 01:51 #154387 by cmorley
Replied by cmorley on topic APT NC PART PROGRAMMING
but you could apparently use this to convert to gcode:
wiki.linuxcnc.org/cgi-bin/wiki.pl?AptProgrammingForEMC

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

More
09 Jan 2020 18:39 #154465 by Dmess
Replied by Dmess on topic APT NC PART PROGRAMMING
quick answer is YES .

APT 360 & postp ... available from sourceforge is quite easy to install and run once you have a feel for APT.

I have installed it on even a Raspberry Pi-Zero.
There is an EMC post-processor that tailors the code specifically for the linux cnc interpreter.

I have done quite a bit of APT programming and would be glad to assist if required.

All the best
Denis

PS I have a pretty sweet deep hole drill macro that has saved many dollars in tooling if anyone is interested.

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

More
09 Jan 2020 18:50 #154466 by andypugh
Replied by andypugh on topic APT NC PART PROGRAMMING
I think that going through G-code might be inefficient, though.

The LinuxCNC G-code interpreter converts G-code to canonical commands:

github.com/LinuxCNC/linuxcnc/blob/master...l_intf/canon.hh#L199

And the vast majority of what is produced is a sting of straight-traverse, arc_feed and straight_feed commands.

Modifying the APT processor to go straight to these rather than via G-code might be a more satisfactory solution.

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

More
09 Jan 2020 19:12 #154469 by Dmess
Replied by Dmess on topic APT NC PART PROGRAMMING
I believe that postp could be hacked to provide something like that canon link.

Do you have an actual program file in that format I could look at??
The following user(s) said Thank You: bryantthomason@aol.com

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

More
09 Jan 2020 19:40 #154471 by andypugh
Replied by andypugh on topic APT NC PART PROGRAMMING
Who are you asking, and which format?

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

More
09 Jan 2020 19:56 #154473 by Dmess
Replied by Dmess on topic APT NC PART PROGRAMMING
Sorry,
That was for you Andy.
I was referring to the canon format.

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

More
09 Jan 2020 20:12 #154477 by andypugh
Replied by andypugh on topic APT NC PART PROGRAMMING
It doesn't really exist as a file. It is the stuff that gets sent from the interpreter to the motion system in LinuxCNC.

For example, here is what happens when LinuxCNC interprets a G1 command:

github.com/LinuxCNC/linuxcnc/blob/master...erp_convert.cc#L4522

As a demonstration of pluggable interpreters there is a demonstration interpreter called "canterp" that converts files like this to canonical actions: github.com/LinuxCNC/linuxcnc/blob/master.../canterp_example.can
But that shouldn't be created by an APT interpreter, there should not be an intermediate format.

But: Is there really a requirement for this? It is probably a lot of work. Who would use it?

A similar effort might create a STEP-NC interpreter, which might be more useful (or not)
The following user(s) said Thank You: bryantthomason@aol.com

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

Moderators: Skullworks
Time to create page: 0.081 seconds
Powered by Kunena Forum