[version en cours de rédaction] | [version en cours de rédaction] |
(Page créée avec « {{Tuto Details |Description=<translate>Changing the directory structure to allow a PC used for PLC code editing to sync with the source code version control system</trans... ») |
|||
Ligne 20 : | Ligne 20 : | ||
{{Materials}} | {{Materials}} | ||
{{EPI}} | {{EPI}} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Install Sourcetree on the PC</translate> | ||
+ | |Step_Content=<translate>See this tutorial for installation instructions | ||
+ | |||
+ | <br /></translate> | ||
+ | }} | ||
{{Tuto Step | {{Tuto Step | ||
|Step_Title=<translate>Backup the Old Project</translate> | |Step_Title=<translate>Backup the Old Project</translate> | ||
Ligne 25 : | Ligne 31 : | ||
}} | }} | ||
{{Tuto Step | {{Tuto Step | ||
− | |Step_Title=<translate> | + | |Step_Title=<translate>Rename tcMulti and PLC_Reset</translate> |
− | |Step_Content=<translate> | + | |Step_Content=<translate>Remove the version numbers at the end</translate> |
− | |||
− | |||
}} | }} | ||
{{Tuto Step | {{Tuto Step | ||
Ligne 48 : | Ligne 52 : | ||
{{Tuto Step | {{Tuto Step | ||
|Step_Title=<translate>Change the PLC Projects to versionControl</translate> | |Step_Title=<translate>Change the PLC Projects to versionControl</translate> | ||
− | |Step_Content=<translate># Open the machine's standard Visual Studio project file | + | |Step_Content=<translate>#Open the machine's standard Visual Studio project file |
− | # Right click on | + | #Right click on tc3Multi_and select Change Project |
− | # Navigate to the versionControl folder\tc3Multi</translate> | + | #Navigate to the versionControl folder\tc3Multi |
+ | #Repeat for PLC_Reset</translate> | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Check the IO Links still Exist</translate> | ||
+ | |Step_Content=<translate></translate> | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Activate Configuration</translate> | ||
+ | |Step_Content=<translate></translate> | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Delete the Old PLC Projects</translate> | ||
+ | |Step_Content=<translate>In the Project folder for the machine, delete tc3Multi and PLC_Reset folder | ||
+ | |||
+ | {{Info|...These folders now reside in the versionControl folder}}<br /></translate> | ||
}} | }} | ||
{{Notes}} | {{Notes}} | ||
{{PageLang | {{PageLang | ||
+ | |Language=en | ||
|SourceLanguage=none | |SourceLanguage=none | ||
|IsTranslation=0 | |IsTranslation=0 | ||
− | |||
}} | }} | ||
{{Tuto Status | {{Tuto Status | ||
|Complete=Draft | |Complete=Draft | ||
}} | }} |
Changing the directory structure to allow a PC used for PLC code editing to sync with the source code version control system
Auteur Gareth Green | Dernière modification 21/03/2022 par Gareth Green en cours de rédaction ⧼frevu-button-review-label⧽
Pas encore d'image
Changing the directory structure to allow a PC used for PLC code editing to sync with the source code version control system
For many years, the source code for the PLCs has resided on the G:\drive and then a copy on each and every one of the PCs used to edit the code, so at least one on each machine. This is a recipe for disaster because maintaining all the copies and version numbers is incredibly difficult and adds a lot of time overhead to fixes and changes. This has worked becasue there has been only one developer, but this is set to change in future as more programmers will be trained and tracking versions becomes more difficult
From 2020, the PLC code version control has been improved by using an industry standard source control system called "Git" along with "BitBucket" to store the PLC code in the cloud. The program "SourceTree" is used to commit, push and pull the changes
Click here for an introduction to version control using Git
See this tutorial for installation instructions
See this tutorial for backing up (archiving) a TwinCAT3 project
Remove the version numbers at the end
Clone the online repository to a new local directory c:\TwinCAT\stuga\versionControl
Check success by navigating to the folder - there should be 2 folders
PLC_Reset
tc3Multi
This will get the latest file versions from the cloud of tcMulti and PLC_Reset and copy into PLC_Reset and tc3Multi
In the Project folder for the machine, delete tc3Multi and PLC_Reset folder
en none 0 Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #