named subroutine call not working?

More
28 Apr 2013 05:20 #33299 by jslindsay
I have version axis 2.4.6 and trying to get a named subroutine to call and run. I have reread the instructions and looked at some examples and I can't figure out any difference.

the call looks like:

o<settoollength> call

and in settoollength.ngc

o<settoollength> sub
.
.
.
o<settoollength> endsub
M02

Please help

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

More
28 Apr 2013 16:43 #33316 by ArcEye
In your .ini file

[DISPLAY]
PROGRAM_PREFIX = /the/path/to/the/folder/with/subs/in

(Try just putting (MSG, Inside the Sub) into the sub and call it from the MDI line to test)

regards

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

More
28 Apr 2013 16:46 #33317 by alan_3301
Make sure the settoollength.ngc has execute permissions.

Right click on file, click properties (or something like that)
Then click on permissions tab. then under owner, click execute checkbox.

Or at command line

chmod u+x settoollength.ngc

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

More
28 Apr 2013 17:56 #33319 by ArcEye

Make sure the settoollength.ngc has execute permissions.


It actually does not need to be executable, it is not executed, just read.
Unlike M Code files, it will work quite happily with 644 (creator RW, everyone else R), but setting it executable will do no harm.

Normally the problem is the path

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

More
28 Apr 2013 18:23 #33321 by alan_3301
My mistake.. I was confusing O call with M code files.

Thanks for the correction!

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

More
29 Apr 2013 14:12 #33369 by Rick G

I have version axis 2.4.6 and trying to get a named subroutine to call and run.

What actually happens when you try to run it?
Where are the files located?

Rick G

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

Time to create page: 0.638 seconds
Powered by Kunena Forum