File will not run in EMC
- andypugh
-
- Offline
- Moderator
-
- Posts: 23279
- Thank you received: 4933
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.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.
It goes in the INI file, in the section suggested in the documentation I posted a link to initially.ArcEye's suggestion of inserting; " PROGRAM_EXTENSION = .nc , .NC" confuses me as I do not know exactly where to install it.
www.linuxcnc.org/docs/html/config/ini_co...sub_filter_section_a
Please Log in or Create an account to join the conversation.
- piasdom
-
- Offline
- Moderator
-
- Posts: 469
- Thank you received: 10
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.
- ArcEye
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 758
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.
- Mofosheee
- Offline
- New Member
-
- Posts: 12
- Thank you received: 0
Thank you
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 758
Please Log in or Create an account to join the conversation.
- Mofosheee
- Offline
- New Member
-
- Posts: 12
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
- Posts: 23279
- Thank you received: 4933
( 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.
Please Log in or Create an account to join the conversation.
- ArcEye
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 758
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
Please Log in or Create an account to join the conversation.
- Mofosheee
- Offline
- New Member
-
- Posts: 12
- Thank you received: 0
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.