lathe macro
- reedmachine
- Offline
- New Member
- Posts: 8
- Thank you received: 0
Please Log in or Create an account to join the conversation.
There is no reason to be using 2.3, especially if you know a feature you require is not available (albeit I am not immediately aware of what it was you believed changed with 2.5, I used MDI calls quite happily with 2.3 and 2.4.)
wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.5
The above link has info re upgrading from 2.3 to 2.4 and thence to 2.5
Otherwise will need more info on what exactly you are doing and on what base (machine and distro) to be able to assist further.
regards
Please Log in or Create an account to join the conversation.
JT
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
- Posts: 8
- Thank you received: 0
This is a project to add macro as time permits & have rebooted multiple times & always has the same error.
I also found issuing the O<turning>call in the MDI tab results in the same error . I am able to issue other MDI command ( G0 X1.0 , T1/M6) successfully (v2.3).
I have verified the PROGRAM_PREFIX is point to the correct directory, am assuming the errors is its not seeing the .ngc files in the directory?
I was wondering if it is a “space” or some other simple problem in one of the config files. I mention this because I spent many hours trying to get the calibration widow to show. I discovered the extra space in the hal file of loadrt hal_parport cfg="0x378 X " vs. hal_parport cfg="0x378 X" space between (X) and the end ( “ ) would prevent the calibration window from opening up.
I have attached the relative config files & screen shot of error.
Please Log in or Create an account to join the conversation.
I have verified the PROGRAM_PREFIX is point to the correct directory, am assuming the errors is its not seeing the .ngc files in the directory?
I have not had time to look at all the files, but just checked the ini file to see what your program prefix was.
PROGRAM_PREFIX = /media/disk/Documents and Settings/CNC/My Documents/CNC_Lathe/Lathe_Post_Process
Yughh!!!!!
You need a proper linux path, which it appears you previously had in the commented out line above.
No windoze space separated directory names.
Plus of course the path is dependent upon the remote disk in /media being mounted
Not sure why all your M code files, subs and .ngc files would be in a dir called /Lathe_Post_Process, but that is where it would look, if it could get that far down the path
regards
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
- Posts: 8
- Thank you received: 0
That was something I was trying. I have removed that line & un-comented the line you noted, but still get same error.
I tried to add SUBROUTINE_PATH = /home/reed/emc2/nc_files to ini file and still get same error.
Please Log in or Create an account to join the conversation.
I would suggest that you create a file called M199 (unless that already exists)
Put into it
# !/bin/bash
echo "Successful"
and
sudo chmod 755 M199
Then put it in the dir pointed to by your PROGRAM_PREFIX = and run M199 from the MDI command line
That will prove the path is OK
Then you need to look at your g code file
It needs to be chmod 644 and be named turning.ngc for example, ie exactly the same as the name called, with .ngc added and in the same case
I tried to add SUBROUTINE_PATH = /home/reed/emc2/nc_files to ini file and still get same error.
You are running 2.3 and that is stretching my memory
I seem to remember that SUBROUTINE_PATH was introduced at some stage, but cannot remember when
I would stick with PROGRAM_PREFIX unless you have 2.3 docs that say it works
regards
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
- Posts: 8
- Thank you received: 0
I have reverted back to program prefix in ini
Please Log in or Create an account to join the conversation.
I don't understand what you mean sudo chmod 755 M199.
It is a command to set the file as executable by all, if it is not executable, it will not run.
from a terminal having cd'd to where the M199 file is, run that command
regards
Please Log in or Create an account to join the conversation.
- reedmachine
- Offline
- New Member
- Posts: 8
- Thank you received: 0
Please Log in or Create an account to join the conversation.