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
| Capability | Description |
|---|---|
| SDO read/write | Read and write parameters by index/subindex, with single-entry and CompleteAccess modes |
| Object dictionary browsing | A tree view lists every index/subindex, grouped by category |
| Startup sequence | Configure the automatic SDO writes performed on state transitions |
| Last SDO Error | Shows the Abort Code of the most recent SDO operation with a Chinese explanation |
| EMCY history | Receives and keeps the slave's emergency message history |
| CiA402 state machine visualization | For 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
- Open the CoE tab in the configuration tool
- Wait for the object dictionary to load (PreOp or higher)
- Double-click a parameter row to edit it in place; the write takes effect immediately
- Switch to the Startup tab and add the SDO parameters that must be written on state transitions
- 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:
| Transition | Direction | Typical use |
|---|---|---|
| I→P | Init → PreOp | Initialize the mailbox configuration |
| P→S | PreOp → SafeOp | Configure the PDO mapping and mode of operation |
| S→O | SafeOp → Op | Enable the control functions |
| O→S | Op → SafeOp | Safe stop |
| S→P | SafeOp → PreOp | Reconfigure |
| P→I | PreOp → Init | Full 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:
| Field | Meaning |
|---|---|
| Abort Code | The raw 32-bit SDO Abort Code (for example 0x06010002) |
| Description | The Chinese explanation of the Abort Code (for example "attempt to write a read-only object") |
| Index / subindex | Where the failed object sits |
| Timestamp | When 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 Code | Meaning |
|---|---|
| 0x05030000 | Toggle bit error |
| 0x05040001 | Unknown command specifier |
| 0x06010000 | Unsupported access |
| 0x06010002 | Attempt to write a read-only object |
| 0x06020000 | Object does not exist in the object dictionary |
| 0x06090011 | Subindex does not exist |
| 0x06090030 | Value range exceeded |
| 0x08000020 | Data cannot be transferred or saved to the application (reported by the device) |
| 0x0D000001 | Request not sent (master-side: invalid arguments / slave out of range / no CoE / mailbox not ready) |
| 0x0D000002 | Frame transmitted, but no device counted it (master-side) |
| 0x0D000003 | Mailbox layer error (master-side) |
| 0x0D000004 | Transport 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:
| State | Description |
|---|---|
| Not Ready To Switch On | Power-on initialization in progress |
| Switch On Disabled | Waiting for the Shutdown command |
| Ready To Switch On | Waiting for Switch On |
| Switched On | High voltage applied, not enabled |
| Operation Enabled | Enabled and running in the current mode |
| Quick Stop Active | Quick stop in progress |
| Fault Reaction Active | Fault reaction in progress |
| Fault | Fault 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:
| Number | Mode |
|---|---|
| 1 | Profile Position (PP) |
| 2 | Velocity (VL) |
| 3 | Profile Velocity (PV) |
| 4 | Profile Torque (PT) |
| 6 | Homing (HM) |
| 7 | Interpolated Position (IP) |
| 8 | Cyclic Sync Position (CSP) |
| 9 | Cyclic Sync Velocity (CSV) |
| 10 | Cyclic Sync Torque (CST) |
| 11 | Cyclic 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.