Engineering Interface (ENI)

The ENI interface ('Engineering Interface') allows to connect the Programming system to an external data base. There the data which are needed during creation of an automation project can be stored. The usage of an external data base guarantees the consistency of the data, which then can be shared by several users, projects and programs. Also it extends the functionality by making possible the following items:

The ENI is composed of a client and a server part. So it is possible to hold the data base on a remote computer, which is required for multi-user operation. The TwinCAT PLC Control is a client of the independent ENI Server Process as well as another application, which needs access to the data base (Please see the separate documentation on the ENI Server).

Currently the ENI supports the data base systems 'Visual SourceSafe 5.0' and 'Visual SourceSafe 6.0' and a local file system. Objects can be stored there in different 'folders' (data base categories with different access properties ). The objects can be checked out for editing and thereby will get locked for other users. The latest version of an object can be called from the data base. Furtheron in parallel you can store any objects just locally in the project as usual for projects without source control. The *.pro file is the local working copy of an project managed by the data base.

Preconditions for Working with an ENI project data base

If you want to use the ENI in TwinCAT PLC Control to manage the project objects in an external data base, the below mentioned preconditions must be fulfilled:

Engineering Interface (ENI) 1:

For a guide concerning installation and usage of the ENI Server please see the separate server documentation TS1600 | TwinCAT ENI Server. There you will also find a quick start guide. Also consider the possibility of using the ENI Explorer which allows to perform data base actions independently from the currently used data base system.

Working with the ENI project data base

The data base commands (Get Latest Version,Check Out, Check In, Version History, Label Version etc.) which are used for managing the project objects in the ENI project data base, will be available in the current project as soon as the connection to the data base has been activated and configured correctly. See for this Preconditions for Working with an ENI project data base. The commands then are disposable in the submenu 'Data Base Link' of the context menu or of the 'Project' menu and refer to the object which is currently marked in the Object Organizer. The current assignment of an object to a data base category is shown in the Object Properties and can be modified there. The properties of the data base categories (communication parameters, access rights, check in/check out behaviour) can be modified in the option dialogs of the project data base ('Project' 'Options' 'Project Source Control').

Object categories concerning the project data base

There are four categories of objects of a TwinCAT PLC Control project concerning the project source control:

Thus in the programming system an object can be assigned to one of the categories 'Project objects', 'Shared objects' or 'Local'; the 'Compile files' do not yet exist as objects within the project.
Assigning an object to one of the categories is done automatically when the object is created, because this is defined in the project options dialog 'Project source control', but it can be modified anytime in the 'Object Properties' dialog.
Each ENI object category will be configured separately in the settings for the 'ENI settings' ('Project' 'Options', category project data base). That means that each category gets defined own parameters for the communication with the data base (directory, port, access right, user access data etc.) and concerning the behaviour at calling the latest version, checking out and checking in. These settings then will be valid for all objects belonging to the category. As a result you will have to log in (username, password) to each data base category separately; this will be done via the 'Login' dialog ('Project' 'data base agssignment' 'Login').

It is advisable to create a separate folder for each object category in the data base, but it is also possible to store all objects in the same folder. (The 'category' is a property of an object, not of a folder.)

See in the following the three ENI object categories:

Requirements

 

Description

Project

For objects representing project-specific source information, e.g. shared function blocks within a project, important for multi-user operation. The 'Get All' command automatically fetches all objects of this category from the project directory of the database into the local project, even those that were not yet created there.

Shared objects

For general-purpose, project-independent objects, such as block libraries, which are normally used by several users in different projects.

Notice The 'Get All' command copies only those objects of this category from the project directory of the database to the local project that have already been created there.

Compilation files

For the project-specific compile information (e.g. symbol files) automatically generated by TwinCAT PLC Control, which is also required by other tools. For example, a visualization requires the variables of a programming system including the addresses, which, however, are only assigned during compilation.

Engineering Interface (ENI) 2:

Optionally, project function blocks can also be excluded from management in the project database and saved exclusively locally, i.e. only with the project, as is traditionally the case.