Any idea how to write PP form APT to ngc

More
2 years 6 days ago #313158 by macsddau@linuxcnc
Hi Evrybody
I'm trying to write a post-processor to convert APT file (ISO4343) to ngc to get path working on LinuxCNC. A long time ago, unfortunaltly, I have thrown away my course of PP writing (it was in the early 90's for CATIA v3 with FORTRAN). I have not practice since this time.
I'm slowly learning Python for this.
Is anyone have an idea how-to ? APT language ? How to structure program ? ...

Please Log in to join the conversation.

More
1 year 11 months ago #313927 by andypugh
It might be better to skip ngc and write a LinuxCNC interpreter for APT.
(This might also be a lot more work, but should give a better result)

forum.linuxcnc.org/31-cad-cam/38155-apt-...t-programming#154384

(But there seems to be a link to a converter in the next post too, if you want to go that way)

Please Log in to join the conversation.

More
3 months 1 week ago #347840 by macsddau@linuxcnc
Hi
I have seen recent topic of @tommylight about filter for pts files. This help me to start writing the postprocessor for apt files.

I can manage simple words and convert to gcode.
Next to steps :
1- process circular interpolations
2- make it working in LinuxCNC as program filter, actually only works stand alone.

I am sure that’s python code is not as beautiful as it should be but that’s working.

Please Log in to join the conversation.

More
3 months 1 week ago #347843 by tommylight

2- make it working in LinuxCNC as program filter, actually only works stand alone.
Did you add the [FILTER] entries to the ini file?
Here is mine, adjust to your needs:
Code:
[FILTER] PROGRAM_EXTENSION = .pts values pts = ./LinuxCNC_pts_filter_4_axis.py

Please Log in to join the conversation.

More
3 months 1 week ago #347847 by macsddau@linuxcnc
Added APTSource program extension and path to [FLITER] section

Please Log in to join the conversation.

Time to create page: 0.476 seconds
Powered by Kunena Forum