Roald87 / roald87.github.io

Mostly cooking and coding in TwinCAT.
https://cookncode.com
MIT License
4 stars 2 forks source link

twincat/2021/06/07/tc-source-control-tips #74

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Source control tips for TwinCAT

Source control is an essential tool when you’re developing software. Yet, there is little information online on how to do it for TwinCAT projects. In this post, I share some tips and tricks I picked up along the way. The main focus is git, but many points apply to other source control systems as well.

https://cookncode.com/twincat/2021/06/07/tc-source-control-tips.html

paulbarron85 commented 1 year ago

I can't get this to work. The ignoreNetId.sh doesn't stay in the repo so I don't know how to apply it to all users. If you put the file in the .git folder you can't then add it to the repo.

Roald87 commented 1 year ago

@paulbarron85 you have to put it in the .git folder. It is then indeed outside of the repo. I'm not sure if that can be done differently.

PatrickSt90 commented 1 year ago

In the properties of the inner Plc-Project (SPS-->PLcProject-->PlcProject Projekt) in the tab advanced there is a Checkbox "Write product version in files". Is there a reason why you didn't mention this setting? If there is a version change you get rid of 1000's of changes

paulbarron85 commented 1 year ago

@PatrickSt90 Didn't know this existed. Seems like a good idea, is there any downside to unchecking this option?

Roald87 commented 1 year ago

I've seen that option, but never really looked into it and what effect it would have to remove the version number. That is because the projects I worked on were not that big, plus the version numbers only change if you open the file. Maybe you can check with Beckhoff what it does. Please share if you find it out.

PatrickSt90 commented 1 year ago

there is a page in the infosys: https://infosys.beckhoff.com/english.php?content=../content/1033/tc3_plc_intro/3260207243.html&id=

In says: