Skip to main content

Start from the configuration tool

Multi-language support

The configuration tool has a multi-language interface, including Chinese and English; you can switch the language in the program settings.

The configuration tool is a graphical EtherCAT master test program. Use it to scan slaves, test communication and configure parameters, then export runnable code that you can integrate directly into your project.

Before you start

Before you begin, make sure you have completed Preparation (installing the driver, preparing the ESI files).

Step 1: Get and start the program​

Download the latest installer Darra-EtherCAT-Setup-*.exe from the downloads page, run it as Administrator and complete the installation, then start Darra_EtherCAT_Master.exe.

First start

At startup the program checks its dependencies in the background (the DarraRT driver, the Visual C++ runtime) and writes the result to the log; it does not open an installation wizard. If something is missing, master initialization fails and reports why.

Step 2: Get to know the main window​

Main window

Slave list​

The tree list at the upper left shows all slaves:

Click a slave to view its details in the central tab page.

Main tab pages​

TabFunction
InfoBasic slave information: name, vendor, address, PDO size, supported protocols, mailbox configuration, topology information
PDOView and edit process data (inputs/outputs) in real time
CoEBrowse and edit the object dictionary (SDO parameters)
DCDistributed Clocks (DC) configuration and synchronization monitoring
DiagnosticsDetailed master/link/frame-level diagnostic statistics
StartupStartup sequence configuration (SDO writes on state transitions)
FMMU/SMFMMU and Sync Manager configuration
FoEFile transfer: firmware update, file import and export
FSoESafety functions: safety address binding, safety PDO, fail-safe configuration
SoEServo parameters: IDN read/write, parameter metadata
EoEEthernet configuration: IP/subnet/gateway/DNS, frame send and receive, ping test
AoEADS communication: index group read/write, device information, state control, event subscription
VoEVendor-specific protocol communication: custom mailbox data exchange
MDPModular device: module identification

Step 3: Select a NIC and scan for slaves​

After startup, first click the button at the upper left of the middle of the window to open the Load NIC dialog:

NIC information page
  1. Primary NIC: select the Ethernet adapter connected to the EtherCAT slaves
  2. Redundant NIC (optional): if you need cable redundancy, select a second NIC
  3. Click Scan slaves; the table below lists every slave that was found
  4. Once the slave list is correct, click Confirm to enter the main window

Step 4: Browse slave information​

Select a slave in the slave list and the central panel shows its details. Use the tabs to switch between the function pages:

Info — Basic slave information​

Info page

The Info page shows the complete identity and configuration summary of the slave:

  • Basic information: name, physical position, current state, group
  • Identity information: Vendor ID, Product Code, version, serial number
  • Address information: configured address, alias address
  • PDO mapping: input/output byte counts and offsets
  • Protocol support: CoE, SoE, EoE, FoE, AoE and others
  • Mailbox configuration: send/receive buffer sizes and addresses
Protocol tab visibility

The protocol tab pages above are shown only when the slave supports the corresponding protocol. For example, only slaves that support CoE have a CoE tab.

Step 5: Configure startup parameters (optional)​

Switch to the Startup tab:

Startup parameter page

Startup parameters are the SDO parameters written automatically when a slave changes state (such as PDO mapping or operating mode), making sure the slave enters its running state with the expected configuration.

Parameter sources​

  • Generated from the ESI file — if a matching ESI file is present, the SDK parses it and generates the startup parameters
  • Generated from the slave — without an ESI file, the SDK tries to read the PDO assignment from the slave's current SM configuration and generates the parameters
  • Added by hand — click the Add button and enter the index, subindex, data type and value

Parameter structure​

Each startup parameter contains the following fields:

  • Transition — during which state transition the parameter is written (for example IP → PRE_OP, PS → SAFE_OP)
  • Write timing — before the transition (BeforeTransition) or after it (AfterTransition)
  • Index / subindex — the target CoE object dictionary address
  • Data — the value to write; several data types are supported

Typical operations​

  • View: the list shows all configured startup parameters, including the source (ESI / manual)
  • Edit: double-click a parameter row to change the value to write
  • Delete: select a parameter and click the delete button to remove it
  • Order: parameters are sorted automatically by transition and write timing, and the execution order can also be adjusted by hand
Recommendation

In most cases the parameters generated from the ESI file are enough and need no manual change. Add or edit startup parameters by hand only when a slave needs special initialization (for example, changing the motion mode or configuring a specific PDO mapping).

Step 6: Start communication​

Use the State machine buttons in the top navigation bar to control the master state.

ButtonTarget stateDescription
INITINITInitialization; establishes the communication link
PRE_OPPRE_OPMailbox communication ready; parameters can be configured
SAFE_OPSAFE_OPPDO inputs valid; outputs are blocked
OPOPFully started; inputs and outputs are both valid
Recommended action

Click the OP button directly; the master performs the INIT → PRE_OP → SAFE_OP → OP state transitions automatically in order.

After a successful start, you can watch the Simple diagnostics panel in the bottom-right corner of the window:

  • State: shown as OP (green)
  • Frequency: PDO communication frequency (Hz)
  • Average jitter: fluctuation of the frame send time
  • Link quality: communication quality as a percentage
  • Frame loss rate: proportion of lost data

Hot-plug and optional modules​

Modules can be unplugged and plugged back in while the system runs. A module that is declared and passes the identity check is configured by the master automatically and brought up to OP once it is plugged back in; while it is missing, the other slaves keep running as usual.

For modules that may be absent, mark their slots as optional in the DENI configuration (<deni:Optional>): an optional slot that is offline does not affect this run's entry into OP. The configuration tool (GUI) has no separate hot-plug page; optional slots are declared in the configuration, and the binding mode is set through the SDK.

Usage: see Hot-plug and the SDK pages for each language (C# / C++ / C).

Step 7: Test PDO data​

Switch to the PDO tab page:

PDO data page

Input test (slave → master)​

The PDO panel shows the data the slave sends in real time, in several display formats:

  • Boolean: on/off state
  • Byte: raw byte value
  • Numeric: integer value
  • Float: floating-point value

Output test (master → slave)​

In the PDO output panel you can set output values by hand and send them to the slave in real time.

Step 8: View diagnostic information​

Switch to the Diagnostics tab page:

Diagnostics page

Diagnostics are divided into three levels:

LevelContent
MasterOverall master health, redundancy state, error statistics
LinkSend/receive statistics and link health of each NIC
FrameFrame errors, lost frames, out-of-order frames, checksum errors, timeouts, WKC errors

If DC synchronization is enabled, the DC page also shows sync window diagnostics, including the minimum/maximum sync deviation and statistics.

ETG.1510 OD browsing​

The ETG.1510 sub-page at the top of the diagnostics panel browses the master object dictionary, listing the diagnostic objects the master exposes following the ETG.1510 standard (Master Information, Configuration List, Diagnosis Information, Slave Information and so on). Entries can be expanded by index to see their current values, which makes it easy to feed upper-layer SCADA / OPC UA services.

Step 9: Save the configuration​

When testing is done, click the Export code button in the top menu bar to save the current master and slave configuration to a file.

The next time you start the program, you can load the saved configuration with the Import button, without configuring the parameters again.

Step 10: Export code​

This is the key step from the configuration tool to a real project. Click the Export code button in the left navigation bar to open the export window.

The left navigation bar of the export window has three groups: Export (DENI configuration file, Details), Program code (C# / C / C++ / Python / Java / Rust), Diagnostic information (debug information, export log).

DENI configuration file — Master configuration export​

Export window — DENI configuration file

Exports the master configuration file in XML format (.deni), containing the complete master and slave configuration.

  • SHA256 verification — the configuration file carries an integrity check that detects tampering
  • Cross-master loading — the exported configuration can be imported into other Darra master instances
  • Complete configuration — network topology, PDO mapping, startup parameters, DC configuration and all other information
Standard and optional
  • Standard (guided-export code contains it): included automatically when the slave supports it, with no checkbox (DC, FSoE; the FSoE safety connection still has to be established explicitly at runtime)
  • Optional: enable in the Settings area at the bottom left of the export window (FoE, EoE, SoE, AoE, MasterIO)

Master configuration reference​

The master configuration items in the right-hand panel:

ItemDescription
PDO frame optimizationEnables Overlapping Groups, so that several slave groups communicate in parallel
Packed modeBit-level PDO packing mode that optimizes boolean mapping
Frame high priorityRaises the send priority of EtherCAT frames (IEEE 802.1Q)
UDP modeSends EtherCAT frames over UDP (ETG.1500)
DC automatic offsetAutomatically resolves the SYNC0 phase of Distributed Clocks
DC drift compensationAutomatically compensates system time drift
Diagnostic captureCollects detailed diagnostic data when enabled
Adaptive timeoutAdjusts the timeout dynamically according to the network RTT
Mutex protectionProtects PDO data consistency in multi-threaded scenarios
Mailbox gatewayEnables the ETG.8200 mailbox communication proxy
Frame loss thresholdTriggers the PDOFrameLoss event when consecutive lost frames exceed this value (default 3)
Frame repeat countETG.1500 frame repeat count (1-3)
Process data watchdogProcess data watchdog timeout of the slave (milliseconds)
PDI watchdogPDI interface watchdog timeout of the slave (milliseconds)
VLAN ID / priorityVLAN 802.1Q network tag configuration
Version matching policyVersion matching mode during the slave scan (exact/compatible/ignore)