Read product documentation, quick starts, and protocol references online.
Overview
ETHERCAT TO CAN / CAN FD GATEWAY
ECAN-Lite Product Overview V3.0 Connect CAN Devices to EtherCAT
ECAN-Lite is an industrial EtherCAT-to-CAN/CAN FD gateway.
It appears as a standard EtherCAT slave to the master and connects to
multiple CAN buses on the device side, bringing servos, sensors, actuators,
and test equipment into one real-time control network.
Standard EtherCAT Slave4-Channel CAN / CAN FDDynamic PDOCoE ConfigurationFoE UpdateIgH demo sample packageDocument Version V3.0
This document is for product evaluation. For wiring, configuration, FoE upgrades and troubleshooting, use the ECAN-Lite Application Manual V3.0.
For protocol and object definitions, use the ECAN-Lite Technical Reference V3.0.
Select files and supported devices from the matching official release list. APP/RUN files or mode-specific ESI absent from a historical release are not added by this classification guide.
What Problem Does It Solve?
Many field devices still use CAN or CAN FD while control systems are
converging on EtherCAT. ECAN-Lite bridges the two networks:
EtherCAT Master
PLC / Linux master Periodic PDO control
→
ECAN-Lite
PDO packet conversion SDO configuration and maintenance
→
CAN Devices
Servo / I/O / sensor CANopen or vendor protocol
The master exchanges standard EtherCAT PDO data. ECAN-Lite converts that
data into CAN frames and returns received CAN traffic through EtherCAT.
How Data Flows
Transmit Direction
Master Writes PDO
Periodic task updates RxPDO
Gateway Parses
Identifies channel, frame ID, and payload
CAN Transmission
Sends the frame on the selected channel
Device Responds
Servo, I/O, or sensor performs the command
Receive Direction
CAN Reception
Collects field data from multiple channels
Unified Packing
Places frames into the TxPDO data area
Master Reads
Periodic task receives the latest data
Diagnostics
Uses status, version, and error counters
Core Capabilities
Manual V3.0 and firmware versions are managed independently. Test-tag firmware is subject to the accompanying qualification scope. Interface capacity and example cycle settings are not unconditional closed-loop latency guarantees for every load combination.
Multi-Channel CAN Expansion
One device connects multiple CAN/CAN FD buses, making bus grouping clearer and control-cabinet wiring simpler.
Dynamic PDO Capacity
PDO capacity scales with the application, from lightweight systems to multi-device workloads.
Cyclic Data Exchange
CAN frames follow the EtherCAT cycle for control, acquisition, and automated testing.
Field Maintenance
SDO configuration, version queries, and FoE updates reduce disassembly and direct programming.
Complete Master Examples
The IgH package covers scanning, PDO exchange, cyclic testing, FoE updates, and CiA402 reference control.
Faster Troubleshooting
Status words, error counters, version queries, and diagnostic paths simplify field debugging.
Quick Specifications
EtherCAT Interface
Two 100 Mbps EtherCAT ports with CoE parameter configuration and FoE firmware updates.
Four MCAN Channels
Each channel supports CAN 2.0A/B and ISO CAN FD with payloads up to 64 bytes.
Scalable PDO Capacity
PDO size uses 128-byte base blocks, with 16-byte fine adjustment on firmware 2.x. Defaults are 256 bytes in each direction; the protocol capacity limit is 1392 bytes per direction. Usable combinations depend on cycle time, slave count, master datagram layout and CAN load, and require integrity and timing validation.
Real-Time Transmission
Supports immediate and scheduled transmission, including RxPDO full64 scheduling relative to the SYNC0 phase.
High-Speed CAN FD
TDC is enabled by default and required for data rates of 5 Mbit/s and above.
Persistent Configuration
Key parameters are stored in a CRC32-protected Flash image to reduce reconfiguration after power loss.
Category
Summary
Main control platform
HPMicro HPM5E00 series RISC-V MCU, CPU 400MHz, mchtmr 24MHz
EtherCAT
2-port 100Mbps, supports CoE/FoE
CAN / CAN FD
4-channel MCAN, supports CAN 2.0A/B and CAN FD ISO, maximum 64B data field
PDO capability
Default 256B in each direction; at most 10 base blocks plus 16B fine sizing on firmware 2.x, up to 1392B/direction; capacity is not a stable-throughput guarantee at arbitrary cycle times
PDO encapsulation
Default V1 header is 24B on 5E and 32B on 6E with payload CRC disabled; firmware 2.x can explicitly enable compact V2 at 16B/20B and CRC remains opt-in; CAN packets carry control, ID, optional timestamp, and data
Real-time features
Direct transmission, delta16/delta32/full64 timestamp encoding, and SYNC0 phase scheduling
Real-time operating modes and validation conditions
The current Linux/IgH delivery is converged to two modes:
Mode
Synchronization
Default PDO
Intended use
sm_250us_1ms (default)
250us SM subcycles with four-phase rotation
128B RxPDO and 256B TxPDO
One fixed phase for each of MCAN0..3 and a 1ms per-channel control period
DC cyclic application
Sync0 releases CAN requests; Sync0 or Sync1 latches input PDO
Select for the required load
Phases, peer response and host collection determine latency. A 1ms period is not an N+1 guarantee; see application manual chapter 4
The examples apply the period, PDO size, phase, and send strategy as one profile, so users do not need to reconstruct the parameter combination. Actual latency still depends on the host, kernel, NIC, CAN bit rate, bus load, and motor response time; validate the complete deployment as described in the technical manual.
In-Robot Communication and Debugging
Robot systems often include joint drives, end-effectors, torque sensors,
grippers, I/O modules, and safety components. These devices may be distributed
across several CAN buses and may use CANopen or vendor-specific protocols.
ECAN-Lite acts as a real-time conversion layer between the robot controller and
the internal CAN network, aggregating distributed CAN traffic into EtherCAT.
Robot Controller
EtherCAT cyclic task Motion control and status acquisition
→
ECAN-Lite
Multi-channel CAN aggregation Cyclic packing and forwarding
→
Internal CAN Network
Joint / gripper / sensor End-effector and expansion module
Centralized Internal-Bus Access
Group CAN/CAN FD channels by joints, end-effectors, sensors, or test interfaces while exposing one EtherCAT slave to the master.
Control and Diagnostics on One Link
The EtherCAT link carries control frames, status frames, error reports, and diagnostic data, reducing extra debug cabling.
Prototype Bring-Up
Observe CAN frames, node states, versions, and error counters to isolate joint, harness, and protocol issues.
Production and Maintenance
Master-side scripts support scanning, configuration, communication checks, and FoE updates for batch testing and field maintenance.
Example: A quadruped controller runs Linux and the IgH EtherCAT master.
Cyclic EtherCAT traffic reaches ECAN-Lite, which connects joint motors, foot
sensors, and power-management modules over multiple CAN/CAN FD channels.
Control software keeps the EtherCAT cyclic model while reusing established
CAN motors and sensors.
Quadruped Example
Linux Master
Runs IgH Schedules control tasks
EtherCAT
Cyclic PDO Low-latency backbone
ECAN-Lite
EtherCAT to CAN Multi-channel forwarding
CAN Devices
Joint drives Sensors and expansion modules
Which applications are suitable?
Application scenarios
Changes brought by ECAN-Lite
CANopen servo access to EtherCAT
Use EtherCAT periodic tasks to centrally control multiple CANopen nodes
In-robot communication
Bring CAN traffic from joints, end-effectors, sensors, and expansion modules into the robot controller
Quadruped/mobile robot control
Run IgH on a Linux master and convert EtherCAT to CAN for joint-motor control
Robot prototype debugging
Observe CAN frames, node states, error counters, and versions through one master link
Multi-channel CAN data collection
Aggregate distributed CAN buses into one master
Production-line testing
Use scripts for batch configuration, communication checks, verification, and updates
Legacy CAN equipment migration
Retain existing device protocols and reduce system migration cost
Control cabinet interface expansion
Reduce the number of host CAN interfaces to make the system structure clearer
Why is it easier to integrate?
Simple Master Integration
Configure PDO, SDO, and FoE through standard EtherCAT mechanisms without designing a separate communication framework.
Flexible Device Side
Connect CANopen devices or carry existing vendor-specific CAN protocols.
Clear Data Path
The master writes RxPDO to transmit CAN and reads TxPDO to receive CAN, making direction and troubleshooting straightforward.
From Validation to Production
Use the same mechanism for engineering validation, production-line testing, and field deployment.
Delivery Features
IgH Master Demo
Buildable Linux/IgH examples help validate single-axis, multi-axis, and cyclic communication.
Matched update package
Each release provides an FoE package matched to the device model and factory configuration. Verify the product model, firmware version, and release notes before updating; packages for different device configurations must not be mixed.
FoE OTA Example
The master can update firmware through FoE for field maintenance, version rollback, and batch upgrades.
Clear Configuration Documentation
The technical manual documents PDO encoding, SDO configuration, the public object dictionary, and common troubleshooting steps.
Release File Boundaries
File
Includes
Does Not Include / Not For
ECAN-Lite-<version>-igh-demo.zip
Linux/IgH master examples and build files
It is not slave firmware and cannot be programmed into the device
ECAN-Lite-firmware-<tag>.zip
APP raw, plain FoE, secure FoE and RUN raw BINs, plus one aggregate JSON
APP raw is packaging input, not an installable image. RUN boots independently without FoE. Secure packages require matching device security configuration
ECAN-Pro-firmware-<tag>.zip
Standard eight-channel APP/RUN files and a separately named RUN-6port test image
The 6port image is for its designated test hardware, not standard Pro or the Lite website firmware
ECAN-Lite-APP.xml / ECAN-Lite-RUN.xml
EtherCAT ESI for the selected boot mode
Match the APP/RUN firmware installed on the device; no firmware is included
ECAN-Lite-documentation-<tag>.zip
Six Chinese/English PDFs: overview, application manual and technical reference, with digest manifest
Contains public product documentation only
<tag> is t<major>.<minor> or v<major>.<minor>. Test tags publish test attachments without updating production website downloads. Production tags publish firmware, ESI, IgH examples and documentation from the same version. The standalone image is named ecan_lite_run_raw_<tag>.bin; a separate ECAN-DEMO archive is no longer generated.
Typical workflow
1
Scan the Slave
Confirm that ECAN-Lite is online and read its version.
2
Configure Capabilities
Set PDO size, CAN bit rate, and channel mode.
3
Write RxPDO
Place outgoing CAN frames in cyclic process data.
4
Read TxPDO
Receive frames returned from the CAN bus.
5
Maintain and Update
Update through FoE and confirm the new version.
Pre-integration checklist
Match product and version
Use the device model, ESI, firmware package, and master examples from one compatible release.
Document the topology
Record the dedicated EtherCAT interface, slave order, and wiring for every MCAN channel.
Match the PDO map
Keep SM2/SM3 lengths, assignments, and the application PDO profile exactly aligned.
Verify CAN parameters
Confirm arbitration/data rates, CAN FD, BRS, termination, and the node protocol.
Select and validate a profile
Bring up the default SM profile first; validate the DC profile before using a 1 kHz loop.
Keep acceptance evidence
Record WKC, slave state, error counters, CAN-frame integrity, and long-run results.
Application Manual
ECAN-Lite Application Manual V3.0
For first connection, master configuration, CAN/CAN FD transfer, cycle selection, IgH integration, upgrade, and field troubleshooting.
For the complete object dictionary, bit definitions, wire formats, and capabilities, see
ECAN-Lite Technical Reference V3.0.
Contents
[TOC]
1. Scope and integration workflow
Integration proceeds from single-slave, single-channel frame verification to PDO sizing, channel expansion, cyclic operation, and diagnostics. Validate one configuration change at a time and retain its settings and results before increasing load.
Figure 1-1. Recommended path: build a minimal closed loop before adding features.
1.1 Factory configuration and project baseline
New project — recommendedV2 with CRC off: shorter header and simpler bring-up.
Maintain a legacy projectKeep V1 with CRC off so deployed parsing does not change.
High-integrity linkEnable CRC explicitly after the baseline is stable.
Item
Recommended for new projects
Why
PDO protocol
V2
16-byte header on a 4-channel device
CRC
Off
Lowest processing cost; payload_crc16=0
PDO size
256 bytes each direction
Simple and sufficient for common loads
Channels
CAN0 only at first
Smallest troubleshooting scope
CAN FD
1M + 5M, BRS, 8-byte data
Baseline used throughout this manual
Cycle
Start with SM; use DC for deterministic systems
Validate data flow before timing optimization
!!! important "Supported capabilities and reset configuration"
Firmware 2.x supports V2 but does not automatically select it. The factory/reset baseline is V1 with CRC off (0x04). A new master may explicitly select V2 with CRC off (0x24) after confirming the capability bits.
1.2 Configuration sequence
Order
Configure
Minimum action
Pass condition
1
PDO mapping and capacity
Use the released ESI; keep 256 bytes
SM2/SM3 equal the master domain sizes
2
PDO protocol
0x8010/0x8011:07=0x24
Both Apply Status values are 0
3
Channel scope
:04=0x01
Only CAN0 is allowed
4
CAN bit timing
Write 1M + 5M, then Apply
0x8001:02=0
5
Cyclic image
Build V2 header and CAN_FRAME
Stable WKC and a correct CAN frame
!!! note "Direction names"
RxPDO/TxPDO names are relative to the slave. The master calls them Output/Input respectively. RxPDO carries master requests toward CAN; TxPDO carries received CAN frames and slave status toward the master.
1.3 Pre-connection checks
The released ESI matches the product and the slave reaches PREOP.
CAN_H, CAN_L, ground, and termination are correct; the peer supports CAN FD ISO and BRS.
Configuration SDOs are written in PREOP/SAFEOP and every Apply Status is checked.
First bring-up uses one slave, one channel, and one fixed test frame.
In OP, observe WKC, a CAN analyzer, and module status together.
1.4 EtherCAT port indicators
Current firmware uses the JL1111 indicators for 100 Mbit/s link status. Earlier boards connect the LED to LED0 and newer boards to LED1; both use the same firmware configuration, without an SDO hardware-revision selector.
Indication
Meaning and checks
Steady on
A 100 Mbit/s physical link is established; packet activity is not shown by blinking
Off
Check power, cable, peer port, and link negotiation; a brief interruption during reset is not a CAN fault indication
On but communication fails
Check enumeration, AL state/error code, PDO mapping, and WKC; an illuminated LED is not a communication acceptance test
The indicator does not confirm CAN transmission, peer response, OP state, or DC synchronization. Check PDO sequences, valid frame counts, CAN responses, and SDO diagnostics for data integrity. LED1 also participates in ESC link detection and must not be repurposed as a GPIO output or Activity indicator by the application.
!!! warning "Debug execution versus normal boot"
A raw/Debug image started directly by SES may differ from the packaged APP selected by the Bootloader after reset. Use the correct product package for deployment, then read 0x100A:00 and verify image identity again after reset. Results from another APP do not qualify the candidate under test.
2. Minimum configuration and first-frame verification
This reproducible baseline uses slave 0, CAN0, V2, CRC off, standard ID 0x123, CAN FD+BRS, DLC 8, and data 11 22 33 44 55 66 77 88.
ECAN-Lite
Four-channel CAN FD board. The illustrated hardware is marked rev0.
Verify the installed hardware revision, pin definitions and power requirements against its model documentation.
Figure 2-1. ECAN-Lite product photograph and single-channel verification topology. Arrows indicate request and response directions. Connect CAN_H, CAN_L, signal ground and termination according to the target model's hardware documentation.
Position
Integration action
Required observation
1 MASTER
Use a dedicated EtherCAT port; confirm ESI, slave position and firmware identity
Device enumerates and reaches PREOP for configuration
2 ECAN-Lite
Configure both PDO directions, CAN0 and bit timing; Apply and read back
Status is 0; Active settings match the master mapping
3 CAN PEER
Match bit timing on an analyzer or test node; configure an explicit response rule if required
Observe the request ID, FD/BRS, DLC and every payload byte
A CAN ACK is not an application response. The gateway does not generate an automatic echo when a peer acknowledges a request. The peer must transmit a response for it to appear in TxPDO. Initial verification must not issue motion commands to a drive.
Minimum configuration and reuse
A minimal configuration assumes a verified reset baseline. It does not remove readback requirements. For an unknown or previously saved configuration, establish the complete target settings before starting the cyclic application.
Configuration
Verified reset baseline
Action for this example
Capacity, Profile and Budget
256B per direction, Profile 0, Balanced
Retain only after assignment, SM sizes and Active values agree
Header and channel scope
V1, CRC off, supported channel scope
Explicitly select V2/no-CRC (0x24) and CAN0 mask (0x01); Apply both directions
CAN settings
Defaults or saved settings may differ from the peer
Confirm Normal, ISO, FD, TDC and 1M+5M; Apply and read back after changes
Sequence and session
No new output-session baseline yet
Warm up with valid command-free PDOs; use a new sequence for the test frame
SDO commands configure the device; they do not transmit the test CAN frame. The cyclic application must enter OP and write a complete RxPDO image.
2.1 Data directions
Figure 2-2. Write RxPDO to transmit CAN; read TxPDO to receive CAN.
If any check fails, use V1 with CRC off (OptionFlags=0x04) and the V1 codec.
2.3 Select V2, disable CRC, and allow CAN0
0x8010 configures TxPDO, module to master. 0x8011 configures RxPDO, master to module. Write fields first and :01=1 Apply last.
Before applying either Profile, configure matching 256B assignments in PREOP. The IgH Adapter normally performs this through the master API; do not rewrite the mapping with the command-line tool after activation.
0x24 = HEADER_V2(bit5) + NO_CRC16(bit2). It is the recommended new-project selection, not an automatic V2 default.
After Apply, read the following subindices from both 0x8010 and 0x8011. Requested settings are not evidence of the active layout. Do not write snapshots back into read-only Active fields.
Subindex
Type
Required readback
:02 Status
uint8
0
:09 Active PDO bytes
uint16
256
:0A Active frame area bytes
uint16
240 on the four-channel V2 device
:0B Active layout CRC
uint32
Record and use the corresponding layout ID in the codec
:0C Active profile word
uint32
Match 256B, CAN0, Profile 0, Balanced and OptionFlags 0x24
2.4 Configure CAN0 for 1M + 5M
!!! caution "Check restricted operation mode when reusing a configuration"
text
- Normal bidirectional traffic requires `0x8001:11=0`. Its legacy nameis `Restricted mode disable`, but writing 1 actually enables restricted mode (`CCCR.ASM=1`) and prevents the node from initiating CAN transmissions. Donot invert the value based on the name.
- If a previous configuration enabled it, write0 during configuration, apply with `0x8001:01=1`, and verify Apply status. Complete WKC, PDO state run, or an increased accepted-request counter does not prove transmission on CAN.
- Restricted mode isnot Bus-off; leaving this mode does notvalidate disconnected-peer, missing-ACK, or Bus-off recovery.
0x8001:02 must return 0. The minimal path keeps Normal mode, CAN FD ISO, TDC enabled, and automatic timing. Configure exact sample points only when the peer requires them.
2.5 Build the V2 first frame
On a 4-channel device, V2 uses a 16-byte header followed by CAN_FRAME records. The first 28 bytes are shown below; fill the remainder of the PDO with zero.
- Foreachnew PDO image, <code>seq_begin</code> and <code>seq_end</code> must be equal and advance together. Within an output session, reusing the most recent sequenceis a no-op even if the payload changes.
- Unsigned 16-bit deltas 1..32767 are forward progress; 32768..65535 are rejected. Normal 0xFFFF→0x0000 wrap isvalid. A partially submitted image cannot be rolled back andisnot automatically replayed.
- Determine execution from peer responses before issuing a corrected request with a newsequence; donot blindly retry the entire image. Establish a sequence baseline during session initialization, notby resetting the counter while OP communication continues.
!!! warning "Cyclic position command freshness"
text
- Use one transmission mode for a CSP command stream; do not mix immediate and TSF-scheduled commands. Current firmware uses TX FIFO exclusively and normalizes channel subindices `0x45` and `0x47` to zero on Apply; Queue and Dedicated TX are not selectable.
- Ordinary CAN queues do not interpret position commands or provide a generic per-frame expiry time. On congestion, feedback timeout or communication recovery, stop supplying the old trajectory, confirm motor state and establish a new control baseline.
- Configure the drive's communication watchdog and timeout response. Complete WKC does not confirm that a position command has executed.
!!! caution "Remove per-frame scheduling when switching from DC to SM"
text
- `TSF_FULL64 format=1` requires a current DC output session. Use `TSF_NONE` after switching to SM; donot retain scheduling fields or rely onthepreviousSync0count. Firmwarewithsessionprotectionrejectsthecompleterequestandreports `0x8011:0E=16` (badschedule).
- Correct itand use anew PDO sequence. Check the error counter at `:0F` andthe actual response set, not only WKC orthe current status at `:02`. The scheduling tag does not provide per-frame cancellation; clearing diagnostics does notcancel pending frames.
At output-session startup, the first valid image is discarded as a residual baseline;
the first different sequence establishes the new master's sequence, allowing a new initial
value. Send PDOs without CAN commands during warmup before publishing motor commands.
2.6 Communication verification
The slave is OP and domain WKC remains stable.
A CAN analyzer sees ID 0x123, FD, BRS, DLC 8, and exact payload.
After the peer returns a frame, decode the TxPDO body and verify the expected received-frame count. V2 has no header frame-count field; count complete frame packets in the body.
0x8001:02, 0x8010:02, and 0x8011:02 remain 0.
Run at least ten minutes before adding channels or load.
In 0x24, bit 0 is reserved and must remain zero; firmware rejects 0x25. Confirm application completion through the CAN peer response, and diagnose local congestion or bus errors through PDO channel status and SDO diagnostics.
3. PDO and CAN configuration
Change one class of parameters at a time. Read Apply Status and save the active configuration after each change.
3.1 Add channels
Device family
CAN channels
V2 header
Recommended progression
HPM5E family
4
16 bytes
CAN0 → CAN0/1 → CAN0..3
HPM6E family
8
20 bytes
Validate four channels, then expand to eight
Channel-mask bits 0..7 correspond to MCAN0..7. Change 0x8010/0x8011:04, then Apply. The CH field in each frame still chooses the output; a mask is not a broadcast command.
3.2 Sample-point windows and unsolvable timing
Select an achievable sample-point window
Nominal 1M at 76.5% and data 5M at 88.2% are target sample points, not necessarily exact solutions for the current integer time quanta. Units are 0.1%: 765/882 mean 76.5%/88.2%, not BRP or quanta counts.
The example below enables automatic solving (SI7=0) with nominal 76.0%..78.0% and data 87.5%..90.0% windows. Use these only if permitted by the peer and system design; they do not guarantee a solution for every source clock.
If exact timing is required, verify the actual hardware timing rather than silently widening the bounds.
Poll with a bounded timeout. Do not overwrite pending settings or treat successful SDO download as completed hardware configuration.
Status
Meaning
Action
0x02
Pending / busy
Continue polling within the timeout
0x00
Success
Verify the effective configuration
0x03
Configuration build failure, for example manual SJW greater than TSEG2
Correct the parameter combination, Apply again, and verify status
0x04
No automatic timing solution, or runtime configuration Apply failure
Preserve settings and status for diagnosis
On timeout or failure, retain the requested settings and returned status. Typical causes include an unrealizable integer timing solution, wrong write order, Message RAM conflicts, or values that do not apply to the current MCU.
Recover from an unsolvable timing request
Firmware with unsolvable-timing protection preserves the previously active channel settings when an automatic timing request has no solution. Apply status reports 4; requested SDO values are not evidence of active settings.
Earlier firmware may leave the channel unavailable after failure. Restore known-valid settings and Apply again, then read back active settings and verify communication. This protection does not guarantee recovery from every hardware or clock failure.
Confirm support in the release notes for the installed version.
Configure and verify TDC
For TDC, retain 0x8001:21=0 and 0x8001:22=0 for automatic configuration. Offset=0 calculates both TDCO and TDCF and ignores the Filter request. Manual adjustment requires Offset1..127 and Filter0..127; Filter=0 then means an explicit zero, not automatic selection.
The driver clamps values above127, so SDO request readback is not proof of the effective value. Check DBTP.TDC and TDCR through register diagnostics. TDCR can retain old values when TDC is disabled.
Automatic bit timing (0x8001:07=0) forces TDC on at data rates of 5 Mbit/s and above. Manual bit timing (:07=1) uses the requested :10 value without forcing it on. Keep TDC enabled for high-speed CAN FD and verify communication. Successful manual disabling does not establish reliable operation at that rate or wiring condition; short-cable success does not qualify all propagation delays.
Confirm recovery after a timing fault
Restore verified timing and TDC settings, Apply, and confirm status 0. Successful Apply confirms configuration, not zero CAN error counters.
Read TEC/REC from the channel's 0x900x:01 and EW/EP/BO from 0x900x:02. See Technical Reference 12.5.2 for bit definitions. These are diagnostic snapshots, not fresh hardware samples on every SDO upload.
X/ESI=1 in a received CAN FD frame describes its transmitting node being Error Passive. It does not mean the converter changed payload bytes or, by itself, identify a fault in the local receiving channel. Initial valid frames can still carry ESI after correct settings are restored; verify recovery against sender status and subsequent frames.
Use only application-approved safe probe traffic to verify integrity, order and state convergence before resuming operation. Never replay historical motor commands to reduce error counters. Clearing diagnostics does not remove a physical fault; missing or duplicate frames during the fault remain failures even if later communication recovers.
CAN automatic retransmission and business deduplication
0x8001:12=0 permits CAN-controller automatic retransmission; :12=1 disables it. Apply after changing the setting. Disabling retransmission neither repairs timing, wiring or ACK faults nor guarantees delivery.
PDO-sequence deduplication prevents accepting the same PDO request twice; it does not guarantee exactly-once execution over CAN. Identify duplicates using the business protocol's sequence information, not CAN ID or identical payload alone: successive position commands or status reports can legitimately be identical.
For non-idempotent operations, use transaction numbers, acknowledgements and timeout rules supported by the motor protocol. Evaluate missing, duplicate and stale commands together when choosing a retransmission policy; fewer duplicates must not hide missing frames.
Check the batch transmission deadline
For batched transmission, check CAN wire time separately from PDO capacity. Firmware with SM motion-epoch protection applies a 1000µs command lifetime to motion-designated channels; larger PDOs or less frequent requests do not extend it.
Unsent expired frames may be canceled to prevent late old commands. Do not disable this protection to obtain a real-time integrity pass. Compare actual CAN requests, peer responses and diagnostics, not WKC alone. Refer to release notes for the applicable firmware revision.
Distinguish SM and DC cancellation
SM motion-command expiry does not require another PDO: pending requests can expire while the host has paused PDO transmission. Current ordinary DC batches use the next complete PDO to revoke old pending requests; the SM 1000µs lifetime does not apply to them.
Output-session termination, channel maintenance and fault protection can independently cancel requests. After recovery, submit new valid commands rather than relying on replay of canceled requests.
When WKC is complete but the final CAN frame is missing
Compare the submitted frame set with the peer's received set before investigating response delivery.
Count arbitration, CRC, stuffing, ACK and inter-frame time, not only payload bits. Eight 64-byte frames and eight 8-byte frames need different windows; PDO capacity does not establish compliance with the command lifetime.
Check cancellation results. TXBCF=1 alone does not prove loss: TXBTO=1 for the same slot indicates successful transmission despite a cancellation request.
Capture the slot before reuse, preferably while the master remains OP, to distinguish runtime events from shutdown cleanup.
Register interpretation is specified in the Technical Reference.
3.3 Adjust PDO size
Reconnect or restore configuration
Check assignment, requested fields and Active readback separately. A requested 256-byte profile may coexist with a previously active 128-byte layout.
For normal reconnection, configure the complete intended assignment, write the matching Profile and Apply.
Verify Status and all active layout fields before resuming business traffic.
Precautions
Exact restoration of pending requests is a separate procedure in the Technical Reference PDO Profile section.
Do not write snapshots to read-only Active fields or clear diagnostics to hide a recovery failure.
V2-capable firmware uses the existing 8-bit PDO size selector for coarse and fine sizing:
!!! important "Three sizes must match"
ESI PDO/SM size, registered master-domain size, and firmware Active PDO bytes must be identical. Check 0xF000:10 bit7 before using fine sizing. A legacy IgH master that writes only the low five bits still gets the original 128-byte multiples.
The total process image for multiple slaves must also fit the actual Ethernet/EtherCAT frame budget. Validate the generated frame length, WKC, and cycle jitter rather than summing nominal slave maxima.
3.4 Choose V1, V2, and CRC
Figure 3-1. V2 lowers fixed overhead; V1 remains available for deployed masters.
Combination
OptionFlags
Use
V1, CRC off
0x04
legacy master and compatibility fallback
V1, CRC on
0x00
legacy protocol with payload CRC
V2, CRC off
0x24
recommended new-project baseline
V2, CRC on
0x20
V2 with payload CRC
With CRC off, the device reports a zero payload CRC. The master should also write zero in the downlink field, but firmware skips that field and does not reject a downlink PDO solely because it is nonzero. When CRC is enabled, both ends must use the same algorithm and coverage. EtherCAT FCS, CAN CRC, and PDO payload CRC are separate mechanisms.
3.5 Profiles, budgets, and results
Requirement
Adjust
Rule
Variable DLC, least overhead
profile 0
recommended default
Fixed records or timing information
corresponding profile
both ends use the same codec
Frames per cycle
RX/TX budget
estimate from wire time, then measure
Confirm transmission and completion
CAN peer response plus PDO/SDO diagnostics
bit0 is reserved; no per-frame result packet
Four-byte alignment
ALIGN4
padding changes capacity
Keep latest on overload
drop-oldest
suitable for feedback, not command queues
Always write fields, write Apply last, read Apply Status, read active values, then enter OP. Do not Apply repeatedly from the real-time loop.
Reconfiguration during operation
CAN channel Apply (subindex 0x01 of the corresponding channel object starting at 0x8001) is not a lossless online switch. Even unchanged settings can cancel unfinished transmissions and discard received data that has not yet been uploaded. Status=0 confirms successful configuration, not delivery of every business frame during reconfiguration.
Prefer channel configuration in PREOP. If operational reconfiguration is necessary, suspend new commands on that channel according to the application's safety requirements and account for outstanding responses. Maintain the required EtherCAT cyclic communication while waiting.
Wait for outstanding responses with a bounded timeout and record unresolved requests and diagnostic counters. PDO tx_pending_sat=0 alone does not prove that the entire transmit path is empty.
Execute Apply; check final Status, Command sequence and Active values, and compare transmit-cancellation and receive-discard counter deltas.
Resume with new business commands after successful configuration. Do not automatically replay unconfirmed pre-reconfiguration motion commands, such as old position setpoints.
Set the channel TX budget separately
Increasing PDO capacity does not increase the channel TX budget. Uplink capacity scheduling at 0x8010:06 is separate from the per-channel TX budget at 0x8021..0x8024:0C.
In DC request handling, a channel's command count exceeding its effective TX budget can reject the whole request batch. Sufficient PDO space and complete WKC do not establish CAN transmission.
Configure an eight-frame workload explicitly; do not rely on factory values, previous sessions, or the fallback meaning of zero.
For CAN0, apply the following sequence before starting business traffic, preserving
other policies. Use 0x8022/0x8023/0x8024 for CAN1/2/3:
Order
Object/subindex
Type
Value/check
Purpose
1
0x8021:01
U8
1
Enable explicit data-path configuration
2
0x8021:05
U8
8
RX service budget maximum
3
0x8021:0C
U8
8
TX write budget maximum
4
0x8021:02
U8
1
Apply configuration
5
0x8021:03
U8, read-only
Must be 0
Confirm Apply success; also read back :05/:0C=8
Use the IgH budget APIs
The IgH API provides igh_mcan_port_set_channel_rx_drain_budget() and igh_mcan_port_set_channel_tx_write_budget(). Call them before igh_mcan_port_apply_config() and check return values.
Budgets are service limits, not throughput or latency guarantees: also verify CAN wire time, hardware slots, PDO capacity, preparation deadlines and peer responses. Inspect 0x8011:0E/:0F and channel diagnostics for failures; WKC alone is insufficient.
Select the uplink capacity policy
Set 0x8010:06.
Apply the configuration.
Read :02 and :0C to confirm activation.
Policy
Intended use
Configuration check
Balanced (0)
General multi-channel traffic
Reserve 14 bytes per enabled channel for a complete encoded 8-byte extended-ID frame, or 16 bytes with a timestamp or ALIGN4. Share the remainder; idle reservations are not lent out
SharedOnly (1)
Fully shared capacity without reservations
Check total traffic against available capacity
Deterministic (2)
Fixed per-channel limits
Confirm that a complete frame fits each channel's allowance
Balanced with a small PDO
An oversized frame that cannot coexist with other reservations may receive a rotating exception, reducing other channels' reservations for that image. Same-cycle delivery on every channel is not guaranteed. See Technical Reference section 11 for exact allowances and exceptions.
Deferred frames remain queued; overflow_sat is not a lost-frame count.
Include scheduling reservations in capacity calculations. The following example uses
four channels, a 24-byte V1 header, Profile0, standard IDs, no timestamp, no ALIGN4,
and CRC disabled. A 64-byte data frame occupies 68 encoded bytes; an 8-byte frame occupies 12.
Uplink configuration
Body capacity
One 64-byte frame plus one 8-byte frame on each of the other three channels
128 bytes, 0x8010:03=0x01
104 bytes
Encoded data totals 104 bytes, but normal reservations require 68+3×14=110; same-image delivery is not guaranteed
144 bytes, 0x8010:03=0x21
120 bytes
Accommodates both this data group and normal reservations, avoiding this capacity-induced deferral
The 144-byte setting requires firmware and master support for 16-byte size increments
and a matching PDO mapping; changing only the SDO while retaining a 128-byte mapping is invalid.
Large frames and per-channel reservations can defer some traffic. Balanced does not guarantee a fixed frame count per cycle. Use Deterministic and complete encoded lengths when a fixed per-channel capacity is required.
!!! caution "Configuration order for dedicated RX buffers"
text
- Prefer FIFO0/1for ordinary ordered reception. For action-7 filters, first select the RX Buffer count at `0x8001:43`, save rules pointing to valid slots, then Apply the channel. Targets are zero-based: 12 buffers allow 0..11; two buffers allow 0..1.
- Reducing the count may require changing existing rules. Firmware with partition protection rejects invalid targets with `0x8001:02=3`; correct the target and confirm Apply status 0before transmitting. Use `0x8002..0x8004` forthe other channels.
- A single buffer slot is nota multi-frame FIFO oran ordered frame queue.
3.6 Receive timestamps
This procedure requires the revised timestamp contract in Technical Reference 7.4, not earlier
raw-counter firmware. Establish ordinary communication first and back up existing filter entries.
For 5E CH0 and standard response ID 0x220, configure in PREOP:
Check :2F and :02. CH1–CH3 use 0x8002–0x8004 with their own IDs. Select :4E=1 for SOF;
all compared channels must use the same event. Check source-selection enums for other MCU models.
The original global filter still controls acceptance of non-matching frames.
For persistent unavailable timestamps, distinguish capture configuration from capture failures.
Inspect the filter entry actually matched, not only an unsaved editing window. Store modified entries
and Apply the channel before checking the result.
Observation or configuration
Interpretation and check
Profile1/5 enabled, matched entry has sync_message=0
The field exists but TSU capture was not requested; FF FF is expected unavailable time, not CAN loss
All fields remain FF FF with capture requested
Check the matched rule, TSU enable, 64-bit PTPC0 source and Apply status; field presence or a successful write does not prove capture
Valid and FF FF values occur in one PDO
Distinguish overwritten/inconsistent captures, the first-frame reference, negative deltas and range limits; do not infer CAN loss or automatically resend commands
Do not poll the consuming TS_SEL capture window during diagnosis of normal traffic; doing so can
change the firmware's timestamp-read result.
Decode timestamp callbacks
IgH callbacks expose raw fields in frame.rx_tsf and frame.rx_timestamp_bytes. For revised TSF=1, decode little-endian U16: 00 00 is the reference, 05 00 is 5 μs, and FF FF is unavailable. Unavailable time does not mean missing CAN data.
Rebuild the application and static libraries together: the new receive metadata changes the host structure size. Configuration success alone does not verify SOF/EOF accuracy, timestamp completeness under overload or external clock calibration.
3.7 Classic CAN and remote-frame encoding
Classic CAN uses DLC 0..8 with FDF=0, BRS=0 and D64=0. A Classic data frame carries DLC bytes. A remote frame sets X=1: DLC specifies the requested data length, but the remote frame itself carries no data bytes. In CAN FD, X means ESI; RTR is not supported. DLC 9..15 and the 12..64-byte length mapping apply only to CAN FD.
The following are complete CAN_FRAME body records for CH0, standard ID 0x123, without timestamps or the PDO header:
Frame
Ctrl, little-endian
Complete unaligned record
Length
Classic data, DLC=0
00 00
00 00 23 01
4B
Classic data, DLC=1, payload AB
08 00
08 00 23 01 AB
5B
Classic remote, DLC=8
40 04
40 04 23 01
4B
With ALIGN4 enabled, append three zero bytes to the 5B example and include them in payload_len. Do not append or skip eight data bytes for the RTR example. Determine data length from FDF/X before computing alignment and advancing to the next record.
4. Select cycle mode and load
Figure 4-1. SM/DC request and feedback workflow. This shows usage order, not measured durations; phase, late-request and cancellation rules are specified in this chapter.
User action
Device behavior
Verification
Write RxPDO
Accept valid complete requests; do not replay duplicate sequences
Check WKC, protocol errors and business responses
Use SM
Send valid requests under the configured channel policies without waiting for Sync0
Check CAN IDs, data and order on the bus
Use DC
Control request transmission with Sync0
Deliver requests early and allow device-processing margin
Read TxPDO
Return the responses and status included in this publication
Deduplicate PDO sequences and verify each business response
Encounter capacity limits
Defer unselected frames; count actual discards under the configured policy
Distinguish capacity flags, pending quantities and drop counts
DC edge and command replacement rules
Condition
Behavior
Request preparation completes before target Sync0
Wait for Sync0; do not send early
Sync0 precedes completion of request preparation
Send after preparation if the edge was not used by another request and this request is still valid; otherwise wait for a later Sync0
Further Sync0, no newer complete PDO
Crossing a cycle alone does not cancel ordinary pending requests; submitted requests are not replayed
Next complete PDO arrives
Cancel old unsubmitted requests, even if the new image is invalid, duplicate or empty
Session stop, reconfiguration or fault protection
Cancel affected pending requests; do not replay old work after recovery
!!! warning "Cancellation boundary"
text
- Cancellation cannot guarantee withdrawal of frames already submitted to CAN. It isnot a hardware emergency stop or simultaneous cross-channel recall.
- Correlate business sequences, responses and SDO diagnosticsto distinguish requested cancellation, confirmed cancellation and transmission during cancellation. Late submission does not guarantee N+1. Responses to requests sent after Sync1 cutoff require a later publication.
4.1 Mode selection
Mode
Best fit
Direction behavior
Key setting
SM 250 µs
high-rate two-way exchange
SM2 and SM3 in the cycle frame
run every 250 µs without missed calls
DC 1 ms / Sync0 900 µs
deterministic multi-slave system
logical read/write separation
1 ms cycle, 900 µs phase, collect in a later cycle
DC with Sync1 input latch
separate CAN execution and feedback sampling
write before Sync0, read after Sync1 publication
validate response and publication margin
4.1.1 SM transmit and response timeline
RxPDO/SM2 means master-to-module; TxPDO/SM3 means module-to-master. Track request A by its
business identity, not by assuming the PDO image sequence is an echo sequence. Four-phase channel
rotation is a demo policy, not a firmware requirement; multiple channels may share an RxPDO.
Figure 4-2. SM combined-exchange pipeline; execution block widths are schematic, not measured durations.
The EtherCAT exchange writes RxPDO and reads the TxPDO already published at the instant of
that access. One LRW does not wait for MCU processing, CAN transmission or the peer response.
The slave validates the complete request and transmits under channel settings. SM does not
wait for Sync0. Bus queueing, arbitration and retransmission can delay wire transmission.
The slave updates available feedback. This LRW does not wait for the new response, and a
published image is not appended.
A misses F[N] but is selected in F[N+1] here, giving an N+2 read. Inclusion in F[N] can allow
the next read; capacity, budgets and processing delay can move it later.
The host still needs receive/process, image validation and business matching after the Ethernet
reply reaches its NIC. Same-cycle and next-cycle collection change application-observed latency.
A 250 us SM exchange period is not a guaranteed 250 us CAN closed loop.
4.1.2 DC transmit and response timeline
Figure 4-3. DC split exchange, tracking request A; phase examples are not measured load guarantees.
Read the cycle timing example
The host writes once and reads once per millisecond. At cycle N, write A at 0 us; the read at 200 us obtains earlier feedback. To send at Sync0=200us, deliver the request early and allow processing margin. Scheduling and CAN arbitration can delay actual wire transmission.
Sync1=900us establishes the feedback cutoff; TxPDO becomes readable after further processing. A response must be fully processed and selected; wire arrival alone does not prove inclusion.
Distinguish N+1 from elapsed loop time
If all replies to A are selected, successfully published and retained until the next access, the read at N+1/200 us (absolute 1200 us) obtains A. Collection at N+1/400 us (absolute 1400 us) makes it available to the application.
This example is N+1 but has about a 1.4 ms write-to-collection budget, not a 1 ms closed-loop guarantee. Early reads, incomplete receive processing, insufficient capacity, publication deferral or missed host reception can delay it. Complete WKC is not business completeness.
DC uses a single output architecture: SM2 validates/stages an immutable command image; ordinary
CAN requests normally wait for Sync0 after preparation. Late requests follow this chapter's timing and cancellation rules. Feedback is updated at the configured input event; replies processed after cutoff require a later publication.
Configuration
Output release
Input publication
Response timing
Sync0 only
Sync0
After the application callback on Sync0
Does not wait for the new request's response; normally reports the preceding round
Sync0 + Sync1
Sync0
Subsequent Sync1
Allow the entire CAN exchange and publication before the master read
This table assumes prepared before the target Sync0. Late-admitted submission occurs after the edge
and shortens the response window. The nominal phase difference is neither the actual available
window nor an N+1 guarantee.
In PREOP, select 0x1C32:01=2. Select 0x1C33:01=2 for Sync0 input latching or 3 for Sync1.
The master DC API must also enable the requested clock events; selecting the SDO does not
generate Sync1. Its relative offset must be below the Sync0 period; subordinated multi-subcycle
operation is not supported.
Recommended starting configuration: Sync0-only, 1 ms split exchange
With Sync1 disabled, start commissioning with the following phases, measured from the host cycle boundary.
This is an explicit configuration, not a change to firmware or IgH example defaults.
Setting
Phase / period
Purpose
Host cycle
1000 μs
One write and one read per cycle
RxPDO write
0 μs
Send CAN requests for the current cycle
Sync0
200 μs
Synchronize CAN output and input update; do not wait for replies to the new requests
TxPDO read
700 μs
Read feedback published after Sync0, normally from the preceding request round
Return collection
900 μs
Validate WKC and make the read result available to the application; not another read
After configuring slave identities, PDO sizes and channels, set these values before initialization:
c
if (ecan_igh_config_set_cycle_us(&config, 1000) != IGH_ECAN_OK)
return1;
if (ecan_igh_config_enable_dc_phased_cycle(&config, 200, 0, 700, 900) != IGH_ECAN_OK)
return1;
The phased API enables Sync0-only and clears the Sync1 configuration. Do not subsequently call
ecan_igh_config_enable_dc_sync01(). Initialization uses AssignActivate=0x0300,
0x1C32:01=2 and 0x1C33:01=2. To switch from an active Sync01 session, stop normally,
confirm PREOP, then change the configuration and initialize again. Setters do not reconfigure an active
session. Setting the Sync1 phase to zero does not disable Sync1.
!!! warning "Sync0-only read window"
text
Schedule the host readafterthe input update triggered by Sync0 has completed. With Sync0 at200 μs, use a700 μs readand900 μs collection as commissioning settings. Reading atthe Sync0
phase may produce incomplete WKC ora receive timeout whilethe input update is still pending.
Revalidate theread window andreturn margin after changing period, PDO size
orload. On incomplete WKC or timeout, stop advancing control targets; donot consume unconfirmed
input or automatically resend old commands.
These phases are commissioning settings. Validate completeness, N+k distribution and continuous
operation using the deployed slave count, PDO sizes, frame load, CAN parameters and peer response
time. N+1 denotes a cycle-number relationship; measure elapsed closed-loop latency separately.
Choose commissioning phases with Sync1 enabled
For initial 1ms commissioning, Sync0 at 100µs and a Sync1 relative offset of 700µs place the input event near 800µs. Read after publication finishes. This is a configuration example, not a validated load or latency guarantee.
Measure the last CAN response, PDO publication and host jitter to select margins. A 900µs Sync0 now releases requests near 900µs; historical N+1 results from arrival-triggered transmission do not apply. Existing IgH profiles do not automatically enable this Sync1 example.
Count N+1, N+2 and later responses and record actual microsecond latency.
!!! warning "DC command expiry and recovery"
text
- A newer complete PDO cancels old unsubmitted requests, even if invalid, duplicate orempty. Without a newer PDO, ordinary pending DC work does not expire solely by crossing a cycle; submitted work is not replayed. Replies to requests sent after Sync1 cutoff use later publications.
- Late sending is notan N+1 guarantee. Busy channels, insufficient budgets and faults can reject requests; frames already submitted to CAN cannot be guaranteed recalled. Empty PDO is notan emergency stop. Do not replay old commands afterstop, reconfiguration or recovery.
- Explicit TSF schedules retain their deadlines. Loss ofan enabled Sync1 is a synchronization fault, notan automatic fallback to Sync0. Check motor state before restoring motion.
- Establish a session usingempty PDOs, thensendone image per cycle; qualify bursts and skipped cycles separately. See technical reference 12.9andversion notes.
4.1.3 Timing conditions and wrapped Sync1
Condition
Required margin
Request available before Sync0
Host scheduling, EtherCAT transit and slave request processing
Reply included by cutoff
CAN queueing/transmission, peer response and slave receive processing
TxPDO available before read
Time from cutoff to readable feedback, plus jitter margin
Application receives before deadline
Read return, host processing, protocol validation and business matching
200/900 us provides a nominal 700 us response window. Device processing delay is not guaranteed extra
receive time. A split exchange places reads and writes independently; an LRW combines them and
can only return an image already published when that read reaches the slave. Neither bypasses
data-integrity, sequence or WKC checks.
Figure 4-4. Wrapped Sync1 phase definition; not a qualified current-demo setting.
For period T and absolute phases φ0, φ1, when φ1 < φ0, the forward delay is Δ=T-φ0+φ1. At T=1000us, φ0=200us, φ1=100us, Sync0 is at N/200 us and its Sync1 is at N+1/100 us, 900 us later. A 900/100 us pair has only a 200 us gap; wrapping does not add an entire period.
ESC 0x09A4 holds Δ in ns, not φ1 or T+φ1. Require 0<Δ<T for one pair per period; Δ>=T is an unsupported subordinated-cycle setting. IgH's fifth DC parameter is this delay; the standard sync1_shift sixth parameter is ignored.
!!! warning "Current support boundary"
text
- Sync1 may occur in the following master cycle; interpret its phase as a forward delay from the associated Sync0. The demo setter accepts distinct phases in `[0,T)` and computes a forward modulo-T offset. Configuration validation and ESC phase readback also accept wrapping.
- Equal phases and offsets of at least one period remain rejected. Do not bypass checks through direct structure writes. API support does not qualify every load; validate completeness and latency for the selected phases, traffic and master read point.
Verify the selected phases at startup and during continuous operation, stop/restart, missing synchronization signals and maximum intended load. Check frame completeness and response deadlines. A wrapped Sync1 can return at N+1 only if that cycle's read follows
successful publication. If the read has already happened, the earliest following opportunity is N+2.
4.2 Load estimation and measurement
CAN FD frame time includes arbitration, control, stuffing, CRC, ACK, and intermission. Do not calculate it as 8 bytes ÷ 5 Mbit/s. Two frames per channel in each 250 µs subcycle means eight frames per channel per millisecond, plus device processing, multi-slave frame length, master jitter, peer latency, and retries.
Dimension
Minimum test matrix
Slaves
one; slaves 1+2; all three
Channels
1, 2, and 4 simultaneously
PDO
actual 128/256/272/384/400-byte combinations
Protocol
V2/no-CRC primary; V1/no-CRC and CRC-on regressions
Load
rated; 120% overload; return to rated
Duration
10-minute smoke; 1-hour stability; field target
Evidence
WKC, counts, loss, order, duplicates, bus-off, recovery time
4.3 Overload and recovery verification
A passing overload test proves that the configured drop policy is visible, queues do not become permanently blocked, bus-off is recoverable, rated throughput returns within the limit, CAN overload does not leave EtherCAT WKC abnormal, and repeated overload/recovery runs behave consistently.
5. Integrate with IgH
5.1 Protocol and master API layers
Layer
Responsibility
Typical API
Capability
firmware and feature discovery
capability decode
Configuration
protocol, size, channel, CAN timing
igh_mcan_port_select_pdo_protocol()
Codec
V1/V2 header, sequence, layout, CRC
codec API
Cycle
domain receive/process/queue/send
demo cycle API
Application
CAN ID, flags, payload
frame enqueue/dequeue
!!! important "Protocol codec integration"
One application may support V1 and V2, but a single codec should build the active format. Read capabilities and use the protocol-selection API; a version string beginning with 2 is not sufficient by itself.
receive → domain_process → read TxPDO → build/write RxPDO
→ domain_queue → sync clocks if DC → send
Do not perform SDO Apply, dynamic allocation, heavy logging, or blocking waits in the real-time loop.
5.3 SM, DC, and test peers
Use absolute-time scheduling for the 250 µs SM loop and monitor application latency, WKC, and missed cycles. In DC mode, update application time every cycle, synchronize reference/slave clocks at a fixed cadence, and keep the 1 ms period aligned with the 900 µs Sync0 phase.
First bring-up: one slave, SM, V2/no-CRC, CAN0.
Throughput: slaves 1+2 self-loop, then add slave 0 and UCAN.
Final system: validate the actual PDO combination and host load.
Use the project Rust UCAN driver as the default test peer; SocketCAN is not the reference baseline.
5.4 Coexistence and records
Complete startup checks and command-free warmup
ecan_igh_wait_op_timeout() requires consecutive readiness, OP and complete domain WKC. Configuration is serviced on an absolute grid at no more than 1 kHz, independently of a longer application period.
After the first complete PDO or OP, periods longer than 1 ms wait at least one full publication cycle and align subsequent checks to the configured RxPDO send phase. Application periods and Sync0/Sync1 settings remain unchanged.
In-flight response validation and WKC checks remain mandatory. Establish the output session with command-free warmup before sending motor commands; startup readiness does not replace that warmup.
When CiA402 and ECAN-Lite share a loop, record each domain WKC separately, prevent CAN logging or replies from blocking the motion state machine, keep layouts fixed in OP, and test combined frame length, CPU use, and worst-case execution time.
Record firmware/build/capabilities, ESI and SM sizes, demo parameters, CPU affinity, scheduler, NIC/master version, peer-driver version, duration, and complete statistics for every reproducible run.
6. Troubleshoot, upgrade, and maintain
6.1 Fault isolation boundaries
Figure 6-1. Diagnostic order and independent evidence. Passing one layer does not qualify the next; judge WKC, application integrity and latency independently.
Order
Record
Establishes
Does not establish
1 LINK
AL state/error, WKC, link losses
EtherCAT state and process-data exchange
CAN submission, transmission or response completeness
2 CONFIG
Apply Status, Active PDO bytes, layout, CAN Active settings
Applied settings match the master
Requested settings alone, or cleared diagnostics, are insufficient
3 CAN DATA
Channel, ID, business sequence, DLC, every byte, count and order
Correct request/response sets with no replay
Pressure is not a loss count; V2 lacks the V1 frame_count field
4 TIMING
Send intervals, Sync0/Sync1, publication cutoff, read time, trace loss
Deadline compliance and evidence completeness
N+1 is not an absolute 1ms latency; incomplete capture cannot prove wire loss
Retain raw frames and counters before reading the SDO diagnostics in section 6.3. A saturated rx_pending_sat value of 7 does not mean exactly seven frames remain after publication. In the current uplink processing, overflow_sat=1 indicates a capacity event, not one cumulatively lost frame.
Software receive counts include retained temporary data. With configured depth 32, 0x902x:01 may briefly report 33; this does not change configured capacity or imply an array overrun. 0x900x:0A and PDO pending also include that data. Use actual drop counters, load and discard policy to diagnose sustained overload.
Remove CAN pressure and keep a fixed PDO image.
Compare master domain, SM2/SM3, and Active PDO bytes.
Reproduce with one slave, 256-byte PDO, and a slower cycle.
Confirm every receive/process/queue/send step runs each cycle.
Add slaves, target period, and load one at a time.
Investigate CAN loss only after WKC is stable.
Preparing feedback in advance does not eliminate host access-window, cycle or device-processing constraints.
Exit after a DC synchronization fault
Stopping DC synchronization pulses during operation can cause 0x002C Fatal Sync Error. A successful fault stop confirms PREOP only: outstanding requests must not be relabeled as successful, and motor-command cancellation is not established.
Preserve the original business failure, AL fault and stop result separately.
If SAFEOP+ERROR appears after the fault-stop procedure starts, stop queueing PDOs for that target, continue tracking in-flight responses and wait for the standard PREOP request within the original total deadline. Do not replay old commands to maintain exchange.
Recovery acceptance must include reconfiguration without a device reboot and checks for stale frames.
Check the process-data watchdog
AL code 0x001B identifies a SyncManager process-data watchdog timeout, not the 0x001A synchronization error. Check ESC divider 0x0400, timeout count 0x0420, the SM2 watchdog enable setting, and actual PDO write intervals.
When enabled, the timeout is (divider+2) × count × 40 ns; values 2498 and 1000 give 100 ms. Do not set the business period equal to this limit: startup transitions, late wakeups and scheduling jitter also require margin.
Disabling protection is not a valid correction for missed deadlines.
Handle SDO write timeouts
A CoE write timeout or I/O error does not prove that the slave did not execute the write. Preserve the capture and check the requested value, ApplyStatus and Active configuration before recovery.
Do not blindly repeat commands with side effects, including reset, persistence and diagnostic clearing. If failure overlaps background dictionary enumeration, investigate mailbox transaction ownership between SDO Info and external SDO requests in the master.
Serial configuration after enumeration is a diagnostic control, not proof that the concurrency defect has been fixed.
Verify SDO and cyclic operation separately
Verify external SDO results, the complete object dictionary and request waiting time separately. Successful external reads and writes do not prove that background enumeration is complete.
Mailbox ownership prevents competing transactions, but an external request may still wait for dictionary enumeration to finish. Execute synchronous SDO operations in non-real-time configuration or diagnostic threads, not in the SM/DC cyclic thread.
Mailbox correctness does not replace separate verification of DC shutdown state and master state-machine handover.
Normal stop sequence
Reject new business submissions.
Continue valid empty PDO exchange and the required DC synchronization.
Request PREOP and verify the actual AL state and error flags.
Stop cyclic communication only after PREOP is confirmed.
Completion criteria
Successful submission of a state request does not confirm the transition.
Some masters pass through INIT before PREOP. INIT is an EtherCAT intermediate state, not an MCU reset or proof of a completed stop.
Preserve separate diagnostics for business operation, state transition and resource release.
Background dictionary enumeration can delay state changes, including those of other slaves.
Qualification must cover stop deadlines while enumeration is active. A missed deadline must be
reported and handled by the system-defined safety procedure; successful restart afterward is not
evidence of a clean normal stop. Empty PDO exchange is not an emergency stop or safe torque off.
6.3.1 Receive pressure and backlog quantities
Interpret pressure and saturated counts
rx_pressure=1 with V1 rx_pending_sat=7 indicates at least seven received frames awaiting processing at the status sample; also inspect hardware message-lost status. Seven is a clipped representation, not queue capacity.
counter_sat is shared by RX/TX count overflow and degraded protection, not a high-order extension of pending. V2 retains pressure bits but omits pending quantities; the SDO queries remain available.
Check the channel error summary
The V1 header's ANY_CH_ERROR also aggregates RX/TX pressure; it does not by itself establish a physical CAN error or frame loss.
For a started FD channel with no hardware error or TX pending, eight cached frames all included in the current image can produce channel word 0x1F4A and set header bit1.
Check actual payload counts, frame sequences and SDO drop-counter deltas together; neither treating the name as proof of loss nor ignoring the flag is valid.
Question
CAN0 hexadecimal index:subindex
Interpretation
Total outstanding receive work
0x9000:0A, uint16
Hardware RX FIFO0 + FIFO1 + software cache, not capped at seven
Frames in the software cache
0x9020:01, uint16
Includes received and retained frames not yet successfully published; excludes hardware FIFOs and frames whose publication has completed
Historical software cache peak
0x9020:02, uint16
Does not fall after draining; not current occupancy
Last service drain / TxPDO consumption
0x9020:03/:09, uint16
Consumption is not remainder or host receipt count
Software receive loss
0x9020:05, uint32
Compare with the baseline; inspect hardware loss separately
Hardware receive loss indications
0x9000:03/:04/:05, uint32
Preserve IR, RXF0S and RXF1S raw values for register decoding
These read-only examples select slave position 0, CAN0, master 0. For CAN1/2/3 change the object
to 0x9001/2/3 or 0x9021/2/3, not the slave position. Subindices below are hexadecimal.
For example, a PDO pending value of seven followed by SDO total pending=20 and software cache=12 confirms outstanding work beyond seven and software cache occupancy.
Sequential SDO reads are not guaranteed simultaneous; do not subtract them to claim exactly eight hardware FIFO frames. A later zero count and complete response matching establish later draining, not earlier deadline compliance.
These numbers illustrate interpretation, not a product capacity or performance claim.
!!! warning "Current pending is not the remainder at a previous PDO cutoff"
text
- SDOs are background diagnostic snapshots, not per-PDO publication latches. After a pressure indication, frames may drain ornew frames may arrive before the next diagnostic sample. Standard SDOs cannot directly identify how many frames of an earlier batch missed publication N.
- Frames whose publication has completed are outside RX pending even if the master has notread them; retained frames not yet successfully published remain included.
6.3.2 Sampling and evidence collection
Record firmware, ESI, PDO version/size/CRC, channel budgets, CAN traffic, and SM/DC phases.
Preserve a counter baseline after warm-up; do not reset counters or reboot before saving
evidence. If a supported diagnostic reset is required, start a new measurement interval.
In the cyclic host application, record pressure occurrence counts and longest consecutive
runs per slave/channel. For V1, also record the 0..7 pending histogram, not only final status.
Read diagnostic SDOs in a separate low-rate task, initially for example every 100 ms after
assessing mailbox load. This is not a sampling-accuracy guarantee. Do not perform synchronous
SDOs, per-frame console output, or disk writes in the real-time thread.
Save monotonic host time, slave/channel, raw hexadecimal values, decoded values, and upload
results. Record timeouts as failures, not zero. Preserve start/end times for sequential reads.
Match responses by request identity, CAN ID, payload sequence, and full data. Count on-time,
late, missing-at-timeout, duplicate, reordered, and corrupt responses separately. Responses
received during final draining are not on-time responses.
Where safe, reduce or stop new requests while maintaining EtherCAT cycles, and observe queue
and outstanding-request drainage. Motor applications must enter an application-defined safe
state; do not interrupt essential control commands merely to perform a diagnostic experiment.
Recommended records use separate streams rather than aligning PDO and SDO by log line number:
!!! note "Snapshot limitations"
Low-rate polling may miss transients. Faster polling does not make background snapshots atomic
or cycle-synchronous. To locate waiting stages, correlate CAN timestamps, PDO publication/read,
and application consumption after accounting for clock offsets. 0x900x:10 is a legacy packed
diagnostic value, not a snapshot sequence for correlation.
6.3.3 Common observations and interpretation limits
Observation
Evidence or next check
Unsupported inference
rx_pressure=1, pending=7
Read total pending and hardware status
FIFO is necessarily full, or there is no backlog
Pressure remains set but all responses eventually arrive
Check pressure duration, queue trend and deadlines
Every response was N+1 or every cycle was backlog-free
Low/zero pending with rx_pressure=1
Hardware message-lost state and sampling times
Low current occupancy excludes earlier loss
High watermark remains high, current cache=0
Peak is historical; establish whether it increases
The queue is stuck
Software RX drops=0 but responses missing
Hardware loss, PDO/WKC, host queues and matching
One zero counter proves end-to-end zero loss
Complete WKC but rising pending/latency
CAN bandwidth, service budget, packaging and publication
WKC proves timely CAN completion
WKC errors coincide with missing frames
Isolate host scheduling, SM length and link first
All loss originates in CAN or the responder
V2 header overflow=1
PDO capacity and later-cycle completeness
The Boolean flag counts one lost frame
Spare PDO bytes but pending>0
Channel mask/budget, whole-frame fit and arrival phase
Spare total bytes guarantee immediate packaging
Pressure persists after Sync0 phase changes
Actual CAN/response/publication/read timing
Phase changes increase bandwidth or average service capacity
Software TX pending=0, PDO TX pending>0
Hardware still has requests despite empty software queue
CAN transmission has completed
Pending and other diagnostics never change
Traffic sequences, CAN counts, upload errors and refresh
Repeated snapshots alone prove a stalled queue
6.3.4 Publication cutoff and a status example
Check feedback cutoff and read timing
TxPDO contains only data processed and selected by its publication cutoff. Later data waits for a subsequent publication; a published image is not appended. CAN wire arrival does not prove inclusion in that TxPDO.
Pending is sampled before publication and includes frames carried by that image; it is not the remainder after publication. SM updates feedback with process-data exchange; DC uses the configured Sync0 or Sync1 input event. Verify request, response and host-read timing together.
Interpret the eight-frame status example
For a running FD channel with no Bus-off or pending TX, empty RX hardware FIFOs and eight software-buffered entries at cutoff, the V1 status is 0x1F4A (little-endian bytes 4A 1F).
It is the same whether the image selects all eight entries (zero left out) or only six (two left out). Pressure and pending are sampled before publication and include frames carried by that image; they are not the remaining count after publication.
V2 carries channel byte 4A and omits the pending counts.
Observation
Capacity/quantity meaning
Application action
All eight replies are processed and included
RX pressure may be set while overflow_sat is zero
Verify eight business sequences; pressure alone is not loss
Six fit and receive processing encounters insufficient space
V1 overflow_sat=1 / V2 OVERFLOW_OCCURRED=1; not one missing frame
Parse the six validated frames, record capacity pressure and check later replies against deadlines
Space remains but only six were processed at cutoff
Two may be deferred with capacity flags still zero
Count per-channel business replies; zero flags do not prove no delay
Actual software receive discard
0x902x:05 increases; hardware loss requires FIFO/IR checks
Capture classification and counter window; do not automatically replay old motion commands
V1 frame_count counts this payload, not total receives. Current uplink overflow_sat is normally
0/1; defensive invalid-length clipping may report 255, not an actual missing-frame count. Successful
ESC publication increments 0x8010:10 once for a capacity-limited image; failed retries do not
increment it again. This counter does not replace business completeness checks.
Record counts by diagnostic scope
Record PDO sequence, actual per-channel frame count, capacity flags, WKC and business response identity separately.
Use 0x900x:0A, 0x902x:01 and 0x902x:05 for sampled pending, software depth and software-drop deltas; asynchronous SDO reads cannot reconstruct one PDO's exact remainder.
0x9010:04 records validation errors, 0x9010:05 DC staged-batch drops and 0x902x:0C stale TX drops; these are different failure domains.
Reset diagnostics and establish a baseline
Count 0x902x:09 updates after successful TxPDO publication, not host acknowledgement; failed publication does not increase it. Diagnostic reset preserves Bus-off protection.
When authorized maintenance clears counters, record completion sequence 0x9010:0C and do not combine deltas from different reset windows. Channel stop/reapply preserves cumulative software-drop and backpressure history.
Explicit channel Apply can reset operational protection without erasing that history; a persistent fault may trigger protection again. Automatic recovery preserves the attempt count and protection state of the current recovery episode.
A device restart begins a new statistical window.
Reconcile software-drop increments
0x8010:10 counts capacity-limited PDO publications that actually completed, not lost frames. Unselected frames may be published later while cache capacity remains available.
Reconcile software drop deltas using 0x902x:05 = :06 + :07 within the same reset window; critical drops at :08 are an overlapping subset and must not be added again. Software entries discarded during channel reinitialization are included.
MCAN hardware FIFO losses require separate event and business-sequence evidence. A correct WKC does not establish end-to-end CAN frame completeness. Retained frames not yet successfully published remain in software pending.
Check hardware FIFO loss
In hardware RX FIFO overwrite mode, replacing the oldest frame does not set RF0L/RF1L. Blocking-mode lost events are not exact cumulative missing-frame counts either.
Zero software drops, zero hardware lost flags, or an empty FIFO at test completion cannot independently prove loss-free operation. Preserve request/response business sequences, contents and observation windows, then correlate FIFO mode, hardware events and software-drop deltas.
RX Buffer NDAT bits are not cumulative receive or loss counters.
Filter action 7 selects a dedicated RX Buffer slot, not a multi-frame queue for one ID. The HPM5E31
unread-slot test retained the first frame; subsequent matching frames did not automatically replace
it with the newest feedback. Use FIFO reception when every consecutive feedback frame is required.
Increasing PDO capacity alone cannot recover information excluded while a dedicated slot remains unread.
6.3.5 Deadlines, transmit pressure, and recovery
Record host request transmission, CAN wire transmission and response, TxPDO availability, and
application receipt separately. Software observations are not substitutes for CAN wire timestamps;
identify the clock source and observation point.
With Sync0 transmission and Sync1 input updates, the phase difference is the nominal response
window: 200/900 us gives 700 us. Allow margin for device processing and bus queueing. Responses
that miss the cutoff wait for a later publication. Diagnose N+2 using host read phases and CAN
captures rather than cycle labels alone.
Before converting 0x9011 cycles, verify 0x8000:04 against the build's actual CPU
clock. SI 11/12 (0x0B/0x0C) are historical maxima for the corresponding processing intervals, not pure data
transfer times. V2 has no total frame-count field: count frames through full body
parsing rather than treating a header-only parser's zero placeholder as no data.
Motor-control acceptance should specify the maximum response cycle, permitted late/missing
rates, and safe fault response separately. Average latency does not replace maximum latency.
Cycle-number difference is not a measured CAN wire round-trip time. Keep send/read phases fixed
when comparing N+1/N+2 results; an eventually received response is still late if it missed its deadline.
For TX pressure, inspect software queue 0x900x:0B, PDO hardware TX pending/pressure, full or
unwritable events 0x902x:0B, stale drops 0x902x:0C, and ECR/PSR/IR. Missing ACK, incompatible
timing, error retransmission, BusOff, and insufficient bandwidth can cause queueing. Larger caches
do not increase CAN line rate. Full/backpressure events can include retries and are not unique
lost-command counts.
Distinguish ACK errors from Bus-off
An ACK error is not equivalent to Bus-off. Read TEC/REC in ECR (0x9000..0x9003:01), LEC/DLEC and BO in PSR (:02), and the Bus-off counter (:0F) separately. Registers may retain earlier error state; record values before, during and after the fault.
A nonzero TEC is not the number of commands lost in this test. Verify actual peer-received sequence and all payload bytes after recovery, including the absence of delayed old commands. Acceptance into the forwarding path does not prove successful transmission on the CAN bus.
DC requests waiting for synchronized transmission are not necessarily included in software TX
queues or hardware pending. Both can be zero while work remains. Public SDOs do not expose
all pending DC requests or an exact per-PDO cutoff remainder. Correlate request/reply sequences,
0x9010:05 batch events and 0x902x:0C frame drops; do not add different units.
For streamed position/velocity commands, delayed old commands can be more hazardous than an
explicit drop. Do not unconditionally replay timed-out commands. Apply command-specific validity
and control-state rules for discarding, stopping, or re-establishing control. Converter stale-frame
protection does not replace the machine's safety strategy.
Recovery tests should record load removal, CAN-state recovery, queue drainage, and restoration
of on-time responses separately. OP or cleared BusOff alone does not establish business recovery.
Check for delayed old frames, duplicate execution, continuing drop increments, and non-updating
status. Preserve evidence before changing CRC, enlarging PDOs, rebooting, or upgrading firmware.
6.3.6 Normal WKC with missing CAN responses
First distinguish admission rejection from hardware cancellation. On firmware with
0x9020:00 >= 30, read 0x9020..0x9023:15..1E as U32 alongside profile errors,
WKC and per-request channel, CAN ID, sequence, payload and response records.
Interpret admission and cancellation results
An increase in :1D with 0x8011:0E=17 means an SM PDO was rejected before submission. Reduce the per-channel load; a larger PDO does not increase CAN wire bandwidth. :15 counts confirmed cancellation, whereas :16 counts successful transmission during cancellation.
Motive 0x02 means replacement by a new valid SM image; 0x04 means expiry. :17 denotes unknown outcomes and :18 outstanding observations, neither a successful result.
Compare samples only within the same :1C generation. The ledger does not cover all
DAR/Bus-off/reset or other queue losses. Preserve evidence before clearing with
0xB000:04=0x20, and wait for U32 0x9010:0C to advance. See technical reference 12.2.5
for sampling, carry-in and conservation semantics.
6.4 FoE upgrade
Configuration persistence and maintenance
Stop business commands, end the cyclic session normally, and confirm PREOP.
Issue the required channel save/load/default command. Poll its 0x800x:04 until busy clears and check the final result.
After loading, Apply and read back the active settings before entering SAFEOP/OP. Do not blindly retry failed commands.
Persistence commands in SAFEOP/OP are rejected with SDO Abort 0x08000022. Do not resume cyclic operation or interrupt power during maintenance or upgrade. After an unexpected reset, the control application must revalidate device and motor state. A hardware watchdog does not replace motion-safety measures or master communication-timeout protection.
Record old firmware, product, and configuration; use a packaged application image matching the bootloader and MCU family.
Stop the cyclic application and enter the allowed upgrade state.
Upgrade each slave separately and save complete logs.
Power-cycle and read version, build, and capabilities.
Run a V1/no-CRC compatibility smoke test, then explicitly enable V2/no-CRC.
The manual revision and firmware version are managed separately. A firmware tag prefixed with t identifies a test candidate, not completed release qualification. Record the image filename, SHA256 and full device version after each update; results from an earlier image do not replace regression of the new image.
Category
Record
Identity
product code, serial, firmware/build, ESI
Configuration
selector, Active bytes, protocol, CRC, channels, timing
duration, loss/duplicates/order, maximum recovery time
Reproduction
demo commit, config, commands, logs, captures
Independent gate
Verification
Insufficient evidence
EtherCAT delivery
Per-domain WKC, timeouts, link and AL state
Complete WKC does not prove CAN execution or response completeness
CAN integrity
Match each request by channel, ID, sequence and payload
Equal totals alone do not exclude mismatches, duplicates or reordering
Response deadline
Fixed send/read phases, N+k distribution and worst-case latency
Eventual completion does not prove the required response cycle
Host cadence
Application begin, actual transmit and receive-completion times
A begin-cycle overrun is not itself proof of compressed transmit intervals; retain both measurements
Diagnostic completeness
Capture tail, capture drops and responder trace loss
Trace overflow is not automatically CAN loss, but must remain a failed diagnostic gate
Record platform-specific qualification
Standard IgH and standard generic are the integration baseline. Validate CPU affinity, scheduling priorities, NIC settings, sustained load and operating duration on the deployed platform.
Preserve failed results and verify application stop, slave state and configuration recovery. Manually latched faults require their defined recovery procedure; automatic motor re-enabling is not a general acceptance requirement.
Appendix A: Minimal quick card
A.1 Recommended new-project path
text
capability passes → 0x8010/0x8011:04 = 0x01
→ 0x8010/0x8011:07 = 0x24
→ Apply each; status must be 0
→ CAN0 = 1M + 5M; Apply status must be 0
→ write V2 first frame; advance both sequence fields
A.2 Legacy fallback
text
V1 + CRC off: OptionFlags = 0x04
Keep the legacy PDO size and codec
Do not auto-select V2 merely because firmware is 2.x
Search the Technical Reference global object index for complete subindices, types, ranges, error codes, and capability bits.
Appendix C: Compatibility matrix
Device/master
V1
V2
16B fine size
Strategy
Legacy firmware + legacy IgH
yes
no
no
keep 0x04
2.x firmware + legacy IgH
yes
not used
low five bits remain compatible
do not auto-switch
2.x firmware + current IgH
yes
yes
when capability allows
use 0x24 for new projects
Third-party master
codec-dependent
V2 implementation required
synchronize ESI/SM
prove one frame first
Appendix D: Document boundary and revision
This Application Manual answers how to configure and run the product quickly. The Technical Reference defines every field, valid value, and error. V1/V2 differences are concentrated in the PDO header and its selection; the rest of the product remains one functional system.
Document version
Main change
V3.0
task-oriented structure; V2/no-CRC recommended for new projects; first-frame, cycle, overload, and compatibility workflows
V3.0, firmware t2.22 alignment
Add installation, data-path and diagnostic illustrations; define minimal-configuration prerequisites, ACK/response distinction, Sync0 permits and next-complete-PDO cancellation; retain wire examples and precise timing diagrams
Technical Reference
ECAN-Lite Technical Reference V3.0
This manual completely defines the product architecture, EtherCAT/CAN FD protocol, PDO byte layout, frame encoding, object dictionary, defaults, and diagnostics.
For wiring, master configuration, IgH examples, FoE update, operation, troubleshooting, and acceptance, see the
ECAN-Lite Application Manual V3.0.
Contents
[TOC]
1. Product positioning
ECAN-Lite is an EtherCAT-to-CAN/CAN FD real-time gateway slave. The master issues transmit requests through RxPDO and reads CAN receive frames and channel status through TxPDO. Application execution is confirmed by the CAN peer's response; no per-frame transmit-result packet is provided.
Interface
Scope defined by this manual
EtherCAT
SM2/SM3, PDO mapping, CoE SDO, and FoE capability
CAN/CAN FD
Channel configuration, bit timing, frame encoding, status, and diagnostics
Master software
Continuous process image, field encoding, boundaries, and compatibility rules
Periodic data uses a fixed header followed by a continuous frame stream:
The fixed header self-describes its format and length through ver_ihl. CAN/CAN FD packets follow in the continuous frame area. Chapters 4 and 5 define PDO sizing, header formats, and capabilities.
!!! important "Normative language"
Must identifies a protocol requirement, should identifies a recommended implementation, and may identifies an optional capability. Object definitions, bit fields, defaults, and limits are normative here; operational procedures are defined in the Application Manual.
!!! note "Specification and version qualification"
Manual V3.0 and firmware 2.x use separate version schemes. A defined feature does not imply validation of every hardware, master, PDO size and cycle combination. A t tag identifies a test candidate. Determine applicability from the full firmware version, matching ESI, capability readback and accompanying validation scope. Compact PDO status, detailed SDO diagnostics, WKC and application responses describe different boundaries and are not interchangeable.
1.1 Boot modes and release files
Mode/file
Boot and maintenance
Restrictions
*_app_raw_<tag>.bin
APP build input for a matching second-stage bootloader
Contains a placeholder header; package before installation
*_app_foe_<tag>.bin
Plain FoE update
Matching KEYLESS second-stage bootloader only
*_app_foe_sec_<tag>.bin
Signed and encrypted FoE update
Matching product, security policy and bootloader keys only
*_run_raw_<tag>.bin
Standalone ROM boot; BIN starts at 0x80000400
No second-stage bootloader or FoE update
APP and RUN share this product's data protocol but differ in boot and FoE capabilities. Select ECAN-Lite-APP.xml or ECAN-Lite-RUN.xml. When switching modes, update the ESI and rescan the device; renaming a file does not change its boot layout. The release JSON defines filenames, addresses and digests. Test tags do not update production website downloads.
2. Core features
Item
Description
EtherCAT
2-port slave, 100Mbps, CoE; FoE in APP mode only
CAN channel
4 independent MCAN, 3 bits are reserved for the control word CH field, which can express 0..7
CAN Protocol
CAN 2.0A / CAN 2.0B / CAN FD ISO
CAN data length
Classic CAN 0..8B, CAN FD 0..64B, dynamic encoding by DLC
PDO size
TxPDO/RxPDO are configured independently as 128B*base + 16B*fine; default encoding 0x02 is 256B; legacy integers 1..10 remain compatible
PDO upper limit
1392B/direction; actual frame capacity equals total PDO length minus fixed-header length; see Chapters 4 and 5
PDO structure
Self-describing fixed header plus a continuous frame stream; see Chapter 5
Multi-channel multiplexing
Multiple CAN channels share the same direction frame area and share the remaining space according to the budget strategy
Timestamp
Optional per frame, supports off/delta16, delta32/full64 as capability extension
Reservation to send
RxPDO TSF_FULL64 format=1 can reserve the CAN frame to the specified phase in the next SYNC0 cycle
TDC
Enabled by default for CAN FD; forced on at 5 Mbit/s and above in automatic bit timing; manual bit timing uses the TDC request; Offset=0 selects automatic TDCO/TDCF, nonzero Offset selects manual parameters
Diagnosis
PDO quick status + SDO detailed status; PDO parsing errors and overflows have count records
Firmware 2.18 configures both JL1111 LED0 and LED1 for 100 Mbit/s Link indication, with 10 Mbit/s Link and Activity indication disabled. Earlier PCBs connect the indicator to LED0; newer PCBs use LED1. Both use the same initialization path without additional object-dictionary entries.
Port
LED0 active level
LED1 active level
ESC LINK inversion
Port0 / PHY0
Low
High
BOARD_ECAT_PORT0_LINK_INVERT=1
Port1 / PHY1
High
Low
BOARD_ECAT_PORT1_LINK_INVERT=0
On the HPM5E reference board, PA28 receives PHY0 LED1 as ESC LINK0; PA25 receives PHY1 LED1 as LINK1. Software polarity uses JL1111 Page129/Reg24 bits 8 and 0 and must not be confused with the PHY address latched at reset. ESC address translation also affects MDIO selection; a port number is not a substitute for the board-specific address configuration.
These LEDs indicate physical link only, not AL state, DC synchronization, complete WKC, or CAN transfer results. Other hardware using the unified defaults still requires wiring and polarity validation; four-channel board tests do not qualify every hardware model.
3. Direction definition and system architecture
Name
EtherCAT direction
Master perspective
Device semantics
TxPDO / Input PDO
Slave -> Master
Master reads input process data
Upload CAN/CAN FD receive frames and compressed channel status
RxPDO / Output PDO
Master -> Slave
Master writes output process data
Issues CAN/CAN FD send request
TxPDO and RxPDO are independent directions. PDO size, channel mask, encapsulation profile, budget policy, and direction options can be selected separately.
Channel enable and PDO length do not replace each other. Disabling a CAN channel changes only the active channel mask and scheduling budget; it does not change SM2/SM3 length.
It is useful to read the protocol in three layers:
Layer
What the master does
Manual Entry
EtherCAT mapping layer
Select the first N 128B PDO chunks to obtain continuous RxPDO/TxPDO buffers
Technical Reference Chapter 4
PDO frame-stream layer
Read/write the versioned header at offset 0 and CAN_FRAME packets from HeaderBytes=4*(ver_ihl&0x0F)
Technical Reference Chapters 5 through 11
Configuration and diagnostics layer
Configure PDO profiles and MCAN channels, then read status through SDO
Chapter 12
For first traffic, follow Application Manual Chapter 1. A custom PDO codec must implement Chapters 4 through 11 of this manual.
!!! warning "Direction mistakes can fail silently"
RxPDO/SM2 is written by the master and read by the slave. TxPDO/SM3 is written by the slave and read by the master. Process-image registration, buffer names, and send/receive APIs must preserve this definition.
3.1 Document markup description
Object addresses use hexadecimal: 0x8001:1D means index 0x8001, subindex 0x1D (decimal SI29). SI table columns are decimal. Explicit 0x command arguments must not be interpreted as decimal. U8/U16/U32 require exactly 1/2/4 payload bytes.
The following tables in this article use the following notation:
Mark
Meaning
RO
Read Only, read only. The master can only read via SDO, writes are invalid or rejected.
RW
Read Write, read and write. The master can write configuration via SDO and can also read echo or current values.
WO
Write Only, write only command. The master writes to trigger the action, and the read value is not used as a basis for status.
M2S
Master to Slave, master to slave. Commonly seen in RxPDO/SM2 Output or configuration SDO writes.
S2M
Slave to Master, slave to master. Commonly seen in TxPDO/SM3 Input or Status/Capability SDO reads.
CFG
Configuration or command path, usually done through CoE SDO, is not part of the periodic PDO data flow.
Access in the PDO table refers to the master's access method for process data: RxPDO/SM2 is written by the master and read by the slave; TxPDO/SM3 is written by the slave and read by the master.
Common scalar SDO abort codes are listed below. An SDO abort is a transport/parameter-validation result, whereas an object's ApplyStatus describes application of an accepted configuration. Record both separately instead of reporting every failure as an out-of-range value.
SDO abort code
Meaning
Action
0x06010002
Write to a read-only entry
Check access rights; do not repeat the write
0x06020000
Object does not exist
Check firmware, product channel count and index
0x06090011
Subindex does not exist
Check hexadecimal notation and SI range
0x06070012
Payload too long
Send the exact OD width, e.g. one byte for U8
0x06070013
Payload too short
Supply the full width; incomplete values must not execute configuration
0x06090030
Value out of range
Check the complete value, enum and combined constraints
A scalar write that fails validation does not change its target field or execute its Apply action. Earlier successful SDO writes are not automatically rolled back. Correct the requested settings before submitting again; a sequence of independent SDO writes is not a rollback transaction.
CoE/SDO configures parameters and reads diagnostics, PDO exchanges cyclic frame data, and
FoE updates firmware for a matching model. PDO directions are defined from the slave perspective.
See the application manual for configuration steps.
4. EtherCAT PDO mapping and size
4.1 128B Chunk Mapping
PDO mapping is assembled from 128B chunks. Each chunk is split into 8 STRING(16) mapping units in the object dictionary to avoid the bit-length limit of a PDO mapping entry.
text
RxPDO chunk maps: 0x1600..0x1617
TxPDO chunk maps: 0x1A00..0x1A17
SM2 assignment: 0x1C12 selects the first N RxPDO chunks
SM3 assignment: 0x1C13 selects the first N TxPDO chunks
A chunk is an EtherCAT mapping and length-selection unit, not a protocol parsing layer. The base area uses complete 128B chunks. If fine sizing is requested, one tail mapping is appended and only its first fine 16B entries are enabled. FramePacketStream may span those boundaries; the receiver parses only the valid frame area described by payload_len.
!!! danger "PDO assignment must match the active length"
The effective bytes mapped by 0x1C12/0x1C13 must equal ActivePDOBytes in the corresponding direction. A mismatch rejects the profile and may prevent OP. Never change the PDO length while the slave is in OP.
4.1.1 How the master assembles multiple chunks
On the master side, do not treat 0x1600..0x1617 / 0x1A00..0x1A17 as multiple independent protocols. They are only 128B mapping blocks used to satisfy EtherCAT PDO mapping limits. The application should combine the first N chunks in the same direction into one continuous byte buffer in assignment order:
text
RxPDO/SM2 output buffer:
chunk0[128B] + chunk1[128B] + ... + chunkN-1[128B]
"..." means the omitted chunks continue in the same order, 128B each
TxPDO/SM3 input buffer:
chunk0[128B] + chunk1[128B] + ... + chunkN-1[128B]
"..." means the omitted chunks continue in the same order, 128B each
Each 128B chunk contains 8 STRING(16) mapping units. If the master exposes them as separate variables, copy them in the following order:
text
for chunk = 0 .. N-1:
for unit = 0 .. 7:
dst_offset = chunk * 128 + unit * 16
copy 16 bytes to/from process image entry
The following table expands the 8 mapping units of chunk=0 and shows the first unit of chunk=1. All later chunks follow the formula below.
Direction
Data flow
Master access
Chunk
Unit
PDO map
Data object
Buffer offset
RxPDO / SM2 Output
M2S
Write
0
0
0x1600
0x7000
0
RxPDO / SM2 Output
M2S
Write
0
1
0x1600
0x7010
16
RxPDO / SM2 Output
M2S
Write
0
2
0x1600
0x7020
32
RxPDO / SM2 Output
M2S
Write
0
3
0x1600
0x7030
48
RxPDO / SM2 Output
M2S
Write
0
4
0x1600
0x7040
64
RxPDO / SM2 Output
M2S
Write
0
5
0x1600
0x7050
80
RxPDO / SM2 Output
M2S
Write
0
6
0x1600
0x7060
96
RxPDO / SM2 Output
M2S
Write
0
7
0x1600
0x7070
112
RxPDO / SM2 Output
M2S
Write
1
0
0x1601
0x7080
128
TxPDO / SM3 Input
S2M
Read
0
0
0x1A00
0x6000
0
TxPDO / SM3 Input
S2M
Read
0
1
0x1A00
0x6010
16
TxPDO / SM3 Input
S2M
Read
0
2
0x1A00
0x6020
32
TxPDO / SM3 Input
S2M
Read
0
3
0x1A00
0x6030
48
TxPDO / SM3 Input
S2M
Read
0
4
0x1A00
0x6040
64
TxPDO / SM3 Input
S2M
Read
0
5
0x1A00
0x6050
80
TxPDO / SM3 Input
S2M
Read
0
6
0x1A00
0x6060
96
TxPDO / SM3 Input
S2M
Read
0
7
0x1A00
0x6070
112
TxPDO / SM3 Input
S2M
Read
1
0
0x1A01
0x6080
128
Complete mapping rules:
Direction
Data flow
Master access
Chunk c
Unit u
PDO map
PDO map subindex
Data object
Buffer offset
RxPDO / SM2 Output
M2S
Write
0..N-1
0..7
0x1600 + c
u + 1
0x7000 + c * 0x80 + u * 0x10
c * 128 + u * 16
TxPDO / SM3 Input
S2M
Read
0..N-1
0..7
0x1A00 + c
u + 1
0x6000 + c * 0x80 + u * 0x10
c * 128 + u * 16
General formula:
text
unit_index = chunk * 8 + unit
offset = unit_index * 16
RxPDO data object index = 0x7000 + unit_index * 0x10
TxPDO data object index = 0x6000 + unit_index * 0x10
So chunk=1 is not only unit=0. For example, RxPDO 0x1601 contains eight 16B units: 0x7080, 0x7090, ..., 0x70F0. TxPDO 0x1A01 contains 0x6080, 0x6090, ..., 0x60F0. In both examples, ... only omits the middle objects that increase by 0x10.
For example, when N=3, the continuous buffer in each direction is 384B:
The versioned header is located at offset 0 of the continuous buffer. The frame area starts at HeaderBytes=4*(ver_ihl&0x0F) and ends at ActivePDOBytes-1. The factory default is V1 (24B on HPM5E and 32B on HPM6E); explicitly selected V2 is 16B/20B. CAN_FRAME packets may cross a chunk or tail boundary. The master must use payload_len, the applied profile and the optional CRC field to determine the valid area.
In TwinCAT, CODESYS, or a custom master, if the tool can map PDO data to a continuous byte array, create ARRAY[0..ActivePDOBytes-1] OF BYTE. If the tool exposes each STRING(16) as a separate variable, assemble and split the data in the application layer using the offset formula above.
4.2 Relationship between total PDO length and header overhead
Total PDO length and fixed-header version are independent configuration dimensions, but together they determine the space available for CAN frames:
!!! important "Length and header version are independent"
Changing the header version does not change SM2/SM3 length or require rebuilding the PDO assignment. It changes only the frame-stream offset and usable bytes. Changing total PDO length does not select another header version, but it does require matching EtherCAT mapping changes.
base = PdoSizeEncoding & 0x1F
fine = PdoSizeEncoding >> 5
ActivePDOBytes = 128 * base + 16 * fine
ECAN-Lite: base=1..10, fine=0..7
The requested values at 0x8010/0x8011:03 both default to 0x02, or 256B. The low 5 bits select complete 128B base chunks. When capability-gated, the high 3 bits append 0..7 tail units of 16B. Legacy masters writing 1..10 keep a zero high field and therefore retain the original 128B steps.
Use a nonzero fine field only when 0xF000:10 bit7 FINE_SIZE_16=1. When fine>0, 0x1C12/0x1C13 must assign the first base complete chunks plus a tail mapping whose first fine 16B entries are enabled. This read-only capability is not a configuration switch.
4.2.2 Actual frame area for the same total PDO length
The table separates total process-image length from protocol overhead. Each frame-area value is ActivePDOBytes-HeaderBytes:
Size encoding
Active PDO
5E default V1: header/frame
5E explicit V2: header/frame
6E default V1: header/frame
6E explicit V2: header/frame
0x01
128B
24B / 104B
16B / 112B
32B / 96B
20B / 108B
0x21
144B
24B / 120B
16B / 128B
32B / 112B
20B / 124B
0x02
256B
24B / 232B
16B / 240B
32B / 224B
20B / 236B
0x22
272B
24B / 248B
16B / 256B
32B / 240B
20B / 252B
0x03
384B
24B / 360B
16B / 368B
32B / 352B
20B / 364B
0x08
1024B
24B / 1000B
16B / 1008B
32B / 992B
20B / 1004B
0xEA
1392B
24B / 1368B
16B / 1376B
32B / 1360B
20B / 1372B
V2 gains frame space by compressing the fixed header: 8B per PDO image on 5E and 12B on 6E. The total EtherCAT PDO byte count does not change. Chapter 5 lists the removed fields and reduced status precision; do not switch versions only to gain a few bytes without confirming master-codec support.
4.2.3 Effect of each configuration change
Target change
:03 size field
:07 OptionFlags
0x1C12/0x1C13 and SM length
Master PDO codec
Keep default 256B V1, CRC disabled
0x02
0x04
First two 128B chunks
Parse frame stream at 24B on 5E or 32B on 6E
Change total PDO length only
Target 5+3 encoding
Keep 0x04
Rebuild to exactly ActivePDOBytes
Header layout unchanged; capacity and tail mapping change
Switch same length from V1 to V2
Keep unchanged
0x04 -> 0x24
Keep unchanged
Use ver_ihl and V2 fields/new frame offset
Return same length from V2 to V1
Keep unchanged
0x24 -> 0x04
Keep unchanged
Restore V1 fields and header length; legacy IgH uses this path
Change size and version together
Target encoding
Explicitly write 0x24
Rebuild mapping
Update buffer length, IHL, field layout, and capacity checks
Enable payload CRC only
Keep unchanged
V1=0x00; V2=0x20
Keep unchanged
Header length unchanged; calculate and verify CRC16
4.2.4 Capability checks and active readback
Check the following objects before and after configuration; a successful requested-SDO write alone is not sufficient:
Search key
Purpose
Decision
0xF000:05/06
Firmware major/minor
Enable V2 and 16B fine sizing only on the matching 2.x firmware
0xF000:09
PDO header version mask
Must advertise the requested header version
0xF000:10 bit7
FINE_SIZE_16
Allows the high 3 size bits to represent 16B tail units
0xF000:10 bit13
HEADER_V2
Allows explicit OptionFlags.bit5 selection
0x8010/0x8011:09
Active PDO bytes
Must equal the actual process-image mapping length
0x8010/0x8011:0A
Active frame-area bytes
Must equal ActivePDOBytes minus actual HeaderBytes
0x8010/0x8011:0B
Active layout CRC
Master and slave layout contracts must agree
0x8010/0x8011:0C
Active profile word
Echoes the effective base, fine, and OptionFlags combination
Recommended sequence:
Read capabilities.
Select total length and construct the mapping.
Select the header version and apply.
Read :02 and :09..0C.
In OP, calculate HeaderBytes from ver_ihl in every image.
!!! caution "Capacity is not real-time performance"
A larger PDO increases process-image capacity, EtherCAT frame length, and device processing load. Validate WKC, cycle jitter, and drop counters with the target cycle, slave count, and CAN load.
4.3 ESI and PDO mapping requirements
Use the ESI file supplied with the product release and do not modify the device SII/EEPROM.
The actual PDO length used by the master is determined by the first N chunks selected by
the 0x1C12/0x1C13 assignment and must match the active profile at 0x8010/0x8011.
If the ESI, device firmware, and master configuration versions do not match, restore the
matching release package and contact technical support.
5. PDO fixed header
TxPDO and RxPDO use the same version rules. ver_ihl stores the version in the high nibble and the number of 4B words in the low nibble. OptionFlags.bit5=HEADER_V2 selects V2; clearing it selects V1. The factory, reset, and current IgH default is OptionFlags=0x04 (V1 plus NO_CRC16); the master must set bit5 explicitly for V2. HPM5E uses 0x24/16B for V2 and 0x16/24B for V1; HPM6E uses 0x25/20B and 0x18/32B.
The first 12 bytes are common: ver_ihl, flags, seq_begin, seq_end, payload_len, payload_crc16, and layout_id. V1 then carries channel_mask, frame_count, overflow_sat, crc_alg, and 16-bit channel status. V2 starts 8-bit per-channel status at offset 12; the removed fields are derived from the Active Profile or SDO diagnostics.
5.1 Version selection, byte layout, and compatibility boundary
ver_ihl is the final runtime authority: its high nibble is the header version and its low nibble is the number of 4B words. OptionFlags requests a version; ver_ihl confirms the version and length actually used by the current PDO image. Firmware 2.x indicates V2 capability, not a V2 default.
Preserve unrelated option bits with read-modify-write
Common value with payload CRC
0x00
0x20
CRC selection does not change HeaderBytes for that version
Common fields
offsets 0..11
offsets 0..11
Double sequence, length, CRC field, and layout ID are shared
Channel status
16 bits per channel
8 bits per channel
V2 does not retain every V1 status bit
In-header diagnostics
channel_mask/frame_count/overflow_sat/crc_alg
Omitted
Derive from Active Profile, stream traversal, header flag, and SDO diagnostics
5E HeaderBytes
24B
16B
V2 adds 8B frame capacity at the same total PDO length
6E HeaderBytes
32B
20B
V2 adds 12B frame capacity at the same total PDO length
EtherCAT PDO mapping
Determined by ActivePDOBytes
Determined by ActivePDOBytes
Mapping and SM length stay unchanged when only version changes
Frame-stream start
4*(ver_ihl&0x0F)
4*(ver_ihl&0x0F)
Never hard-code 24/32 or 16/20 as the only valid offset
!!! danger "Never infer the header from firmware or PDO size"
Firmware 2.x advertises V2 capability; it does not mean the current image uses V2. :03 selects total length, :07 bit5 requests the version, and active readback confirms the configuration. The actual image format and length must come from ver_ihl.
The fixed header is not an SDO object and does not have the RO/RW attribute; its master access direction follows the PDO direction: the RxPDO header is written by the master and parsed by the slave, and the TxPDO header is written by the slave and parsed by the master.
Common fields in both versions:
Offset
Size
Field
Description
0
1
ver_ihl
Version in the high nibble and 4B-word count in the low nibble
1
1
header_flags
overflow, error, reserved bit, status change, sequence number wraparound
2
2
seq_begin
Release starting sequence number
4
2
seq_end
Release completion sequence number, must be equal to seq_begin to be valid
6
2
payload_len
The number of valid bytes in the frame encapsulation area of this cycle
8
2
payload_crc16
Frame encapsulation area CRC-16/CCITT-FALSE when enabled; 0 by default
10
2
layout_id
The current PDO layout ID, changes when the layout or profile changes
V1 carries channel_mask, frame_count, overflow_sat, and crc_alg at offsets 12..15, followed by 16-bit status per channel. V2 omits those four bytes and starts 8-bit status per channel at offset 12. In V2 the channel mask and CRC policy come from the applied Active Profile, frame count is derived while traversing the stream, and overflow is reported by header_flags.bit5.
Publishing rules: The sender first constructs the complete frame area and header, then writes seq_end = seq_begin last. Under factory-default V1+NO_CRC16, the device publishes TxPDO with payload_crc16=0.
The master should also write zero in RxPDO, but the firmware skips this field and does not reject a PDO solely because it is nonzero. Clearing NO_CRC16 for the corresponding direction enables CRC-16/CCITT-FALSE without changing the selected header version or length.
Sequence and length checks remain active; downstream layout compatibility is described in section 5.2.
V1 and V2 RxPDO share the following sequence admission rules.
1. Ordering within an output session
Use the unsigned 16-bit difference delta=(new_seq-last_seq) mod 65536:
delta
Result
0
Idempotent no-op; no repeated execution
1..32767
Accept as forward progress
32768..65535
Reject as stale or ambiguous
0xFFFF→0x0000
Normal wrap with delta 1
2. Validation failures and partial submission
The sequence is recorded before frame-stream processing. Reusing it after a frame-stream rejection or partial submission does not replay accepted frames, even if the payload changes.
Header, length and CRC failures before frame-stream processing do not claim a new sequence.
Sequence admission provides neither CAN transaction rollback nor confirmation that the CAN peer received or executed every frame.
3. Starting a new output session
Discard the first valid image as a residual-image baseline.
Use the first different sequence to establish the new master's initial value, which may differ from the previous session.
Enforce forward ordering thereafter. Send empty business PDOs during startup warmup before motor commands.
Sequence ordering does not establish freshness across different output sessions.
Sequence admission depends on the failure stage. A subsequent packet with the same
sequence must still pass the header, active-area length and CRC checks (when enabled);
the no-op rule does not bypass those checks.
First processing result
New sequence recorded
Subsequent valid packet with the same sequence
Commands accepted
Yes
Not executed again, even if the command payload changes
Unequal sequence pair, error 14
No
May be admitted after correction; this is not confirmation that the invalid packet executed
Truncated final frame, error 8
Yes
Not executed again after repairing the payload; a new submission requires a new sequence
Partial submission failure after entering frame-stream processing
Yes
Accepted prefixes are not replayed; repeating the sequence cannot submit the remaining frames
Use a new sequence for a new business submission. Repeating a PDO is not a CAN
acknowledgment or retry protocol. For motion control, select the next command using
the current control target and fault state rather than automatically replaying an outdated target.
5.2 Key field explanation and reception judgment
seq_begin, seq_end, and layout_id are common running fields rather than separately configured SDO parameters. V1 additionally carries crc_alg and overflow_sat; V2 derives the CRC mode from Active Profile and replaces overflow count with the header overflow flag.
Field
How the sender fills in
How the receiver determines
seq_begin
The PDO image is incremented every time it is released, 16bit wraps
When it is not equal to seq_end, it means that it is being updated or half a packet has been read, and the data in this cycle should be discarded
seq_end
After all payload, CRC and header fields are written, they are finally written with the same value as seq_begin
Only seq_begin == seq_end is allowed to continue to check the CRC and parse the payload
layout_id
16bit layout short identifier generated based on active PDO profile
If there is a sudden change during continuous operation, it means that the PDO size, channel mask, profile or option flags have changed, and you need to re-analyse according to the active profile
V1 checks crc_alg; V2 derives the policy from Active Profile
V1 frame_count
Number of complete CAN frames in this frozen payload
Not a receive/request total or host-consumption count; V2 counts frames by walking the payload
overflow
Current device uplink receive processing reports overflow_sat=0/1 for no observed limit / payload-capacity, channel-budget admission or 255-frame limit; defensive invalid-length clipping may report 255
Capacity event, not missing frames, remaining frames or cumulative loss; V2 uses header_flags.bit5; use SDOs for detailed counters
Notes:
layout_id is a short identifier in the PDO header. It lets the master quickly detect whether the current PDO layout has changed. For full configuration readback, read 0x8010/0x8011:0C Active profile word and :0B Active layout CRC.
The device generates the upstream identifier from the active configuration; the master supplies the downstream field. The implementation covered by this manual retains downstream compatibility: it records the value but does not reject the whole PDO solely because it differs from the active layout identifier. The body is still decoded using the active configuration. Before sending business data, the master must verify active length, channels, Profile, budget and options; acceptance of an incorrect identifier does not establish configuration agreement.
This 16-bit identifier can collide and is not an authentication field. Frame CRC covers the body, not this header field. V2 capability or enabled CRC does not imply strict downstream layout rejection; that requires an explicit interface contract and corresponding master support.
overflow_sat retains its existing 8-bit wire representation, but its name does not make it a lost-frame count. Device uplink receive processing reports a capacity event; the host downlink writer's append-failure counter is a different direction and must not be conflated with it.
When enabled, payload_crc16 covers PDO offset [HeaderBytes, HeaderBytes + payload_len) and never includes the versioned header. With CRC disabled, device TxPDO contains zero; firmware skips the field in incoming RxPDO, including a nonzero value.
payload_len is the actual number of valid frame encapsulation bytes in this cycle, not the total length of PDO.
!!! caution "Valid data boundaries and zero-fill rules"
With PAYLOAD_ONLY_ENABLE disabled (the default), unused frame-area bytes shall be zero. When explicitly enabled, bytes after header_bytes + payload_len may retain an older image and shall be ignored, not parsed as CAN frames. D64 fill and ALIGN_4_ENABLE padding within the valid area shall still be zero and included in payload_len; advance by the complete encoded length.
Recommended judgment sequence for the receiving end:
text
1. Read fixed header A.
2. Check seq_begin == seq_end; if not equal, ignore the PDO of this cycle.
3. Derive the CRC policy from the applied profile.
Under NO_CRC16, firmware skips the RxPDO CRC field. A master may check
that device TxPDO publishes zero as a format-consistency diagnostic.
With CRC enabled, V1 also reports crc_alg == 1; V2 omits that field.
4. Check payload_len <= ActiveFrameAreaBytes.
5. When enabled, calculate CRC-16/CCITT-FALSE for payload_len bytes
starting at HeaderBytes.
6. Read fixed header B again. If the key fields of A and B differ,
the PDO changed during the read; ignore this cycle.
7. Parse CAN_FRAME packets; reject all reserved packet kinds.
8. Record V1 overflow_sat / V2 OVERFLOW_OCCURRED and STREAM_TRUNCATED as capacity indications. Still parse complete frames that pass structural/CRC checks; a capacity flag alone is not a reason to discard the whole payload or retransmit old commands.
Configuration example: When the master wants both TxPDO/RxPDO to use the default N=2, CAN0..CAN3, profile 0, Balanced, V2 header and no payload CRC:
Read 0x8010/0x8011:09..0C after apply. If Active PDO bytes, Active frame area bytes, Active layout CRC, Active profile word are as expected, layout_id in subsequent PDO headers should remain stable.
header_flags:
Bit
Name
Description
0
STREAM_TRUNCATED
The frame area of this cycle is insufficient and there are frames that are not packed
1
ANY_CHANNEL_ERROR
Any channel is in error, BusOff, or congested
2
Reserved
Must be 0; a set bit is a protocol error
3
STATUS_CHANGED
Channel status changes compared to the previous cycle
4
SEQ_WRAP
seq_begin Wraparound this cycle
5
V1: OVERFLOW_SAT_VALID; V2: OVERFLOW_OCCURRED
V1 indicates valid overflow_sat; V2 indicates packaging overflow/backpressure without a quantity field
V1 carries a 16-bit status per channel. V2 carries only bits 0..7 below, aggregates the bit-8
diagnostic indication into header DETAIL_PENDING, and omits the count information in bits 9..15.
Status is sampled in the publication cutoff interval and associated with this image. RX/TX refer to the on-board CAN controller,
not to EtherCAT PDO direction names. Read SDO diagnostics for detailed quantities and counters.
Bits
Field
Description
0..2
state
Current implementation emits 0=disabled,2=run,3=busoff,4=error; values 1/5 do not identify the mode. Read channel configuration for listen-only and Restricted modes; run does not prove that transmission is allowed or that a command was sent
3
fd_enabled
Current channel enables CAN FD
4
warn
error warning / error passive / bus degraded summary
5
bus_off
BusOff
6
rx_pressure
Total RX pending ≥7, or hardware RX FIFO0/1 message-lost status set; not a percentage-of-capacity threshold
7
tx_pressure
Hardware TX FIFO/Queue full, or all configured hardware TX buffers occupied by pending requests
8
detail_pending
Any of warn, bus_off, rx_pressure or tx_pressure is set; not an SDO refresh notification
9
counter_sat
RX pending >7, hardware TX pending >7, or degraded bus protection active; shared indication
10..12
rx_pending_sat
min(FIFO0 + FIFO1 + unconsumed software buffer + retained receive data, 7); includes this image's selected frames, not the post-publication remainder
13..15
tx_pending_sat
min(TXBRP pending requests in configured hardware TX buffers, 7); excludes software TX queues, untriggered DC preparation and other requests not yet submitted to hardware
When warn/bus_off/rx_pressure/tx_pressure/detail_pending is set, the master should read 0x9000..0x9003 to obtain a detailed register and count snapshot. If the error comes from the PDO encapsulation layer, LastPDOError / PDOErrorCounter / PDOOverflowCounter of 0x8010/0x8011 should be read.
6.1 Pending quantities, pressure, and frame loss
Pending is a sampled outstanding quantity, not a cumulative event count. Values 0..6 are exact;
7 means at least seven frames. The value can decrease after processing. counter_sat is not an
extension bit and must not be concatenated with the three-bit fields.
V1 observation
Supported conclusion
Unsupported conclusion
RX pending=7, counter_sat=0
RX pending was exactly seven at this status sample
It will remain seven until the next sample
RX pending=7, counter_sat=1
RX pending was at least seven
Exact count; TX or degraded protection can set the shared indication
RX pending<7, rx_pressure=1
Check hardware RX message-lost status
A low current count rules out earlier hardware overflow
TX pending>0, tx_pressure=0
Hardware requests are pending without a full condition
CAN transmission has already completed
Pressure bits do not encode queue residence time. Consecutive set samples may represent the same
unprocessed batch or successive incoming batches. Dropped-counter increments identify loss only
within the counter's documented scope; hardware RX loss requires FIFO/IR status as well. Eventual
receipt of all responses and receipt of all responses before their deadlines are different criteria.
!!! warning "RX pressure is not a FIFO utilization percentage"
Eight frames in the software cache can set rx_pressure=1 and rx_pending_sat=7 even when the
hardware FIFO has substantial free space. This is evidence of pending work, not by itself
proof of sustained overload, and must not be described as absence of backlog.
This diagram defines public counter scopes. Eligible data not yet published remains pending; data already published but awaiting host reading, and host queues, are excluded from 0x900x:0A. 0x902x:01 covers software buffering only, not all RX pending. See section 12.5.1 for sampling limitations.
6.3 Channel pressure versus PDO capacity flags
Channel rx_pressure/tx_pressure and header STREAM_TRUNCATED, V1 overflow_sat, or V2
OVERFLOW_OCCURRED belong to different diagnostic layers. Header flags indicate packaging
capacity, backpressure, or truncation and cannot be converted directly into per-channel pending
counts. V2 OVERFLOW_OCCURRED is Boolean, not a one-frame loss count. Deferred frames may be
received in later cycles, so eventual completeness does not establish per-cycle completeness
or compliance with response deadlines.
6.4 Sampling boundaries and diagnostic scope
V1/V2 header sizes, offsets, bit definitions and CRC policy are defined by this manual. Channel status is sampled in the publication cutoff interval and associated with that image. Hardware reception continues; this is not a simultaneous latch of all channels. Data processed after cutoff waits for a later publication.
Information
Sampling/commit boundary
Included
Does not establish
PDO RX pending / pressure
Pre-publication cutoff
FIFO0/1, unconsumed ring, retained data; includes this payload's selected frames
Post-publication remainder; dedicated RX-buffer NDAT slots are excluded
PDO TX pending / pressure
Pre-publication cutoff
Configured hardware TX requests and full status
Empty software/staging queues, pending DC requests execution or peer execution
V1 frame_count / payload_len
Freeze of completed body
Frames / encoded bytes in this image; V2 counts by traversal
CAN request or receive totals
Uplink capacity flags / overflow_sat
Next complete frame cannot fit, or 255-frame limit reached
Image capacity event; increments 0x8010:10 only after successful publication
Lost-frame quantity; zero does not prove all arrivals were processed before cutoff
0x900x:0A
Background diagnostic refresh
Unsaturated FIFO0/1 + ring + retained data count
A snapshot associated with a specific PDO sequence
0x902x:01 / 0x902x:09
Background refresh / source updated on successful publication
Software unconsumed count / last per-channel publication count
Subtraction across reads cannot recover a cutoff remainder; publication is not host receipt
0x900x:0B
Background diagnostic refresh
Software TX ring count
Hardware TXBRP, DC preparation or scheduled-request total
0x902x:05/:06/:07/:08
Event accumulation, background refresh
Software RX drops and classifications
All hardware/bus/host loss; classifications overlap the total
0x9010:05 / 0x902x:0C
Event accumulation, background refresh
DC staged-batch drops / channel stale TX-frame drops
Units are batches / frames, not additive; no per-event reason and PDO-sequence correlation
With eight software-buffered frames and empty RX FIFOs, pressure can be set and pending can be seven whether all eight or only six enter this PDO. Capacity flags may remain zero when delay is due to processing/cutoff rather than space. Zero software and hardware TX pending do not prove an empty path: requests waiting for synchronized transmission are not necessarily included.
Current public SDOs do not expose an exact per-PDO cutoff remainder or a complete pending DC requests queue
snapshot. Use business sequences, actual responses, SDO counter deltas and, where required,
targeted diagnostics. Do not infer unavailable quantities from pressure bits.
7. Frame encapsulation package
Each frame encapsulation packet starts with a 2B control word, which determines the length of subsequent CAN ID, timestamp and data.
The frame encapsulation packet follows the PDO direction: CAN_FRAME in RxPDO is the master's request for the slave to send to the CAN bus; CAN_FRAME in TxPDO is received by the slave from the CAN bus and uploaded to the master.
Unless otherwise specified, multi-byte values in PDO fixed headers, frame packets and SDO use little-endian. On the master side, do not cast unaligned byte buffers directly to host structures. Read and write fields explicitly from the byte stream.
text
Byte0:
bit0..2 CH CAN channel id, currently using 0..3
bit3..6 DLC original CAN DLC, 0..15
bit7 IDE 0=11bit standard id,1=29bit extended id
Byte1:
bit0 FDF 0=classic CAN,1=CAN FD
bit1 BRS CAN FD bit rate switch
bit2 X When FDF=0, it is RTR, when FDF=1, it is ESI
bit3..4 TSF 0=no timestamp,1=delta16,2=delta32,3=full64
bit5..6 KIND 0=CAN_FRAME, 1..3=reserved
bit7 D64 0=data length by DLC,1=fixed 64B data window
The current protocol only accepts KIND=0 CAN_FRAME. KIND=1..3 are reserved and must be rejected by the receiver.
0=normal,1=high priority,2=dedicated buffer,3=queue hint
When not used, the sender must write 0 and the receiver ignores it.
7.2 DLC and data length
DLC
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Bytes
0
1
2
3
4
5
6
7
8
12
16
20
24
32
48
64
DLC<=8, BRS=0, D64=0 in classic CAN. If FDF=0 && X=1, the frame is RTR, and the data length must be 0. X in CAN FD represents ESI, and there is no RTR.
!!! caution "Capacity is checked at complete-packet boundaries"
With PAYLOAD_ONLY_ENABLE disabled (the default), unused frame-area bytes shall be zero. When enabled, receivers shall ignore historical bytes beyond the valid area. D64 fill and 4-byte alignment padding inside the valid area shall still be zero and included in payload_len. The sender shall not write a partial packet if a complete one cannot fit.
7.3.1 Enable 4-byte alignment
4-byte alignment is controlled by the direction option ALIGN_4_ENABLE, not the 0xF000 read-only capability object that is turned on directly. 0xF000:0F (0x0F) is used to confirm whether the device claims to support this capability; the real switch is 0x8010/0x8011:07 (0x07) Option flags bit1.
Direction
Control object
bit1 meaning
TxPDO / SM3 Input / Upload from the slave
0x8010:07 (0x07)
Each frame package uploaded by the slave is padded by 4 bytes. When the master parses, it jumps to the next packet according to the aligned length
RxPDO / SM2 Output / Sent by the master
0x8011:07 (0x07)
Each frame packet sent by the master must be completed by 4 bytes, and the slave will parse the next packet according to the aligned length
Turn on steps:
text
1. Read 0xF000:0F and confirm that bit1 ALIGN4 option mask is 1.
You can also read 0xF000:10 and confirm that bit5 ALIGN4 feature is 1.
2. Write 0x8010/0x8011 requested profile in PREOP/SAFEOP.
3. Set 0x8010:07 or 0x8011:07 bit1 of the target direction to 1.
4. Write 0x8010:01 = 1 or 0x8011:01 = 1 apply.
5. Read 0x8010/0x8011:02 and confirm Status = 0.
6. Read 0x8010/0x8011:0C and confirm that OptionFlags bit1
is set in the Active profile word.
Example: Leave other direction options unchanged and only turn on RxPDO 4-byte alignment:
text
old = read_u8(0x8011:07)
write_u8(0x8011:07, old | 0x02)
write_u8(0x8011:01, 1)
check read_u8(0x8011:02) == 0
Example: Turn off TxPDO 4-byte alignment:
text
old = read_u8(0x8010:07)
write_u8(0x8010:07, old & ~0x02)
write_u8(0x8010:01, 1)
check read_u8(0x8010:02) == 0
After ALIGN4 is enabled, the sender must pad each frame packet to a 4-byte boundary. Padding bytes must be 0 and must be included in the fixed header payload_len. The receiver must also advance by the aligned packet_bytes when parsing the next packet, not by the raw CAN data length alone.
Length example:
CAN_FRAME
raw_packet_bytes
ALIGN4 post packet_bytes
payload_len counts
Standard frame, DLC=8, no timestamp
2 + 2 + 8 = 12
12
12
Extended frame, DLC=8, no timestamp
2 + 4 + 8 = 14
16
16, the last 2B padding must be 0
Standard CAN FD, DLC=15, no timestamp
2 + 2 + 64 = 68
68
68
Extended CAN FD, DLC=15, delta16
2 + 4 + 2 + 64 = 72
72
72
7.4 Timestamp field
TSF selects the CAN_FRAME timestamp field. In TxPDO it describes CAN reception time. In RxPDO, TSF_NONE means no per-frame phase reservation: SM submits after validation; DC submits under a valid Sync0 permit. A transaction granted a permit before prepared may submit when preparation completes, subject to the admission and revocation rules in section 12.8. TSF_FULL64 also carries the scheduled-transmission format.
TSF
Number of bytes
General semantics
Description
0
0
No timestamp
Default mode, lowest overhead
1
2
delta16
Timestamp revision: unsigned microseconds relative to the first frame of this PDO; 0xFFFF means unavailable.
2
4
delta32
The lower 32 bit difference relative to the reference time; the capability bit exists but the current default profile is not actively enabled
3
8
full64
64 bit full timestamp, or RxPDO reservation sending extended format
Profile 1/5 selects timestamp encapsulation but does not establish a valid time source. The timestamp
revision preserves V1/V2 headers, TSF encoding and the 2-byte field width. Earlier firmware copied the
MCAN descriptor field and does not implement this contract. Hardware accuracy and fault-condition
acceptance remain incomplete; support must not be inferred solely from a firmware major version.
Item
Revised contract
Encoding
Little-endian U16, 1 μs; validate source and nonnegative range before rounding valid deltas down
Reference
First serialized CAN frame in this PDO; zero when valid; CAN frames are not reordered
Range
0…65534 μs; 0xFFFF means unavailable, not 65535 μs
Event
MCAN TSU hardware capture: 0x800n:4E=0 EOF, =1 SOF; not FIFO service or ESC publication
Common source
Initialized PTPC0, digital nanoseconds, 64-bit TSU; source and event must match
Sampling/freeze
Timestamp refers to reception; publication delay or retry does not change the recorded frame time
Invalid cases
Missing/overwritten capture, inconsistent or late read, unsupported source, invalid first frame, event mismatch, negative or out-of-range delta
CAN integrity
Invalid time does not discard or alter CAN ID, DLC or data; readers must check 0xFFFF
Internal 16-bit counters, internal AHB TSU counters and unknown external sources are not converted
to cross-channel microsecond deltas. Their SDOs remain configurable but Profile 1/5 reports unavailable
time. An invalid first frame makes the entire PDO reference unavailable; later valid frames do not
silently replace it. Round-robin assembly may place an earlier physical capture after the reference;
that frame reports unavailable time rather than wrapping a negative delta or reordering CAN frames.
A capture less than 1 μs earlier than the reference still reports 0xFFFF; it is not first truncated
to zero. Serialization order is not a global chronological sort across channels. This marker alone
does not establish CAN loss, queue backlog or hardware failure. For example:
Position
Channel
Raw time relative to reference
Encoded time
Meaning
1
CH2
0 ns
0x0000
Valid reference
2
CH0
−190 ns
0xFFFF
Negative unsigned delta is unavailable
3
CH1
+30075 ns
0x001E
30 μs, fractional part discarded
4
CH3
+30335 ns
0x001E
30 μs, fractional part discarded
Validate CAN content and timestamp validity separately. Do not resend motion commands solely because
a received timestamp equals 0xFFFF.
!!! caution "Timestamp validity limitations"
text
- Fulltimestamp acceptance is incomplete. A PTPC0 configuration readback alone does not confirm the actual TSU route. An incorrect route can produce incorrectly scaled non-`0xFFFF` valuesor sustained unavailable timestamps.
- The routing revision verifies hardware selection during configurationand rejects shared-source conflicts; consult release notes for firmware applicability. Successful apply, complete CAN data and correct time increments donot establish physical SOF/EOF accuracy.
- Donot use timestamps for precise latency measurements or control feedback before the target firmware has passed the corresponding acceptance tests. TSU capture requires a matching filterwith `sync_message=1`. Enabling TSU or selecting a Profile alone does not guarantee capture.
- Descriptor pointers/flags are not timestamps. Finite capture slots can lose timestamps under load even when CAN data remains complete. TSF=1 does not imply validtime. The field isnot absolute EtherCAT DC time, andreferences differ between PDOs.
- SOF/EOF accuracy, external calibration and overload require separate hardware validation. Use Profile 0/4when timestamps are unnecessary. Ordinary uplink delta32/full64 are not enabled by this revision; RxPDO reservation encodingand its nanosecond units remain unchanged.
- Reading `TS_SEL` through the register service consumes capture slots and clears their status; donot poll this window during normal traffic. `TSS1/TSS2` snapshots donot consume slots, but they donot establish a validtime source or unit conversion.
RxPDO reservation sending only uses the 8B field of TSF_FULL64, and the required format is as follows:
text
format:u8 = 1
flags:u8 = 0
tag:u16
offset_ns:u32
FULL64 scheduling requires a currently active DC output session. A nonzero Sync0 history from an earlier DC session is insufficient. The session-protection revision rejects FULL64 in SM without DC, records LastPDOError=16 (bad schedule), and rejects the entire PDO before submitting any CAN frame.
Other formats, nonzero flags and offsets outside the current cycle are invalid. Correct the request using a new PDO sequence; ordinary SM TSF_NONE transmission is unaffected. Earlier firmware may execute a schedule immediately from an old time base after DC-to-SM switching.
Consult release notes for the first released revision containing this protection.
The tag correlates scheduling records; it is not a cancel-by-tag command. There is no per-tag cancel
entry in the current protocol. Output-session exit and channel maintenance clear software pending
work; already submitted MCAN requests remain subject to hardware cancellation boundaries. Clearing
diagnostics does not cancel work, and requesting cancellation does not prove a frame was never on the bus.
The valid range is 0 ≤ offset_ns < configured DC period in ns. Equality is invalid, not an offset of zero in the following cycle.
offset_ns with a configured 1-ms cycle
Format admission
Limitation
0
Accepted
Does not guarantee zero latency; an already-reached compare target can increment scheduling events
1–999999
Accepted
Admission does not guarantee CAN transmission before the next complete RxPDO arrives
≥1000000
Rejected
The entire RxPDO containing the invalid reservation is rejected with error 16
Reservations remain subject to old-request revocation by the next complete RxPDO, including an empty-body RxPDO. Allow time for controller submission, bus arbitration and frame transmission; avoid placing a reservation at the end of the usable transmit window. offset_ns is relative to the target Sync0, not the Sync1 phase or an absolute phase relative to the master cycle. When responses are missing, correlate 0x8011:0E/:0F with 0x902x:15..:1B. Complete WKC does not prove CAN transmission, and hardware cancellation counters exclude reservations not yet submitted to hardware.
Counter scope for scheduled transmission
Observation
What it establishes
What it does not establish
No new errors in 0x8011:0E/:0F
No new encapsulation error was recorded
Every valid reservation was transmitted
No increase in 0x902x:15
No additional hardware-confirmed cancellation was recorded
No reservation was revoked before submission to the CAN controller
No increase in 0x9010:06
No additional event covered by this field was recorded
Every reservation executed; this field does not count all unsubmitted reservations revoked by the next complete RxPDO
When 0x902x:00 >= 36, read software reservation clear, stale, pending counts and reasons at 0x902x:1F..:24 (section 12.2.5.1). Earlier firmware does not expose these separate counts. The interface does not provide per-frame completion receipts. Zero values across these counters alone do not prove complete delivery. Applications requiring completeness should carry request identifiers in CAN data, verify actual responses, and allow transmission margin before the next complete RxPDO arrives. Changing the master transmit phase also changes that margin; unchanged Sync0 and Sync1 settings do not guarantee an unchanged usable reservation window.
Scheduling diagnostics are layered. 0x8011:0E is the last error; :0F counts encapsulation-error events, not rejected CAN frames. Rejecting one PDO containing four frames can increment the error counter once while removing four expected responses.
Later valid packets may restore :02 to zero without clearing the last error or cumulative counter. 0x9010:06 aggregates late-drop, queue-full, MCAN-write-failure and timer-miss events; it does not count all format rejections or failed frames.
A zero-offset schedule can increment it because its compare target has already arrived even when the frame is subsequently transmitted successfully. Correlate the response set, timing and error domain.
offset_ns represents the target phase relative to the next SYNC0 cycle, not an absolute timestamp. A busy channel permits bounded retries: a software slot may remain through the cycle following its target cycle, but is discarded before a CAN write at the second SYNC0 after the target cycle.
Eight consecutive write failures also discard the slot. This policy does not cancel frames already submitted to MCAN and is not a zero-lateness guarantee.
8. Encapsulation Profile and direction options
0x8010 controls the TxPDO profile, and 0x8011 controls the RxPDO profile. Currently, the following profiles are supported out of the factory:
Direction options are controlled by 0x8010/0x8011:07 Option flags. 0x8010 acts in the TxPDO/SM3/Input upload direction, and 0x8011 acts in the RxPDO/SM2/Output delivery direction.
8.1 Option flags bit table
Option flags is an 8-bit bitmap. Writing the requested value does not make it active.
!!! caution "Apply and read back"
After writing options, issue 0x8010:01=1 or 0x8011:01=1. Use the new layout only when :02=0 and :0C Active profile word matches the request. Reserved bits must remain 0; use read-modify-write for a single-option change.
Bit
Mask value
Name
Applicable direction
Default state
Description
0
0x01
Reserved
TxPDO / RxPDO
0
Must be 0; writing 1 is rejected
1
0x02
ALIGN_4_ENABLE
TxPDO / RxPDO
Off
Each CAN_FRAME packet is padded on a 4-byte boundary; padding must be 0 and counted towards payload_len
2
0x04
NO_CRC16_ENABLE
TxPDO / RxPDO
On
Disable payload CRC16; clear this bit to restore CCITT-FALSE
3
0x08
APP_BYPASS_ENABLE
TxPDO / RxPDO
Off
Bypass the real MCAN application path for data-path diagnostics only; never enable it for motor control or gateway traffic
4
0x10
PAYLOAD_ONLY_ENABLE
TxPDO / RxPDO
Off
Update only the valid payload for a stable layout; the master codec must ignore bytes beyond payload_len
5
0x20
HEADER_V2_ENABLE
TxPDO / RxPDO
Off
Select compact V2; clear for V1 compatibility
6..7
0xC0
reserved
reserved
Off
Masters must write 0
Commonly written values:
Write value
Function
Typical scenarios
0x00
V1 header with CRC16
Legacy IgH compatibility
0x24
V2 header without CRC16
Explicit selection after capability check
0x01
Invalid reserved value
Rejected by 0x8010/0x8011:07
0x02
Turn on 4-byte alignment
0x8010:07 (0x07) or 0x8011:07 (0x07), the customer master hopes that the frame packet is naturally 32bit aligned
0x03
Invalid reserved value
bit0 is set, so the write is rejected
0x04
V1 header with CRC16 disabled
Factory, reset, and current IgH compatibility default
0x08
Bypass the real MCAN application path
Data-path diagnostics only; not for normal gateway traffic
0x10
Update only the valid payload
Use when both the master and firmware use the current codec and the layout is stable
Ability judgment:
Ability object
Judgment method
Description
0xF000:0F PDO option flags mask
Check whether the corresponding bit is 1
Indicates that the option flag can be written 0x8010/0x8011:07
0xF000:10 PDO feature flags
Check the corresponding feature bit
Indicates the device protocol capabilities, such as ALIGN4, scheduled sending, etc.
The current capability mask is based on 0xF000. The master should read the capability object first and then select the profile and option flags.
!!! important "Default CRC policy"
Payload CRC16 is disabled by default for both V1 and V2. When disabled, TxPDO payload_crc16 shall be zero and the firmware skips the field in master RxPDO input. To enable CRC protection, the master shall explicitly clear NO_CRC16_ENABLE.
8.2 Default switch state when not configured
If the master does not write the profile-related SDO of 0x8010/0x8011, the default value of requested in the device object dictionary is as follows. Note: 0xF000 means "support capability" and does not mean enabled by default; the actual enabled status is determined by the requested profile of 0x8010/0x8011 and the active readback after apply.
Function
Control object
Default value
Status when not configured
Remarks
PDO size multiplier
0x8010/0x8011:03
2
Default request 256B/direction
Master site mapping must also select the first 2 chunks, otherwise apply will return mapping reload required
Channel mask
0x8010/0x8011:04
0x0F
CAN0..CAN3 default request to enable
To close the channel, you need to explicitly change the mask and apply
Encapsulation profile
0x8010/0x8011:05
0
profile 0 on
variable DLC, no timestamp
Budget policy
0x8010/0x8011:06
0
Balanced on
Reserve the minimum budget for each enabled channel, and the remaining space is shared
Reserved option
0x8010/0x8011:07 bit0
0
Must remain 0
Writing 1 is rejected; use CAN peer response or bus diagnostics to confirm application-level completion
4-byte alignment
0x8010/0x8011:07 bit1
0
Close
Supported but not padded by default. After opening, padding is included in payload_len
Disable CRC16
0x8010/0x8011:07 bit2
1
On
payload_crc16=0; clear to enable CCITT-FALSE
Header V2
0x8010/0x8011:07 bit5
0
Off
Explicit only; 16B on 5E, 20B on 6E
Application-path bypass
0x8010/0x8011:07 bit3
0
Off
Data-path diagnostics only; keep disabled for normal gateway traffic
Valid-payload-only update
0x8010/0x8011:07 bit4
0
Off
Requires matching payload_len handling in the master codec
delta16 timestamp
0x8010/0x8011:05=1/5
0
Off
Select profile 1 or 5 before enabling
D64 data window
0x8010/0x8011:05=4/5
0
D64 not allowed
Profile 4/5 permits Ctrl.bit15, not mandatory D64 on every frame. The current uplink uses compact DLC encoding; downlink D64 requires a full 64B window.
RxPDO scheduled transmission
RxPDO CAN_FRAME TSF_FULL64 format=1
No ordinary default frame
Close
The master must actively send frames according to the scheduled format, and it is recommended to confirm 0xF000:10 bit8 first
CAN FD
0x8001..0x8004:0F
1
Enable
Each MCAN channel is configured according to CAN FD by default; classic CAN needs to write 0 and apply
TDC
0x8001..0x8004:10
1
Open
Automatic bit timing forces TDC on at 5 Mbit/s and above; manual bit timing uses the request
It is recommended that masters not rely on the assumption that implicit defaults are in effect. When starting up, you should explicitly configure 0x1C12/0x1C13, write 0x8010/0x8011:03..07, then write 0x8010/0x8011:01=1 apply, and read :09..0C to confirm the active status.
9. Reserved protocol values
OptionFlags.bit0, header_flags.bit2, and packet KIND=1..3 are reserved. A master must transmit zero in reserved option and header bits and must reject reserved packet kinds. Firmware does not provide per-frame transmit-result packets. Confirm end-to-end completion through the CAN peer response; use PDO channel status and SDO diagnostics for local congestion and bus-state diagnosis.
10. CRC and integrity strategy
By default, CRC32 is not added to each CAN_FRAME.
Reason:
The CAN/CAN FD bus itself already has CAN CRC.
EtherCAT frame has link FCS and working counter.
per-frame CRC32 will increase 4B/frame, and the classic 8B standard frame overhead increases from 12B to 16B, about 33%.
Frame-by-frame CRC32 adds jitter to the packet calculation in 1ms periods.
The master must read ActiveLayoutCrc and verify the active configuration. This readback does not guarantee strict rejection of a mismatching downstream layout_id; see Chapter 5 for compatibility semantics. Runtime images use double-sequence and length checks. The device defaults to V1 with payload_crc16 disabled. Clear OptionFlags.bit2 to enable CRC-16/CCITT-FALSE body checking. The CRC option neither changes the selected header version or length nor enables strict layout rejection.
11. Multi-channel shared budget
PDO no longer provides fixed slots for each CAN channel. The scheduler works on a frame area byte budget:
Reserve a minimum packet budget for each enabled channel, and compete for remaining space sharing; Default
1
SharedOnly
No channel reservation, all frames share contention
2
Deterministic
Allocate the budget evenly according to the enabled channels, and do not borrow between channels
3
Reserved
Reserved
Balanced capacity allocation
Balanced reserves a basic allowance per enabled channel and shares remaining capacity. The normal allowance is 14 or 16 bytes depending on timestamps and ALIGN4. Count the complete encoded frame, including control, ID, timestamp, data and padding.
A large frame can reduce space available to other channels; some traffic may be deferred despite unused bytes. For example, a four-channel 128B V1 PDO has 104B of body space: after a 68B frame, three other 14B frames cannot all fit.
Balanced guarantees neither fixed frame counts nor fixed waiting cycles. Channel critical-frame and discard policies remain applicable; capacity events are not lost-frame quantities. Use Deterministic when independent channel allowances are required.
Deterministic capacity calculation
For device-to-master TxPDO, the Deterministic allowance is floor((ActivePDOBytes - HeaderBytes) / enabled_channel_count). Each frame consumes its entire encoded size, including control, CAN ID, optional timestamp and alignment. The division remainder is not redistributed.
With 640B and four channels, V1 allows 154B/channel and V2 allows 156B/channel. A standard-ID 64B frame without a timestamp or additional padding occupies 68B; either header therefore permits two frames per channel per image. Six frames require at least three uplink images.
Exhausting one channel's allowance does not stop assembly for other channels.
Deferred frames retain channel order in the cache and remain subject to its configured
overflow policy. A frame larger than the entire channel allowance cannot fit in a later
identical image: increase PDO size, reduce enabled channels, or select a sharing policy.
This condition reports a capacity event, not proof of a dropped frame. Uplink byte
allowances and MCAN receive-service frame budgets are separate limits.
A CAN_FRAME must fit as a whole; it is not split across PDO images. If receive processing encounters insufficient capacity, it sets STREAM_TRUNCATED and the capacity indication (overflow_sat=1 in V1). Successful publication increments SDO PDOOverflowCounter once for that image. Deferred frames are not counted as dropped unless an actual discard path runs.
12. SDO object dictionary
The previous chapters describe periodic PDO data, which is exchanged every EtherCAT cycle after OP. The SDO object dictionary is the configuration and diagnostics entry point: use it before OP to configure PDO profiles and MCAN channels, and use it during operation to read capabilities, error counters, and detailed status. If you only need to look up an object, start from this chapter. For configuration procedures, see application manual chapters 2–4; object definitions are in sections 12.2, 12.3, 12.4 and 12.8 below.
This chapter lists only the public objects intended for customer integration. Objects not listed here are manufacturer-reserved, carry no compatibility commitment, and must not be accessed by customer applications. U8/U16/U32 denote unsigned 8/16/32-bit values.
12.1 Quick lookup by object index
In a PDF reader, start with the Bookmarks or Contents pane. If the address is known, search the complete hexadecimal token, such as 0x8010:07 or 0xF000:10. If only the function is known, search the English keywords below. Ranged objects also list each member address so a search for 0x8002 or 0x9023 lands directly in this index.
Exact index or range members
Object/keywords
Direction and purpose
Detail section
0x1C12
RxPDO assignment, SM2, Output mapping
Select continuous RxPDO chunks and optional 16B tail mapping
4.1, 4.3
0x1C13
TxPDO assignment, SM3, Input mapping
Select continuous TxPDO chunks and optional 16B tail mapping
4.1, 4.3
0x1C32, 0x1C33
DC sync type, Sync0, Sync1
Output execution and input latch events
12.9
0x1600..0x1617
RxPDO map, M2S
Each object maps one 128B chunk
4.1
0x1A00..0x1A17
TxPDO map, S2M
Each object maps one 128B chunk
4.1
0x6000..
TxPDO data, Input process image
16B slave-to-master process-image units
4.1
0x7000..
RxPDO data, Output process image
16B master-to-slave process-image units
4.1
0x8000
System Config, reboot, pin rotation
System configuration, reboot, and CAN pin rotation
12.3
0x8001, 0x8002, 0x8003, 0x8004
MCAN Channel Config, bit timing, FIFO
CAN0..CAN3 timing, mode, filters, and Message RAM
12.4
0x8010
TxPDO Profile Control, S2M
TxPDO size, channels, profile, options, and active readback
12.2
0x8011
RxPDO Profile Control, M2S
RxPDO size, channels, profile, options, and active readback
12.2
0x8021, 0x8022, 0x8023, 0x8024
MCAN Data Path Control, budget
Per-channel receive/transmit service budgets and apply
12.2.1
0x9000, 0x9001, 0x9002, 0x9003
MCAN Channel Information, ECR, PSR
Detailed channel status, error counters, and register snapshots
12.5
0x9011
Cycle Performance Diagnostics, PDI timing
Worst-case PDI, Sync0, mapping, and hot-path timing
12.2.4
0x9020, 0x9021, 0x9022, 0x9023
MCAN Data Path Diagnostics, drop, cache
Per-channel cache, drop, backpressure, BusOff, and service timing
12.2.5
0xF000
Device Objects, capability, version
Firmware version, PDO limits, header versions, and feature capabilities
12.7
Frequently searched subindices:
Search key
Name
Typical use
0x8010:03, 0x8011:03
PDO size encoding
Configure total length as 128B*base+16B*fine
0x8010:07, 0x8011:07
Option flags
Select V1/V2, CRC, ALIGN4, and other supported options; bit0 is reserved
0x8010:02, 0x8011:02
Apply status
Determine whether the profile applied and why it failed
0x8010:09..0C, 0x8011:09..0C
Active readback
Read PDO bytes, frame area, layout CRC, and profile word
0x8001:07..18
MCAN mode and bit timing
Automatic/manual timing, CAN FD, TDC, and sample points
0x8001:3D..49
MCAN Message RAM
FIFO/Buffer counts and element sizes; other channel objects are isomorphic
0xF000:05/06
Firmware version
Read firmware major/minor
0xF000:09
PDO header version mask
Discover V1/V2 header capability
0xF000:10
PDO feature flags
Discover fine sizing, V2, scheduled transmit, and other features
12.1.1 Object overview
Object
Name
Access Overview
Direction/Purpose
Description
0x8000
System Config
RW/RO
CFG
System clock, restart, CAN pin rotation
0x8001..0x8004
MCAN Channel Config
RW/RO
CFG
Each CAN/CAN FD configuration
0x8010
TxPDO Profile Control
RW/RO
S2M profile
Slave upload direction PDO profile
0x8011
RxPDO Profile Control
RW/RO
M2S profile
Master sends direction PDO profile
0x8021..0x8024
MCAN Data Path Control
RW/RO
CFG
Per-channel receive/transmit service budgets; written on demand by the advanced IgH API
0x9000..0x9003
MCAN Channel Information
RO
S2M diagnostic
Channel state, error counters, and active configuration readback
0x9011
Cycle Performance Diagnostics
RO/RW
S2M diagnostic
Cycle interrupt and critical-path timing statistics
0x9020..0x9023
MCAN Data Path Diagnostics
RO
S2M diagnostic
Per-channel cache, drop, backpressure, and service timing statistics
0x8010 controls the TxPDO/Input direction, and the data flow is S2M; 0x8011 controls the RxPDO/Output direction, and the data flow is M2S. SI1/3/4/5/6/7/8 is the requested configuration or command written by the master, and SI2/9..16 is the status and active readback returned by the slave.
SI
Address (CH0 example)
Name
Type
Access
Default
Description
1
0x8010:01
Apply command
U8
RW
0
Write 1 Apply requested profile
2
0x8010:02
Status
U8
RO
0
apply/parser Status
3
0x8010:03
PDO size encoding
U8
RW
0x02
low 5 bits=base, high 3 bits=fine; bytes=128*base+16*fine
4
0x8010:04
Channel mask
U8
RW
0x0F
bit0..7 corresponds to CAN0..CAN7
5
0x8010:05
Encapsulation profile
U8
RW
0
Encapsulation profile; default profile 0, no timestamp, variable DLC
6
0x8010:06
Budget policy
U8
RW
0
Budget policy; default Balanced
7
0x8010:07
Option flags
U8
RW
0x04
Default V1 header with NO_CRC16; V2 requires explicit bit5
8
0x8010:08
Command
U8
RW
0
bit0 reset session, bit1 clear errors
9
0x8010:09
Active PDO bytes
U16
RO
0
Current PDO bytes
10
0x8010:0A
Active frame area bytes
U16
RO
0
Current frame area bytes
11
0x8010:0B
Active layout CRC
U32
RO
0
layout contract CRC
12
0x8010:0C
Active profile word
U32
RO
0
active profile package echo
13
0x8010:0D
Packet sequence
U16
RO
0
Recent direction sequence number
14
0x8010:0E
Last PDO error
U16
RO
0
Last encapsulation layer error
15
0x8010:0F
PDO error counter
U32
RO
0
Packaging layer error count
16
0x8010:10
PDO overflow counter
U32
RO
0
Overflow/backpressure count
Status Common values:
value
description
0
OK
1
invalid state, usually the OP trying to change the layout
2
invalid PDO size multiplier
3
invalid channel mask
4
invalid encapsulation profile
5
master mapping reload required
7
PDO encapsulation error
8
PDO overflow/backpressure
9
requested profile pending apply
10
unsupported option flag
Active profile word packaging format:
PDO configuration has three separate states: the current assignment at 0x1C12/0x1C13,
requested fields at 0x8010/0x8011:03..07, and the active layout at :09..0C.
Requests or assignments may change in PREOP while the active layout retains the last successful
Apply result. Status=5 indicates an assignment mismatch for the requested profile, not a completed
layout change; Status=9 means requested fields await Apply. These PDO status codes must not be
confused with CAN-channel busy=2 or maintenance busy=1.
Configuration backup and restore
Back up requested fields, assignment and active fields separately.
To restore a previously active layout, Apply it with a matching assignment.
Verify active bytes, frame area, layout CRC and Profile Word.
If required, restore the original pending requests and assignment only after verification, without another Apply.
Active-field interpretation limits
Zero, missing or inconsistent active fields are not sufficient to reconstruct a configuration.
Active layout CRC identifies the layout independently of the PDO frame CRC option. Verify active readback even when frame CRC is disabled.
Readback does not establish strict rejection of a downstream PDO with a mismatching layout_id; see Chapter 5 for direction and compatibility semantics.
Bits
Field
Description
0..4
base - 1
128B base count minus one
5..12
ChannelMask
bit0..3 corresponds to CAN0..CAN3, the current product only uses the lower 4 bits
13..18
EncapsulationProfile
See Chapter 9 profile table
19..20
BudgetPolicy
See Chapter 12 Budgeting Strategies
21..28
OptionFlags
Direction options, see Chapter 8
29..31
fine
number of 16B fine units, 0..7
Command bit definition:
Bit
Name
Description
0
reset session
Clear the running state serial number, error status and temporary session information in this direction
1
clear errors
Clear LastPDOError, PDOErrorCounter and PDOOverflowCounter
2
reserved
Must be 0
3
reserved
Must be 0
4
reserved
Must be 0
5
reserved
Must be 0
6
reserved
Must be 0
7
reserved
Must be 0
Last PDO error common values:
value
name
description
0
OK
No errors
2
frame overrun
A single frame exceeds the encapsulation capability supported by the current profile
3
packet overrun
frame packet exceeds this cycle frame area
4
unknown kind
KIND is illegal or not currently supported
5
invalid DLC
DLC does not match classic CAN/CAN FD rules
6
invalid channel
The channel number exceeds the capability range or is not enabled in the channel mask
7
invalid TSF
The timestamp format is not supported by the current profile or direction
8
truncated
The payload length is insufficient and the frame packet is truncated
9
unsupported profile
EncapsulationProfile is not in the capability mask
10
duplicate sequence
Stale or ambiguous sequence advance; an image with the most recent sequence is a no-op and does not add this error
11
unsupported option
option flags contain unsupported bits
12
active area
Active PDO/frame area is inconsistent with the master mapping, or header payload_len exceeds the active frame area
13
reserved bit
Control word or fixed header reserved bit is not 0
14
bad header
Invalid fixed-header version, IHL or field, including unequal seq_begin and seq_end
15
bad CRC
payload_crc16 verification failed
16
bad schedule
The reservation sending format is illegal or the capability is not supported
PDO error counter counts encapsulation errors including parsing, CRC, invalid fields and active-area capacity. PDO overflow counter counts encapsulation capacity errors and successfully published capacity-limited TxPDO images; it is not a CAN frame-loss total. Read 0x902x:05 for software RX drops and 0x900x:0E for aggregate TX backpressure. Evaluate Status, LastPDOError and counter deltas together.
Typical RxPDO runtime conditions are listed below. Deltas are per processed erroneous PDO, not per CAN frame in that PDO. Repeated submission of an erroneous image is not a retry protocol.
Single condition
Result
LastPDOError
PDOErrorCounter delta
PDOOverflowCounter delta
Only downstream layout_id differs; remaining fields match the active configuration
Decode using the active configuration, retaining compatibility
No new error
0
0
payload_len exceeds the active frame area
Reject the entire PDO before CAN submission
12
1
1
seq_begin differs from seq_end
Reject the entire PDO before CAN submission
14
1
0
Sequence moves backward after the session sequence is established
Reject the entire PDO before CAN submission
10
1
0
Enabled payload CRC fails verification
Reject the entire PDO before CAN submission
15
1
0
CRC disabled, downstream payload_crc16 nonzero and all other fields valid
Skip that field and decode normally; upstream CRC field remains zero
No new error
0
0
Body validation finds a truncated final frame
Reject the entire PDO, including its valid prefix
8
1
0
Body validation finds an invalid final-frame channel
Reject the entire PDO, including its valid prefix
6
1
0
Body validation finds nonzero reserved high bits in a standard CAN ID
Reject the entire PDO, including its valid prefix
13
1
0
Nonzero D64 fill beyond the actual DLC length, or nonzero ALIGN4 padding
Reject the entire PDO, including its valid prefix
13
1
0
For example, rejecting a PDO containing four CAN frames because its length exceeds the active area adds one packet error and one capacity error, not four of each. Subsequent valid new sequences can be processed; normal traffic does not automatically clear LastPDOError. Layout compatibility does not establish configuration agreement: verify Active Profile and mappings before business traffic.
Body validation follows header and optional CRC validation. A payload_len exceeding the entire active frame area produces error 12. A length within that area but too short for the final declared frame produces error 8; the counter effects differ.
Multiple counters for one event
In DC mode, a body-validation failure after batch preparation has started also increments 0x9010:05 once. The same failure increments the parse-error counter 0x9010:04 once. These are different views of one event, not a second lost batch, and must not be summed as CAN-frame losses.
Header, CRC or stale-sequence rejection before this stage does not itself add a DC preparation-failure event; however, arrival of that complete PDO may already have canceled an older pending batch, which must still be counted. SM has no such DC-stage increment.
Replacement, session cancellation or other faults may add independent events; correlate counters within the same observation interval.
12.2.1 0x8021..0x8024 MCAN Data Path Control
0x8021..0x8024 correspond to MCAN0..MCAN3. Normal applications should keep the firmware defaults. Override these values only when measurements under real CAN/CAN FD load show that the per-service budget is insufficient. These objects do not change bit timing, filters, or Message RAM configuration.
Object
Channel
0x8021
MCAN0
0x8022
MCAN1
0x8023
MCAN2
0x8024
MCAN3
The table distinguishes implemented policies from reserved fields. Field readback shows requested configuration. Both initial and subsequent writes require Apply; only a successful Apply switches the runtime to the complete committed snapshot. Unapplied changes do not alter the committed Enable, budgets, overflow or recovery policies. Disabling the explicit policy also requires Apply before the legacy policy takes effect.
SI
Address (CH0 example)
Name
Type
Access
Default
Description
1
0x8021:01
Enable
U8
RW
1
0=disable the explicit data-path policy; 1=enable it
2
0x8021:02
Apply command
U8
RW
0
Write 1 after the requested fields; the command returns to 0 after processing
3
0x8021:03
Apply status
U8
RO
0
Result of the latest apply; 0=OK
4
0x8021:04
RX drain budget min
U8
RW
0
Lower service-budget bound, 0..8; must not exceed a nonzero maximum, not a guaranteed receive count
5
0x8021:05
RX drain budget max
U8
RW
2
Maximum frames drained from the MCAN receive path per service, range 0..8; 0 selects the firmware limit
6
0x8021:06
RX budget policy
U8
RW
1
0=balanced, 1=conservative, 2=performance, 3=adaptive; bounded by service limits
7
0x8021:07
RX cache depth
U8
RW
0
0/1/2/3 select 32/8/16/24 frames; explicit 8/16/24/32 also accepted
0=manual, 1=automatic, 2=aggressive, 3=degraded recovery; does not correct physical faults
15
0x8021:0F
Backoff base cycles
U16
RW
2
Base service-cycle count; 0 selects firmware default; bounded at runtime, not microseconds
16
0x8021:10
Degraded threshold
U16
RW
64
Degradation threshold; 0 selects firmware default; not a cumulative Bus-off count
17
0x8021:11
Reserved 1
U32
RW
0
Reserved; keep 0
18
0x8021:12
Reserved 2
U32
RW
0
Reserved; keep 0
19
0x8021:13
Reserved 3
U32
RW
0
Reserved; keep 0
20
0x8021:14
Active control word
U32
RO
0
Packed readback of the active policy, used to confirm that apply took effect
Behavior when the RX cache is full
These policies address software RX cache exhaustion, not CAN hardware FIFO overflow.
0x8021:08
Incoming and existing frames
Diagnostics
0
Evict the oldest existing frame and accept the incoming frame
Increment total and existing-frame drops
1
Keep existing frames and discard the incoming frame
Increment total and new-frame drops
2
Discard an incoming noncritical frame. For an incoming critical frame, preferentially evict an existing noncritical frame; if all existing frames are critical, evict the oldest critical frame
Count the actual discarded frame; critical drops also belong to the critical subset
3
Discard the incoming frame and latch degradation; this does not stop all channels or establish that Bus-off occurred
Increment total and new-frame drops; set 0x9020:0F
Critical classification uses standard CAN IDs. Policy 1 includes 0x081..0x0FF and 0x701..0x77F. Policy 2 additionally includes 0x181..0x1FF, 0x281..0x2FF, 0x381..0x3FF, 0x481..0x4FF and 0x581..0x5FF. Extended IDs are excluded; “all classes” does not mean every CANopen ID is critical.
With 0x8021:09=0, no frames are critical, so overflow policy 2 discards incoming frames when full. Preferential retention does not guarantee lossless critical traffic.
For channel 0, total drops at 0x9020:05 equal existing-frame drops at :06 plus new-frame drops at :07. Critical drops at :08 are a subset and must not be added again. Use the corresponding index for other channels.
With degraded overflow handling, new frames can be received after pressure subsides, but emptying the cache alone does not clear degradation. V1 channel warning and counter_sat may remain set without a backlog. See fault recovery for the distinction between explicit recovery and clearing diagnostic counters.
ActiveControlWord bit definitions
Bits
Meaning
0
Enable
1..3
Reserved; must be 0
4..7
RX minimum budget
8..11
RX maximum budget
12..13
RX budget policy
14..15
Depth enum
16..17
RX overflow policy
18..19
Critical-frame policy
20..23
TX minimum budget
24..27
TX maximum budget
28..29
TX overflow policy
30..31
Bus-off recovery policy
The word excludes backoff base cycles and the degraded threshold; it is not a configuration-generation counter.
Confirm the result using the SDO transfer result and ApplyStatus as well.
Defaults are OD initial values, not evidence that the explicit policy is active before the first Apply.
Budgets are per service invocation, not guaranteed frame counts per EtherCAT cycle or PDO. Service scheduling, FIFO availability, PDO capacity and stale-command protection can further limit progress. Change queue capacity or discard policy after a controlled stop of command traffic, and check diagnostic deltas and business sequences.
The following IgH MCAN Port API calls use these indices:
API
Startup SDO generated
igh_mcan_port_set_channel_rx_drain_budget()
0x8021 + channel : 0x05
igh_mcan_port_set_channel_tx_write_budget()
0x8021 + channel : 0x0C
After either budget setter is called, igh_mcan_port_apply_config() also writes SI1=1 for that channel and finally writes SI2=1. The default configuration does not write 0x8021..0x8024, preserving old-firmware compatibility and the factory policy. Raising a budget can increase instantaneous CAN bursts and CPU service load; always repeat loss-counter and latency-tail tests with real traffic.
12.2.2 Data-path budget configuration sequence
For manual configuration, use this order:
Confirm that the target firmware provides the object. If old firmware reports “object does not exist,” retain its default policy instead of failing the entire startup.
Write SI1=1.
Write only the required SI5 and/or SI12 override, in the range 0..8.
Write SI2=1 to apply.
Read SI3 and SI20 to confirm success and the active value.
Explicit data-path policies are runtime configuration. A channel Flash-save command does not persist all 0x802x fields. After reboot, the master must rewrite and Apply the required overrides; TX budgets, backoff and recovery parameters must not be assumed to persist with CAN bit timing.
12.2.3 Manufacturer test and maintenance objects
Data-path bypass tests, direct-register access, persistent maintenance, and manufacturing objects are reserved for manufacturer support. Customer applications must not depend on or write them. For advanced troubleshooting, read 0x9011, 0x9020..0x9023, the standard status and error counters, and export the runtime log.
12.2.4 0x9011 Cycle Performance Diagnostics
0x9011 exposes interrupt counts, PDI/DC phase, and worst-case firmware critical-path timing. All fields below are read-only except Clear command. Timing values are CPU cycles and can be converted using the CPU clock returned by 0x8000:04. A field may remain zero when its corresponding measurement is not enabled in the firmware build.
SI
Address (CH0 example)
Name
Type
Access
Description
1
0x9011:01
PDI IRQ count
U32
RO
PDI interrupt count
2
0x9011:02
Sync0 IRQ count
U32
RO
Sync0 interrupt count
3
0x9011:03
Sync1 IRQ count
U32
RO
Sync1 interrupt count
4
0x9011:04
PDI to Sync0 phase min
I32
RO
Minimum PDI-to-Sync0 phase difference
5
0x9011:05
PDI to Sync0 phase max
I32
RO
Maximum PDI-to-Sync0 phase difference
6
0x9011:06
APPL OutputMapping max cycles
U32
RO
Maximum RxPDO/OutputMapping execution time
7
0x9011:07
APPL InputMapping max cycles
U32
RO
Maximum TxPDO/InputMapping execution time
8
0x9011:08
MCAN PDO service max cycles
U32
RO
Maximum MCAN PDO service time
10
0x9011:0A
RxPDO parse max cycles
U32
RO
Maximum RxPDO parse time
11
0x9011:0B
ESC read max cycles
U32
RO
Legacy name: maximum whole PDI ISR duration, not a pure ESC read duration
12
0x9011:0C
ESC write max cycles
U32
RO
Legacy name: maximum whole Sync0 ISR duration, not a pure ESC write duration; excludes a separate Sync1 ISR
13
0x9011:0D
Schedule service max cycles
U32
RO
Maximum scheduled-transmit service time
14
0x9011:0E
Clear command
U8
RW
Write 1 to clear these statistics; firmware clears the command after processing
Unlisted subindices are compatibility or manufacturer diagnostic extensions. Customer software must not interpret their bit layouts.
SI in this table is decimal: SI 11 is subindex 0x0B, and SI 12 is 0x0C.
With Sync0 releasing CAN requests and Sync1 publishing TxPDO, separate instrumentation
is required for Sync1, image preparation and ESC transfer. SI 12 is not the response
packing time. Historical maxima of different stages must not be added as the measured
duration of a single cycle.
12.2.5 0x9020..0x9023 MCAN Data Path Diagnostics
0x9020..0x9023 correspond to MCAN0..MCAN3. They distinguish CAN receive backlog, insufficient PDO capacity, MCAN TX backpressure, bus-off, and an insufficient channel service budget.
SI
Address (CH0 example)
Name
Type
Access
Description
1
0x9020:01
RX cache count
U16
RO
Uncommitted software RX ring entries plus the stable temporary handoff slot (0/1), including a prefix selected for a pending draft; excludes hardware FIFOs and successfully published/consumed entries
2
0x9020:02
RX cache high watermark
U16
RO
Historical receive-cache high watermark
3
0x9020:03
RX drain last
U16
RO
Receive frames drained by the latest service
4
0x9020:04
RX drain max
U16
RO
Historical maximum frames drained by one service
5
0x9020:05
RX dropped total
U32
RO
Cumulative software RX cache drops, not all hardware or host losses
6
0x9020:06
RX dropped old
U32
RO
Old-frame drop count
7
0x9020:07
RX dropped new
U32
RO
New-frame drop count
8
0x9020:08
RX dropped critical
U32
RO
Drops associated with critical-frame protection
9
0x9020:09
TxPDO consumed last
U16
RO
Frames committed after the latest successful ESC publication; failed builds do not count, successful empty images report zero
10
0x9020:0A
TxPDO consumed max
U16
RO
Historical maximum frames consumed by one TxPDO pack operation
11
0x9020:0B
TX FIFO full count
U32
RO
MCAN TX FIFO/queue full or unavailable count
12
0x9020:0C
TX stale dropped
U32
RO
Pending software transmissions discarded/rejected by replacement, reset, lifetime or capacity policy; excludes hardware cancellations and dedicated scheduling counters
13
0x9020:0D
Bus-off count
U32
RO
Bus-off count
14
0x9020:0E
Recovery attempts
U16
RO
Automatic recovery attempts
15
0x9020:0F
Degraded state
U16
RO
0=normal; nonzero=degraded or protected state
16
0x9020:10
Last error
U32
RO
Latest data-path or low-level error code
17
0x9020:11
Service max cycles
U32
RO
Maximum service time for this channel
18
0x9020:12
Service last cycles
U32
RO
Latest service time for this channel
Counter interpretation limits
RX cache high watermark is a historical peak and does not fall when the queue empties. It cannot alone establish current backlog. Evaluate current occupancy, peak growth, and drop increments against incoming load, service budget, and PDO capacity.
TX FIFO full count counts full/unwritable events, not lost frames; check bandwidth, ACK, error retransmissions, and queueing.
TX stale dropped is not limited to time expiry. From 2.38, it includes deferred requests replaced or rejected before hardware submission; versions through 2.37 did not fully cover these requests in per-channel statistics. These software drops are already included in the 0x900x:0E backpressure aggregate: do not add both counters. This count alone identifies neither the specific cause nor timely command execution; reconcile hardware cancellation results and individual responses as well.
Evaluate these diagnostics with hardware status, PDO overflow, WKC, and per-request response records.
12.2.5.1 Transmit cancellation and admission diagnostics
An object subindex count 0x902x:00 >= 30 identifies support for all fields below.
Missing fields on older firmware are unsupported, not zero. All additions are read-only U32.
Existing :01..:14 offsets and types and both PDO wire formats are unchanged.
Complete Access clients must size buffers for the actual record, not the previous fixed length.
Address (channel 0)
Name
Meaning
0x9020:15
TX cancel confirmed
Observed slots ending with TXBRP=0, TXBCF=1, TXBTO=0
0x9020:16
TX transmitted during cancel
Observed slots ending with TXBTO=1; transmitted, not unsent loss
0x9020:17
TX cancel unresolved
Missing terminal evidence, including outstanding observations abandoned during reconfiguration
0x9020:18
TX cancel pending mask
Outstanding observed TX-slot bitmap, not a frame count or the entire TX queue
0x9020:19
TX cancel observed slots
Observations started in this interval, plus outstanding carry-in at clear
0x9020:1A
TX cancel reason seen
Bitwise OR of observed software cancellation motives
0x9020:1B
TX cancel last reason
Motive mask associated with the latest nonempty observation
This channel's unsubmitted frames in SM admission-rejected PDOs
0x9020:1E
TX window rejected batches
Rejected PDOs containing this channel; do not sum channels for a global count
In ordinary FIFO DC mode, canceled validated frames not yet submitted to CAN count as software discards. Submitted frames use hardware cancellation statistics and must not be counted in both layers. See 0x902x:15..:19; 0x9010:05 counts batch events, while 0x900x:0E also includes unwritable events and is not a dedicated cancellation-frame count. Transmitted frames cannot be recalled across channels. Special profiles and schedules retain their specified statistical scopes.
In ordinary FIFO DC mode, resource unavailability, insufficient budget or submission failure rejects the affected channel's unsubmitted requests in that image. Healthy channels can continue; recovery does not replay rejected old frames. Malformed images, session end and a newer complete PDO retain whole-image handling. This does not extend to explicit schedules or hardware Queue, or guarantee simultaneous cross-channel transmission. Implement coordinated multi-axis stop in the host.
For channel-local rejection, 0x9010:05 adds one event for the affected image, not a claim that every channel was discarded. Frames not submitted to CAN enter software-drop accounting, included in the aggregate 0x900x:0E; that aggregate is not a dedicated frame-loss counter.
Rejection before a hardware transmit request does not add hardware-cancellation slots. Diagnostics are refreshed in the background, not sampled as per-frame acknowledgments of a particular PDO. Consult the corresponding release notes for behavior in earlier versions.
Motive bits: 0x01 unspecified; 0x02 new valid SM image supersedes old commands;
0x04 SM expiry; 0x08 new complete DC PDO superseding old requests; 0x10 DC submission/generation rejection;
0x20 backpressure/protection; 0x40 output session ends; 0x80 channel maintenance.
SM motion-command expiry (0x04) does not require another PDO and its lifetime does not
apply to ordinary DC batches. Neither motive bits nor cancellation counts specify an exact
cancellation timestamp. SDO readback observes state at sampling time; host read latency is
not firmware cancellation latency. Distinguish output-session and maintenance cancellation
using their independent motives.
Cancellation reasons and scope
Maintenance (0x80) can result from explicit channel configuration Apply or cancellation of old transmit requests during automatic Bus-off recovery. Absence of a host configuration write does not exclude this motive.
Confirm Bus-off using channel state and the 0x902x:0D event count, not the maintenance cancellation code alone. 0x902x:0E counts automatic attempts in the current recovery episode, not over the device lifetime.
It resets when service observes a non-Bus-off state or explicit configuration Apply rebuilds recovery state. A zero value does not prove that automatic recovery has never occurred. These describe software intent, not CAN error codes or separate per-reason frame totals.
TXBTO takes precedence when both TXBTO and TXBCF are set. Only slots pending in TXBRP when observed enter the ledger. DAR, Bus-off, reset and other queue losses are not necessarily covered. Zero pending mask does not prove that the entire TX path is empty.
Each channel's diagnostic snapshot is refreshed independently; separate SDO requests
can observe different snapshots. A quiescent, same-generation sample satisfies, modulo 2^32:
Read U32 0x9010:0C and wait for the completion sequence to advance.
Read channel generations and establish a new baseline. For separate subindex reads, bracket samples with generation reads and verify conservation while business is quiescent.
Reset scope and limitations
The command is one byte; the completion sequence is four bytes. A U32 command write is rejected with an SDO length-mismatch abort.
Runtime diagnostics and PDO Profile errors are cleared independently. Use the corresponding Profile Command bit1 to clear 0x8010/0x8011:0E..10.
Clear preserves pending observations, business queues and protection. Outstanding observations remain as carry-in in :19; not every field must immediately become zero.
Do not subtract samples across clear, reboot or different generations.
Software scheduled-transmit accounting
When 0x902x:00 >= 36, the following read-only U32 fields are available at 0x9020 + ch.
An absent subindex in older firmware is not a zero value. Hardware cancellation fields and
the V1/V2 PDO headers are unchanged.
Address (channel 0)
Name
Scope
0x9020:1F
Schedule cleared frames
Accepted reservations removed before controller submission by replacement, session end, maintenance or another explicit clear
0x9020:20
Schedule stale dropped frames
Accepted reservations abandoned at the retry deadline or retry limit; disjoint from :1F
0x9020:21
Schedule pending frames
Reservations awaiting controller submission at background sampling; excludes hardware requests and ordinary transmit queues
0x9020:22
Schedule reason seen
Bitwise OR of software reservation removal reasons in this statistics interval
0x9020:23
Schedule last reason
Most recent removed reservation's reason; empty clears do not update it
The low eight reason bits use the cancellation reasons above. 0x100 indicates the retry deadline and 0x200 exhausted write retries. Reasons are not controller error codes or separate per-reason counts.
:1F/:20 count software terminal outcomes before controller submission. Hardware cancellation after submission remains in :15..:19; submission does not prove peer reception.
0x9010:06 counts scheduling events, not these frames. Account separately for format/admission rejection, hardware failure and receive-side loss; missing replies cannot all be attributed to software clear.
Use the diagnostic reset procedure above. Resetting statistics preserves reservations, so :21 may remain nonzero. Counters wrap at 32 bits; establish a new baseline after generation changes or reboot.
These background snapshots do not identify a PDO freeze instant. Separate SDO requests may span refreshes. Stop new requests, drain traffic and verify an unchanged reset generation before reconciling counts.
12.2.5.2 SM motion batch window admission
After complete validation, SM invalidates the previous motion generation and checks the new batch before submitting its first frame. Actual NBTP/DBTP and peripheral clock determine a conservative lower bound on each channel's wire time.
If any motion channel exceeds the current 1000us command lifetime, the entire RxPDO is rejected, including other channels in that PDO. 0x8011:0E LastPDOError=17 and the error-packet counter report the rejection; :1D/:1E count unsubmitted frames/batches.
They are not hardware-confirmed cancellation.
The estimate omits stuffing, intermission, some FD control bits, replies, arbitration,
retransmission and CPU time. It rejects physically impossible loads, not all deadline risks.
A shorter SM cycle can replace commands earlier; existing lifetime protection remains active.
For standard-ID 64B BRS at 1M+5M the lower bound is 132.6us/frame:
eight frames require at least 1060.8us. Seven passing admission is not a stability guarantee.
This guard applies to SM motion channels only. Asynchronous forwarding and DC retain their
existing queue/generation/deadline rules; the SM lifetime is not imposed on DC or FULL64
reservations. APP_BYPASS and explicit TX-ring bypass remain diagnostic paths, not proof of
transmission. Malformed frames retain their original validation errors and are not counted
as window rejections.
12.3 0x8000 System Config
SI
Address (CH0 example)
Name
Type
Access
Default
Description
1
0x8000:01
Reboot command
U8
RW
0
Write 1 to request software restart
4
0x8000:04
CPU clock Hz
U32
RO
runtime
CPU clock used to convert the cycle counts in 0x9011
10
0x8000:0A
Config version
U32
RW
0
Master configuration version echo
11
0x8000:0B
Last apply result
U32
RO
0
Last apply result of system configuration
12
0x8000:0C
CAN pin rotation
U8
RW
0
Rotation of logical CAN channel to fixed pin group
13
0x8000:0D
Active CAN pin rotation
U8
RO
0
Current active rotation
14
0x8000:0E
CAN pin rotation mask
U8
RO
0x0F
Supported rotation bit mask
15
0x8000:0F
CAN pin apply status
U8
RO
0
Recent pin rotation application status
CAN pin rotation only allows rotation of logical channels between fixed sets of CAN pins at the chip/board level and does not provide arbitrary GPIO muxing configurations.
CPU clock Hz reports the actual clock after board initialization; it is not a
clock configuration command. Earlier builds may return the generated 480 MHz
initial value instead. Verify the build and board clock before auditing historical
timings: converting a 400 MHz counter using 480 MHz underestimates elapsed time by
approximately 16.7%. Firmware major version alone does not identify this correction.
12.4 0x8001..0x8004 MCAN Channel Config
Each channel has the same structure. 0x8001 corresponds to CAN0, and 0x8004 corresponds to CAN3.
The subindices are grouped by function below. Most applications only need to configure SI15/16/19/20 and the required FIFO/Queue parameters; filters, TSU, and timeout settings are advanced options.
SI
Address (CH0 example)
Name
Type
Access
Default
Description
1
0x8001:01
Apply command
U8
RW
0
Write 1 Apply channel configuration
2
0x8001:02
Apply status
U8
RO
0
Recent apply results
3
0x8001:03
Flash command
U8
RW
0
bit0 save, bit1 load, bit2 factory reset
4
0x8001:04
Flash status
U8
RO
0
Recent flash command results
5
0x8001:05
Command sequence
U32
RO
0
Command completion sequence number
6
0x8001:06
Legacy channel policy word
U32
RW
0
Compatibility RX policy word; see precedence below
7
0x8001:07
Bit timing mode
U8
RW
0
0=automatic baud rate solution, 1=manual bit timing
8
0x8001:08
Node mode
U8
RW
0
Normal / Loopback / Listen
9
0x8001:09
Non-ISO enable
U8
RW
0
CAN FD Non-ISO mode
10
0x8001:0A
Transmit pause
U8
RW
0
MCAN transmit pause
11
0x8001:0B
Edge filter enable
U8
RW
0
Edge filter
12
0x8001:0C
Protocol exception disable
U8
RW
0
Disable protocol exception
13
0x8001:0D
Wide message marker enable
U8
RW
0
Extended message marker
14
0x8001:0E
External timestamp use
U8
RW
0
Use external timestamp source
15
0x8001:0F
FD enable
U8
RW
1
1=CAN FD, 0=classic CAN
16
0x8001:10
TDC enable
U8
RW
1
CAN FD transmission delay compensation
17
0x8001:11
Restricted mode disable (legacy name)
U8
RW
0
Actual enable control: 0=restricted mode off; 1=restricted mode on (CCCR.ASM=1). Do not invert the value based on the legacy name.
18
0x8001:12
Disable auto retransmission
U8
RW
0
1=Disable MCAN automatic retransmission
19
0x8001:13
Nominal bitrate
U32
RW
500000
Arbitration section baud rate
20
0x8001:14
Data bitrate
U32
RW
5000000
CAN FD data segment baud rate
21
0x8001:15
Nominal SP min
U16
RW
750
Nominal sample point lower bound, unit 0.1%; use a peer-approved range; exact equality requires a realizable integer solution
22
0x8001:16
Nominal SP max
U16
RW
875
Nominal sample point upper bound, unit 0.1%; use a peer-approved range; exact equality requires a realizable integer solution
23
0x8001:17
Data SP min
U16
RW
750
CAN FD data sample point lower bound, unit 0.1%; use a peer-approved range; exact equality requires a realizable integer solution
24
0x8001:18
Data SP max
U16
RW
875
CAN FD data sample point upper bound, unit 0.1%; use a peer-approved range; exact equality requires a realizable integer solution
25
0x8001:19
Nominal BRP
U16
RW
0
Manual nominal prescaler, valid only when SI7=1
26
0x8001:1A
Nominal TSEG1
U8
RW
0
Manual nominal TSEG1, valid only when SI7=1
27
0x8001:1B
Nominal TSEG2
U8
RW
0
Manual nominal TSEG2, valid only when SI7=1
28
0x8001:1C
Nominal SJW
U8
RW
0
Manual nominal SJW, valid only when SI7=1
29
0x8001:1D
Data BRP
U8
RW
0
Manual CAN FD data prescaler, valid only when SI7=1
30
0x8001:1E
Data TSEG1
U8
RW
0
Manual CAN FD data TSEG1, valid only when SI7=1
31
0x8001:1F
Data TSEG2
U8
RW
0
Manual CAN FD data TSEG2, valid only when SI7=1
32
0x8001:20
Data SJW
U8
RW
0
Manual CAN FD data SJW, valid only when SI7=1
33
0x8001:21
TDC offset
U8
RW
0
0=automatic, not 0=manual TDCO
34
0x8001:22
TDC filter
U8
RW
0
Ignored when Offset=0; otherwise manual TDCF, with zero a valid value
36
0x8001:24
Accept non-match std
U8
RW
0
Standard-frame action when no filter matches
37
0x8001:25
Accept non-match ext
U8
RW
0
Extended-frame action when no filter matches
38
0x8001:26
Reject remote std
U8
RW
0
Whether to reject standard remote frames
39
0x8001:27
Reject remote ext
U8
RW
0
Whether to reject extended remote frames
40
0x8001:28
Ext ID mask
U32
RW
0x1FFFFFFF
Extended ID global AND mask
41
0x8001:29
Std list max
U8
RO
64
Standard software editing capacity, not active hardware capacity
42
0x8001:2A
Ext list max
U8
RO
24
Maximum number of extended filters
43
0x8001:2B
Std current index
U8
RW
0
Current standard filter index
44
0x8001:2C
Ext current index
U8
RW
0
Current extended filter index
45
0x8001:2D
Std entry cmd
U8
RW
0
Standard filter edit command
46
0x8001:2E
Ext entry cmd
U8
RW
0
Extended filter edit command
47
0x8001:2F
Std entry status
U8
RO
0
Standard filter command result
48
0x8001:30
Ext entry status
U8
RO
0
Extended filter command result
49
0x8001:31
Std filter count
U8
RW
0
Number of valid standard filters
50
0x8001:32
Std filter type
U8
RW
0
Standard filter type
51
0x8001:33
Std filter action
U8
RW
0
Action after a standard-frame filter hit
52
0x8001:34
Std filter sync
U8
RW
0
Standard-frame sync message tag
53
0x8001:35
Std ID1
U32
RW
0
Standard filter ID1
54
0x8001:36
Std ID2
U32
RW
0
Standard filter ID2
55
0x8001:37
Ext filter count
U8
RW
0
Number of valid extended filters
56
0x8001:38
Ext filter type
U8
RW
0
Extended filter type
57
0x8001:39
Ext filter action
U8
RW
0
Action after an extended-frame filter hit
58
0x8001:3A
Ext filter sync
U8
RW
0
Extended-frame sync message tag
59
0x8001:3B
Ext ID1
U32
RW
0
Extended filter ID1
60
0x8001:3C
Ext ID2
U32
RW
0
Extended filter ID2
61
0x8001:3D
RX FIFO0 op mode
U8
RW
0
FIFO0 operation mode
62
0x8001:3E
RX FIFO0 size
U8
RW
48
Number of FIFO0 elements
63
0x8001:3F
RX FIFO1 op mode
U8
RW
0
FIFO1 operation mode
64
0x8001:40
RX FIFO1 size
U8
RW
12
Number of FIFO1 elements
65
0x8001:41
RX FIFO0 data size
U8
RW
7
FIFO0 element data size enumeration
66
0x8001:42
RX FIFO1 data size
U8
RW
7
FIFO1 element data size enumeration
67
0x8001:43
RX buffer count
U8
RW
12
Number of RX buffer elements
68
0x8001:44
RX buffer data size
U8
RW
7
RX buffer element data size enumeration
69
0x8001:45
TX FIFO queue mode
U8
RW
0
Normalized to FIFO (0) on Apply; Queue is not selectable
70
0x8001:46
TX FIFO queue size
U8
RW
32
Number of TX FIFO/Queue elements
71
0x8001:47
TX dedicated buffer count
U8
RW
0
Normalized to 0 on Apply; dedicated TX allocation is not supported
72
0x8001:48
TX buffer data size
U8
RW
7
TX element data size enumeration
73
0x8001:49
TX event FIFO size
U8
RW
32
Number of TX Event FIFO elements
74
0x8001:4A
Timestamp selection
U8
RW
0
MCAN timestamp selection
75
0x8001:4B
Timestamp prescaler
U8
RW
0
MCAN timestamp prescaler
76
0x8001:4C
TSU enable
U8
RW
0
Enable TSU
77
0x8001:4D
TSU use external timebase
U8
RW
0
Use external timebase
78
0x8001:4E
TSU capture on SOF
U8
RW
0
SOF capture
79
0x8001:4F
TSU enable 64-bit
U8
RW
0
64 bit TSU
80
0x8001:50
Pad2
U8
RO
0
Reserved
81
0x8001:51
TSU prescaler
U16
RW
1
TSU prescaler, min 1
82
0x8001:52
TSU external timebase source
U8
RW
0
External timebase source
83
0x8001:53
TSU TBSEL option
U8
RW
0
TBSEL option
84
0x8001:54
Timeout enable
U8
RW
0
Enable MCAN timeout
85
0x8001:55
Timeout select
U8
RW
0
Timeout selection, 0..3
86
0x8001:56
Pad3
U16
RO
0
Reserved
87
0x8001:57
Timeout period
U16
RW
0
Timeout period
5E two-stage clock routing.0x800n:52 selects TBIN0…TBIN3 (0…3); :53 selects the source for that shared selector, with 0x20 denoting PTPC0. Channels may share a selector only with the same source. The routing revision tracks successfully applied channels with external TSU enabled.
A conflict returns ApplyStatus=3 before closing or reinitializing the old hardware channel; requested SDO values remain editable and must be corrected before applying again. Disabling TSU or closing a channel releases its claim.
Disabled requests do not change a source used by other active channels. To change a shared source across channels, disable their TSUs first, configure the new source, then apply and check each channel. Source routing support does not imply PDO timestamp conversion support for every source.
This two-stage rule does not apply to single-stage SoCs; 6E requires separate validation.
Channel commands and status:
Apply, Flash and system Reboot commands are RW in the OD. Reading a command does not confirm completion. Channel Apply/Flash Status=2 means busy; the command may already read zero. Poll with a bounded timeout until status is no longer 2, then check the final result and, where needed, Command sequence. Do not overwrite channel configuration while a command is busy.
Caution: channel reconfiguration does not guarantee lossless traffic. CAN channel Apply can cancel unfinished transmissions and discard received data not yet uploaded, even with unchanged parameters. Status=0 confirms configuration completion, not business delivery. Check business sequence numbers and the per-channel objects starting at 0x9020: RXDroppedTotal (:05), TXStaleDropped (:0C), and hardware cancellation counters (:15–:19). Their scopes differ; do not add cancellation requests to their confirmation results as separate lost frames. Suspend new commands and account for outstanding requests with a bounded timeout before configuration; resume with new commands afterwards, without automatically replaying old motion commands.
0x8001:06 remains a functional compatibility policy word. Bits0..3 select the RX budget (0..8; 0 uses the firmware limit), bits4..5 the RX budget policy, bits6..7 the depth (0/1/2/3 = 32/8/16/24), bits8..9 the RX drop policy and bits10..11 the critical-frame policy; other bits must be zero.
Prefer 0x8021..0x8024 for new applications. An enabled, successfully applied explicit policy takes precedence and updates the compatibility word. Applying Enable=0 returns to the compatibility policy. Do not alternate both interfaces for the same configuration.
Field
Value
Description
Apply command
0
no-op
Apply command
1
Apply the current SDO configuration to the runtime MCAN channel
Apply status / Flash status
0
OK
Apply status / Flash status
1
fail
Apply status / Flash status
2
busy; wait for final status
Apply status / Flash status
3
build fail, configuration conversion failed
Apply status / Flash status
4
apply runtime fail, MCAN restart or driver application failed
Flash command bit0
1
Save current channel configuration to Flash
Flash command bit1
1
Load channel configuration from Flash
Flash command bit2
1
Restore the channel to factory default configuration
Save and load sequence
Nonzero 0x800x:03 save/load/default commands are accepted only in PREOP with cyclic process data stopped. SAFEOP/OP requests return SDO Abort 0x08000022; they are not deferred to a future shutdown. An accepted but not yet executed command fails if the state changes. Remain in PREOP until Flash status leaves busy and reports success before resuming traffic.
Configure the channel and filter table, Apply, and confirm success. Then write 0x800x:03=1 to save and check the final 0x800x:04 status. A filter entry's save current command updates the edit table; it does not save to Flash.
Write 0x800x:03=2 to load explicitly and confirm Flash status 0. Read back the parameters and required filter entries, then Apply and confirm success before resuming traffic. Successful loading does not replace verification of hardware application.
Explicit loading can return Flash status=1 when the channel has no valid saved configuration. This status alone does not distinguish absence of saved configuration from other load failures, nor does it mean that the device cannot boot. At startup, a channel without valid saved configuration uses product defaults.
Saving covers that channel's CAN configuration and active filter entries, not the entire object dictionary. In particular, the master must reconfigure and Apply the explicit 0x802x data-path policy after restart. Successful loading after a normal restart does not qualify behavior during interrupted Flash writes.
Node mode value:
value
description
0
Normal, normal sending and receiving
1
Internal loopback; no physical bus transmission
2
External loopback; transmits on the physical bus and receives its own frames. Do not stimulate connected actuators
3
Listen only; transmits neither data, ACK nor error frames. Cannot serve as the only acknowledging node
Manual bit timing uses SI7=1; SI7=0 enables automatic solving. Automatic mode solves integer BRP/TSEG/SJW values from the MCAN source clock, bitrate and sample-point range. Units are 0.1% (765 means 76.5%), but actual sampling is quantized by integer time quanta. Set min=max only when a solution is known to exist; otherwise use a peer-approved range and verify the actual timing. Do not transmit after failed Apply. Manual mode uses SI25..32: Nominal BRP is U16; Data BRP is U8.
Unsolvable timing and recovery
The automatic-timing preflight revision checks solvability before constructing runtime configuration, changing filters or closing the previous port. An unsolvable request still returns ApplyStatus=4, but preserves previous runtime and hardware settings.
Requested SDO fields remain available for correction; they are not active readbacks. Before this revision an unsolvable request may leave INIT set, and data-phase failure may clear parts of the Message RAM layout. Restore known-valid parameters and Apply again.
Other failures, including clock or hardware initialization errors, require separate diagnosis: this is not a general rollback guarantee.
The existing maintenance boundary may still discard a not-yet-triggered pending DC requests batch and count it as a maintenance drop; preservation of configuration does not mean preservation of queued business commands.
The first released version containing this revision is identified in release notes.
Filter global fields:
SI
Address (CH0 example)
Name
Type
Access
Description
36
0x8001:24
Accept non-match std
U8
RW
Processing strategy when the standard frame misses the filter
37
0x8001:25
Accept non-match ext
U8
RW
Processing strategy when the extended frame misses the filter
38
0x8001:26
Reject remote std
U8
RW
Whether to reject standard remote frames
39
0x8001:27
Reject remote ext
U8
RW
Whether to reject extended remote frames
40
0x8001:28
Ext ID mask
U32
RW
Extended ID global mask
41
0x8001:29
Std list max
U8
RO
Standard software editing capacity, currently 64; active capacity depends on the product RAM layout
42
0x8001:2A
Ext list max
U8
RO
Maximum number of extended filters, currently 24
Filter editing window:
SI
Address (CH0 example)
Name
Type
Access
Description
43
0x8001:2B
Std current index
U8
RW
Current standard filter index
44
0x8001:2C
Ext current index
U8
RW
Current extended filter index
45
0x8001:2D
Std entry cmd
U8
RW
Execute command on the current standard filter index
46
0x8001:2E
Ext entry cmd
U8
RW
Execute command on the current extended filter index
47
0x8001:2F
Std entry status
U8
RO
Standard filter command result
48
0x8001:30
Ext entry status
U8
RO
Extended filter command result
49
0x8001:31
Std filter count
U8
RW
Number of valid standard filters
50
0x8001:32
Std filter type
U8
RW
Standard filter type
51
0x8001:33
Std filter action
U8
RW
Action after a standard-frame filter hit
52
0x8001:34
Std filter sync
U8
RW
Standard-frame sync message tag
53
0x8001:35
Std ID1
U32
RW
Standard filter ID1
54
0x8001:36
Std ID2
U32
RW
Standard filter ID2
55
0x8001:37
Ext filter count
U8
RW
Number of valid extended filters
56
0x8001:38
Ext filter type
U8
RW
Extended filter type
57
0x8001:39
Ext filter action
U8
RW
Action after an extended-frame filter hit
58
0x8001:3A
Ext filter sync
U8
RW
Extended-frame sync message tag
59
0x8001:3B
Ext ID1
U32
RW
Extended filter ID1
60
0x8001:3C
Ext ID2
U32
RW
Extended filter ID2
Entry cmd:
value
description
0
no-op
1
load current, read the selected entry into the editing window, replacing unsaved window changes
2
save current, write the editing window to the selected software RAM entry; no automatic Apply or Flash write
3
clear current, clear only the selected entry: type=3, action/sync/ID1/ID2=0; other entries and count remain unchanged
4
Reserved, unsupported; use the channel Flash command instead
Entry status:
value
description
0
OK
1
index is invalid
2
command invalid
After successful completion, Entry cmd returns to 0 and Entry status=0. Read status to determine success; a zero command alone is insufficient. Editing the software table, applying the channel and saving to Flash are separate operations. Saving an entry alone neither updates hardware filtering nor guarantees retention across power loss.
After a successful channel Apply, both standard and extended filter current indices reset to 0. This does not delete other saved entries. To verify an entry, select its index again, execute entry cmd=1, and read status plus type/action/sync/ID1/ID2. Retention of the editing index is not evidence of effective hardware filtering.
Typical filter configuration process:
Read Std list max / Ext list max for software editing capacity, then check the product RAM layout for simultaneous active capacity; these limits are not interchangeable.
Write Std filter count or Ext filter count.
Write current index.
Write filter type/action/sync/id1/id2.
Write entry cmd = 2 to save the current index.
Repeat to configure multiple entries.
Write Apply command = 1 to make the channel configuration take effect.
To retain configuration across power cycles, stop cyclic traffic, confirm PREOP, write Flash command bit0 = 1, and wait for the final Flash status.
Load/save/clear require current index < filter count, not merely an index below list capacity. With count=0, entry0 cannot be operated on. To clear an inactive entry, temporarily set count=1 in PREOP, clear entry0, then restore count=0 and Apply. Unmatched frames still pass if the global non-match action accepts them; an allowlist therefore also requires global non-match rejection. Filters control hardware reception, not transmit routing.
RAM/FIFO/Buffer fields:
Reducing a nonzero filter count clamps an out-of-range current index to count-1. Read back or explicitly select the intended index before the next entry command to avoid editing a different entry.
Caution — editable capacity is not active hardware capacity.Std list max=64 describes the software editing table, not 64 simultaneously active rules.
The current four-channel 5E layout allocates 48 standard and 24 extended slots; the eight-channel 6E configuration allocates 16 standard and 8 extended slots (separate 6E hardware qualification is required). Check SIDFC/XIDFC as well.
Standard entries 48..63 remain editable but cannot be activated together in the current 5E layout. The capacity-protection revision rejects an excessive count during configuration construction with ApplyStatus=3, without closing the previous hardware channel.
The requested count remains available for correction and another Apply. Earlier firmware may return 4 and leave the channel in INIT; restore a valid count and Apply again. Successful SDO download alone does not establish hardware activation.
Consult release notes for the first released firmware containing this revision.
Note: the SI column below is decimal. Many master tools display subindices in hexadecimal. The commonly mentioned 0x41/0x42/0x44 are decimal 65/66/68, corresponding to the RX FIFO0, RX FIFO1, and RX Buffer element data sizes. These fields only define the maximum data bytes stored in one MCAN Message RAM element. They do not define the CAN FD DLC inside a PDO packet; the actual DLC is still carried by the frame packet in RxPDO/TxPDO.
SI decimal
SI hex
Name
Type
Access
Recommended default
Description
61
0x3D
RX FIFO0 op mode
U8
RW
0
FIFO0 mode: 0=blocking, rejects new frames when full; 1=overwrite, replaces the oldest frame when full; see diagnostic limits below
62
0x3E
RX FIFO0 size
U8
RW
48
Number of FIFO0 elements; normally used for common receive frames
63
0x3F
RX FIFO1 op mode
U8
RW
0
FIFO1 mode: 0=blocking, 1=overwrite; same full-FIFO and diagnostic semantics as FIFO0
64
0x40
RX FIFO1 size
U8
RW
12
Number of FIFO1 elements; can be used with filters for selected frames
65
0x41
RX FIFO0 data size
U8
RW
7
FIFO0 element data size enumeration; use 7 for 64B CAN FD
66
0x42
RX FIFO1 data size
U8
RW
7
FIFO1 element data size enumeration; use 7 for 64B CAN FD
67
0x43
RX buffer count
U8
RW
12
Number of RX buffer elements; used directly only when filters route to RXBUF
68
0x44
RX buffer data size
U8
RW
7
RX buffer element data size enumeration; use 7 for 64B CAN FD
69
0x45
TX FIFO queue mode
U8
RW
0
Hardware encodings: 0=FIFO, 1=Queue; current firmware fixes the effective value at 0
70
0x46
TX FIFO queue size
U8
RW
32
Number of TX FIFO/Queue elements; current recommendation is to use TX FIFO for all TX resources
71
0x47
TX dedicated buffer count
U8
RW
0
Fixed at 0 on Apply; dedicated TX allocation is not supported
72
0x48
TX buffer data size
U8
RW
7
TX FIFO/Buffer element data size enumeration; use 7 for 64B CAN FD
73
0x49
TX event FIFO size
U8
RW
32
Requested TX Event FIFO count; Apply limits it to the effective total TX count and hardware limit. Zero selects the effective total TX count. Read back the effective value
TX resource normalization example: requesting FIFO count 8, Dedicated count 2 and Queue mode 1 produces FIFO mode 0, FIFO count 10 and Dedicated count 0 after Apply. A TX Event FIFO request of 16 then becomes 10. These changes do not indicate lost configuration or support for Queue/Dedicated operation.
RX FIFO diagnostic limits
RX FIFO diagnostic limits: in blocking mode, a new frame that cannot enter a full FIFO produces an RF0L/RF1L loss event. Replacing the oldest frame in overwrite mode does not set these flags. The full bits in RXF0S/RXF1S describe occupancy at the instant of the read, not cumulative losses.
Lost flags and IR events are latched and repeated events may coalesce; software-observed event counts are not exact missing-frame counts. 0x902x:05 counts software RX drops, not all hardware FIFO losses.
Verify business sequences, counts and payloads end to end; zero software drops or hardware lost flags do not prove that no overwrite occurred. These FIFO semantics do not directly apply to dedicated RX Buffer NDAT flags.
Complete bursts with a one-element FIFO do not prove that full-FIFO loss or overwrite was exercised.
data size uses the HPM MCAN driver enumeration, not a byte count. The table below describes hardware encodings; the effective firmware rules follow the table. Hardware capability does not imply that every layout is selectable in this product.
Enum
Maximum data bytes
Typical use
0
8B
Used for Classic CAN by current firmware; CAN FD does not use 8B elements
1
12B
CAN FD 12B
2
16B
CAN FD 16B
3
20B
CAN FD 20B
4
24B
CAN FD 24B
5
32B
CAN FD 32B
6
48B
CAN FD 48B
7
64B
CAN FD 64B, current recommended default
Element width and CAN payload length
Current firmware fixes Message RAM element widths by frame mode: 64B (encoding 7) for CAN FD and 8B (encoding 0) for Classic CAN. This applies to RX FIFO0, RX FIFO1, RX Buffer and TX Buffer.
Subindices 0x41/0x42/0x44/0x48 are requested fields: accepting a valid encoding does not mean that the hardware adopts that width. Apply normalizes these fields according to the frame mode.
Writing encoding 0 therefore does not reduce CAN FD hardware elements, even when all transmitted payloads are 8B. The PDO frame DLC still determines the actual CAN payload length.
Capacity and active configuration
The Message RAM budget depends on effective element counts and widths. The CAN FD default is RXFIFO0=48, RXFIFO1=12, RXBUF=12, TXFIFO=32, TXBUF=0, TXEVENT=32, with 64B elements in all four data regions.
Counts are also subject to product/mode limits, default-layout conversion and TX resource merging. SDO range rejection, request normalization and runtime Apply failure are distinct outcomes.
Apply status=0 confirms that the normalized configuration was applied; it does not guarantee equality between every requested field and its hardware register.
Validate a non-default layout using effective FIFO counts, RXESC/TXESC and actual traffic, rather than calculating capacity from requested readback alone.
TX FIFO and dedicated RX Buffer
Current TX resources use FIFO exclusively. Requests 0x45=1 and 0x47>0 are accepted but normalized to zero on Apply; this does not enable Queue or Dedicated TX.
In the current CAN FD layout, requested FIFO and Dedicated counts are combined into FIFO subject to the product limit: FIFO8 + Dedicated2 becomes FIFO10 + Dedicated0, not FIFO8. Do not design ID-priority scheduling around these requests.
Dedicated RX Buffer is separate: filter action 7 selects an RX buffer using the low six bits of ID2, which must be below the effective buffer count. A buffer slot is not a multi-frame FIFO. Pending diagnostics exclude its NDAT slots; inspect NDAT and actual reception separately.
Dedicated RX Buffer data retention
Dedicated RX Buffer must not be treated as a multi-frame queue for one ID, or assumed to always retain the newest frame. In the HPM5E31 unread-slot bench comparison, eight consecutive frames with the same ID left the first frame in the slot while NDAT remained set.
Further data for that slot requires read/release service. NDAT=1 does not mean eight pending frames and cannot quantify losses. Use RX FIFO with validated capacity and service budgets when each consecutive feedback frame must be retained.
Confirm other chip variants against their corresponding hardware behavior.
!!! caution "RX Buffer targets must remain inside the allocated partition"
text
- Standard and extended action-7 rules use zero-based targets: 12 allocated buffers allow slots 0..11. A six-bitencoding can represent 63 but does not establish an allocation of64buffers. Recheck all active candidate buffer rules when reducing `0x43`.
- The partition-protection revision validates targets against the normalized allocation before closing the previous MCAN port. An invalid target returns `ApplyStatus=3` and preserves the previous hardware configurationand runtime layout. Editing requests remain available; correct them and Apply again.
- Unsupported action-7debug-message location/event encodings are also rejected at this stage. Earlier firmware may accept invalid targets; donot send matching frames to an out-of-partition target as a configurationcheck. Consult release notes for the first released revision.
- Saving an entry does not establish a valid target.
Timestamp/TSU/Timeout fields:
SI
Address (CH0 example)
Name
Type
Access
Description
74
0x8001:4A
Timestamp selection
U8
RW
MCAN timestamp selection, 0..2
75
0x8001:4B
Timestamp prescaler
U8
RW
MCAN timestamp prescaler
76
0x8001:4C
TSU enable
U8
RW
Enable TSU
77
0x8001:4D
TSU use external timebase
U8
RW
Use external timebase
78
0x8001:4E
TSU capture on SOF
U8
RW
SOF capture
79
0x8001:4F
TSU enable 64-bit
U8
RW
64 bit TSU
80
0x8001:50
Pad2
U8
RO
Reserved
81
0x8001:51
TSU prescaler
U16
RW
TSU prescaler, min 1
82
0x8001:52
TSU external timebase source
U8
RW
External time base source
83
0x8001:53
TSU TBSEL option
U8
RW
TBSEL option
84
0x8001:54
Timeout enable
U8
RW
Enable MCAN timeout
85
0x8001:55
Timeout select
U8
RW
timeout select, 0..3
86
0x8001:56
Pad3
U16
RO
Reserved
87
0x8001:57
Timeout period
U16
RW
timeout period
TDC Strategy:
CAN FD default TDC enable=1.
When the data segment is less than 5M, the master can turn off TDC through SDO.
Automatic bit timing (Bit timing mode=0) ignores TDC enable=0 and forces TDC on at 5 Mbit/s and above. Manual bit timing (Bit timing mode=1) uses the request without forcing TDC on. Keep TDC enabled for high-speed operation and verify actual communication.
Classic CAN disables TDC; CAN FD data-phase compensation is not used in that mode.
Configuration
Effective TDCO
Effective TDCF
Offset=0, any Filter request
Calculated from actual data timing
Same as automatic TDCO; Filter request is ignored
Offset=1..127
Requested Offset
Requested Filter, including zero; clamped to127 above127
Offset=128..255
Clamped to127
Requested Filter clamped to127
TDC units and effective values
Both defaults are zero, but these are not independent automatic selectors. The HPM5E driver uses DBTP.DTSEG1 + 2 for the automatic value (DTSEG1 is the encoded register field). TDCO/TDCF are 7-bit fields. Manual values use minimum time quanta, mtq (MCAN kernel-clock cycles), not percentages.
TDCF limits the earliest acceptable SSP position during delay measurement; the filter window is enabled when TDCF is greater than TDCO. A nonzero Filter request alone does not enable this window, and this mechanism is unrelated to CAN ID acceptance filtering.
The 0/0 automatic mode is the preferred starting point. SDO requests can differ from effective hardware values: requests 128/255 remain readable while TDCR contains127/127. Use register diagnostics 0xA000..0xA003 to check DBTP(0x0C).TDC for enable state and TDCR(0x48) for effective parameters.
TDCR can retain old values while TDC is disabled; its contents alone do not prove that compensation is active. Register acceptance and short-cable communication do not qualify propagation-delay margins for other cable lengths, transceivers or temperatures.
12.5 0x9000..0x9003 MCAN Channel Information
These objects are RO and use the S2M direction. The master reads them when it needs detailed channel status beyond the compact PDO header state.
SI
Address (CH0 example)
Name
Type
Access
Description
1
0x9000:01
ECR raw
U32
RO
Error count register
2
0x9000:02
PSR raw (legacy name)
U32
RO
Current EW/EP/BO; LEC/DLEC preserve the last observed error between background diagnostic samples
3
0x9000:03
IR raw
U32
RO
Interrupt bit snapshot
4
0x9000:04
RXF0S raw
U32
RO
RX FIFO0 status
5
0x9000:05
RXF1S raw
U32
RO
RX FIFO1 status
6
0x9000:06
TXFQS raw
U32
RO
TX FIFO/Queue status
7
0x9000:07
TXEFS raw
U32
RO
TX Event FIFO status
8
0x9000:08
HPMS raw
U32
RO
High priority message status
9
0x9000:09
PDO channel status (legacy name)
U16
RO
Actually (TEC<<8)|REC, not the PDO channel bitmap
10
0x9000:0A
RX pending count
U16
RO
Hardware FIFO0 + FIFO1 + software RX cache; not capped at seven
11
0x9000:0B
TX pending count
U16
RO
Software TX queue count, not an uncapped version of PDO hardware TX pending
12
0x9000:0C
Channel event flags (legacy name)
U16
RO
Low 16 bits of current IR OR ISR-latched event history; history is cleared by explicit diagnostic reset, not a PDO warning/pressure bitmap
13
0x9000:0D
RX dropped counter
U32
RO
Cumulative software RX cache drops; does not include all hardware loss
14
0x9000:0E
TX backpressure counter
U32
RO
Software TX full/unwritable events plus queue drops; not unique lost frames
15
0x9000:0F
Bus off counter
U32
RO
BusOff migration count
16
0x9000:10
Detail sequence (legacy name)
U32
RO
Legacy packed RX cache diagnostics, not an incrementing sequence; prefer 0x902x
12.5.1 SDO quantities, refresh, and cycle correlation
SI values in the tables are decimal. Command subindices are hexadecimal: SI 10 is :0A, and
SI 16 is :10. On four-channel products CAN0..3 use 0x9000..0x9003 and 0x9020..0x9023.
Slave position is independent of CAN channel index. Check the model-specific dictionary for
products with additional channels.
Question
CAN0 hexadecimal index:subindex
Scope
RX count beyond seven
0x9000:0A, U16
Received frames still in hardware FIFOs or software cache
Software cache current count / peak
0x9020:01/:02, U16
Excludes hardware FIFO; peak is not current occupancy
Most recent service drain
0x9020:03, U16
Transfer quantity, not queue remainder
Most recent TxPDO consumption
0x9020:09, U16
Consumption statistic, not a host receipt acknowledgement or complete PDO frame count
Software RX drop increment
0x9020:05 or 0x9000:0D, U32
Same software cache loss source; do not add the two counters
Hardware RX state
0x9000:04/:05, U32
RXF0S/RXF1S fill levels and message-lost status
Software TX queue count
0x9000:0B, U16
Evaluate separately from PDO hardware TX pending
The complete runtime diagnostic snapshot has a target refresh interval of 5 ms;
the service budget may defer a refresh. Bus-off recovery operates independently of
the full snapshot refresh. Refresh is not
guaranteed every EtherCAT cycle or on every SDO upload. Multiple reads are not a simultaneous snapshot;
unchanged values do not prove stalled processing. 0x900x:10 is not a snapshot sequence and
cannot establish freshness or associate a sample with PDO seq_begin.
!!! warning "An SDO snapshot cannot reconstruct a previous PDO cutoff"
Pending=0 in a later snapshot does not rule out backlog at an earlier pressure sample.
Pending=20 does not prove that all twenty frames missed the same PDO: some may have arrived
after publication. Exact remainder and residence time at publication N require device-side
boundary records correlated with its sequence/time, or independently correlated CAN timestamps.
Standard SDOs do not provide this per-cycle historical latch.
The current legacy 0x900x:10 encoding is: bits 0..7 software RX cache count capped at 255;
bits 8..15 cache high watermark capped at 255; bits 16..23 last service drain; bits 24..27 last
TxPDO consumption capped at 15; bits 28..31 recovery error code capped at 15. The legacy name
does not define a new protocol feature. New integrations should use separate 0x902x fields,
not this value as a frame sequence or timeline.
12.5.2 Cutoff, publication and diagnostic accounting
Error state and recovery criteria
Source
Field
Meaning and limits
0x900x:01
TEC: bits7..0; REC: bits14..8; RP: bit15
Error counters at diagnostic sampling. RP indicates the receive Error Passive threshold; the 7-bit REC alone cannot establish receive-side recovery
0x900x:01
CEL: bits23..16
Sampled hardware error-logging counter. Hardware reads have a clearing side effect; this is not a cumulative software frame-loss counter. Do not subtract successive SDO values to obtain total faults
0x900x:02
EP: bit5; EW: bit6; BO: bit7
Sampled local Error Passive, Error Warning and Bus-off states; distinct from the transmitting node's ESI in a received frame
CAN FD frame control word
X/ESI
A property of the frame describing its transmitter's error state, not a TEC/REC snapshot of the receiving channel
Successful Apply does not guarantee zero TEC/REC or immediate exit from Error Passive. Evaluate communication recovery separately from error-state recovery: valid frames can carry ESI. Retain missing/duplicate-frame and counter evidence from the fault, then verify convergence using safe application traffic. No fixed recovery delay is guaranteed, and clearing statistics is not recovery.
Automatic recovery preserves the current attempt count, backoff and degraded protection. Explicitly reapplying the channel configuration may reset operational protection without clearing cumulative drop history. This differs from clearing diagnostic counters only.
Diagnostic clear, data-path Apply and channel Apply (channel 0 shown):
Operation
Cumulative drop history
Latched degradation
Purpose
Write 0x20 to 0xB000:04: clear runtime diagnostics
Cleared; wait for 0x9010:0C to advance before starting a new measurement interval
Preserved
Establish a new statistics baseline, without channel recovery
Write 1 to 0x8021:02: data-path Apply
Preserved
Preserved
Commit budgets, cache and overflow policies without reinitializing the CAN channel
Write 1 to 0x8001:01: CAN channel Apply
Preserved
Operational protection is released after successful reapplication
Reapply CAN channel configuration; confirm completion with 0x8001:02=0
After software RX pressure subsides, new data can still be received while degradation remains set. Neither diagnostic clear nor data-path Apply substitutes for CAN channel recovery. Stop affected business traffic and drain pending data before channel Apply: it can discard old business buffers and does not guarantee lossless reconfiguration with outstanding traffic. A persisting physical fault can cause the channel to enter a fault or protected state again.
Automatic recovery does not cancel other accepted DC requests solely to recover one channel. Explicit reconfiguration cancels affected untriggered batches. Maintenance waiting is not a failed recovery attempt. Transmission on the faulty channel is not guaranteed, and maintenance can affect PDO response; diagnose physical faults, overruns and WKC separately.
State during automatic recovery
After automatic/aggressive recovery starts, PSR.BO=1 with CCCR.INIT=0 indicates that hardware recovery is still in progress; software does not repeatedly close and reopen the channel. BO may remain asserted during this interval.
Completion depends on actual bit timing and bus-idle conditions, not a fixed number of software service calls or Recovery attempts. A new BO that sets INIT is admitted according to the configured policy.
Bus-off events and reset
After explicit Apply clears operational protection, the continuing fault's BO=1/INIT=0 recovery interval neither advances the degraded threshold nor relatches the cleared protection. Clearing INIT alone does not release existing protection.
0x900x:0F and 0x902x:0D count BO episodes observed by diagnostic sampling, not hardware error frames. One continuously observed BO is counted once across channel close/open or Apply; another event requires an observed BO=0 followed by BO=1.
A fault that begins and ends between samples may be missed. Explicit statistics clear resets the count but preserves the active BO episode latch and recovery protection. The same continuing BO is not counted again: another increment requires an observed BO=0 followed by BO=1.
A zero count therefore does not establish that the channel is free of Bus-off; also inspect current channel status, recovery protection and the last error. Differences across clear boundaries do not establish additional physical faults.
After requesting statistics clear with 0xB000:04=0x20, wait for 0x9010:0C to advance before establishing a new counter baseline; also check the channel's 0x902x:1C cancellation-statistics epoch.
Under manual recovery policy, BO=1, a zero fault count and last recovery error=4 can coexist after a clear. This combination means that statistics were cleared while the fault remains active; it does not indicate a new fault or completed recovery.
Counter and business-data lifetimes
Counters and business queues have separate lifetimes. Automatic recovery cancels old transmit requests and discards old queued transmit work without clearing software-drop totals, high-water marks, or historical service maxima.
Automatic recovery preserves the active channel configuration and received data; it does not apply configuration changes that have not passed Apply. Recovery is deferred while cancellation of old transmit requests is unconfirmed, without increasing the recovery-attempt count. Normal receive-capacity, overflow and discard policies still apply: preserving received data does not guarantee loss-free operation during a fault.
Explicit channel configuration Apply discards the affected old business buffers, unlike automatic fault recovery, which preserves received data.
Discarded RX ring entries and stable handoff frames increment 0x902x:05/:06; critical frames are also included in :08. Cleared software TX entries increment TX dropped/stale dropped.
These counters do not cover hardware FIFO contents lost during reinitialization or every scheduler stage, and are not a device-wide loss total. Explicit diagnostic clear neither discards business frames nor releases protection; 0x9010:0C advances after all deferred clears complete.
Reboot starts a new counter baseline.
TxPDO capacity limitation is counted once per successfully published limited image: STREAM_TRUNCATED/overflow is set, and 0x8010:10 (PDOOverflowCounter) and the corresponding profile error statistics increase. Failed publication retries do not repeatedly count that event. Unselected frames remain queued; software-drop counters increase only on actual removal or rejection. Profile counters do not replace MCAN RX-drop or TX-backpressure diagnostics.
Multiple SDO objects are sampled independently, not as a simultaneous snapshot. PDO pending and
0x900x:0A exclude dedicated RX-buffer NDAT slots; zero does not prove all receive storage is empty.
0x900x:10 and 0x902x:01 include retained receive data; a configured queue depth of 32 may
temporarily report 33. This does not enlarge the configured queue or change discard and critical-frame
policies. Session/layout clearing discards affected old traffic; diagnostic reset preserves traffic.
Observable boundary
Public contract
Receive cutoff
Only processed and selected frames enter this image; hardware arrival before Sync1 alone is insufficient
Pending sample
Taken before publication and includes frames carried by this image; not the remainder after publication
Successful publication
Updates consumed quantities and the STATUS_CHANGED baseline; does not prove host receipt
Unsuccessful publication
Not counted as delivery; repeated PDO sequences are not new feedback
SM3 read completion
Does not trigger an additional DC publication
Ordering
No global wire-order guarantee across different FIFOs and dedicated RX buffers
In 0x900x:02, status bits reflect the current sample; LEC/DLEC preserve the last observed error code 1..6 within the diagnostic interval. This is not a complete error log or a single raw PSR read. Unobserved transient errors cannot be reconstructed. ECR.CEL is a read-cleared, saturating hardware interval counter with a maximum of 255, not a lifetime total.
SDO (hexadecimal)
Source and unit
0x9010:04
RxPDO header/CRC/frame-structure/channel/sequence validation errors; excludes bad schedule (16) and TX congestion. Read 0x8011:0E/:0F for scheduling format errors; zero here does not establish that all requests were valid.
0x9010:05
DC staged-batch replacement, session-related rejection or failure events, not CAN-frame count; ordinary DC image age is not an independent expiry condition
0x9010:0C
Increments after all deferred channel diagnostic resets have completed and background diagnostics refresh
0x900x:0C
Current IR OR latched ISR history, low 16 bits; explicit reset clears history
0x902x:05/:06/:07
RX total drops / existing-entry removals / rejected new entries; existing removals include invalidated layouts
0x902x:08
Critical-frame subset of the drops above; do not add it again
0x902x:09/:0A
Last/max successfully committed publication count, not host read acknowledgement
Counts can increase immediately after reset. Do not compare deltas across a reset epoch; ordinary
32-bit counters wrap naturally. Separate hardware FIFO/Buffer sources do not guarantee a single
global CAN arrival order. The current firmware uses TX FIFO and does not expose hardware priority Queue as a selectable mode; see the channel configuration rules.
Publication has no receive-drain budget or receive-drain operation. Foreground RX work has a 50 μs start-budget ceiling,
also constrained by per-channel frame budgets and any stricter configured service budget. Time is
checked between frames: the active frame and cleanup must finish. These bounds are not measured
ISR WCET, PDO-capacity or closed-loop-latency guarantees.
12.6 Manufacturer maintenance interfaces
!!! danger "Non-public interfaces"
Register access, factory maintenance, and persistent-storage repair are not public product APIs. Never modify controller registers or device storage through SDO at a customer site. Use the official service process for recovery or advanced diagnosis.
12.7 0xF000 Device Objects
The master must read the 0xF000 capability object before selecting the PDO profile.
The object is RO and the direction is S2M. It is used by the master to identify the device capabilities, version and protocol upper limit.
SI
Address (CH0 example)
Name
Type
Access
Default
Description
1
0xF000:01
Device type
U8
RO
runtime
Product type: 0=ECAN-Lite; other values identify customized models
2
0xF000:02
Channel count
U8
RO
4
MCAN channel count
3
0xF000:03
Capability version
U16
RO
0x0001
Capability object version
4
0xF000:04
Hardware revision
U32
RO
runtime
Device hardware revision; returns 0 when unavailable
5
0xF000:05
Firmware version major
U16
RO
runtime
Public version high word: bits 11..8 major, bits 7..0 minor; not a standalone major integer
6
0xF000:06
Firmware version minor
U16
RO
runtime
Public version low word: build number, not the standalone minor integer
7
0xF000:07
Serial number low
U32
RO
runtime
Low 32 bits of the device serial number; returns 0 when unavailable
8
0xF000:08
Serial number high
U32
RO
runtime
High 32 bits of the device serial number; returns 0 when unavailable
9
0xF000:09
PDO header version mask
U16
RO
0x0006
Support header versions 1 and 2
PDO capabilities and upper limits:
SI
Address (CH0 example)
Name
Type
Access
Default
Description
10
0xF000:0A
PDO size base min
U8
RO
1
Minimum low-5-bit 128B base count
11
0xF000:0B
PDO size base max
U8
RO
10
Maximum low-5-bit 128B base count, not the maximum encoded U8 value
Supports fine-grained data-path bypass diagnostics; not for normal applications
13
HEADER_V2
Supports the compact V2 PDO header
Device service flags:
Bit
Description
0
Support FoE firmware update
2
Support configuration persistence saving/loading
4
Support maintenance access-level status
RxPDO reserves the TSF_FULL64 field of the multiplexed dynamic frame and does not change the ordinary CAN frame packet structure:
text
format:u8 = 1
flags:u8 = 0
tag:u16
offset_ns:u32
TSF_NONE follows the operating mode's submission event. TSF_FULL64 format=1 reserves offset_ns within the target Sync0 cycle, preserving PDO order at equal phases. DC creates reservations when releasing the batch, relative to the actual Sync0 used for that release. Small offsets may expire before decoding completes; allow processing margin. Reservations do not bypass output-session, next-PDO revocation or explicit reservation-deadline checks.
Reservation delivery implementation constraints:
The master must first confirm that bit 8 (mask 0x00000100) is set in 0xF000:10, indicating RxPDO TSF scheduled-transmit support.
offset_ns takes the current EtherCAT DC/SYNC0 cycle as a reference. It is recommended to use 100000ns or a larger conservative phase for bring-up first.
The device schedules frames according to the SYNC0 phase. Busy-channel retries are bounded as specified in section 7.4. Reserve sufficient offset_ns margin and monitor lateness, failures and stale drops.
Scheduled sending and direct sending share the CAN sending path; when the channel is congested or sending is abnormal, feedback is provided through PDO status and SDO diagnostic count.
When the master stops, the ESC may retain its last RxPDO image. An image with the most recent sequence is an idempotent no-op, even if its payload changes.
12.8 Comparison of real-time performance between scheduled delivery and direct delivery
Method
Characteristics
Recommended use
No per-frame reservation
SM submits after validation; DC submits at Sync0 or at prepared under an already valid permit, subject to section 12.8 admission and revocation rules
Normal control and cycle-synchronous outputs
Scheduled sending
Releases a CAN frame at offset_ns within a DC/SYNC0 cycle
A stable master cycle that requires a fixed CAN transmit phase
Scheduled sending cannot compensate for an unstable master cycle. Before enabling it,
verify a stable EtherCAT cycle, DC state, and WKC, then validate the transmit phase with a
CAN analyzer under the actual cabling and load.
12.9 DC output release and input latching: 0x1C32 / 0x1C33
These scheduling semantics apply from test version 2.14. Review master phase settings when upgrading.
Object or event
Setting / behavior
Constraint
0x1C32:01
DC output supports 2: Sync0
No Sync1 output execution
0x1C33:01
2: Sync0; 3: Sync1 input latch
The master must also enable the Sync1 generator
0x1C32:04 / 0x1C33:04
Separate output/input synchronization capabilities
Input Sync1 support does not imply output Sync1 support
SM2 output event
Validate header, sequence, enabled CRC and complete frame stream; prepare the command image
Transmission and late-request behavior follow the table below
Sync0
Advance epoch, execute outputs, then publish inputs if Sync0 is selected
One command cycle per Sync0; no subordinated multi-subcycle mode
Sync1
Build/publish TxPDO if Sync1 input latching is selected
Relative offset below the Sync0 period; no fallback on loss
SM3 read completion
Acknowledge consumption only
No additional DC publication
DC uses a complete PDO as the request boundary and Sync0 as the normal transmission event.
The start of an Ethernet frame does not prove that the complete request is available.
Consult the accompanying notes for applicable firmware versions.
Request relative to Sync0
Public behavior
Valid request prepared before target Sync0
Send at Sync0, not earlier
Sync0 during preparation or before request arrival
Send after preparation if that edge has not served another request and this request remains valid; otherwise wait for a later Sync0
Further Sync0 without a newer complete PDO
Crossing a cycle alone does not cancel ordinary pending work; submitted work is never replayed
Next complete PDO
Cancel old unsubmitted work before validating the new image; invalid, duplicate and empty images also replace old work
Stop, synchronization/watchdog fault, maintenance or port fault
Cancel affected pending work under safety rules; no replay after recovery
Each Sync0 serves at most one batch. Empty or invalid images do not transfer an already used
transmission opportunity to a later request. Establish a continuous session with empty PDOs,
then send one image per cycle. Bursts, skipped cycles and differing host time origins require
separate validation. Late transmission is neither unlimited queueing nor an N+1 guarantee.
Sync1 freezes the input feedback image; it does not close an otherwise valid output Sync0 permit.
Commands submitted after that freeze cannot place their replies in the already frozen TxPDO;
account for their feedback in a later publication cycle.
Duplicate sequences do not replay. Ordinary DC frames have no software-queue fallback. Submission failure stops the rest
of that batch; its accepted prefix may still complete. The next complete PDO requests cancellation of
old hardware-pending frames and gates new writes until cancellation completes. Frames already
transmitted on CAN cannot be recalled.
A malformed new image never restores old work. Frames already submitted to CAN may still transmit.
Cancellation is not a hardware emergency stop, a simultaneous cross-channel withdrawal, or a guarantee
that arbitration or transmission already in progress can be recalled. Ordinary DC batches
no longer expire by target edge or image age. Explicit TSF appointments retain their configured
time and retry limits; SM motion-command lifetime is unchanged.
SM motion-command lifetime
0x9010:05 (RxPDO staged dropped) includes replacement, session-related rejection and batch-failure events; it is not an exact CAN loss count. SM retains event-driven operation and bounded queues.
Firmware with SM motion-epoch protection gives commands on motion-designated channels a 1000µs lifetime, starting when a valid RxPDO establishes its epoch before command submission. A new valid command supersedes unsent older commands.
Expiry service still runs when the host stops writing and requests hardware cancellation plus software-queue cleanup; transmitted frames cannot be recalled. This lifetime is not PDO capacity or the host polling interval. Increasing PDO size or reducing request frequency does not extend it.
Asynchronous channels retain their queue policy, while DC uses separate cycle epochs. A fitting RxPDO does not guarantee that all CAN frames can leave within this window: arbitration, frame length, replies and retries consume bus time. Normal WKC does not prove CAN delivery.
Software stale counters do not cover every hardware cancellation; precise loss attribution also needs CAN-side and cancellation evidence. Use 0x902x:15..:19 to distinguish cancellation requests, confirmed cancellations and transmission during cancellation.
Software-drop counts do not cover all hardware cancellations. Separate runtime from stop-time observations and correlate business sequences; transmitted frames cannot be recalled.
Check release notes for applicability of this protection revision. Sync0-only
publication does not wait for the new response and normally carries a previous round's feedback.
With Sync1, responses must arrive before its build cutoff and publication must finish before
the master reads. A 1ms DC period alone guarantees neither a 1ms closed loop nor N+1 delivery.
Configuration and phase examples are in the application manual.
12.9.1 Time parameters and wrapped phases
RxPDO is master output/SM2; TxPDO is master input/SM3. SM sends valid requests and updates available
feedback during process-data service. DC uses Sync0 for requests and the configured input event
for feedback. Reading TxPDO does not trigger an extra DC update. Record host requests, CAN wire
traffic, feedback availability and application receipt as separate events.
Parameter/register
Definition
Not equivalent to
T, 0x09A0
Sync0 period in ns
Processing duration or closed-loop latency
φ0
Sync0 phase relative to the agreed master cycle origin
Exact start of transmission on the CAN bus
Δ, 0x09A4
Forward delay from Sync0 to its Sync1 in ns
Absolute Sync1 phase
φ1
(φ0+Δ) mod T
An event preceding its associated Sync0 when the phase is smaller
Read / collection
Actual ESC access / host receive-process
Sync1 trigger or CAN arrival
For one pair per period, 0<Δ<T; φ0+Δ>=T places Sync1 in the next master cycle. T=1000us, φ0=200us, φ1=100us means Δ=900us, distinct from unsupported Δ>=T subordinated cycles. Sync1 uses a relative interval; its absolute phase need not exceed Sync0.
The IgH setter accepts distinct phases in [0,T) and computes the forward modulo-T offset; configuration and ESC phase checks also accept wrapping. Equal phases and Δ>=T remain rejected.
API support does not qualify every load: verify completeness and N+k at the actual read point without bypassing guards.
Timing reference: Beckhoff ESC Technology, 9.2.3.5.
API reference: IgH ecrt_slave_config_dc.
The fifth parameter supplies relative timing; the sixth sync1_shift parameter is ignored.
Readback must still verify the start-grid behavior of the actual master build.
13. Technical specifications
Parameters
Specifications
Main Control
HPMicro HPM5E00 Series RISC-V MCU
EtherCAT
2-port, 100Mbps, CoE/FoE
CAN
4-channel MCAN
CAN Protocol
CAN 2.0A/B, CAN FD ISO
CAN FD data field
Maximum 64B
Recommended real-time PDO
SM: 128B RxPDO and 256B TxPDO; DC: 384B in each direction; revalidate the target cycle when using a larger PDO
Max PDO
1392B/direction
PDO size unit
128B base blocks with optional 16B fine adjustment
PDO fixed header
Default V1: 24B on HPM5E, 32B on HPM6E; explicit V2: 16B/20B
PDO package
2B control word + CAN ID + optional timestamp + Data
Standard ID Field
2B
Extended ID field
4B
timestamp/reservation packaging
off / delta16, delta32/full64; RxPDO full64 format=1 for SYNC0 phase reservation
TDC
Enabled by default; forced on at 5 Mbit/s and above in automatic bit timing; manual bit timing uses the request
Parameter persistence
Flash configuration image, CRC32
Firmware Maintenance
FoE Support
CPU/mchtmr
CPU 400MHz, mchtmr 24MHz
Master cycle configuration
Configure SM/DC according to application manual chapter 4. Current DC releases outputs at Sync0 and latches inputs at Sync0 or Sync1 (section 12.9); historical 900us results from arrival-triggered transmission do not apply
14. Revision history
Version
Date
Description
V3.0 errata
2026-09-10
Checked hexadecimal SDO addresses, widths and access; corrected CAN modes, sampling windows and capability bits; documented data-path Apply boundaries, policy fields and performance conditions
V3.0
2026-08
Split the combined manual into a technical reference and an application workflow without dropping protocol, object-dictionary, or diagnostic detail; unified the default as V1 with CRC disabled (OptionFlags=0x04), with V2 described in the PDO-header chapter and selected explicitly by the master