A CANopen emergency message is a compact broadcast about a detected device error event. It is not a command that resets the node, clears its drive state, or restarts the robot. The producer reports; each consumer decides what application-specific reaction to take.
Confusing notification with recovery creates fragile automation. A controller may receive a valid EMCY and log it correctly while the device remains in the same Network Management state, the underlying fault remains active, and motion stays inhibited by a separate drive state machine.
Read the payload as evidence
For CANopen CC, CAN in Automation describes the EMCY as one CAN data frame containing a 16-bit emergency error code, the one-byte error register from object 1001h, and five bytes of manufacturer-specific information. By default, the identifier is 80h plus the node ID.
The error code provides detailed classification. The error register summarizes categories. The manufacturer-specific bytes require the device manual or profile. Preserve all three fields in the diagnostic record; translating only the code into a generic alarm discards evidence.
An EMCY is transmitted once per error event. It is intended as an interrupt-style alert, not a continuously refreshed health stream. Silence after one message does not prove that the fault cleared, that the node stopped, or that communication failed.
Separate three state machines
First is the EMCY error state and history: which error event was raised, whether a related recovery event was reported, and what active error records remain.
Second is the CANopen NMT state. A node can be operational, pre-operational, stopped, or initializing according to the network-management state machine. Receiving an EMCY does not inherently force an NMT transition.
Third is the application or drive state. A CiA 402 drive, for example, has its own controlword and statusword state machine, faults, warnings, and fault-reset procedure. Other device profiles define different behavior.
Draw these state machines separately. Link them only where the released device documentation defines a transition or the host explicitly commands one.
Consumer reaction is application-specific
Zero or more EMCY consumers may listen to the broadcast. One may log the event, another may stop issuing commands, and a supervisory controller may request detailed diagnostics through an SDO. Those actions are consumer policy, not implicit effects of the EMCY frame.
Define reactions by error class, device identity, operating mode, and risk. A communication warning may require degraded operation; an overcurrent may require immediate stop and inspection. Do not map every code to the same reset sequence.
Avoid automatic reset loops
An automatic fault reset after every EMCY can repeatedly re-enable equipment without removing the cause. The sequence can also erase the temporal relationship between the first error, secondary errors, and the physical event.
Use bounded attempts and explicit prerequisites. Check that commands are safe, motion has stopped, required guards or interlocks are satisfied, and the device manual allows reset for that error. Escalate persistent or recurring faults.
Preserve the original EMCY before issuing any recovery command. Store bus time, host receipt time, node ID, raw payload, decoded fields, NMT state, application status, command in flight, and relevant sensor state.
Distinguish recovery from restart
A fault-clear indication, application-level fault reset, NMT reset-node command, NMT reset-communication command, and power cycle are not synonyms. They affect different scopes and can produce different boot-up, configuration, and process-data consequences.
After an NMT reset or power cycle, expect and verify the boot-up sequence, restore configuration as required, and deliberately re-enter the intended NMT and application states. Do not treat the absence of the original EMCY after restart as proof that the root cause was corrected.
Correlate with error history
Where the device exposes an error history or manufacturer diagnostics, read it after capturing the real-time EMCY. The history can reveal earlier events that were overwritten in a user interface or missed while a consumer was offline.
Correlate codes by node and event time. Different nodes can use the same standardized error class, and manufacturer-specific bytes may change its meaning. Preserve the device identity and firmware version used for decoding.
Test notification and action independently
Use a device-approved method to inject or simulate a non-destructive error. Confirm that the EMCY appears once for the event and that all intended consumers receive and decode it. Verify what the node's NMT and application states actually do rather than assuming a reset.
Then test the consumer policy separately. Disable one consumer, delay its processing, and inject duplicate or sequential error events where supported. Confirm bounded reactions and consistent logging.
Test a recovery sequence with the physical hazard removed. Verify the device-specific fault-clear evidence, NMT state, drive or application state, PDO freshness, and command acceptance before resuming motion.
Monitor the gaps EMCY does not cover
EMCY reports detected internal communication or application errors. It does not replace heartbeat supervision for node presence, PDO freshness monitoring, bus-off detection, application watchdogs, or physical safety sensing.
A device that loses power cannot transmit a final EMCY. A network break can prevent the message from reaching consumers. Combine event alerts with absence detection and state feedback.
Keep safety functions explicit
Standard EMCY communication is not automatically a safety-rated stop channel. If an error must cause a safety function, implement and validate the required safety architecture independently, using appropriate safety protocols and hardware.
State the result narrowly
A defensible record says that a named node emitted a specific EMCY payload at a measured time, consumers applied defined policies, and subsequent state and recovery evidence were verified. It does not say that the message itself reset the device.
An EMCY is valuable because it preserves an error event in a compact, standardized envelope. Use it as the beginning of diagnosis and controlled recovery, not as a substitute for the state transitions that recovery actually requires.