Skip to main content

CoE — object dictionary read/write

CoE (CANopen over EtherCAT) is the most widely used parameter configuration protocol; it reads and writes a slave's SDO parameters and object dictionary.

Feature overview​

CapabilityDescription
SDO read/writeRead and write parameters by index/subindex, with single-entry and CompleteAccess modes
Object dictionary browsingA tree view lists every index/subindex, grouped by category
Startup sequenceConfigure the automatic SDO writes performed on state transitions
Last SDO ErrorShows the Abort Code of the most recent SDO operation with a Chinese explanation
EMCY historyReceives and keeps the slave's emergency message history
CiA402 state machine visualizationFor servo drives: shows the current state and the mode of operation

In the configuration tool, browse and edit parameters on the CoE tab, and configure the automatic SDO writes for state transitions on the Startup tab.

Quick start​

  1. Open the CoE tab in the configuration tool
  2. Wait for the object dictionary to load (PreOp or higher)
  3. Double-click a parameter row to edit it in place; the write takes effect immediately
  4. Switch to the Startup tab and add the SDO parameters that must be written on state transitions
  5. Export Detailed information to Excel to obtain the object dictionary table and the startup sequence table

Object dictionary browsing​

The CoE tab provides a tree view of the object dictionary.

  • Loading — loads automatically the first time the ODList node is expanded after entering PreOp; the result is cached, so switching slaves does not read it again
  • Grouping — collapsed by object category (communication parameters 0x1xxx / manufacturer area 0x2xxx / device profile 0x6xxx and so on)
  • Each row shows — index, subindex, name, data type, access rights, current value
  • In-place editing — double-click a writable cell to issue an SDO write directly

If an entry fails on first access (for example, the slave has not entered PreOp yet), ODList shows an error placeholder for it; right-click and choose Reload after the state change to retry.

Startup sequence​

The startup sequence writes SDO parameters automatically on state transitions, so the slave enters the running state with the intended configuration.

The startup sequence supports 6 state transition points:

TransitionDirectionTypical use
I→PInit → PreOpInitialize the mailbox configuration
P→SPreOp → SafeOpConfigure the PDO mapping and mode of operation
S→OSafeOp → OpEnable the control functions
O→SOp → SafeOpSafe stop
S→PSafeOp → PreOpReconfigure
P→IPreOp → InitFull reset

Each parameter carries: the transition, the write timing (before/after the transition), the index/subindex and the data. When you export the Detailed information Excel report, the startup sequence is included as a table.

CompleteAccess mode​

Some objects (such as 0x1018 Identity and PDO mapping objects) support CompleteAccess (accessing every subindex of one index in a single request).

With the CompleteAccess switch on the CoE tab enabled, an SDO read or write transfers every subindex of the object in one go: faster, and more atomic. Note:

  • The object must declare CompleteAccess support, otherwise the slave returns an Abort Code
  • Turn it on for PDO mapping objects to avoid an inconsistent mapping caused by intermediate subindex states
  • When you cannot confirm support, leave it off; accessing one subindex at a time is the safest option

Last SDO Error display​

After every SDO read or write, the GUI shows Last SDO Error in the status bar at the bottom of the CoE tab:

FieldMeaning
Abort CodeThe raw 32-bit SDO Abort Code (for example 0x06010002)
DescriptionThe Chinese explanation of the Abort Code (for example "attempt to write a read-only object")
Index / subindexWhere the failed object sits
TimestampWhen the most recent error occurred

Successful operations do not overwrite the error display, which makes intermittent problems easier to track down. Click the status bar to clear it.

Common Abort Codes:

Abort CodeMeaning
0x05030000Toggle bit error
0x05040001Unknown command specifier
0x06010000Unsupported access
0x06010002Attempt to write a read-only object
0x06020000Object does not exist in the object dictionary
0x06090011Subindex does not exist
0x06090030Value range exceeded
0x08000020Data cannot be transferred or saved to the application (reported by the device)
0x0D000001Request not sent (master-side: invalid arguments / slave out of range / no CoE / mailbox not ready)
0x0D000002Frame transmitted, but no device counted it (master-side)
0x0D000003Mailbox layer error (master-side)
0x0D000004Transport layer failure (master-side)

0x0D0000xx are master-side verdicts where the device sent no abort frame. See Error codes and troubleshooting for how to handle each one.

EMCY emergency message history​

An EtherCAT slave can report EMCY (Emergency) messages over CoE. The GUI provides an EMCY history list on the CoE tab:

  • Each record holds: timestamp, Error Code, Error Register and the vendor-specific bytes
  • Kept separately per slave; switching slaves shows that slave's history
  • You can set the maximum number of records kept per slave; beyond that the oldest records are dropped FIFO

Right-click a list entry to copy the raw bytes, which makes it easy to compare them against the ETG documentation or the vendor manual.

CiA402 state machine visualization​

For servo drive slaves (which implement the CiA402 device profile), the GUI provides a separate CiA402 view.

The 8 standard states:

StateDescription
Not Ready To Switch OnPower-on initialization in progress
Switch On DisabledWaiting for the Shutdown command
Ready To Switch OnWaiting for Switch On
Switched OnHigh voltage applied, not enabled
Operation EnabledEnabled and running in the current mode
Quick Stop ActiveQuick stop in progress
Fault Reaction ActiveFault reaction in progress
FaultFault latched

The view refreshes in real time from the 0x6041 Statusword, draws the state machine diagram with the current state highlighted, and labels the arrows with the control word commands allowed as the next step.

The 10 modes of operation:

NumberMode
1Profile Position (PP)
2Velocity (VL)
3Profile Velocity (PV)
4Profile Torque (PT)
6Homing (HM)
7Interpolated Position (IP)
8Cyclic Sync Position (CSP)
9Cyclic Sync Velocity (CSV)
10Cyclic Sync Torque (CST)
11Cyclic Sync Torque with Commutation Angle (CSTCA)

The view shows the mode requested in 0x6060 (Modes of operation) and the mode actually reported in 0x6061 (Modes of operation display), and highlights them when the two disagree.