Domains configuration panel

Group your EtherCAT devices in domains, add devices four ways, set each device’s position on the bus, and simulate or switch off a domain.

The domains panel on the left of the ECAT tool lists your domainsA domain is a group of EtherCAT devices whose data Motorcortex exchanges together. Each domain can be simulated or switched off on its own. and the devices in each. Here you add domains and devices, set where each device sits on the bus, and choose per domain whether it runs on the real bus or is simulated.

Why devices are grouped in domains

Every device belongs to a domain. One domain for the whole bus works. Several domains let you treat parts of the bus differently:

  • Simulate a part. In production mode, a domain with Simulation on is simulated while the other domains run on the real bus. See Simulating devices.
  • Switch a part off. A domain you exclude is left out of the configuration, with all its devices.
  • Run a part slower. With a Frequency Divider of 2, the EtherCAT master exchanges the domain’s data every second cycle instead of every cycle.

A new configuration starts with one domain called Default.

Add devices

Press Add your first devices in an empty panel, the next to Devices in a domain, or Add Devices in the main menu. The Add Devices window has four tabs, one for each place the devices can come from. Click a tab in the diagram to open its steps.

Each tab lists the devices it found, all ticked. Add Devices adds the ticked ones.


Add the devices on the bus

The controller scans the bus and lists every device it finds, at its position and with the process data the device reports. Use this tab when the devices are connected and powered.

From Scan tab after a scan: 1 the Scan Bus button, 2 the list of devices by position and name with a checkbox each, 3 the Apply ESI from database checkbox, 4 the Add Devices button
  1. Press Scan Bus. It needs a Host in Connection.
  2. Every device found is ticked. Untick the ones you do not want to add.
  3. Tick Apply ESI from database to complete the devices from the ESI database of motorcortex.io, and confirm. This needs your motorcortex.io log-in.
  4. Press Add Devices.

Add devices from a configuration

Take devices from another EtherCAT configuration, complete with their process data, SDOs, start-up list and links. Use this tab to reuse devices you configured before.

From Configuration tab: 1 the Upload File button, 2 the Fetch button, 3 the list of devices by position and name with a checkbox each, 4 the Add Devices button
  1. Press Upload File to read the devices from a configuration file on your PC, such as a master.xml.
  2. Or press Fetch to read them from the configuration on the controller.
  3. Every device found is ticked. Untick the ones you do not want to add.
  4. Press Add Devices.

Add devices from ESI files

An ESI file from the device supplier describes one or more devices, with their identity and process data. Use this tab to prepare a configuration before the devices are connected. The tool gives each device the position of its place in the domain; check it afterwards.

From Description Files tab: 1 the Upload Files button, 3 the list of selected devices with a checkbox each, 4 the edit menu of a device, 6 the Delete Selected button, 7 the Add Devices button
  1. Press Upload Files and choose one or more ESI files.

  2. In the Select Devices window, tick the devices you want, by name and revision, and press Select.

    Select Devices window with a list of device names and their revision numbers, a checkbox each, and the Select button
  3. The tab lists the devices you selected, all ticked. Untick the ones you do not want to add.

  4. Open the menu next to a device ( ) to Edit or Delete it. Edit opens the Device window, where you change its identity and press Save.

    Device window with the fields Name, Vendor Id, Type Name, Product Code and Revision Number, and the Save button
  5. Delete Selected removes the ticked devices from the list.

  6. Press Add Devices.


Add a device by hand

Type in the identity of a device, when you have neither the device nor its ESI file at hand. The device gets no process data this way: load its ESI file later in the device’s Settings tab.

Manually tab: 1 the Device button, 3 the list of devices with a checkbox each, 4 the edit menu of a device, 5 the Delete Selected button, 6 the Add Devices button
  1. Press Device.

  2. In the Device window, fill in Name, Vendor Id, Type Name, Product Code and Revision Number, and press Save. Vendor Id, Product Code and Revision Number take a decimal number, or a hexadecimal one written with #x, such as #x0000000f. The device gets the position after the highest one in use.

    Device window with the fields Name, Vendor Id, Type Name, Product Code and Revision Number, and the Save button
  3. Repeat for more devices. Untick the ones you do not want to add.

  4. Open the menu next to a device ( ) to Edit or Delete it.

  5. Delete Selected removes the ticked devices from the list.

  6. Press Add Devices.

Work with the devices in a domain

Domains panel with domain Default and its devices, each with its position in front of the name, a checkbox and a menu button. Four devices with the same name are shown in red. On the right the settings of domain Default: Name, Frequency Divider 1, Simulation off, and Apply for the ESI files from the database.
  • The number in front of a device is its position on the bus. It turns red when two devices share a position. See Set a device’s position.
  • A device name turns red when two devices have the same name. Give every device its own name.
  • Click a device to open it in the device panel.
  • The checkbox ( , Include in Ethercat Message) switches a device on or off. A device that is off stays in the tool, but the controller leaves it out.
  • The menu ( , More Actions) has Add, which opens Add Devices to insert devices after this one, Clone, which copies the device to the position after the highest one in use, and Delete.
  • Drag a device by its handle to change its order or to move it to another domain.

Set a device’s position

The controller finds each device in the configuration by its position. It must match where the device is on the real bus. You can give it as a bus position, such as 3, or as an alias and a position after it, such as 1:0.


Address by bus position

The bus position counts the devices along the cable, starting at 0 for the device next to the controller. It is the default, and what Scan Bus fills in. When you add, remove or rewire a device, the positions of the devices behind it change, and the configuration no longer matches the bus.

  1. Open the cockpit terminal of the controller.

  2. List the devices on the bus:

    mcx-intel:~$ ethercat slaves
    0  0:0   OP     +  EK1914, 2 K. Safety Eingang/Ausgang 24V,  TwinSAFE
    1  0:1   OP     +  EL6910, TwinSAFE PLC
    2  0:2   PREOP  +  EK1110 EtherCAT-Verl�ngerung
    3  0:3   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    4  0:4   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    5  0:5   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    6  0:6   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    7  0:7   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    8  0:8   OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    9  0:9   PREOP  +  SMT_IO - Smart Actuator
    10  0:10  OP     +  EP2328-0001 4 K. Dig. Ein, 3ms, 4 K. Dig. Aus 24V, 2A, M8
    

    The first column is the bus position.

  3. In the domains panel, type each device’s bus position in the field in front of its name.

Domains panel with domain Axes holding Axis-01 to Axis-06 at bus positions 3 to 8, and domain IO holding the EP2328-0001 at bus position 10
What the columns mean
3  0:3  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
|  | \- Decimal relative position to the last
|  |       slave with an alias address set.
|  \- Decimal alias address of this slave (if set),
|     otherwise of the last slave with an alias set,
|     or zero, if no alias was encountered up to this
|     position.
\- Absolute ring position in the bus.

Address by alias

An aliasA number stored in the device’s own memory (EEPROM). It stays with the device, wherever on the bus you connect it. names a device independent of the wiring. A device without an alias is counted from the last device before it that has one. You write the position as alias:position: 1:0 is the device with alias 1, 1:1 the device right behind it. Use aliases for modular machines, and to replace a device without matching the wiring order exactly.

  1. Open the cockpit terminal of the controller.

  2. List the devices with ethercat slaves. The second column shows alias:position; without aliases it is 0: and the bus position.

  3. Write an alias into a device with ethercat -p<bus position> alias <alias>. This example gives the device at bus position 3 alias 1, and the device at position 10 alias 2:

    mcx-intel:~$ ethercat -p3 alias 1
    mcx-intel:~$ ethercat -p10 alias 2
    mcx-intel:~$ ethercat slaves
    0  0:0  OP     +  EK1914, 2 K. Safety Eingang/Ausgang 24V,  TwinSAFE
    1  0:1  OP     +  EL6910, TwinSAFE PLC
    2  0:2  PREOP  +  EK1110 EtherCAT-Verl�ngerung
    3  1:0  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    4  1:1  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    5  1:2  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    6  1:3  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    7  1:4  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    8  1:5  OP     +  SMT_DA - Smart Actuator(CoE,EoE,FoE)
    9  1:6  PREOP  +  SMT_IO - Smart Actuator
    10  2:0  OP     +  EP2328-0001 4 K. Dig. Ein, 3ms, 4 K. Dig. Aus 24V, 2A, M8
    

    The devices behind position 3 are now counted from alias 1, up to the device with alias 2.

  4. In the domains panel, type alias:position in the field in front of each device’s name, for example 1:0. You can mix both forms: the devices before the first alias keep their bus position.

Domains panel with domain Axes holding Axis-01 to Axis-06 at 1:0 to 1:5, and domain IO holding the EP2328-0001 at 2:0

Add and configure a domain

  1. Press (Add Domain) next to Domains to add a domain at the end. It is called Untitled until you name it. The button appears once the configuration holds a device.
  2. Click the domain to open its settings on the right, and set them:
Setting What it does Default
Name The name of the domain. empty, shown as Untitled
Frequency Divider Exchange the domain’s data every Nth cycle of the EtherCAT master. 1 (every cycle)
Simulation Simulate every device in the domain while the application runs in production mode. The domain then shows Simulation Mode in the panel. In simulation mode every domain is simulated anyway. off
Apply ESI's from database to all devices in this domain Press Apply to complete every device in the domain from the ESI database of motorcortex.io, after you confirm.

The menu of a domain ( , More Actions) has:

  • Add: a new domain right after this one,
  • Clone: a copy called <name> (copy) with copies of all its devices, at new positions after the highest one in use,
  • delete: remove the domain and its devices. Deleting the last domain leaves an empty Default domain.

The checkbox of a domain ( , Include in Ethercat Message) switches the domain and all its devices on or off at once.

Changes stay in the tool until you deploy the configuration.