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
PLC programming question please <Answered>
Moderator: cnckeith
-
- Posts: 77
- Joined: Wed May 09, 2018 7:54 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 0479B7ADF2F3-1127192707
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Greensboro, NC
PLC programming question please <Answered>
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- PLC Expert
- Posts: 231
- Joined: Wed Jul 31, 2019 12:53 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: Yes
- CNC12: Yes
- CNC11: Yes
- CPU10 or CPU7: Yes
Re: PLC programming question please
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.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.
(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)
Centroid PLC Tutorial Videos
Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.
(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)
Centroid PLC Tutorial Videos
1 user liked this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 77
- Joined: Wed May 09, 2018 7:54 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 0479B7ADF2F3-1127192707
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Greensboro, NC
Re: PLC programming question please
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
Thanks again.
Mike
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3484
- Joined: Thu Sep 23, 2021 3:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 6433DB0446C1-08115074
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Germany
Re: PLC programming question please
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
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
2 users liked this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
(Note: Liking will "up vote" a post in the search results helping others find good information faster)