FC0001 V2.0 Fault Code Encoding and SDO Reading Guide
| Item | Details |
|---|---|
| Document Number | FC0001 |
| Revision | Rev. 2.0 |
| Applicable Products | JxServo Joint Module / Integrated Communication Module (CAN / CAN FD / CANopen and EtherCAT Slaves) |
| Applicable Firmware | V2.0 and later (each model enables the corresponding diagnostic subset based on hardware sensors and feature configuration) |
| Language | English |
| Last Updated | 2026-11-20 |
This document is intended for master controller developers, host application integrators, and field service engineers. It systematically describes the encoding architecture of the Juxie Intelligent V2.0 unified fault diagnostic system, SDO frame specifications for reading active faults (0x603F:00) and historical diagnostic queues (0x4500:00), and the unpacking rules for severity levels and 4-byte snapshot data (context) carried in CANopen 0x80 + NodeID Emergency (EMCY) Frames.
- Cross-Platform Encoding Consistency: Firmware
V2.0and later adopts a unified[Domain][Sub-item](0xDDSS) diagnostic code definition across platforms—the same diagnostic code always represents the exact same physical anomaly across different Joint Module series or fieldbus interfaces (CANopen / EtherCAT). - Troubleshooting and Extended Configuration References:
- Once a specific
0xDDSSdiagnostic code is identified, refer to FC0002 Joint Module Fault Alarm and Protection Logic Guide for physical trigger conditions, protection action levels (ACT_ESTOP/ACT_DSTOP/ACT_DHOLD), and field hardware troubleshooting steps. - To temporarily mask fault items via
0x4500:01or persist diagnostic configurations to Flash, refer to TN0002 CANopen Communication Feature Extensions or PR0003 EtherCAT Communication and Control Modes Guide.
- Once a specific
1. Overview of Diagnostic Channels and Reading Methods
1.1 Comparison of the Three Diagnostic Data Channels
The drive exposes three complementary diagnostic channels. During system integration, clearly distinguish between active latched faults and the historical diagnostic queue:
| Diagnostic Channel | Data Type & Length | Applicable Bus | Core Returned Content | Lifecycle & Engineering Role |
|---|---|---|---|---|
0x603F:00Active Error Code | UINT16 (2 bytes)Read-only SDO / Optional TxPDO | CANopen EtherCAT | Currently active and confirmed latched FAULT / TRIP error code (returns 0x0000 when no fault is active) | Real-Time Protection Monitoring: Reflects only currently active stop/protection-level faults (WARN warnings are not written here); cleared immediately to zero upon fault reset |
0x4500:00Historical Diagnostic Code | UINT32 (4 bytes)*Read-only single-item SDO | CANopen EtherCAT | Lower 16-bit V2.0 diagnostic code 0xDDSS at reverse index k in the history queue (upper 16 bits are 0) | Exact Root-Cause Tracing & Post-Mortem Analysis: Ring buffer storing the latest 64 Warning (WARN) / Fault (FLT) / Trip (TRIP) entries; remains traceable in reverse chronological order even after auto-recovery or fault reset |
0x80 + NodeIDEmergency (EMCY) Frame | 8-byte unsolicited frame (DLC = 8) | CAN / CAN FD (CANopen) | 0x603F error code + Severity SEV + 32-bit trigger-instant snapshot context | Event-Driven Push & First-Scene Snapshot: Actively transmits measured values, trigger thresholds, or hardware comparator flags at the exact moment a fault latches, capturing first-scene evidence without polling |
* Length Compatibility Note: Current firmware uniformly defines
0x4500:00in the Object Dictionary as a 4-byteUINT32(SDO upload response command specifier0x43) with the diagnostic code stored in the lower 16 bits; some earlier CANopen firmware releases return a 2-byteUINT16(SDO response command specifier0x4B). Both responses place the payload identically atByte 4..5(Little-EndianLL HH), so masters can maintain universal compatibility by extractingByte 4..5.
1.2 Quick Selection Guide for Common Troubleshooting Scenarios
| Engineering Scenario & Goal | Recommended Access Method | Rationale |
|---|---|---|
| Check in real-time control loops whether a stop/protection fault is active | Statusword 0x6041.bit3 + read 0x603F:00 | Directly reflects active latched FAULT / TRIP state and can be mapped to cyclic TxPDO |
| Trace transient warnings that have already disappeared, or review fault sequences after a reset | SDO read 0x4500:00 (with reverse index k = 0..63) | Covers all confirmed WARN, FAULT, and TRIP records; fault reset does not clear the historical ring buffer |
| Inspect measured DC bus voltage, temperature, current, or tracking error at the instant protection tripped | Listen for CANopen 0x80 + NodeID Emergency (EMCY) Frames | Byte 4..7 carries a 32-bit context snapshot allowing direct comparison between measured values and protection thresholds |
| Pinpoint the exact sub-fault in projects with legacy compatibility mapping enabled | Read 0x4500:00 | Legacy compatibility codes fold multiple sub-faults into broad categories (e.g., reporting a single generic "over-temperature"), whereas 0x4500:00 always returns the exact 0xDDSS code |
2. V2.0 Diagnostic ID Encoding Specification and Fault Domains
2.1 32-Bit Internal Diagnostic ID and 16-Bit Diagnostic Code Structure
Internally, the drive uses a 32-bit unsigned integer (diag_fault_id_t) to uniquely describe each diagnostic entry. When reading 0x4500:00 via SDO (as well as 0x603F:00 in standard direct-output mode), the drive returns the lower 16-bit diagnostic code 0xDDSS:
Severity Level (SEV, Bits 31..24) Definitions
SEV Code | Identifier | Level Name | System Behavior | Drives 0x603F & EMCY Frame? |
|---|---|---|---|---|
0x00 | SEV_INFO | Info | Internal operating status notification; does not alter control output | No |
0x01 | SEV_WARN | Warning (WARN) | Indicates operating boundary proximity or abnormal trend; logged to history queue without active stop by the fault manager | No |
0x02 | SEV_FLT | Fault (FLT) | Affects control safety or reliability; executes configured emergency stop, controlled stop, or controlled hold and latches | Yes |
0x03 | SEV_TRIP | Trip (TRIP) | Hardware comparator triggered or critical feedback link lost; immediately executes highest-priority protective shutdown and latches | Yes |
Because
0x4500:00returns only the lower 16 bits (0xDDSS), a master needing the severity level can either inspectByte 3of the CANopen0x80 + NodeIDEmergency (EMCY) Frame or look up0xDDSSin the standard diagnostic code reference table in the next section.
2.2 Nine Standard Fault Domains (Domain · DD, Bits 15..8)
Domain DD | Identifier | Fault Domain Name | Covered Anomaly Scope |
|---|---|---|---|
0x00 | D_SYS | System Domain | Parameter validity check, Flash CRC, missing electrical angle zero calibration, internal numerical state |
0x01 | D_PWR | Power Domain | DC bus overvoltage/undervoltage software protection, DC bus hardware overvoltage/undervoltage/overcurrent comparator trips |
0x02 | D_DRV | Drive Domain | q-axis software overcurrent, Phase U/V hardware and software overcurrent trips, drive power stage (MOS) over-temperature |
0x03 | D_MTR | Motor Domain | Motor winding over-temperature warning and fault, motor-side state observer anomalies |
0x04 | D_SNS | Sensor Domain | Position encoder communication/status errors, joint torque sensor faults, current zero-offset calibration failure, temperature sensing anomalies |
0x05 | D_CTL | Control Domain | Excessive position/velocity/current tracking error, torque control fault, software stall, velocity command over-limit, runaway/overspeed protection |
0x06 | D_COM | Communication Domain | Bus heartbeat timeout, command stream jitter or frame loss, CAN bus BusOff state |
0x07 | D_SAFE | Safety Domain | Positive/negative optical hardware limit triggered, positive/negative software position limit exceeded, motion state machine protection |
0x08 | D_APP | Application Domain | Encoder / electrical angle / torque calibration routine failure, unmet preconditions, calibration timeout or excessive residual |
3. V2.0 Diagnostic Code Quick Reference Table
The table below lists the diagnostic codes and full 32-bit fault ID definitions in V2.0 firmware. Different Joint Module models enable the corresponding subset according to their hardware and feature configuration; refer to the factory configuration of each product for exact enabled items and protection parameters.
Diagnostic Code 0xDDSS | Full 32-Bit ID | Default Severity | Fault Domain | Fault Name |
|---|---|---|---|---|
0x0001 | 0x02000001 | Fault (FAULT) | System | Electrical angle zero not calibrated |
0x0100 | 0x02000100 | Fault (FAULT) | Power | DC bus overvoltage |
0x0101 | 0x02000101 | Fault (FAULT) | Power | DC bus undervoltage |
0x0102 | 0x03000102 | Trip (TRIP) | Power | DC bus hardware overvoltage trip |
0x0103 | 0x03000103 | Trip (TRIP) | Power | DC bus hardware overcurrent trip |
0x0105 | 0x03000105 | Trip (TRIP) | Power | DC bus hardware undervoltage trip |
0x0200 | 0x02000200 | Fault (FAULT) | Drive | Software overcurrent (Iq over-limit) |
0x0201 | 0x03000201 | Trip (TRIP) | Drive | Phase U hardware overcurrent trip |
0x0203 | 0x03000203 | Trip (TRIP) | Drive | Phase V hardware overcurrent trip |
0x0204 | 0x01000204 | Warning (WARN) | Drive | Drive over-temperature warning |
0x0205 | 0x02000205 | Fault (FAULT) | Drive | Drive over-temperature fault |
0x0206 | 0x03000206 | Trip (TRIP) | Drive | Phase U software overcurrent |
0x0207 | 0x03000207 | Trip (TRIP) | Drive | Phase V software overcurrent |
0x0302 | 0x01000302 | Warning (WARN) | Motor | Motor over-temperature warning |
0x0303 | 0x02000303 | Fault (FAULT) | Motor | Motor over-temperature fault |
0x0400 | 0x03000400 | Trip (TRIP) | Sensor | Encoder update timeout |
0x0401 | 0x01000401 | Warning (WARN) | Sensor | Encoder read failure |
0x0402 | 0x02000402 | Fault (FAULT) | Sensor | Torque sensor communication fault |
0x0403 | 0x02000403 | Fault (FAULT) | Sensor | Torque sensor signal fault |
0x0406 | 0x01000406 | Warning (WARN) | Sensor | Encoder status warning |
0x0407 | 0x02000407 | Fault (FAULT) | Sensor | Encoder status error |
0x0408 | 0x02000408 | Fault (FAULT) | Sensor | Current offset calibration failure |
0x0409 | 0x02000409 | Fault (FAULT) | Sensor | Motor temperature signal fault |
0x040A | 0x0200040A | Fault (FAULT) | Sensor | Drive temperature signal fault |
0x0500 | 0x01000500* | Warning (WARN)* | Control | Excessive position tracking error (configured as FAULT / 0x02000500 in some profiles) |
0x0501 | 0x02000501 | Fault (FAULT) | Control | Torque control fault |
0x0507 | 0x02000507 | Fault (FAULT) | Control | Excessive velocity tracking error |
0x0508 | 0x02000508 | Fault (FAULT) | Control | Software stall |
0x0509 | 0x01000509 | Warning (WARN) | Control | Velocity command exceeds upper limit |
0x050A | 0x0200050A | Fault (FAULT) | Control | Runaway / overspeed protection |
0x050B | 0x0200050B | Fault (FAULT) | Control | Excessive current tracking error |
0x0600 | 0x01000600 | Warning (WARN) | Communication | Communication heartbeat lost |
0x0603 | 0x01000603 | Warning (WARN) | Communication | CAN communication BusOff |
0x0705 | 0x02000705 | Fault (FAULT) | Safety | Positive optical hardware limit exceeded |
0x0706 | 0x02000706 | Fault (FAULT) | Safety | Negative optical hardware limit exceeded |
0x0707 | 0x02000707 | Fault (FAULT) | Safety | Positive software limit exceeded |
0x0708 | 0x02000708 | Fault (FAULT) | Safety | Negative software limit exceeded |
4. SDO Fault Query Frame Format (CANopen and EtherCAT)
On a CANopen bus, taking NodeID = 1 as an example, the master SDO request COB-ID is 0x600 + NodeID = 0x601 and the slave SDO response COB-ID is 0x580 + NodeID = 0x581 (with DLC fixed to 8). On an EtherCAT (CoE) bus, the command specifiers and Little-Endian byte order inside the 8-byte SDO payload (after stripping the Mailbox header and CoE header) are identical to CANopen.
4.1 Reading Active Error Code 0x603F:00
Object Dictionary entry 0x603F Sub-index 00 is a standard UINT16 (2-byte) read-only object whose SDO upload response command specifier is fixed to 0x4B:
Master Request (CAN ID = 0x601, DLC = 8):
40 3F 60 00 00 00 00 00
Slave Response (CAN ID = 0x581, DLC = 8):
4B 3F 60 00 LL HH 00 00
- Decoding Formula:
Active Error Code = (HH << 8) | LL = 0xHHLL(a return value of0x0000indicates no active latchedFAULT/TRIP). - Frame Example: If the response frame is
4B 3F 60 00 00 01 00 00, thenLL = 0x00andHH = 0x01, decoding to0x0100(DC bus overvoltage in standard direct-output mode). - Update Rules:
- When multiple
FAULT/TRIPconditions are simultaneously active and confirmed latched,0x603F:00reflects the most recently confirmed fault; - In the CANopen protocol stack, communication heartbeat warning
0x0600is handled by its dedicated NMT/heartbeat state machine per protocol rules and does not overwrite0x603F:00.
- When multiple
4.2 Reading Historical Diagnostic Queue 0x4500:00 (64-Entry Reverse Traceability)
Object Dictionary entry 0x4500 Sub-index 00 queries the internal 64-entry circular diagnostic history buffer. It supports single-item SDO upload only (PDO mapping and EtherCAT Complete Access are not supported).
Method 1: Standard Read of the Latest Record (Default k = 0)
When calling a standard SDO upload API (where request data bytes Byte 4..7 default to all 0), the slave returns the most recently logged (k = 0) warning, fault, or trip diagnostic code:
Master Request (CAN ID = 0x601, DLC = 8):
40 00 45 00 00 00 00 00
Slave Response (CAN ID = 0x581, DLC = 8, current 4-byte firmware returns 0x43):
43 00 45 00 LL HH 00 00
Compatibility Tip: Earlier CANopen firmware versions defined this Sub-index as 2 bytes, returning
0x4Bin the first byte (4B 00 45 00 LL HH 00 00). Regardless of whether Byte 0 is0x43or0x4B, the valid 16-bit diagnostic code always resides atByte 4..5(Little-EndianLL HH) andByte 6..7is always00 00. For example, receiving43 00 45 00 05 02 00 00decodes to0x0205(Drive Domain0x02, Sub-item0x05: Drive over-temperature fault).
Method 2: Specifying Reverse Index k to Trace History (k = 0..63)
In current CANopen and EtherCAT firmware, if the master supports constructing raw 8-byte SDO upload request frames, place the reverse offset k into the 5th byte (Byte 4, first payload byte) of the request frame:
k = 0(0x00): Query the latest (1st most recent) record;k = 1(0x01): Query the 2nd most recent record;k = 2(0x02): Query the 3rd most recent record (valid range:k = 0to63).
Example: Query the 3rd most recent diagnostic record (k = 2)
Master Request (8-byte SDO payload): 40 00 45 00 02 00 00 00
Slave Response (8-byte SDO payload): 43 00 45 00 LL HH 00 00 --> Diagnostic Code = 0xHHLL
- Queue Boundary Behavior:
- Returns
0x00000000when the history queue is empty or whenkexceeds the number of currently logged entries; - Reading is a non-destructive read-only peek—it does not clear or consume entries, performs no adjacent deduplication, and does not filter by severity (
INFO/WARN/FAULT/TRIPare all enqueued in chronological order); - If a new diagnostic event is logged while the master is iterating through historical entries, the entry corresponding to a given reverse index
kshifts backward by one slot.
- Returns
5. CANopen 0x80 + NodeID Emergency (EMCY) Frame and Context Parsing
5.1 8-Byte Emergency (EMCY) Frame Structure
In CAN / CAN FD (CANopen) mode, whenever a new active FAULT or TRIP protection event latches and updates 0x603F:00, the slave actively transmits an 8-byte Emergency (EMCY) Frame with COB-ID 0x80 + NodeID:
| Byte Offset | Symbol | Data Type | Description |
|---|---|---|---|
Byte 0..1 | EC_L, EC_H | UINT16 (Little-Endian) | 0x603F error code that triggered the frame: 0xHHLL = EC_L + (EC_H << 8) |
Byte 2 | 0x00 | UINT8 | Protocol reserved byte, currently fixed to 0x00 |
Byte 3 | SEV | UINT8 | Diagnostic severity: 0x02 = Fault (FAULT), 0x03 = Trip (TRIP) |
Byte 4..7 | C0 C1 C2 C3 | UINT32 (Little-Endian) | 32-bit trigger-instant snapshot context; physical meaning depends on the fault code |
5.2 Emergency (EMCY) Frame Transmission and Retry Rules
- Triggered Exclusively by Stop/Protection Events: Driven only by confirmed latched
FAULT(0x02) andTRIP(0x03) events; Warning (WARN,0x01) events never trigger a0x80 + NodeIDframe. - Multi-Fault Arbitration: When multiple
FAULT/TRIPevents are simultaneously latched, the fault with the latest confirmation timestamp updates0x603F:00; if this error code differs from the previous EMCY error code sent, a new Emergency (EMCY) Frame is transmitted. - Single-Shot per Latch Cycle with Automatic Retry: Identical error codes are sent only once within a single latch cycle (if the CAN TX queue is full at trigger time, a 1 ms background service automatically retries until transmission succeeds). Once a fault reset returns
0x603F:00to0x0000, a subsequent occurrence of the same fault transmits a fresh frame. - Compatibility Mapping Filter: In firmware using legacy compatibility mapping, diagnostic items not mapped to
0x603F:00do not trigger a0x80 + NodeIDframe.
5.3 General context Unpacking Method and C Reference Code
Most numerical protection items pack context in a dual 16-bit format: the scaled measured value at the trigger instant is stored in the lower 16 bits (low16), while the active protection threshold (or auxiliary quantity) is stored in the upper 16 bits (high16).
- Unsigned vs. Signed Reconstruction Rules:
- Fields denoted as
uint16span0to65535; - Fields denoted as
int16(used for directional quantities such as position error, current, torque, or velocity command) must be cast from the 16-bit unsigned value to a two's-complement signedint16_t(for example,0xFF38reconstructs to-200).
- Fields denoted as
- Common Scaling Divisors:
÷ 1(raw integer),÷ 10(resolution0.1),÷ 100(resolution0.01),÷ 1000(resolution0.001), or direct bitmask decoding (raw bits).
Below is a C reference implementation ready for integration into master controllers or host applications (supporting both SDO responses and EMCY frames):
#include <stdint.h>
#include <stdbool.h>
/* Parse 8-byte SDO response frame for 0x603F:00 or 0x4500:00 (compatible with 0x43 4B and 0x4B 2B responses) */
bool jx_parse_sdo_diag_code(const uint8_t sdo_rx[8], uint16_t *out_code)
{
if (sdo_rx == NULL || out_code == NULL) {
return false;
}
/* Check for expedited upload response (0x43 = 4 bytes, 0x4B = 2 bytes) */
if (sdo_rx[0] != 0x43U && sdo_rx[0] != 0x4BU) {
return false;
}
*out_code = (uint16_t)sdo_rx[4] | ((uint16_t)sdo_rx[5] << 8U);
return true;
}
/* Parse CANopen 0x80 + NodeID Emergency (EMCY) Frame (DLC = 8) */
typedef struct {
uint16_t error_code; /* Byte 0..1: 0x603F error code */
uint8_t severity; /* Byte 3: 0x02 = Fault (FAULT), 0x03 = Trip (TRIP) */
uint32_t context; /* Byte 4..7: Full 32-bit snapshot context */
uint16_t low_u16; /* Lower 16-bit unsigned value */
int16_t low_i16; /* Lower 16-bit signed value (for directional physical quantities) */
uint16_t high_u16; /* Upper 16-bit unsigned value (typically protection threshold) */
} jx_emcy_frame_t;
void jx_parse_emcy_frame(const uint8_t data[8], jx_emcy_frame_t *out)
{
out->error_code = (uint16_t)data[0] | ((uint16_t)data[1] << 8U);
out->severity = data[3];
out->context = (uint32_t)data[4]
| ((uint32_t)data[5] << 8U)
| ((uint32_t)data[6] << 16U)
| ((uint32_t)data[7] << 24U);
out->low_u16 = (uint16_t)(out->context & 0xFFFFU);
out->low_i16 = (int16_t)out->low_u16;
out->high_u16 = (uint16_t)(out->context >> 16U);
}
5.4 Worked Examples of Emergency (EMCY) Frame Unpacking
Example 1: DC Bus Overvoltage (0x0100, Dual Unsigned Scaling)
NodeID = 1 transmits the following Emergency (EMCY) Frame:
CAN ID: 0x081 DLC: 8 Data: 00 01 00 02 42 1C 90 1A
Byte 0..1=00 01→ Error code0x0100(DC bus overvoltage);Byte 3=0x02→ SeverityFAULT;low_u16=0x1C42=7234→ Scaled by÷ 100: measured DC bus voltage at trigger instant =72.34 V;high_u16=0x1A90=6800→ Scaled by÷ 100: overvoltage protection threshold =68.00 V.
Example 2: Excessive Current Tracking Error (0x050B, Closed-Loop Error vs. Dynamic Threshold)
NodeID = 1 transmits the following Emergency (EMCY) Frame:
CAN ID: 0x081 DLC: 8 Data: 0B 05 00 02 BC 02 F4 01
Byte 0..1=0B 05→ Error code0x050B(Excessive current tracking error);Byte 3=0x02→ SeverityFAULT;low_u16=0x02BC=700→ Scaled by÷ 100: peakId/Iqcurrent tracking error at trigger instant =7.00 A;high_u16=0x01F4=500→ Scaled by÷ 100: active dynamic trigger threshold =5.00 A.
Example 3: DC Bus Hardware Overcurrent Trip (0x0103, Hardware Comparator Bitmask)
NodeID = 1 transmits the following Emergency (EMCY) Frame:
CAN ID: 0x081 DLC: 8 Data: 03 01 00 03 01 00 00 00
Byte 0..1=03 01→ Error code0x0103(DC bus hardware overcurrent trip);Byte 3=0x03→ SeverityTRIP;context=0x00000001→ Bitmaskbit0 = 1, pinpointing IDC bus current hardware comparator triggered.
5.5 Per-Fault context Snapshot Parsing Dictionary
(1) FAULT / TRIP Items That Actively Trigger 0x80 + NodeID
The table below defines byte encodings and Byte 4..7 context unpacking rules under standard direct-output mode (0x603F equals 0xDDSS):
| Diagnostic Code | Byte 0..1 | Byte 3 | Fault Name | Byte 4..7 (context) Snapshot Unpacking Definition |
|---|---|---|---|---|
0x0001 | 01 00 | 0x02 | Electrical angle zero not calibrated | Direct event item; fixed to 0 |
0x0100 | 00 01 | 0x02 | DC bus overvoltage | low_u16 ÷ 100 = measured bus voltage (V); high_u16 ÷ 100 = overvoltage threshold (V) |
0x0101 | 01 01 | 0x02 | DC bus undervoltage | low_u16 ÷ 100 = measured bus voltage (V); high_u16 ÷ 100 = undervoltage threshold (V) |
0x0102 | 02 01 | 0x03 | DC bus hardware overvoltage trip | Hardware event protection item; returns status flag or 0 |
0x0103 | 03 01 | 0x03 | DC bus hardware overcurrent trip | raw bits: bit0 = DC bus current comparator, bit1 = Phase V comparator, bit2 = Phase U comparator |
0x0105 | 05 01 | 0x03 | DC bus hardware undervoltage trip | Hardware power monitor / comparator trigger flag bits |
0x0200 | 00 02 | 0x02 | Software overcurrent (Iq over-limit) | low_i16 ÷ 100 = measured current (A); high_u16 ÷ 100 = overcurrent threshold (A) |
0x0201 | 01 02 | 0x03 | Phase U hardware overcurrent trip | raw bits: bit2 = Phase U comparator triggered (may assert together with bit0 / bit1) |
0x0203 | 03 02 | 0x03 | Phase V hardware overcurrent trip | raw bits: bit1 = Phase V comparator triggered (may assert together with bit0 / bit2) |
0x0205 | 05 02 | 0x02 | Drive (MOS) over-temperature fault | low_u16 ÷ 10 = measured drive temperature (°C); high_u16 ÷ 10 = fault threshold (°C) |
0x0206 | 06 02 | 0x03 | Phase U software overcurrent | Instantaneous overcurrent protection; returns sampled value or 0 |
0x0207 | 07 02 | 0x03 | Phase V software overcurrent | Instantaneous overcurrent protection; returns sampled value or 0 |
0x0303 | 03 03 | 0x02 | Motor winding over-temperature fault | low_u16 ÷ 10 = measured motor temperature (°C); high_u16 ÷ 10 = fault threshold (°C) |
0x0400 | 00 04 | 0x03 | Encoder update timeout | low_u16 = consecutive communication error count; high_u16 = lower 16 bits of cumulative timeout counter |
0x0402 | 02 04 | 0x02 | Torque sensor communication fault | Fixed to 0 by default (sample frame update timeout) |
0x0403 | 03 04 | 0x02 | Torque sensor signal fault | low_i16 ÷ 10 = sensor torque at trigger instant (N·m); Byte 6 = anomaly cause bitmask |
0x0407 | 07 04 | 0x02 | Encoder status word error | Raw encoder hardware status register word (decode per specific encoder model datasheet) |
0x0408 | 08 04 | 0x02 | Phase current offset calibration failure | low_u16 ÷ 1000 = Phase U zero-offset voltage (V); high_u16 ÷ 1000 = Phase V zero-offset voltage (V) |
0x0409 | 09 04 | 0x02 | Motor temperature signal fault | Packed anomaly cause code (ADC rail open/short circuit or thermal step jump), current reading, and reference limit |
0x040A | 0A 04 | 0x02 | Drive temperature signal fault | Packed anomaly cause code (ADC rail open/short circuit or thermal step jump), current reading, and reference limit |
0x0500* | 00 05 | 0x02 | Excessive position tracking error (when set as fault) | low_i16 ÷ 1000 = measured position error (rad); high_u16 ÷ 1000 = trigger threshold (rad) |
0x0501 | 01 05 | 0x02 | Torque control fault | low_i16 ÷ 10 = key torque quantity (N·m); Byte 6 = torque-loop anomaly cause bitmask |
0x0507 | 07 05 | 0x02 | Excessive velocity tracking error | low_u16 ÷ 10 = absolute velocity error (rpm); high_u16 ÷ 10 = trigger threshold (rpm) |
0x0508 | 08 05 | 0x02 | Software stall protection | low_u16 ÷ 10 = current absolute speed (rpm); high_u16 ÷ 10 = current absolute Iq current (A) |
0x050A | 0A 05 | 0x02 | Runaway / overspeed protection | low_u16 = measured absolute speed (rpm); high_u16 = overspeed trigger threshold (rpm) |
0x050B | 0B 05 | 0x02 | Excessive current tracking error | low_u16 ÷ 100 = peak Id/Iq tracking error (A); high_u16 ÷ 100 = dynamic trigger threshold (A) |
0x0705 | 05 07 | 0x02 | Positive optical hardware limit exceeded | low_u16 = positive limit switch state (1 = triggered); high_u16 = 0 |
0x0706 | 06 07 | 0x02 | Negative optical hardware limit exceeded | low_u16 = negative limit switch state (1 = triggered); high_u16 = 0 |
0x0707 | 07 07 | 0x02 | Positive software position limit exceeded | low_u16 = trigger reason_bits; high_u16 = limit status_bits |
0x0708 | 08 07 | 0x02 | Negative software position limit exceeded | low_u16 = trigger reason_bits; high_u16 = limit status_bits |
(2) context Definitions for Common WARN Items (Do Not Trigger EMCY)
The items below have severity Warning (WARN, 0x01) and do not trigger 0x80 + NodeID Emergency (EMCY) Frames, but their diagnostic codes can be queried via 0x4500:00 and their internal diagnostic log entries (e.g., in host diagnostic panels) record the following context values:
| Diagnostic Code | Warning Name | Physical Meaning of context in Internal Diagnostic Log |
|---|---|---|
0x0204 | Drive (MOS) over-temperature warning | low_u16 ÷ 10 = measured drive temperature (°C); high_u16 ÷ 10 = warning threshold (°C) |
0x0302 | Motor winding over-temperature warning | low_u16 ÷ 10 = measured motor temperature (°C); high_u16 ÷ 10 = warning threshold (°C) |
0x0401 | Encoder read failure | Returns error status flag or 0 |
0x0406 | Encoder status word warning | Raw encoder warning status bits |
0x0500 | Excessive position tracking error (default WARN) | low_i16 ÷ 1000 = measured position error (rad); high_u16 ÷ 1000 = warning threshold (rad) |
0x0509 | Velocity command exceeds upper limit | low_i16 = master-requested velocity command (rpm); high_u16 = maximum allowed velocity limit (rpm) |
0x0600 | Communication heartbeat lost | low_u16 = elapsed time since last valid frame (ms); high_u16 = heartbeat timeout threshold (ms) |
0x0603 | CAN bus communication BusOff | Cumulative BusOff counter, or lower 16 bits of CAN controller error status register (PSR / ECR) |
6. Legacy Compatibility Folded Codes and Host Integration Recommendations
6.1 Standard Direct-Output Mode vs. Legacy Compatibility Folded Mapping
- Standard Direct-Output Mode (Default in Standard Firmware):
In EtherCAT firmware and standard CANopen firmware,
0x603F:00directly outputs the lower 16 bits0xDDSSof theV2.0diagnostic code (identical to0x4500:00). - Legacy Compatibility Mapping Mode (Legacy Protocol Firmware):
Certain firmware builds maintaining backward compatibility with older host protocols fold multiple
V2.0diagnostic items into the following category codes on0x603F:00(andByte 0..1of0x80 + NodeID):
Legacy 0x603F Code | Legacy Category Meaning | Corresponding V2.0 Granular Diagnostic Codes (0x4500:00 Return Values) |
|---|---|---|
0x0001 | DC bus overvoltage | 0x0100 (DC bus overvoltage), 0x0102 (DC bus hardware overvoltage trip) |
0x0002 | DC bus undervoltage | 0x0101 (DC bus undervoltage) |
0x0004 | Over-temperature fault | 0x0205 (Drive over-temperature fault), 0x0303 (Motor winding over-temperature fault) |
0x0008 | Stall protection | 0x0508 (Software stall protection) |
0x0020 | Velocity error over-limit | 0x0507 (Excessive velocity tracking error) |
0x0040 | Positive limit triggered | 0x0705 (Positive optical hardware limit exceeded), 0x0707 (Positive software position limit exceeded) |
0x0080 | Negative limit triggered | 0x0706 (Negative optical hardware limit exceeded), 0x0708 (Negative software position limit exceeded) |
0x0100* | Encoder fault (legacy code) | 0x0400 (Encoder update timeout), 0x0401 (Encoder read failure) |
0x0400 | Current sampling fault | 0x0408 (Phase current offset calibration failure) |
0x1000 | Position error over-limit | 0x0500 (Excessive position tracking error) |
* Code Disambiguation Warning: In legacy compatibility codes,
0x0100means "Encoder fault", whereas inV2.0standard encoding,0x0100means "DC bus overvoltage". On devices running legacy compatibility mapping, always read0x4500:00to obtain the unambiguousV2.0diagnostic code.
6.2 Master Controller and Host Software Integration Best Practices
- Dual-Object Coordination: Monitor active stop/protection status in cyclic control loops via Statusword
0x6041.bit3(Fault bit) and0x603F:00; when entering fault handling or service log collection, iterate SDO reads on0x4500:00(k = 0, 1, 2...until0is returned or the desired depth is reached) to pull the full diagnostic history. - SDO
0x4500:00Response Length Compatibility: Accept both0x43(4-byte response) and0x4B(legacy 2-byte response) in Byte 0 when parsing0x4500:00responses, uniformly extracting(rx[5] << 8) | rx[4]as the 16-bit0xDDSSdiagnostic code. - Little-Endian Order and Signed Reconstruction: All multi-byte integers in SDO and Emergency (EMCY) Frames use Little-Endian order. When unpacking
context, any directional quantity markedlow_i16(position error, q-axis current, sensor torque) must be cast toint16_tbefore dividing by the scale factor so negative values are not misinterpreted as large positive integers (such as65336). - Distinguish "No Active Fault" from "Empty History":
0x603F:00 == 0x0000only indicates that no stop-level fault is currently latched (or that the fault is unmapped in legacy firmware)—it does not mean no transient warning or auto-recoverable event occurred moments ago. Always inspect0x4500:00when diagnosing intermittent jitter, heartbeat timeouts, or over-temperature warnings. - Never Auto-Reset in a Loop Before Clearing Root Causes: Upon capturing a
FAULTorTRIP, the master should first log0x603F:00,0x4500:00, and the EMCYcontextpayload, and verify that power supply, mechanical load, and sensor feedback are safe before issuing a single fault reset. Never program high-frequency automatic fault reset and Enable retries while hardware overcurrent or short-circuit conditions may still be present.