Subroutine error

More
5 years 2 months ago #217137 by beltramidave
Running V2.7.15
 

Getting an error message when trying to run a touch off routine via a pyvcp button.  This has just started and had been working for a couple years.  I have 2 subs not working and the rest work fine.  Have not edited anything recently to effect these either.  It appears that it is looking in the currently open file for the sub, but it is totally separate.
 
 
 

The reason I say that it appears to be looking in the currently loaded file is because after a reboot, there is no file loaded yet and it shows a different error
 

Anybody with any ideas appreciated.  I have looked at subs and ini file for some type of corruption, but to no avail..
Thanks

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

More
5 years 2 months ago #217141 by tommylight
Replied by tommylight on topic Subroutine error
In the ini file there is "open file", see what file is mentioned there as it seems to be missing from the config folder.
Or just set it to
""
And save, this way it does not try to open anything at start.

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

More
5 years 2 months ago #217148 by beltramidave
Replied by beltramidave on topic Subroutine error
The problem isn’t that anything is loading at startup. The problem is my subroutine is not working.
My subroutine folder is at the same location as the .Ini files is looking for as my other subs work.

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

More
5 years 2 months ago - 5 years 2 months ago #217215 by BigJohnT
Replied by BigJohnT on topic Subroutine error
Attach your ini file and the files in question instead of screen shots.

JT
Last edit: 5 years 2 months ago by BigJohnT.

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

More
5 years 2 months ago #217244 by beltramidave
Replied by beltramidave on topic Subroutine error
Here are the files.  The subs 100 & 102 are the ones that were giving me an issue.  All the rest of the subs were working fine.
I have rebooted several times since the initial post and now this morning all subs are working again.  It's almost like Linuxcnc is loading something correctly, yet when this happened the first time, it was just out of the blue and the PC had not been shut down recently.

Guessing that you won't find anything in the files.  Frustrating that it happens only occassionaly.

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

More
5 years 2 months ago #217248 by roland
Replied by roland on topic Subroutine error
usually there is an M2 at the end of the sub file.
In your case the M2 is missing. Maybe this has an affect 

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

Time to create page: 0.086 seconds
Powered by Kunena Forum