Object categories concerning the project data base

There are four categories of objects of a CoDeSys project concerning the project source control:

  • The distinguishes three categories (“ENI object categories”) of objects which are managed in the project data base: Project objects, Shared objects, Compile files.
  • The category ‘Local’, to which an object will be assigned if it should not be stored in the data base. That means that it will be handled as it is known for projects without any source control.

Thus in the programming system a CoDeSys 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 , or explicitly via command or ‘Multiple Define’, but it can be modified anytime in the dialog.

Each ENI object category will be configured separately in the settings for the which are part of the project options (‘Project’ ‘Options’). 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 to each data base category separately; this will be done via the dialog.

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:

Project Objects: Objects which contain project specific source information, e.g. POUs which are shared in a multi-user operation. The command ‘Get all latest versions’ automatically will call all objects of this category from the data base to the local project; even those, which have not been there so far.
Shared Objects: Objects which are not project specific, e.g. POU libraries which normally are used in several projects. Attention: The command ‘Get all Latest Versions’ only will copy those objects of this category from the project folder to the local project, which are already part of the project !
Compile files: Compile information (e.g. symbol files) which is created by CoDeSys for the current project and which may be needed by other programs too. Example: An external visualization may need not only the project variables, but also the assigned addresses. The latter will not be known until the project is compiled.

Alternatively any objects of the CoDeSys project can be excluded from the project source control and can be assigned to category ‘Local’, which means that they are just stored with the project as usual for projects without any source control.

See also: