File will not run in EMC

More
07 Dec 2012 08:11 #27356 by andypugh
Replied by andypugh on topic File will not run in EMC

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.

For some reason LinuxCNC thinks that there is a comment within a comment in the file. I don't know why it considers that to be a problem, but you probably have a bracketed expression in a comment line with a ; at the beginning or something similar.

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

It goes in the INI file, in the section suggested in the documentation I posted a link to initially.
www.linuxcnc.org/docs/html/config/ini_co...sub_filter_section_a

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

More
07 Dec 2012 08:14 #27357 by piasdom
Replied by piasdom on topic File will not run in EMC
when i would get ..... the same message "nested comment found" when I attempt to run the machine.
i would look for (start( a message)) don't think you can have double parentheses. only (start)

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

More
07 Dec 2012 17:21 #27376 by ArcEye
Replied by ArcEye on topic File will not run in EMC

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


Unfortunately, unless you post the file , or at least the start of it, we cannot assist you.

The output from CAM programs is often poor, no 'punctuation' or spacing etc. which makes it quite hard to read.

I was always taught that you should never mix comments with code.
If that were adhered to, the interpreter could just ignore any line with a ; or ( character, which would make life a lot simpler for all.

regards

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

More
08 Dec 2012 00:00 #27395 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
Excuse me..........Should be here now.



Thank you

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

More
08 Dec 2012 00:44 #27397 by ArcEye
Replied by ArcEye on topic File will not run in EMC
Nothing attached - try changing the extension to .txt, it will allow anything with that extension

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

More
08 Dec 2012 04:15 #27401 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
Hopefully this attached


File Attachment:

File Name: FCP.txt
File Size:148 KB


Jerry
Attachments:

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

More
08 Dec 2012 04:18 #27402 by andypugh
Replied by andypugh on topic File will not run in EMC

File Attachment:

File Name: FCP.txt
File Size:148 KB


( 120512 FCP cambam (11) (1) 12/5/2012 11:06:00 AM )

Comment within a comment.
I have no idea why that is considered to be a problem.
Change that to say
( 120512 FCP cambam 11 1 12/5/2012 11:06:00 AM )
And I suspect that it will run fine.
The following user(s) said Thank You: Mofosheee

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

More
08 Dec 2012 17:03 - 08 Dec 2012 17:03 #27409 by ArcEye
Replied by ArcEye on topic File will not run in EMC
The only other thing to be aware of is that CamBam is terminating the program with M30 rather than M2.

In some controllers this simply means stop and rewind, but it is subtly different with Linuxcnc
linuxcnc.org/docs/2.5/html/gcode/m-code.html#sec:M2-M30

Probably won't make any difference just be aware of it
regards
Last edit: 08 Dec 2012 17:03 by ArcEye.

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

More
08 Dec 2012 20:20 #27411 by Mofosheee
Replied by Mofosheee on topic File will not run in EMC
Andy, ArchEye

Many thanks for all your input. Andy hit the nail on the head with the advice of changing the deleting the ( ) 's

Regards,

Jerry

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

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