File will not run in EMC

More
06 Dec 2012 08:45 #27273 by Mofosheee
I have been advised that EMC requires a .ngc suffux to run a file. My attempts to run .nc files have been unsuccessful as I am presented with a "file will not open" message. If this is true is there a way to amend this? Please advise me. Thank you

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

More
06 Dec 2012 08:47 #27274 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
The fugutuve file should be attached.............

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

More
06 Dec 2012 10:11 #27282 by andypugh
Replied by andypugh on topic File will not run in EMC

I have been advised that EMC requires a .ngc suffux to run a file. My attempts to run .nc files have been unsuccessful

Well, you could just change the file name.
But, this is Linux, we hate arbitrary rules. You can call your files anything you like.
Putting PROGRAM_EXTENSION = .nc in the right part of the INI file should do the trick.
www.linuxcnc.org/docs/html/config/ini_co...sub_filter_section_a
That bit of the documentation could probably be clearer.

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

More
06 Dec 2012 18:08 #27293 by ArcEye
Replied by ArcEye on topic File will not run in EMC
HI

There could be a variety of reasons the file will not open, none of them to do with the extension

This screen shot shows that you can open a g code file with literally .anything as the extension, so long as you have permissions to open it and the file is a valid format for Linuxcnc



Putting PROGRAM_EXTENSION = .nc in the right part of the INI file should do the trick.


Seemed logical but in fact doing that threw an error in Axis at startup

Traceback (most recent call last):
File "/usr/bin/axis", line 2776, in <module>
extensions = tuple([(v, tuple(k.split(","))) for k, v in extensions])
ValueError: need more than 1 value to unpack
Shutting down and cleaning up LinuxCNC...


If the file has the extension .nc, where did you get it? What machine is it intended for?
You probably need to look at the contents of it and that the permissions are at least set to 744 (read/write/exec by owner, read by group/others)

regards
Attachments:

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

More
06 Dec 2012 18:20 #27295 by andypugh
Replied by andypugh on topic File will not run in EMC

Putting PROGRAM_EXTENSION = .nc in the right part of the INI file should do the trick.

Seemed logical but in fact doing that threw an error in Axis at startup

It seems there is a bit more to it than that. But not a lot more.

linuxcnc.org/hardy/dapper/index.php/foru...t=6&lang=french#6338

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

More
06 Dec 2012 19:00 #27298 by ArcEye
Replied by ArcEye on topic File will not run in EMC

It seems there is a bit more to it than that. But not a lot more.
linuxcnc.org/hardy/dapper/index.php/foru...t=6&lang=french#6338


Finally tracked it down

PROGRAM_EXTENSION = .nc , .NC

produces the required result, the file appears in the file open dialog and will load

If you just put
PROGRAM_EXTENSION = .nc

Axis throws the error I pasted previously

Weird but can't be bothered to look much further, as selecting 'All Files' in the file open dialog would have enabled you to load the .nc file anyway

regards

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

More
06 Dec 2012 19:18 #27299 by andypugh
Replied by andypugh on topic File will not run in EMC

Weird but can't be bothered to look much furthe

It's not that wierd. Axis is trying to split the argument list at the comma character, and if there is no comma there is no list and it gets confused.
The following user(s) said Thank You: Mofosheee

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

More
06 Dec 2012 21:57 #27310 by ArcEye
Replied by ArcEye on topic File will not run in EMC
OK, not weird, just poor programming.
The following user(s) said Thank You: Mofosheee

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

More
07 Dec 2012 02:00 #27328 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
The file was obtained from CamBam to be run on a Sherline mill with EMC installed. Thank you

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

More
07 Dec 2012 08:06 #27355 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
I am still having difficulty with the file. This file was created in CamBam to be run on my Sherline. Please note that other files that I created using CamBam opened and ran without issue on my Sherline.

I have changed the .nc to ngc with no success. Selecting "all files" in the dialogue box allows the file to load, but I still receiver the same message "nested comment found" when I attempt to run the machine.

The permissions that ArcEye suggested were reviewed and compared to the sample files included with the Sherline (no changes were made)

ArcEye's suggestion of inserting; " PROGRAM_EXTENSION = .nc , .NC" confuses me as I do not know exactly where to install it.

I realized that it is poor etiquette and keeping with my poor programming practices ( I prefer not to do it this way ) I deleted the first 3 or 4 lines in the .nc file and the program ran. ?????????????

I wish that I knew what I was doing.

Please advise

And thank you.

Jerry

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

Moderators: piasdom
Time to create page: 0.153 seconds
Powered by Kunena Forum