Notepad ++ Compile Error

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
burke_wl
Posts: 20
Joined: Wed May 22, 2019 9:14 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: 0506190790
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Notepad ++ Compile Error

Post by burke_wl »

I'm getting the error below while trying to compile the PLC source code. I followed the tech bulletin 294 to configure Notepad++ and I believe I have my folder structure correct for saving files. I was able to get the PLC source code to compile via the windows command prompt. Anyone familiar with this error?

"C:\cnct\compile.cmd" "Centroid-Lathe-Standard-OAK-r2-Axis-Brake-setup2.src"
; about to start a child process: ""C:\cnct\compile.cmd" "Centroid-Lathe-Standard-OAK-r2-Axis-Brake-setup2.src""
CreateProcess() failed with error code 2:
The system cannot find the file specified.

================ READY ================


cnckeith
Site Admin
Posts: 8945
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Notepad ++ Compile Error

Post by cnckeith »

try compiling without using Notepad ++ and see what happens..
here is link to PLC programming how to video playlist for your reference. the first one goes over setting up Notepad ++
https://www.youtube.com/playlist?list=P ... i2WKIedQlQ
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


tblough
Community Expert
Posts: 3540
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Notepad ++ Compile Error

Post by tblough »

Well, it states that it cannot find "compile.cmd" in the cnct directory. Perhaps you were trying to run mpucomp.exe?
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.


burke_wl
Posts: 20
Joined: Wed May 22, 2019 9:14 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: 0506190790
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad ++ Compile Error

Post by burke_wl »

cnckeith wrote: Thu May 30, 2019 9:06 pm try compiling without using Notepad ++ and see what happens..
here is link to PLC programming how to video playlist for your reference. the first one goes over setting up Notepad ++
https://www.youtube.com/playlist?list=P ... i2WKIedQlQ
I was able to get the source code file to compile using the windows command prompt.


burke_wl
Posts: 20
Joined: Wed May 22, 2019 9:14 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: 0506190790
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad ++ Compile Error

Post by burke_wl »

tblough wrote: Thu May 30, 2019 9:07 pm Well, it states that it cannot find "compile.cmd" in the cnct directory. Perhaps you were trying to run mpucomp.exe?
Here are a few screenshots that show the file locations and names. Also a screenshot of the Compile Execute command from Notepad++ which was copied and pasted from tech bulletin 294.
Attachments
compile.cmd text.PNG
compile.cmd text.PNG (4 KiB) Viewed 3091 times
Compile Execute.PNG
Compile Execute.PNG (11.71 KiB) Viewed 3091 times
compile.cmd location.PNG
Source code location.PNG


tblough
Community Expert
Posts: 3540
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Notepad ++ Compile Error

Post by tblough »

Rename "compile.cmd" to "compile.bat" and update the execute command to reflect that as well.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.


burke_wl
Posts: 20
Joined: Wed May 22, 2019 9:14 am
Acorn CNC Controller: No
Allin1DC CNC Controller: No
Oak CNC controller: Yes
CNC Control System Serial Number: 0506190790
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Notepad ++ Compile Error

Post by burke_wl »

tblough wrote: Fri May 31, 2019 10:55 pm Rename "compile.cmd" to "compile.bat" and update the execute command to reflect that as well.
Hi Tom,

I tried to relabel the compile.cmd file to compile.bat and updated the execute command and got the same error as before.

Thanks,
Wes


tblough
Community Expert
Posts: 3540
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Notepad ++ Compile Error

Post by tblough »

Then the only other thing is that compile.bat is not in CURRENT_DIRECTORY.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.


Post Reply