Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

using "git" to track EcoStruxure Machine Expert project

Machine and Motion Control Forum

Support forum for Machine and Motion Control solutions, including Lexium MC12 and robotics, PacDrive, Modicon PLCs and I/Os, EcoStruxure Machine Expert Twin, … - from design, implementation to troubleshooting and more, by Schneider Electric

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Machine and Motion Control Forum
  • using "git" to track EcoStruxure Machine Expert project
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
8
FernandoRodrigues
FernandoRodrigues Support
6
Francesco_Begnoni
Francesco_Begnoni Support
5
LeTomas
Lt. Commander LeTomas Lt. Commander
5
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Machine and Motion Control Forum
aporter
Crewman aporter
Crewman

Posted: ‎2022-06-30 06:13 PM

0 Likes
9
4533
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-06-30 06:13 PM

using "git" to track EcoStruxure Machine Expert project

 

I am helping a client who is getting started with Machine Expert for programming PLCs and factory automation.  I am a bit of an outsider when it comes to these specific tools, but have plenty of experience with general software development for embedded applications and web applications.  I am hoping some of the best practices will translate here.

 

Is it possible to use "git" to keep track of source code files in EcoStruxure Machine Expert?

 

Is your application code stored in binary files?  Are some files "source code" and other files derivative or "objects"?  Perhaps someone who has done this before has a ".gitignore" file that tells (us and) git which files to track and which ones to ignore.

 

Ideally, I would want to commit all of the NECESSARY files into version control, so that a second developer could check out the same code and then work on the same application.  I understand the merging will be difficult, if binary files are involved.  I also imagine that comparing versions would be almost impossible.  But it DOES at least offer the chance to "step back in time" and look at previous versions of a running application.

 

Thoughts?  Advice?

 

Alan Porter

sentosa.us

 

 

Labels
  • Labels:
  • Digital
  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 9
LeTomas
Lt. Commander LeTomas Lt. Commander
Lt. Commander

Posted: ‎2022-07-01 02:09 AM

0 Likes
4
4512
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-01 02:09 AM

Hi @aporter ,

 

I am not 100% sure if it is the same but in EcoStruxure Machine Expert you can use SVN to track the changes in the application (Supervision):

 

ESME_SVN.PNG

 

In my laptop I use tortoiseSVN:

https://tortoisesvn.net/ 

 

Git VS SVN: 

https://www.perforce.com/blog/vcs/git-vs-svn-what-difference

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-07-01 03:58 AM

In response to LeTomas
0 Likes
2
4504
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-01 03:58 AM

It would be great to have this addon in Ecostruxure HVAC as well ! Maybe some of the good stuff in 1.5.0 ?🤔

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

aporter
Crewman aporter
Crewman

Posted: ‎2022-07-01 04:42 AM

In response to LeTomas
0 Likes
0
4497
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-01 04:42 AM

Ah, this is excellent.  Subversion and git are pretty close in terms of basic check-in and check-out.  The main differences are (1) in how they handle branching and (2) in the naturally distributed nature of git.  But for simple uses, they're roughly the same.

 

I'll take a look and see if I can work with my client to make some "snapshots" to save work.

 

Alan

 

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

aporter
Crewman aporter
Crewman

Posted: ‎2022-07-01 04:46 AM

In response to otrotabi
1 Like
1
4495
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-01 04:46 AM

I think one of the key points of my question was to identify which files were necessary to save in version control, and which ones were derivative.  Once we know the answer to that, then it does not matter whether there is a built-into-the-IDE option for source code control.  You can easily use a command prompt to check in the files you need.  IDE integration is nice, but there's no reason to wait on $SOMEONE_ELSE to release $NEXT_VERSION before you can use these tools.

 

Thanks for your help in educating me about these tools.  There is definitely a lot to learn!

 

Alan Porter

sentosa

 

 

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-07-01 06:22 AM . Last Modified: ‎2022-07-01 06:24 AM

In response to aporter
1 Like
0
4481
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-01 06:22 AM . Last Modified: ‎2022-07-01 06:24 AM

Actually I am not a Machine Expert user but Ecostruxure Machine Expert HVAC instead so I will tell you my own personal experience.  This is the folder structure for a typical project:

 

folder.jpg

 

Besides the pdf, which is there to have a quick access to the electrical diagram, the rest of the files are in a binary format.

 

You may notice a PreviousVersions folder there.  This is what is in this folder:

 

previous.jpg

These are (as far as I understand) zipped snapshots of the project created (i would assume) before each new compile or some other time based schedule I am not aware of.

 

I would usually not commit this "PreviousVersions" subfolder. Also there are some files which are created on the fly with the simulator. In HVAC you assign a name to the simulation and you may have different simulations saved and these files keep the information related to that particular simulation. There is no need to keep these files in the repo (but they are quite small anyway so I would usually just uncheck the whole folder and commit the rest. I attach a picture of the simulation files and a typicall Tortoise commit.

 

simulation.jpg

 

 

commit.jpg

 

 

But this is as far as you can go (unless I am missing something) in terms of SVN not being properly built-in  into the IDE. Basically besides the fact that I can put some comments on each commit, having to go back into some point-in-time version of a project for comparison is a real pain. You need to create a different folder and either revert to a previous revision or create a branch from a previous one, but comparing the proiects is something you must do on your own. Usually having two monitors is a good thing if you need to do it.

 

branch.jpg

Again, I do not have a clue what SVN integration into Machine expert is capable of doing besides what you can do with TortoiseSVN, but if it does not include a Diff tool you can simply not use it at all if you want to. 

 

But Diff might be easily achievable only for structured text functions and programs. Comparing ladder or FB I would say is a completely different challenge. 

 

 

 

 

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-07-09 02:56 AM

In response to Samueljonas
0 Likes
0
4398
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2022-07-09 02:56 AM

It is not clear what you mean @Samueljonas .

 

Maybe you forgot to include a hyperlink ?

  • Tags:
  • english
Reply

Link copied. Please paste this link to share this article on your social media post.

Tosui
Tosui
Cadet

Posted: ‎2023-06-02 09:32 PM

0 Likes
0
3405
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-06-02 09:32 PM

I haven't tried it yet...but it looks like you could use the Export and Import project files(XML format) with "GITHUB".  Sort of a "low-tech" type of version management.

Reply

Link copied. Please paste this link to share this article on your social media post.

Tosui
Tosui
Cadet

Posted: ‎2023-06-02 09:42 PM

0 Likes
0
3404
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-06-02 09:42 PM

Screenshot 2023-06-02 224138.jpg

Reply

Link copied. Please paste this link to share this article on your social media post.

mlawson
mlawson
Cadet

Posted: ‎2023-06-05 12:08 PM

0 Likes
0
3361
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-06-05 12:08 PM

I was looking for a related topic and came across this post.  For transparency, I work for Copia Automation, and we can provide git-based version control for Machine Expert, with even rendering of the Ladder Logic during commits.  We are working on expansion of our ME and CODESYS support this year, so you can expect to see more language and other features.  

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of