Skip to main content

Error codes and troubleshooting

When an error is reported, first write down the error code and where it occurred (starting the master, changing state, reading or writing an SDO, enabling a servo), then work through the order below. Most problems can be traced directly to one of four groups: the NIC, the configuration, the slave state, or a device fault.

Decide which category the error belongs to​

SymptomWhat to check firstTypical errors
Starting the master or binding the NIC failsThe number in the error text5023, 1168, 21
The master starts, but slaves do not reach OPSlave AL Status Code0x001E, 0x001D, 0x0017, 0x001B and so on
OP is reached, but reading or writing parameters failsSDO Abort Code0x06020000, 0x06090011, 0x08000022 and so on
Servo enable fails, or a fault is reported while runningStatusWord, 0x603FCiA 402 fault codes
No slaves found in a scan, a slave drops out while running, communication jitterLink, power supply, topology, real-time driverNo fixed error code; diagnose from the symptom
Do not treat every failure as an NIC problem

5023 has nothing to do with the NIC; 1168 means the driver is not bound to the selected NIC; 21 usually means the driver or the service is not ready yet. Read the error code first, then start swapping cables or reinstalling.

The master fails to start​

Error code 5023: license not approved​

Meaning: the software license check failed (not activated, expired, or in an abnormal license state). Data-plane calls are rejected while this is the case.

Typical symptoms:

  • Binding the NIC fails and 5023 appears in the error text.
  • The master can be created, but switching to SafeOp / OP fails.

What to do:

  1. Open the Software activation dialog and check the license status. Only the status “Verified” means the license is valid.
  2. Not activated: enter the activation code issued with your purchase and activate online.
  3. Expired, or a message says the seats are used up: renew as described in Licensing and activation, or contact technical support.
  4. Do not swap cables, reinstall the driver or rebind the NIC just because you see 5023; none of these operations fixes a licensing problem.

Error code 1168: the driver is not bound to an NIC​

Meaning: the system cannot find a real-time driver bound to the current NIC. This is common when the driver is not installed, the computer was not restarted after installation, or the wrong port was selected.

What to do:

  1. Make sure you are using the official installer and let the installer complete the driver installation.
  2. Run the official installer again and use Install / Upgrade: it handles the installed version from driver state, with no need to uninstall first; restart the computer afterwards as prompted.
  3. Open the configuration tool and confirm that the selected port is the physical NIC that is actually connected to the slaves, not Wi-Fi, a virtual NIC or a port with no cable.
  4. Scan for slaves again after the restart. If 1168 still appears, record the NIC model and the error text and contact technical support.

Error code 21: the driver or service is not ready yet​

Meaning: the driver or the background service is still starting and is temporarily unavailable. This is usually a transient problem.

What to do:

  1. Wait a few seconds and retry once.
  2. If it still fails, restart the computer and try again.
  3. If it appears on every boot, check that the official installer completed and whether security software is blocking the driver from starting.

Other Windows error codes​

Other numbers in the error text are Windows system error codes. When diagnosing, record the full error text, the NIC model and the port that was selected, so that technical support can locate the problem.

set_network() returning 0 does not necessarily mean failure

In some languages, set_network() returning 0 has two meanings: the call failed, or the call succeeded but there are no slaves on the bus. Distinguish the two using the error state (such as last_error); do not conclude from a 0 return alone that the NIC is faulty.

A slave cannot reach OP: AL Status Code​

The AL Status Code is the error code a slave returns during a state change; it states why the slave refused to enter the target state. It is visible in the slave diagnostics of the configuration tool, and in the SDK it is usually read through slave.ErrorCode (the name differs slightly between languages).

Common AL Status Codes​

Error codeMeaningCommon causes and what to do
0x0003Invalid device setupThe coupler has no module inserted, or the module configuration does not match the hardware. Check the module order and the ESI configuration
0x0017Invalid SM configurationThe SyncManager size or direction does not match the slave. Check the PDO configuration and the ESI
0x001ASynchronization errorThe synchronization configuration is wrong. Check the SYNC0 cycle, the DC configuration and the master cycle time
0x001BSM watchdog timeoutThe PDO cycle is too slow or communication was interrupted. Check the cycle time, the cabling, the slave power supply and the master load
0x001DInvalid output configurationThe output PDO configuration does not match what the slave supports. Check the RxPDO mapping
0x001EInvalid input configurationThe input PDO configuration does not match what the slave supports. Check the TxPDO mapping
0x0024Invalid input mappingThe index, sub-index, length or order of the input mapping is wrong. Compare with the ESI and the device manual
0x0025Invalid output mappingThe index, sub-index, length or order of the output mapping is wrong. Compare with the ESI and the device manual
0x002DSync not received (literal name "No sync error")SAFEOP waits for the first Sync0/Sync1 and the slave refuses OP on timeout. Check whether DC/SYNC0 is enabled, 0x1C32:01 SyncType and SystemTimeOffset; the literal name "No sync error" does not mean error-free
0x0034DC synchronization timeoutThe DC start time or the reference clock configuration is unreasonable. Check the DC settings and the slave manual
0x0043Mailbox CoE errorCoE mailbox communication failed. Check the mailbox configuration, the slave state and the communication quality
0x0051EEPROM errorReading or writing the slave EEPROM failed. Try power-cycling the slave; if it persists, contact the device vendor
0x0060Slave restartedThe slave was reset or power-cycled. Check the power supply and the watchdog settings

Vendor-defined error codes are usually above 0x8000; their meaning is defined by the device manual.

General procedure​

  1. Confirm which state it is stuck in: INIT, PreOp, SafeOp or OP. Each state corresponds to a different configuration stage.
  2. Read the AL Status Code: look at the specific code first, then compare it with the table above; do not reinstall the driver as soon as you see “does not reach OP”.
  3. Check the PDO mapping: the index, sub-index, data type and length of every RxPDO / TxPDO must match the ESI and the device manual.
  4. Check the startup parameters: are all mandatory parameters present, and are the write timing (IP / PS / SP / SO) and the order correct?
  5. Check the DC configuration: whether the device requires DC, whether AssignActivate is correct, and whether the SYNC0 cycle is reasonable.
  6. Check the ESI version: use the ESI file that matches the device firmware version.

If several configuration items need to be compared one by one, collect the ESI, DENI, device manual and debug log as described in Device cannot connect or be controlled, then check them item by item.

SDO read or write failure: Abort Code​

An SDO Abort Code is the 32-bit error code a slave returns when it refuses to read or write an object. The CoE / SDO page of the configuration tool shows AbortCode; in the SDK a failed read or write usually returns false / null, and the abort code is available through LastSdoError or the result object.

Common SDO Abort Codes​

Abort codeMeaningWhat to do
0x05030000Toggle bit not alternatedA communication timing problem. Retry once; if it recurs, check the cabling, the cycle and the mailbox configuration
0x05040000SDO protocol timed outThe slave did not respond in time. Check the communication quality, the cycle time and the slave load, then retry
0x06010000Unsupported accessThe object does not support this type of access. Confirm whether you are reading or writing, and consult the object dictionary
0x06010002Write to a read-only objectThe object is read-only. Read it instead, or check whether the wrong index was written
0x06020000Object does not existThe index does not exist, or the ESI / firmware version does not match. Verify the object index against the device manual
0x06070010Data type or length does not matchThe number of bytes or the data type written is wrong. Write again using the data type from the object dictionary
0x06090011Sub-index does not existThe sub-index number is wrong. Check the sub-index list in the object dictionary
0x06090030Value range exceededThe value written is outside the permitted range. Check the limits and the unit
0x08000020Data cannot be transferred or stored to the application (reported by the device)The device application rejected it: EEPROM write protection, file system state or invalid parameters. Check the device manual and the object permissions
0x08000021Cannot transfer because of local control (reported by the device)The device is in local control (for example a manual panel lock). Release local control and retry
0x08000022Cannot transfer because of the present device state (reported by the device)The current device state does not allow this operation (for example changing the PDO mapping while running). Return to PreOp and retry
0x08000000General error (the device really returned this abort code)The slave refused without a reason. Capture the mailbox / EMCY frames to locate it; when the device does not answer at all the SDK reports 0x05040000
0x0D000001Request not sent (master-side, not reported by the device)Invalid arguments, slave index out of range, the slave does not support CoE, or the mailbox is not ready. Fix the arguments or move to PreOp first; resending as-is will not succeed
0x0D000002Frame transmitted, but no device counted it (master-side)Check whether that slave's mailbox is rejecting or full, and check the receive path
0x0D000003Mailbox layer error (master-side)The peer returned a mailbox Error frame. Check the mailbox SM configuration and the request length
0x0D000004Transport layer failure (master-side)Cancelled / protocol mismatch / local resource shortage / link down / peer not consuming. No retry for a cancel; restore the link first when it is down
An abort code does not mean the object is necessarily missing

Only 0x06020000 means the object does not exist. 0x05040000 (no answer from the device) is usually a communication problem and a retry may succeed; 0x08000000 means the device answered without a reason and needs investigation. 0x0D0000xx are master-side verdicts where the device sent no abort frame — handle them as listed, and do not conclude from them that the object is permanently unavailable.

General procedure​

  1. Confirm whether the object is supported: look up the index, sub-index, data type and access rights in the object dictionary in the ESI or the device manual.
  2. Confirm the current state: some objects can only be written in PreOp; writing them after entering OP returns 0x08000022.
  3. Confirm the write length: write the number of bytes that matches the object's data type; do not write more or fewer.
  4. Retry once: a communication-class abort code may succeed on one retry; deterministic abort codes (object does not exist, read-only, sub-index does not exist) do not succeed on a retry.
  5. Record the raw abort code: when reporting a problem, provide the raw AbortCode, the index, the sub-index and the type of operation, so that it can be located.

CiA 402 servo faults​

A CiA 402 servo drive signals a fault with bit3 of the StatusWord (0x6041), gives the fault cause in the Error Code (0x603F), and keeps the fault history in 0x1003.

Confirm the servo state first​

StatusWord mask resultStateWhat to do
(sw & 0x4F) == 0x40Switch on disabledSend Controlword 0x06
(sw & 0x6F) == 0x21Ready to switch onSend Controlword 0x07
(sw & 0x6F) == 0x23Switched onSend Controlword 0x0F
(sw & 0x6F) == 0x27Operation enabledAlready enabled; motion is possible
(sw & 0x4F) == 0x08FaultRemove the cause of the fault first, then perform a fault reset

Common CiA 402 fault codes​

Fault codeMeaningCommon causes and what to do
0x2310Output stage overcurrentLoad too high, acceleration too fast, short circuit, or motor parameters that do not match. Check the mechanical load and the current limits
0x3210DC bus overvoltageDeceleration too fast, too much regenerative energy, or supply voltage too high. Check the deceleration time and the braking resistor
0x3220DC bus undervoltageInsufficient supply, a supply dip, or a power loss during an emergency stop. Check the power supply capacity and the wiring
0x4210Drive overtemperaturePoor cooling, ambient temperature too high, or prolonged overload. Improve the cooling and reduce the load
0x4310Motor overtemperatureMotor overload, poor cooling, or a faulty temperature sensor. Check the load and the motor cooling
0x8611Excessive following errorUnsuitable gains, a sudden load change, a limit, or mechanical binding. Check the motion parameters and the mechanical state

Other fault codes (especially the 0x73xx encoder group and the 0x8xxx monitoring group) are defined by the device manual.

Fault reset procedure​

  1. Remove the cause of the fault first: if an overcurrent, overvoltage or overtemperature condition is still present, the fault is reported again after the reset.
  2. Read and record 0x603F: confirm the specific fault code, and read 0x1003 to view the fault history if necessary.
  3. Send a Fault Reset: write 0x6040 to the Controlword (0x80) (a rising edge on bit7), hold it for a few cycles, then write 0x00.
  4. Enable again: advance the state machine again in the order 0x06 → 0x07 → 0x0F, waiting for the StatusWord to confirm each step.
  5. The fault persists: do not keep resetting; use the fault code to check the protection conditions and the wiring in the device manual.
Enable succeeds but the motor does not move

If the servo has reached Operation enabled but the motor does not turn, the problem is usually in the operating mode, the limit protection or the motion parameters, not in communication. Work through the layers in Motor control FAQ.

Common symptoms and what to do​

No slaves found in a scan (0 slaves)​

  1. Confirm that the selected port is the physical NIC connected to the slaves, not Wi-Fi, a virtual NIC or a port with no cable.
  2. Confirm that the slaves are powered, the cables are firmly inserted and the link LEDs are normal.
  3. Check the topology: a break in the middle of a line topology makes every slave behind it unreachable; a break upstream of a branch affects the whole branch.
  4. Confirm that the ESI file is in the correct directory and matches the device model and firmware version.
  5. If the scan still finds nothing, collect the material described in Device cannot connect or be controlled and work from there.

A slave drops out while running or leaves OP​

  1. Check the cables, connectors, power supply and grounding; rule out loose contacts, oxidation and electromagnetic interference.
  2. Look at the AL Status Code and the port error counters in the slave diagnostics.
  3. Check whether the PDO cycle is too short, the master load is too high, or the watchdog time is unreasonable.
  4. The master automatically tries to bring the slave back to OP; if it does not return for a long time, check the slave AL Status Code and any startup parameter (SDO) errors; see hot-plug.

High communication jitter or dropped frames​

  1. Use shielded cable of good quality and avoid routing it in parallel with power cables.
  2. Check the switch port, the NIC power-saving settings and sources of EMI.
  3. Close unnecessary background programs to reduce CPU load.
  4. Install and enable the official real-time driver, and tune the system as described in Building a professional industrial control system.

Servo enable fails​

  1. Confirm that both the master and the slaves have reached OP.
  2. Advance the Controlword according to the StatusWord state, and confirm that every step is acknowledged by the StatusWord.
  3. Check whether the operating mode written to 0x6060 is accepted by the drive (read 0x6061 to confirm).
  4. Check the hardware limits 0x60FD, the software limits 0x607D and the vendor protection conditions.
  5. Read 0x603F to confirm whether a fault is present, and reset it before enabling; see Motor control FAQ for details.

FoE file download fails​

Error codeMeaningWhat to do
0x8001File not foundConfirm the file name and the path; mind the case
0x8002Access deniedConfirm that the slave permits writing and that the file is not in use
0x8003Disk fullFree storage space on the slave
0x8004Illegal operationConfirm that the slave supports FoE write
0x8005Packet sequence errorCommunication is unstable; retry and check the link
0x8006File already existsDecide whether to overwrite, or delete the old file first
0x800AInsufficient permissionsConfirm the safety state and the write permissions of the slave
0x800BProgram errorThe slave firmware rejected the operation; consult the device manual

An Emergency message is received​

An Emergency is an urgent event that a slave reports on its own initiative; it usually contains an error code and an error register. Record the error code, the slave index and the time it occurred, and check them against the device manual; also check the power supply, the temperature, the limits and the communication quality.

Need more help​

When reporting a problem, please provide as much of the following as possible:

  • Software version, SDK language and version, Windows version.
  • NIC model, the selected port, and the topology (line / star / ring / branch).
  • The full error text, the error code, the AL Status Code or the SDO Abort Code.
  • Steps to reproduce and the relevant logs.

For device adaptation problems, prepare the ESI, DENI, device manual and debug log as described in Device cannot connect or be controlled, then analyze them. For licensing and purchase questions, see Licensing and activation.