PROGRAM_PREFIX in ini file
- CFE
- Offline
- Elite Member
-
Less
More
- Posts: 193
- Thank you received: 35
06 Sep 2020 23:28 #181071
by CFE
PROGRAM_PREFIX in ini file was created by CFE
Hi all,
We are trying to use button 10 in the Extra panel to load a G-code program, I have set PROGRAM_PREFIX to /home/plasma/NGC_files and then added to BUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc . But when I press button 10 then this message comes up : "Unable to open file </usr/share/linuxcnc/ncfiles/Bale_Forks/Combination_Fork_Tyne_holes.ngc>"
Does this mean the PROGRAM_PREFIX is not implemented or recognized ? Or is the syntax wrong ? I am trying to follow the PlasmaC User Guide and it looks right to me, but obviously it isn't. Or is it another Gmoccapy quirk ?
Cheers, Peter
We are trying to use button 10 in the Extra panel to load a G-code program, I have set PROGRAM_PREFIX to /home/plasma/NGC_files and then added to BUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc . But when I press button 10 then this message comes up : "Unable to open file </usr/share/linuxcnc/ncfiles/Bale_Forks/Combination_Fork_Tyne_holes.ngc>"
Does this mean the PROGRAM_PREFIX is not implemented or recognized ? Or is the syntax wrong ? I am trying to follow the PlasmaC User Guide and it looks right to me, but obviously it isn't. Or is it another Gmoccapy quirk ?
Cheers, Peter
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5719
- Thank you received: 2093
06 Sep 2020 23:35 #181072
by phillc54
Replied by phillc54 on topic PROGRAM_PREFIX in ini file
What you did looks correct, did you start LinxCNC after you made the changes?
Please Log in or Create an account to join the conversation.
- CFE
- Offline
- Elite Member
-
Less
More
- Posts: 193
- Thank you received: 35
07 Sep 2020 00:37 #181079
by CFE
Replied by CFE on topic PROGRAM_PREFIX in ini file
Hi Phil,
Yes, restarted plenty of times because I am working on adding functionality to our gamepad pendant.
Cheers, Peter
Yes, restarted plenty of times because I am working on adding functionality to our gamepad pendant.
Cheers, Peter
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5719
- Thank you received: 2093
07 Sep 2020 00:42 #181080
by phillc54
Replied by phillc54 on topic PROGRAM_PREFIX in ini file
OK, it must be something I did wrong, I'll check it out.
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5719
- Thank you received: 2093
07 Sep 2020 03:31 #181084
by phillc54
Replied by phillc54 on topic PROGRAM_PREFIX in ini file
I have pushed a fix so when the Buildbot does its thing you will be good to go unless you are run in place then you could download now and build it.
Please Log in or Create an account to join the conversation.
- CFE
- Offline
- Elite Member
-
Less
More
- Posts: 193
- Thank you received: 35
07 Sep 2020 03:47 #181087
by CFE
Replied by CFE on topic PROGRAM_PREFIX in ini file
Hi Phil,
Thank you. We have a buildbot installation so we'll see it come through.
I got another one for you (I hope you don't get sick of us !) : I have tried to implement a button on the gamepad pendant to start a program, using the "Remote Start" hal lines taken from the Linuxcnc user manual, But that doesn't work, and that leaves us wondering why ? It seemed pretty straightforward.
By the way, thank you for all your help, we do appreciate it !
Cheers, Peter
Thank you. We have a buildbot installation so we'll see it come through.
I got another one for you (I hope you don't get sick of us !) : I have tried to implement a button on the gamepad pendant to start a program, using the "Remote Start" hal lines taken from the Linuxcnc user manual, But that doesn't work, and that leaves us wondering why ? It seemed pretty straightforward.
By the way, thank you for all your help, we do appreciate it !
Cheers, Peter
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5719
- Thank you received: 2093
07 Sep 2020 03:56 #181090
by phillc54
Replied by phillc54 on topic PROGRAM_PREFIX in ini file
Not sure what you mean by the "Remote Start" hal line. On my pendant I use halui.program.run to start a program.
Can you post a link to the page you referred to.
Are you getting any error messages when you run LinuxCNC from a terminal?
Can you post a link to the page you referred to.
Are you getting any error messages when you run LinuxCNC from a terminal?
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19798
- Thank you received: 6694
07 Sep 2020 10:58 #181123
by tommylight
And please do change the user name and where the document is to the full path.
Replied by tommylight on topic PROGRAM_PREFIX in ini file
probably should beBUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc
BUTTON_10_CODE = load /home/user_name/wherever_the_document_is/Bale_Forks/Combination_Fork_Tyne_holes.ngc
Please Log in or Create an account to join the conversation.
- phillc54
-
- Offline
- Platinum Member
-
Less
More
- Posts: 5719
- Thank you received: 2093
07 Sep 2020 11:02 #181125
by phillc54
PlasmaC automatically but I had it set to the default and not to what the PROGRAM_PREFIX was set to, so it was my error.
Replied by phillc54 on topic PROGRAM_PREFIX in ini file
Tom, that should done by
probably should beBUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc
And please do change the user name and where the document is to the full path.BUTTON_10_CODE = load /home/user_name/wherever_the_document_is/Bale_Forks/Combination_Fork_Tyne_holes.ngc
PlasmaC automatically but I had it set to the default and not to what the PROGRAM_PREFIX was set to, so it was my error.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19798
- Thank you received: 6694
07 Sep 2020 11:16 #181131
by tommylight
Replied by tommylight on topic PROGRAM_PREFIX in ini file
Understood, thank you.
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.066 seconds