ERROR: Button to run a simple routine

More
04 Nov 2024 18:47 #313769 by Askjerry
I have built over 40 pyvcp panels in my life... and I have a button that runs a simple routine to safely go home.
Lift the Z, move to the XY, lower the Z. Simple... here is the code.

O<safe-go-home> sub
G90 G20        
M5         
M9          
G53 G0 Z 0
G0 X0 Y0
G0 Z0         
O<safe-go-home> endsub


The panel has a button with a halpin: safe-go-home

And the custom_postgui.hal has

net panel-safe-go-home  <= halui.mdi-command-00  <= pyvcp.safe-go-home

And lastly, the INI has...

[HALUI]
# add halui MDI commands here (max 64)
MDI_COMMAND = O <safe-go-home>         CALL


All the components I've used like 40 times before.

Now... on this machine... I'm getting...

EOF in file:/usr/share/axis/images/axis.ngc seeking o-word o<safe-go-home> from line 0

What the heck?

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

More
04 Nov 2024 19:11 #313771 by Aciera
Doesn't sound like a problem with your pyvcp panel but rather with your subroutine path.
Have you tried running this in the MDI command input:
o<safe-go-home> call 
If that gives you the same error, which I would expect, then check that you have placed the file 'save-go-home.ngc' in a directory listed in PROGRAM_PREFIX or SUBROUTINE_PATH in your INI file.
The following user(s) said Thank You: spumco

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

More
04 Nov 2024 19:12 - 04 Nov 2024 19:14 #313772 by spumco
MDI_COMMAND = O <safe-go-home>         CALL

I don't know if this is it, but if that's a copy-paste from your INI file it looks like there's a space between "O" and "<safe-go-home>"

So I'd check if there's a space, as well as double-checking the subroutine path in INI file.

EDIT: Aciera beat me to it.  Again.
Last edit: 04 Nov 2024 19:14 by spumco.
The following user(s) said Thank You: tommylight, Aciera

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

More
04 Nov 2024 21:04 #313782 by MaHa
I had bad experience with capital letters in naming of subroutines.
try a lovercase 'o'

O<safe-go-home> sub

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

More
04 Nov 2024 23:30 - 04 Nov 2024 23:33 #313789 by Askjerry
ERROR - INSERT COFFEE!!! Thanks Aciera !!

DERP...

What it is SUPPOSED to be... like in My Laguna config...

[RS274NGC]
PARAMETER_FILE = linuxcnc.var
SUBROUTINE_PATH = ./ROUTINES/
FEATURES = 12

What did I have???

[RS274NGC]
PARAMETER_FILE = linuxcnc.var

Jeeze... ok then... problem resolved!
Thanks for the kick in the head to get me restarted!!!
Last edit: 04 Nov 2024 23:33 by Askjerry.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum