LCNC 2.10 - Ask for AUTOMATIC_G43

More
13 Mar 2025 20:49 #323869 by HansU
Replied by HansU on topic LCNC 2.10 - Ask for AUTOMATIC_G43

I made:
sudo apt install linuxcnc



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

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

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
14 Mar 2025 12:30 #323918 by zz912
Replied by zz912 on topic LCNC 2.10 - Ask for AUTOMATIC_G43
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.
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 or Create an account to join the conversation.

More
15 Mar 2025 09:49 #323995 by HansU
Replied by HansU on topic LCNC 2.10 - Ask for AUTOMATIC_G43

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..
The following user(s) said Thank You: zz912

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

  • zz912
  • zz912's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
15 Mar 2025 17:03 #324007 by zz912
Replied by zz912 on topic LCNC 2.10 - Ask for AUTOMATIC_G43
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 or Create an account to join the conversation.

More
16 Mar 2025 15:44 - 16 Mar 2025 15:47 #324059 by HansU
Replied by HansU on topic LCNC 2.10 - Ask for AUTOMATIC_G43
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).

 
Last edit: 16 Mar 2025 15:47 by HansU.

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

Moderators: newbynobiHansU
Time to create page: 0.068 seconds
Powered by Kunena Forum