General access to online CoE values

Many functionally critical parameters of the EtherCAT Terminals/ Box‑Modules are managed online in the so-called CoE directory in the device. Under certain circumstances, read or write access is to be made to individual or several entries in the active device during commissioning. That is possible:

OnlineView in TwinCAT 3

The easiest way is the online access in TwinCAT2/3: double-clicking the index/subindex opens an editor window and a value can be changed in decimal/hexadecimal and/or copied and - depending on the type - also written at runtime. Note that the EtherCAT fieldbus is active, the device is addressable and "OnlineData" is visible. Only individual values can be accessed, a so-called CompleteAccess is not possible.

General access to online CoE values 1:
Example: double click the CoE object PAI-Settings, Index Interface of channel 1 of an ELM3xxx terminal

PLC access

If values are to be changed or read specifically at application runtime, function blocks (FBs) can be used for CoE access to the TwinCAT TC2_EtherCAT.lib. See also the sample programs in this documentation. Single access and CompleteAccess are possible.

General access to online CoE values 2:
Function blocks (FBs) for CoE access to the TwinCAT TC2_EtherCAT.lib

TwinCAT TF6010 ADS Monitor

The TF6010 ADS Monitor is a free tool from Beckhoff for monitoring ADS communication. It can be used to read or write CoE values from/to the EtherCAT device (Command Test). Single access and CompleteAccess are possible.

An example: the TwinCAT 3 FilterDesigner TE1310 (or the FilterControl on the terminal) generates a set of filter coefficients for digital analog value filtering and sends them to the device.

General access to online CoE values 3:
TwinCAT FilterControl embedded in the configuration dialog of an EPP35xx/ ERP35xx box module

The 4-byte coefficients can be read and also copied/edited via the OnlineView.

General access to online CoE values 4:
Filter coefficients Nos. 1 to 12 of channel 1 in the CoE online of an ELM3602 EtherCAT Terminal

In case of device replacement

If the coefficients should/have to be reloaded into the new device after a device exchange, they can be stored in a StartUp list:

General access to online CoE values 5:
StartUp list of an ELM3602 EtherCAT Terminal, already partially modified by direct input

A total of up to 40 coefficients (i.e. 160 bytes) can be stored there for this device. These are now to be extracted from the box module "in one set", alternatively they could also be copied out manually one after the other as above.

After installing the TF6010 ADS Monitor from the Beckhoff website, it can be started in the development environment menu under [TwinCAT] → [ADS Monitor]:

General access to online CoE values 6:
Calling the ADS Monitor Command Test

In order to access the CoE of the EtherCAT box module, "EtherCAT address" must be activated, after which TwinCAT must be activated or restarted.

General access to online CoE values 7:
Activation of "EtherCAT Addr."

The following is to be entered in the dialog: