Page 1 of 1

PLC programming question please <Answered>

Posted: Mon May 05, 2025 8:37 am
by fusion
Hello,
I would like to make a few small changes to the PLC program around the Shuttle logic. I have read that you can compile it with the compiler program of course, but I also read you can compile it using the wizard by writing changes to the control.
My question is, can I modify the file acorn_universal_template.src and still use the wizard for changes going forward, and the wizard will compile my special PLC program along with any changes made in the wizard?

Thank you for you help.
Mike

Re: PLC programming question please

Posted: Mon May 05, 2025 1:22 pm
by Allin1Chris
fusion wrote: Mon May 05, 2025 8:37 am My question is, can I modify the file acorn_universal_template.src and still use the wizard for changes going forward, and the wizard will compile my special PLC program along with any changes made in the wizard?
Hello!

To answer your question directly, Yes!, but it is nuanced. I would recommend to modify the .src file found in the cncm or cnct directory instead actually.

Modify the cncm/cnct .src file with your edits and compile it (you could even use the wizard to compile actually, you just need to open the wizard and change an input and/or output assignment and the wizard will re-compile it). I should note though that care should be taken to not modify the wizard regions or modify memory bits that may result in a PLC compilation error. You would need to fix any issues that arise from your edits for the Wizard to work properly with it.

The Template file is only used by the Wizard in the case that the .src file in the main cncm or cnct directory cant be found, or is used for updating if the date of the .src file is different. Meaning that unless one of these cases is true, your modifications to the template file will not be used by CNC12.

Re: PLC programming question please

Posted: Mon May 05, 2025 1:34 pm
by fusion
Thank you very much! I will edit the cnct .src file. Even though I have everything backed up, editing the PLC file is a huge step for me and makes me nervous.
Thanks again.
Mike

Re: PLC programming question please

Posted: Mon May 05, 2025 1:39 pm
by suntravel
Hi Mike,

I also do not think altering the template is the best way to go.

I do my mods after setting up the machine with the wizard, comment them with my name.

So after an update I just compare new and old PLC with the Compare Plugin in NP++ do my thing to the new PLC and be ready to run in a few minutes.

Also I can see and learn whats new in the update from Centroid.

Uwe