Page 4 of 4

Re: lathe spindle question

Posted: Fri May 09, 2025 10:31 am
by tblough
Turn off Window's "Hide extensions for known file types". My guess is your file is actually named compile.cmd.txt which will not work.

Re: lathe spindle question

Posted: Fri May 09, 2025 10:33 am
by midy
Thanks Tom, I had checked this

Re: lathe spindle question

Posted: Fri May 09, 2025 1:46 pm
by Centroid_Jacob
midy wrote: Fri May 09, 2025 10:33 am Thanks Tom, I had checked this
Midy,

Just had a look at your report that you posted earlier today. In the report.txt file listed in the report.zip, it is showing that you have compile.cmd in the C:/cncm directory.

Code: Select all

Directory of C:\cncm
...removed other items for brevity...
Tue Oct 15 19:34:46 2024                   43 		compile.cmd

The file size and timestamp match what I have here. You should be able to compile, based on that.


How computer savvy are you? Are you able to open Command Prompt? On Windows 10/11, you should be able to search the Start Menu for cmd and it should show up.

With Command Prompt open, can you enter this command?

Code: Select all

C:/cncm/compile.cmd acorn_mill_plc.src
That command just calls compile.cmd and feeds acorn_mill_plc.src to it, which should generate the compiled mpu.plc file after it outputs its progress.

If that command works, then something isn't setup right with your Notepad++ install but you can always call the command to recompile acorn_mill_plc.src into a mpu.plc. For lathe, the command would be "C:/cnct/compile.cmd acorn_lathe_plc.src" as was mentioned earlier.

You mentioned updating from 5.26 to 5.30, have you finished the upgrade yet? If so, please post a fresh report.

Re: lathe spindle question

Posted: Fri May 09, 2025 2:03 pm
by cncsnw
While you have the CMD prompt open, you could enter the following two commands:

Code: Select all

cd  \cncm
mpucomp  acorn_mill_plc.src  mpu.plc
In my opinion, some people spend far more time trying to figure out how to get PLC programs to compile from within NotePad++, than they would spend just learning how to compile a PLC program.

Compiling from a command prompt always works, regardless of whether NotePad++ is installed or configured correctly on that particular computer.

Re: lathe spindle question

Posted: Fri May 09, 2025 5:06 pm
by centroid467
To be clear, to address the target file "acorn_mill_plc.src", you must have the current working directory of the command prompt set to the same directory as said target file.

Marc's directions have you first move the current working directory to cncm which contains both, hence the lack of full paths in the second line.


If you are not familiar with command line usage, you can verify the working directory with the

Code: Select all

pwd
command and the contents of said directory with

Code: Select all

dir

Re: lathe spindle question

Posted: Sat May 10, 2025 11:43 am
by midy
Thanks for the great replys chaps. Duly noted and will give it a go for sure but im going to do a fresh install of cnc12 soon to update it. And see iff that also sorts this?? We will see? Probably tomorrow - thanks again for all the support