PROGRAM_PREFIX in ini file

More
06 Sep 2020 23:28 #181071 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
Attachments:

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

More
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.

More
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

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

More
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.

More
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.

More
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

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

More
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?

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

More
07 Sep 2020 10:58 #181123 by tommylight

BUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc

probably should be
BUTTON_10_CODE = load /home/user_name/wherever_the_document_is/Bale_Forks/Combination_Fork_Tyne_holes.ngc
And please do change the user name and where the document is to the full path.

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

More
07 Sep 2020 11:02 #181125 by phillc54
Replied by phillc54 on topic PROGRAM_PREFIX in ini file

BUTTON_10_CODE = load Bale_Forks/Combination_Fork_Tyne_holes.ngc

probably should be
BUTTON_10_CODE = load /home/user_name/wherever_the_document_is/Bale_Forks/Combination_Fork_Tyne_holes.ngc
And please do change the user name and where the document is to the full path.

Tom, that should done by
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.

More
07 Sep 2020 11:16 #181131 by tommylight
Understood, thank you.

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

Moderators: snowgoer540
Time to create page: 0.181 seconds
Powered by Kunena Forum