Skip to main content

ENI file

New to EtherCAT

An ENI/DENI file is the saved record of the network configuration. Scan the network and set the parameters in the Darra configuration tool, then export the DENI file. Afterwards, loading it in code is one line: new DarraEtherCAT().SetENI("config.deni").Build(). For simple applications you can also skip the ENI file and use the automatic configuration in the SDK.

What is an ENI?​

ENI (EtherCAT Network Information) is an XML configuration file that describes the configuration of an entire EtherCAT network. ENI is a standard XML format, so you can open and edit it in any text editor.

If the ESI file is the manual for a single device, the ENI file is the blueprint for the whole network.

Key difference
  • ESI file: describes the characteristics of a single slave device
  • ENI file: describes the topology and configuration of the complete network

Core contents of an ENI file​

An ENI file holds all the configuration information a complete network needs to run:

ContentDescriptionRole
Network topologySlave order, physical addressesDefines the network structure
Device informationModel and serial number of each slaveDevice identification and verification
PDO mappingProcess data input/output mappingData exchange configuration
Distributed ClocksDC synchronization cycle, offsetTime synchronization settings
Sync ManagerSM address, length, directionCommunication channel configuration
Startup parametersMailbox timeout, retry countStartup behavior control
Process imageVariable names, data types, addressesApplication-layer data access

Main roles of an ENI file​

Network topology definition​

An ENI file defines precisely, for every slave in the network:

  • Physical position (station address)
  • Device model and version
  • Connection order and port

This lets the master verify that the real network matches the expected configuration.

Preconfigured PDO mapping​

An ENI file defines in advance:

  • which PDOs each slave uses
  • where the PDOs sit in the process image
  • the bit and byte offsets of the data

The master uses them directly; nothing has to be recalculated at runtime.

Synchronization and timing configuration​

An ENI file contains:

  • the Distributed Clocks (DC) cycle
  • the SYNC0/SYNC1 trigger times
  • the time offset of each slave

Variable naming and abstraction​

An ENI file gives process data:

  • meaningful variable names

ENI versus manual configuration​

A very few simple networks can be configured by hand, but in most cases an ENI file is recommended. No programming is needed: import the ENI file and the network runs. This suits fast delivery of standardized products, for example a standard product that also works with servo drives from several vendors.

Startup performance: DENI loads 50% faster​

Measured comparison (the same network of 8 servo drives and 1 IO module):

Startup methodTimeNotes
DENI file load (Phase B)7.4 secondsDENI stores ESI / PDO / DC / startup parameters in advance and skips the device scan
Automatic scan (Phase A)15.2 secondsScans each slave identity, reads the ESI and calculates DC offsets in real time
Speed-up~50%The larger the network, the bigger the advantage
Use DENI in production

Use the automatic scan for commissioning (it runs without a DENI file); use a DENI file for production deployment. One line loads it in the SDK:

new DarraEtherCAT().SetENI("config.deni").Build();

Tools that generate ENI files​

ENI files are usually generated by a dedicated configuration tool:

ToolCharacteristicsWhere it fits
DARRA EtherCAT Master ToolsSimple to use, SDK integratedFirst choice for Darra users, includes the product's own shortcut configuration parameters
ETG EtherCAT Configurator (official)The official standard toolStandard ENI format
Third-party vendor configuration toolsShipped with each vendor's ecosystemExport a standard ENI, then import it into Darra
Tools and technical support

Use DARRA EtherCAT Master Tools to export the ENI:

  • Export configuration file — export the complete DENI configuration (XML) for production deployment
  • Own shortcut configuration parameters — support for more product-specific features

Where ENI files fit​

ENI files suit the following cases in particular:

✅ Volume production of standardized devices — identical configuration, copied quickly
✅ Fast deployment on site — no specialist needed, import and run
✅ Device upgrades and maintenance — configurations are traceable and can be rolled back
✅ OEM device delivery — configuration preinstalled, wire it up on arrival

Things to watch when using ENI files​

Version compatibility​

ENI files generated by different tools can differ in format:

  • An ENI from a third-party tool may contain vendor-specific extensions
  • A Darra DENI contains Darra-specific extensions
  • A standard ETG ENI is more portable but may lack advanced features
  • Check the master's support for the ENI format before use
  • In the vast majority of cases the master accepts other ENI files that conform to the ETG standard.

Exact hardware match​

The ENI file must match the actual hardware exactly:

  • slave order and model
  • device firmware version
  • network topology

Any mismatch makes startup fail.

Updates and maintenance​

After a hardware change you need to:

  • regenerate the ENI file
  • verify the new configuration
  • update the version documentation

Set up a change-management process for ENI files.