LCNC 2.10 - Ask for AUTOMATIC_G43

More
1 year 7 months ago #323869 by HansU

I made:
Code:
sudo apt install linuxcnc


This installs LinuxCNC 2.9.4 and change_g43.ngc was added only in master.

Please Log in to join the conversation.

More
1 year 7 months ago #323918 by zz912
I know 2.9 doesn't have change_g43.ngc.
That's why I searched gmoccapy.ini to find the location of the template configuration files.
Code:
zdenek@cnc:~$ find / -name gmoccapy.ini 2>/dev/null /home/zdenek/linuxcnc/linuxcnc-master/configs/sim/gmoccapy/gmoccapy.ini /home/zdenek/linuxcnc/linuxcnc-2.9/configs/sim/gmoccapy/gmoccapy.ini /usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/gmoccapy.ini

Do you think the location of the template configuration files is different for 2.9 and 2.10?

Please Log in to join the conversation.

More
1 year 7 months ago #323995 by HansU

Do you think the location of the template configuration files is different for 2.9 and 2.10?
 
No


So I don't get what your problem is..

Please Log in to join the conversation.

More
1 year 7 months ago #324007 by zz912
I'll try to recap the previous posts. What I want to do can be done in multiple ways.

1)my first original plan.
Create new files in the linuxcnc/src/emc/usr_intf/pncconf folder and then copy them to the new LCNC configuration using pncconf.
I could do this. It is not problem for me.

2)However, @Aciera came up with a better idea.
He doesn't want to create new files in the linuxcnc/src/emc/usr_intf/pncconf folder.
He wants to use the original data from the configs/sim/gmoccapy folder.
The advantage is that there will be no unnecessary duplicate data in the source files.

The problem is that I don't know how to define this path cleanly: configs/sim/gmoccapy
This path is different for RIP installation and different for package installation.

I can define the path for the RIP installation. It is not problem for me.

For package installation I could use the path:
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/
I don't know if this is a clean solution.

I think a clean solution would be to use this variable:
github.com/LinuxCNC/linuxcnc/blob/1c72d4...ipts/linuxcnc.in#L53
But I don't know how.



 

Please Log in to join the conversation.

More
1 year 7 months ago #324059 by HansU
On a LinuxCNC 2.9.4 installation I find 'change.ngc' in '/usr/share/linuxcnc/ncfiles/remap-subroutines', so I am pretty sure everything in "nc_files/remap-subroutines" is copied there during the installation of LinuxCNC.

So we only need to move 'change_g43.ngc' from "configs/sim/gmoccapy/macros/" to "nc_files/remap-subroutines" and maybe adjust the path in the sample config(s).

 

Please Log in to join the conversation.

Time to create page: 0.600 seconds
Powered by Kunena Forum