Coder Social home page Coder Social logo

tc2_git's Introduction

Git for TwinCAT 2 (CoDeSys)

GoTwinCAT: Git Macro for CoDeSys or TwinCAT 2. // Oct 2019

How To...

It is a good idea to close PLC Control before using +commit.cmd

  • +commit.cmd does:
    1. looking for the .pro files inside %ProjectDir%
    2. exports several .exp files from the one .pro file to the ~%ProjectName% folder
    3. git add * (all)
    4. git commit -m with-current-date-n-time

From command line, execute git branch or git checkout before running +restore.cmd

  • +restore.cmd does:
    1. looking for .pro files inside %ProjectDir%
    2. import from the .exp files to the .pro one

Project Structure

.
├─ .git
│  └─ ...
├─ .gitignore
├─ +commit.cmd
├─ +restore.cmd
├─ Git.mac
├─ README.md
└─ src
   ├─ foo.pro
   ├─ bar.pro
   ├─ bar.tpy
   ├─ ~foo
   │  ├─ FILE111.EXP
   │  ├─ FILE222.EXP
   │  └─ ...
   └─ ~bar
      ├─ FILE111.EXP
      ├─ FILE222.EXP
      └─ ...

Macro

Open options menu in the PLC Control then add Git.mac as a macrolibrary to the working project: Project → Options → Macros → Macrolibrary... → Include...

00_macro

After that, you can find it under the Edit → Macros → Git → Commit menu items

01_macro_menu

PLC-Control Command Line

"When TwinCAT PLC Control is started, you can add commands in the command line which will be asserted during execution of the program." Read the rest at the infosys' topic: Command Line/Command File Commands

Understanding Git Series

tc2_git's People

Contributors

nikvoronin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.