Manual. Source Control. TwinCAT 3. Version Date 1.0 2015-06-22



Similar documents
Manual TC3 PLC HMI. TwinCAT 3. Version: Date: Order No.: TF1800

Brake module AX5021. Documentation. Please read this document carefully before installing and commissioning the brake module!

Documentation for. KL2602 and KL2622. Two-channel Relay Output Terminals for 230 V AC / 30 V DC. Version: 1.4 Date:

Beckhoff onboard SATA-RAID

Beckhoff TwinCAT. Configuring the TwinCAT I/O System

Parts Database to SQL Server EPLAN Platform Version 2.5 Status: 07/2015

Changing over the EPLAN Parts Database to SQL Server EPLAN Platform Version 2.4 Status: 05/2014

BECKHOFF CP-Link 3. Documentation for. CP-Link 3. Ethernet based Desktop Transmission Software. Version: 1.7. Date:

Changing Over the EPLAN Project Management on SQL-Server EPLAN Platform Version 2.5 Status: 06/2015

BECKHOFF. Application Notes. BC9000: Getting Started Guide. For additional documentation, please visit.

Changing over the EPLAN Dictionary to SQL Server EPLAN Platform Version 2.4 Status: 05/2014

Transmitting s in a local network with a WAGO CONTROLLER Application note

Changing over the EPLAN Project Management to SQL Server EPLAN Platform Version 2.4 Status: 05/2014

Ethernet/IP Comms between a WAGO and a Mettler Toledo JAGXTREME Terminal Application note

WAGO-I/O-SYSTEM. Using library WagoLibMSSQL_03.lib in CoDeSys 2.3 for interface to Microsoft SQL Server 200x. Application Note

Installation Instructions

TPM. (Trusted Platform Module) Installation Guide V2.1

Remote Connection to a WAGO using a High-Speed Internet connection Application note

Honeywell Process Solutions. Experion LX. Backup and Restore. Guide. EXDOC-X111-en-110A R110 February Release 110. Honeywell

Setup Soft PLC Technical handbook

SolarWinds Migrating SolarWinds NPM Technical Reference

Automation License Manager

TPM. (Trusted Platform Module) Installation Guide V for Windows Vista

Multicurrency Bank Reconciliation 9.0

Software License Registration Guide

Creating the program. TIA Portal. SIMATIC Creating the program. Loading the block library. Deleting program block Main [OB1] Copying program blocks

Graphic Driver Installation Instructions

Avira Exchange Security Version 12. HowTo

Validity 1. Improvements in STEP 7 2. Improvements in WinCC 3. Simatic. Readme. Readme

Dell InTrust Preparing for Auditing Microsoft SQL Server

Oracle Enterprise Single Sign-on Logon Manager How-To: Configuring ESSO-LM Event Logging with Microsoft SQL Server 2005 Release

Accessing EtherNet/IP Network Variables in a WAGO with a ControlLogix PLC Application note

Manual. TC3 FTP Client. TwinCAT 3. Version Date Order No TF6300

Working with a Version Control System

SIMATIC. SIMATIC Logon. User management and electronic signatures. Hardware and Software Requirements. Scope of delivery 3.

Ross Video Limited. DashBoard Server and User Rights Management User Manual

HP dx5150 RAID Installation and Setup Guide Version Document Part Number:

Generating SSH Keys and SSL Certificates for ROS and ROX Using Windows AN22

Application Note. WAGO EtherNet/IP Communications with a CompactLogix PLC Using Explicit Messaging. A500620e, English Version: 1.0.

NEC Express5800 Series NEC ESMPRO AlertManager User's Guide

Zoom Plug-ins for Adobe

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

IBM Security QRadar SIEM Version MR1. Administration Guide

Avira Secure Backup INSTALLATION GUIDE. HowTo

QlikView 11 Source Control Walkthrough

Areas Covered. Chapter 1 Features (Overview/Note) Chapter 2 How to Use WebBIOS. Chapter 3 Installing Global Array Manager (GAM)

KofaxExpress. Installation Guide

SIMATIC. WinCC V7.0. Getting started. Getting started. Welcome 2. Icons 3. Creating a project 4. Configure communication 5

Recording Server Module BANK

HP RDX Continuous Data Protection Software Quickstart Guide

KYOeasyprint 3. User Guide Version 1.0 1/18. This user guide refers to KYOeasyprint version 3. Liability

Trusted Platform Module (TPM) Quick Reference Guide

Product Compatibility and Download Center

Using the WAGO PROFINET Coupler as Remote I/O with a Siemens S7 PLC

Avira Exchange Security Small Business Edition. Quick Guide

HP Device Manager 4.6

Installation Guide Installing / Licensing / Unlocking Kepware Products

Connect Ethernet-Controller to TO-PASS web portal via GPRS-Router Application note

Programmable Safety Systems PSS-Range

Attix5 Pro Server Edition

Microsoft Dynamics GP Audit Trails

System Release Notes Express5800/320LB System Release Notes

Administration and Business Collaboration. User Manual

Using the SysLibFile.lib and the WagoLibFtp.lib for file access Application note

Blue Moon Industries. Warehouse Management Integration. for Microsoft Dynamics GP Manhattan Associates' ILS.Net Release 10.0

Orange Apps UserLogonUSB V1.0

WORKFLOW INTEGRATOR INSTALLATION GUIDE

HP LeftHand SAN Solutions

HP ProtectTools Embedded Security Guide

FEC Secure IPSec Client

System 800xA Engineering Application Change Management

KeyAdvantage System DMS Integration. Software User Manual

Administering Team Foundation Server 2013

Attix5 Pro Server Edition

SeMSy III Failover Server

Kaspersky Password Manager USER GUIDE

WinCC Runtime Professional Readme SIMATIC HMI. WinCC V11 SP1. Readme WinCC Runtime Professional. Special considerations for Windows 7.

System Requirements for Microsoft Dynamics NAV 2013 R2

Logix5000 Controllers Import/Export Project Components

Microsoft Dynamics GP. Electronic Signatures

Emonitor INSTALLATION MANUAL INSTALLING EMONITOR SOFTWARE WITH A GUPTA SINGLE USER DATABASE

Tutorial. Patch Management

Dell Enterprise Reporter 2.5. Configuration Manager User Guide

Diamante WiFi Wireless Communication User Guide. Linksys E1200

Polycom RSS 4000 / RealPresence Capture Server 1.6 and RealPresence Media Manager 6.6

Acronis SharePoint Explorer. User Guide

Dell NetVault Backup Plug-in for SharePoint 1.3. User s Guide

Secure Web Gateway 11.7 Upgrade Release Notes

QuarkCopyDesk 8.12 ReadMe

Kaspersky Password Manager

Trend Micro Incorporated reserves the right to make changes to this document and to the products described herein without notice.

Backing up and restoring HP Systems Insight Manager 6.0 or greater data files in a Windows environment

Microsoft Dynamics GP. Pay Steps for Human Resources Release 9.0

Standard diagnostic and configuration interface for Beckhoff Industrial PCs

Recovery BIOS Update Instructions for Intel Desktop Boards

FC , FC9011, FC9002, FC9004 FC9022, FC9062

HP Web Jetadmin Database Connector Plug-in reference manual

Microsoft Visual Studio Integration Guide

Microsoft Dynamics GP. Audit Trails

Transcription:

Manual TwinCAT 3 Version Date 1.0 2015-06-22

Table of Contents Table of Contents 1 Foreword... 4 1.1 Notes on the documentation... 4 1.2 Safety instructions... 5 2 Integration of the Management... 6 2.1 Project Files... 6 2.2 Project settings... 6 2.3 Best Practice... 9 3 Configuration of the source control client... 11 3.1 Selection of the Compare Tool... 12 4 TwinCAT Project Compare... 13 4.1 Configuration of the TcProjectCompare... 13 4.2 Independent use of Project Compare... 14 4.3 Merge of TwinCAT PLC Projects... 16 Version 1.0 3

Foreword 1 Foreword 1.1 Notes on the documentation This description is only intended for the use of trained specialists in control and automation engineering who are familiar with the applicable national standards. It is essential that the following notes and explanations are followed when installing and commissioning these components. The responsible staff must ensure that the application or use of the products described satisfy all the requirements for safety, including all the relevant laws, regulations, guidelines and standards. Disclaimer The documentation has been prepared with care. The products described are, however, constantly under development. For that reason the documentation is not in every case checked for consistency with performance data, standards or other characteristics. In the event that it contains technical or editorial errors, we retain the right to make alterations at any time and without warning. No claims for the modification of products that have already been supplied may be made on the basis of the data, diagrams and descriptions in this documentation. Trademarks Beckhoff, TwinCAT, EtherCAT, Safety over EtherCAT, TwinSAFE, XFC and XTS are registered trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owners. Patent Pending The EtherCAT Technology is covered, including but not limited to the following patent applications and patents: EP1590927, EP1789857, DE102004044764, DE102007017835 with corresponding applications or registrations in various other countries. The TwinCAT Technology is covered, including but not limited to the following patent applications and patents: EP0851348, US6167425 with corresponding applications or registrations in various other countries. EtherCAT is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany Copyright Beckhoff Automation GmbH & Co. KG, Germany. The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited. Offenders will be held liable for the payment of damages. All rights reserved in the event of the grant of a patent, utility model or design. 4 Version 1.0

Foreword 1.2 Safety instructions Safety regulations Please note the following safety instructions and explanations! Product-specific safety instructions can be found on following pages or in the areas mounting, wiring, commissioning etc. Exclusion of liability All the components are supplied in particular hardware and software configurations appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation and drive engineering who are familiar with the applicable national standards. Description of symbols In this documentation the following symbols are used with an accompanying safety instruction or note. The safety instructions must be read carefully and followed without fail! DANGER Serious risk of injury! Failure to follow the safety instructions associated with this symbol directly endangers the life and health of persons. WARNING Risk of injury! Failure to follow the safety instructions associated with this symbol endangers the life and health of persons. CAUTION Personal injuries! Failure to follow the safety instructions associated with this symbol can lead to injuries to persons. Attention Damage to the environment or devices Failure to follow the instructions associated with this symbol can lead to damage to the environment or equipment. Tip or pointer This symbol indicates information that contributes to better understanding. Note Version 1.0 5

Integration of the Management 2 Integration of the Management TwinCAT 3 uses the Visual Studio Framework as basis of the workbench. One of the advantages of this concept is the simple access to the large selection of programming functions in Visual Studio. Accordingly, TwinCAT also profits from the Management in Visual Studio. This section describes how you can use this feature in TwinCAT 3. 2.1 Project Files So that a TwinCAT project is compatible with Management systems and supports work in teams, it is stored in several files. The following file extensions exist in the TwinCAT project: File extension Manage- Merging permissible ment *.tsproj yes yes, use TwinCAT Project Compare *.plcproj yes yes, use TwinCAT Project Compare *.tmc yes not permissible for PLC projects Description TwinCAT project file TwinCAT PLC project file TwinCAT module class (description file for a TcCom module) *.tpy no - This file serves only for compatibility with programs from other vendors. *.xti yes yes, use TwinCAT Project Compare *.TcTTO yes yes, use TwinCAT Project Compare *.TcPOU yes yes, use TwinCAT Project Compare *.TcDUT yes yes, use TwinCAT Project Compare *.TcGVL yes yes, use TwinCAT Project Compare In case of multiple file support, parts of the TwinCAT project file are stored with this extension. PLC task object PLC program organizational unit (POU) PLC data type PLC Global Variable List *.TcVis yes Not currently supported PLC visualization *.TcVMO yes Not currently supported PLC visualization manager *.TcGTLO yes yes, use TwinCAT Project Compare PLC Global Texts List NOTE! The description of the process image of a TcCom module is stored in the *.tmc file. If this is to be available directly after the checkout (fetching) of a project, even if the project had not previously been translated on one s own computer, then the TMC file must be fetched with it (and thus checked in with the project beforehand). The TMC file is automatically re-generated after translating a PLC project. It is therefore NOT merged for PLC projects and from TwinCAT 3.1 version 4018 also no longer needs to be under administration! NOTE! Manual merging of the files of a TwinCAT project is not generally recommended. The TwinCAT Compare Tool should be always used for this! 2.2 Project settings So that a TwinCAT project that is managed using a source code management system can be processed in a team as independently as possible, various settings can be set. These are described below. 6 Version 1.0

Integration of the Management Independent Project File It is possible in TwinCAT to save individual sub-projects, NC axes or IO devices explicitly in separate files. These files then contain all the parameters, etc. of the respective TwinCAT object, so that the complete project file does not have to be checked out when making changes to this object. The links of a PLC project, for example, are thus no longer stored in the TwinCAT project file, but in the corresponding XTI file of the PLC project. So that this function can be used in TwinCAT it must be globally enabled once. This is done via the TwinCAT XAE Environment File settings category in the TwinCAT engineering environment options. The Enable multiple files option enables the use of this function for new projects. The options below it define the elements in a new project for which this function is switched on by default. NOTE! Changes to these options only become effective after restarting the development environment! Use of Independent Project Files in a project If this option is not activated by default for a TwinCAT object, this can be done and also reset using the Independent Project File option in the context menu of the TwinCAT Object. Version 1.0 7

Integration of the Management Objects that are saved as Independent Project Files are marked in the TwinCAT tree with the aid of an overlay icon in the form of a small floppy disk. A black floppy disk indicates that there are no unsaved changes yet for this object, whereas this is the case with a red floppy disk. 8 Version 1.0

Integration of the Management Keep unrestored Links Unless set differently, TwinCAT tries to avoid unnecessary loads on the project repository by no longer storing information that is no longer required. In association with this, TwinCAT also checks whether links are still valid. Any invalid links found are automatically deleted. This mechanism is obstructive when merging projects, since only the code and the links can be merged, but the updated process image is only available after recompiling the code that has now been merged. It is thus possible for the link information to be newer than the process image and the automatic optimization function would delete all links to the new variables in the process image. With the option Keep unrestored links, the link information marked for deletion is retained and automatically restored as soon as the variables show up in the process image. 2.3 Best Practice The following points should be borne in mind when using TwinCAT 3.1 in co-operation with Systems: Both the TwinCAT project tree view and the PLC project tree view contain TwinCAT objects whose information is stored in separate files (i.e. not directly in the respective project file). These elements are marked by a small floppy disk in the tree icon. Their contents therefore cannot be accessed in the case of merging the respective project file (files with the extensions *.tsproj and *.plcproj). It is therefore only possible, for example, to add a POU to a PLC project, but the changes inside a POU cannot be Version 1.0 9

Integration of the Management accessed. The background to this is that the Clients do not look inside the files that they check out for merging and then also automatically load all the dependencies listed inside them from the System. If a merge conflict is detected when checking in a project file, a get latest version of the project should be carried out before or at the latest after the merging of this file so that all new dependencies are also present on the local system after merging. Example: User A and user B have the same software revision (revision 1). User A adds an element to the PLC project and checks in the change (change in the PlcProj file and addition of a TcPou file leads to revision 2) User B changes the contents of the plcproj file and wishes to check in this change. A conflict occurs. User B still has revision 1 and now wishes to check in a revision 3. On merging, user B takes over the change made by user A and checks in this change. A build will now fail, since user A also added the TcPou file. In order to rectify this, user B must execute a Get Latest Version. This can take place before or after checking in the change. By checking in a file a GetLatest is implicitly done on this file. This then leads to a conflict. Since TwinCAT objects in the project files are clearly identified with a GUID, it is always necessary to confirm the deletion of an object with a checkin. For this reason the deletion of an object and the creation of a new object with the same name and the same contents is always a change! Some objects in the TwinCAT tree require that they are also loaded in the background in order to display them in the tree. Thus all methods, actions, etc. of a POU are also stored in it. For this reason it is a good idea to close a project in TwinCAT first before fetching it again from the System. 10 Version 1.0

Configuration of the source control client 3 Configuration of the source control client Selection of the Client 1. select Tools -> Options menu in the Microsoft Visual Studio Shell ð The dialogue window shows all the settings for the Microsoft Visual Studio Shell environment. 2. Select Source control Further settings may be required depending on the selected Management System. This ensures that Project Compare is called for comparing TwinCAT projects. These settings are generated automatically by TwinCAT Project Compare for clients of the Visual Studio Team Foundation Server and the AnkhSVN client for subversion. Version 1.0 11

Configuration of the source control client 3.1 Selection of the Compare Tool Following the selection of the Client to be used in the project, the client must also be configured so that the TwinCAT Project Compare Tool is used to compare and merge TwinCAT files. The configuration of the individual clients can significantly differ. Whereas clients such as TFS or PlasticsSCM allow different Compare Tools to be defined for the various types of file, there are also clients that only permit a general Compare Tool to be set (e.g. AnkhSVN). Beyond that, Systems such as GIT also allow a distinction to be made between local (project settings) and global settings. For the two Clients most frequently used with TwinCAT (TFS and AnkhSVN), the Compare Tool can be automatically configured from the TwinCAT Project Compare Tool (see the section entitled Configuration of the TcProjectCompare). Transfer parameters of the TwinCAT Project Compare Tools Since not all special features of the various clients can be dealt with here, the transfer parameters of the TwinCAT Project Compare Tools are briefly described below: Compare (Compare/Diff): C:\TwinCAT\3.1\Components\TcProjectCompare\TcProjectCompare.exe <destinationfile> <sourcefile> /sc Example (PlasticsSCM): C:\TwinCAT\3.1\Components\TcProjectCompare\TcProjectCompare.exe "@destinationfile" "@sourcefile" /sc Merge: C:\TwinCAT\3.1\Components\TcProjectCompare\TcProjectCompare.exe /dl "destinationsymbolic" /dr sourcesymbolic" <destinationfile> <sourcefile> <output> /sc Example (PlasticsSCM): C:\TwinCAT\3.1\Components\TcProjectCompare\TcProjectCompare.exe /dl "@destinationsymbolic" /dr "@sourcesymbolic" "@destinationfile" "@sourcefile" "@output" /sc Since some clients only allow the use of a general compare/merge tool for all file extensions, the TwinCAT Compare Tool also offers the option to define further compare tools for special file extensions. It is thus possible to refer to further compare/merge tools for non-twincat files. (see Configure User Tools option of the TwinCAT Project Compare Tool) 12 Version 1.0

TwinCAT Project Compare 4 TwinCAT Project Compare TwinCAT Project Compare is an independent application that compares TwinCAT projects. The tool can be called automatically from the TwinCAT development environment if the Client is correspondingly configured. Further information on the configuration of Management clients can be found under Configuration of Project Compare [} 13]. 4.1 Configuration of the TcProjectCompare In order to call the TwinCAT Project Compare Tool from the TwinCAT development environment, the selected Plugins must be configured accordingly in Visual Studio. NOTE! These settings are generated automatically by TwinCAT Project Compare for clients of the Microsoft Team Foundation Server and the AnkhSVN client for subversion. Setup of TwinCAT Project Compare as the standard tool for Compare and Merge functions for subversion AnkhSVN or Microsoft Team Foundation Server Clients: 1. open TwinCAT Compare 2. select the Tools -> Configure User Tools... menu 3. in the following dialogue, select a standard tool Merge. This is used for all areas outside of the PLC (e.g. for the comparison of configurations for tasks). 4. Click on Export configuration Version 1.0 13

TwinCAT Project Compare 5. If the required Plugin has already been selected in Visual Studio Shell, you can export the configuration for this plugin if you are using a Microsoft Team Foundation Server or an AnkhSVN Client. 4.2 Independent use of Project Compare After starting TwinCAT Project Compare, the following dialogue appears: With this dialogue you can select the two TwinCAT projects that are to be compared. The right-hand project is the original project, the left-hand project is the project to be compared. 14 Version 1.0

TwinCAT Project Compare In order to display the changes in a TwinCAT object (e.g. a POU), open the comparison for this element with a double click. Version 1.0 15

TwinCAT Project Compare 4.3 Merge of TwinCAT PLC Projects If more than one developer is working on the same PLC project, conflicts may arise when checking in/ committing the changes. For example, parallel POUs can be added/edited by more than one developer of the PLC project. These conflicts must be solved if a consistent project is to be created. This procedure of combining changes is called merging. Attention The automerge function (automatic merging) of Clients can lead to the loss of PLC objects (POUs, GVL, etc.)! Deactivate automatic merging of Clients TwinCAT Project Compare must be configured as a merge tool (see Configuration of the TcProjectCompare [} 13]) In case of conflicts when checking in the PLC project, the following dialogue appears in the TSF Client: To solve these problems 16 Version 1.0

TwinCAT Project Compare 1. Select the option Merge Changes In Merge Tool 2. After merging a PLC project (file extension *.PLCproj), request all files that were added to the PLC project with get latest version. Version 1.0 17