I'd like to ask a question: how can I conveniently switch the ini file?

  • MakerYang
  • MakerYang's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Oct 2023 03:12 #283765 by MakerYang
After starting LinuxCNC with the `sudo -u user linuxcnc /opt/xyz/machine.ini` command, how can I switch to the ini at `/opt/xyzbc/machine.ini` without stopping the current LinuxCNC process?


My machine tool configuration files all have the following configuration:
...
[DISPLAY]
DISPLAY = halui
CYCLE_TIME = 0.1000
...

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

  • MakerYang
  • MakerYang's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
25 Oct 2023 03:14 #283766 by MakerYang
I forgot to mention, I have used the LinuxCNC Python module.

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
25 Oct 2023 12:46 #283802 by rodw
I don't think you can.
You could explore the 5 axis switchkins sims and see how they switch to and from TCP mode and see if you can adapt that.
The following user(s) said Thank You: MakerYang

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
25 Oct 2023 13:29 #283805 by Aciera
kinematic switching does not switch the ini file but it is possible to change some ini values through hal pins but some settings are used to load the corresponding components at startup so you cannot change those.
Could you explain what exactly you trying to achieve?
The following user(s) said Thank You: MakerYang

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

  • MakerYang
  • MakerYang's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
26 Oct 2023 07:11 #283847 by MakerYang
The startup and shutdown of LinuxCNC take some time. I originally planned to change the machine configuration without stopping the LinuxCNC process. I have now abandoned this idea, as it would involve updating and changing many things. Additionally, once the machine configuration is set, the likelihood and frequency of changes won't be that high.
The following user(s) said Thank You: rodw

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

Time to create page: 0.056 seconds
Powered by Kunena Forum