- Configuring LinuxCNC
- Advanced Configuration
- Limit an Axis or part of Machine travel to specific tasks possible?
Limit an Axis or part of Machine travel to specific tasks possible?
20 Nov 2018 14:05 - 20 Nov 2018 14:06 #121052
by dgarrett
deb-install example (using sim config ~/linuxcnc/configs/sim/sim.axis/axis.ini):
RIP example (base dir== /home/git/linuxcnc-dev):
Replied by dgarrett on topic Limit an Axis or part of Machine travel to specific tasks possible?
inivar is a provided program (used by the main script named linuxcnc)...how to read INI values in bash
deb-install example (using sim config ~/linuxcnc/configs/sim/sim.axis/axis.ini):
$ which linuxcnc
/usr/bin/linuxcnc
$ which inivar
/usr/bin/inivar
$ inivar -h
inivar: -var <variable> {-sec <section>} {<-ini inifile>} [-num <nth item>]
$ inivar -ini ~/linuxcnc/configs/sim.axis/axis.ini -sec EMC -var VERSION
1.1
RIP example (base dir== /home/git/linuxcnc-dev):
$ source /home/git/linuxcnc-dev/scripts/rip-environment
$ which linuxcnc
/home/git/linuxcnc-dev/scripts/linuxcnc
$ which inivar
/home/git/linuxcnc-dev/bin/inivar
$ inivar -h
inivar: -var <variable> {-sec <section>} {<-ini inifile>} [-num <nth item>]
$ inivar -ini /home/git/linuxcnc-dev/configs/sim/axis/axis.ini -sec EMC -var VERSION
1.1
Last edit: 20 Nov 2018 14:06 by dgarrett.
Please Log in or Create an account to join the conversation.
20 Nov 2018 14:10 #121055
by andypugh
Replied by andypugh on topic Limit an Axis or part of Machine travel to specific tasks possible?
I think that the INI file might be an environment variable too?
$INIFILE ?
(Not at a LinuxCNC machine so I can't test if that remains available to M100+)
$INIFILE ?
(Not at a LinuxCNC machine so I can't test if that remains available to M100+)
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- Limit an Axis or part of Machine travel to specific tasks possible?
Time to create page: 0.084 seconds