ReferenceDriverEthercatConfigure Device

Configure an EtherCAT Device

Learn how to discover and configure EtherCAT devices.

Prerequisites

Before configuring EtherCAT devices, ensure you have:

  1. A Synnax Core running on your network.
  2. A Synnax Driver running on the same machine as your EtherCAT network interface.
  3. An EtherCAT master configured (IgH kernel module or SOEM).
  4. The Synnax Console installed on your local machine.

All channels in a task must use devices connected to the same network interface. If you have devices on multiple EtherCAT networks, create separate tasks for each network.

How Device Discovery Works

EtherCAT devices are automatically discovered when connected to the network. There is no need to manually create device configurations.

  1. Connect your EtherCAT devices to the network interface.
  2. The Synnax Driver scans the EtherCAT bus and discovers all connected devices.
  3. A notification appears in the Console when new devices are found.
  4. Discovered devices appear in the Devices Toolbar.

The scan task runs periodically to detect new devices and update device information.

Device Properties Reference

When a device is discovered, Synnax stores the following properties:

PropertyTypeDescription
namestringHuman-readable device name from ESI file
serialstringUnique device serial number
vendorIdnumberEtherCAT vendor ID
productCodenumberDevice model/product identifier
revisionnumberHardware/firmware revision number
networkstringNetwork interface name (e.g., eth0, enp3s0)
positionnumberSlave position on the EtherCAT bus (0-indexed)
enabledbooleanWhether the device participates in cyclic data exchange (default: true)
pdosobjectAvailable PDO mappings (TxPDOs for inputs, RxPDOs for outputs)

Understanding PDOs

PDOs (Process Data Objects) define the cyclic data exchanged between the master and devices. PDOs are configured in the device’s ESI (EtherCAT Slave Information) file.

TxPDO (Transmit PDO)

Data transmitted FROM the device TO Synnax. Use TxPDOs in Read Tasks to acquire sensor data, status information, and feedback values.

RxPDO (Receive PDO)

Data received BY the device FROM Synnax. Use RxPDOs in Write Tasks to send control commands, setpoints, and configuration values.

PDO Entry Properties

Each PDO entry has the following properties:

PropertyTypeDescription
namestringHuman-readable entry name (e.g., status_word)
indexnumberCoE object index (hexadecimal, e.g., 0x6041)
subIndexnumberCoE object subindex
bitLengthnumberData width in bits (e.g., 8, 16, 32)
dataTypestringData type (e.g., uint16, int32, float32)

Enabling and Disabling Devices

The enabled property controls whether a device participates in cyclic PDO exchange. By default, all discovered devices are enabled.

What Happens When a Device is Disabled

When you disable a device:

  • The device is excluded from cyclic PDO exchange. The EtherCAT master skips the device during the process data cycle.
  • The device status changes to Disabled in the Console.
  • The device must still be physically present on the bus. EtherCAT topology validation requires all configured devices to be connected.
  • Tasks cannot read from or write to PDOs on disabled devices. Channels associated with disabled devices will not receive data.

Common Use Cases

  • Troubleshooting: Isolate a problematic device without physically disconnecting it from the bus.
  • Maintenance: Temporarily disable a device undergoing maintenance or calibration.
  • Staged commissioning: Enable devices incrementally during system setup and testing.
  • Fault isolation: Disable a device that’s causing bus errors to keep other devices operational.
  • Reducing cycle time: Exclude unused devices to minimize PDO exchange overhead.

Disabling a Device

Console

Python

TypeScript

To disable an EtherCAT device:

  1. Open the Devices Toolbar by clicking the device icon () on the left side of the screen.
  2. Right-click on the device you want to disable.
  3. Select Disable from the context menu.

The device status will update immediately. You can also select multiple devices and disable them all at once.

Re-enabling a Device

Console

Python

TypeScript

To re-enable a disabled EtherCAT device:

  1. Open the Devices Toolbar by clicking the device icon () on the left side of the screen.
  2. Right-click on the disabled device.
  3. Select Enable from the context menu.

How-To

Console

Python

TypeScript

Synnax automatically discovers EtherCAT devices when they are connected to the network. To view discovered devices, open the Devices Toolbar by clicking the device icon () on the left side of the screen.