lathe macro
29 Mar 2015 00:09 #57256
by ArcEye
Replied by ArcEye on topic lathe macro
OK
I always run from a terminal, because I use compiled versions.
Open a terminal, start linuxcnc from the command line, run the MDI command and watch the output in the terminal.
It should show up, you would get an error if the file was not found.
I always run from a terminal, because I use compiled versions.
Open a terminal, start linuxcnc from the command line, run the MDI command and watch the output in the terminal.
It should show up, you would get an error if the file was not found.
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
29 Mar 2015 00:42 #57257
by reedmachine
Replied by reedmachine on topic lathe macro
Yes, when M199 returned Successful in terminal when MDI command issued.
While open, I attempted the turning sub. The terminal reported " emc/task/emctask.cc 321: interp_error : File not-open".
Does this mean that the issue is in turning.ngc file?
While open, I attempted the turning sub. The terminal reported " emc/task/emctask.cc 321: interp_error : File not-open".
Does this mean that the issue is in turning.ngc file?
Please Log in or Create an account to join the conversation.
29 Mar 2015 00:58 - 29 Mar 2015 17:04 #57258
by ArcEye
Replied by ArcEye on topic lathe macro
No, I presume that the problem is that upon reading the o<sub> call, the file that refers to should be opened, but it has not happened.
I will have to dig out the code for 2.3 to see exactly what is happening, the line number is not right for later versions
regards
EDIT
Line number is just where the error is printed from, not where it occurs.
Possible cause as next post, the file cannot be opened for reading because permissions wrong
I will have to dig out the code for 2.3 to see exactly what is happening, the line number is not right for later versions
regards
EDIT
Line number is just where the error is printed from, not where it occurs.
Possible cause as next post, the file cannot be opened for reading because permissions wrong
Last edit: 29 Mar 2015 17:04 by ArcEye.
Please Log in or Create an account to join the conversation.
29 Mar 2015 14:27 #57271
by ArcEye
However, have you checked that the file is at least chmod 644, so that it can be opened?
Replied by ArcEye on topic lathe macro
Does this mean that the issue is in turning.ngc file?
However, have you checked that the file is at least chmod 644, so that it can be opened?
Please Log in or Create an account to join the conversation.
29 Mar 2015 20:38 - 29 Mar 2015 20:44 #57281
by BigJohnT
Replied by BigJohnT on topic lathe macro
In the file manager you can right click on the file and check properties and see if executable is checked or not. After making a change to the file like making it executable you will need to restart LinuxCNC.
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
Actually I just followed the example in the manual on 2.7 and the file does not have to be executable and can be created while LinuxCNC is running and it works. I did place the file in the nc_files directory.
JT
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
Actually I just followed the example in the manual on 2.7 and the file does not have to be executable and can be created while LinuxCNC is running and it works. I did place the file in the nc_files directory.
JT
Last edit: 29 Mar 2015 20:44 by BigJohnT.
Please Log in or Create an account to join the conversation.
29 Mar 2015 22:56 #57284
by ArcEye
I probably confused things by suggesting a test with a M code file (which does have to be executable) to check the PROGRAM_PREFIX works, then talking about sub files, which just have to be readable.
644 is read/write by owner and read only by everyone else.
Since the path obviously works, was trying to think of a reason why the file could not be read.
Replied by ArcEye on topic lathe macro
In the file manager you can right click on the file and check properties and see if executable is checked or not. After making a change to the file like making it executable you will need to restart LinuxCNC.
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
Actually I just followed the example in the manual on 2.7 and the file does not have to be executable and can be created while LinuxCNC is running and it works. I did place the file in the nc_files directory.
JT
I probably confused things by suggesting a test with a M code file (which does have to be executable) to check the PROGRAM_PREFIX works, then talking about sub files, which just have to be readable.
644 is read/write by owner and read only by everyone else.
Since the path obviously works, was trying to think of a reason why the file could not be read.
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
30 Mar 2015 00:00 #57289
by reedmachine
Replied by reedmachine on topic lathe macro
yes, i believe its chmod 644. i have attached the turning.ngc file
Please Log in or Create an account to join the conversation.
Time to create page: 0.071 seconds