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
| Symptom | What to check first | Typical errors |
|---|---|---|
| Starting the master or binding the NIC fails | The number in the error text | 5023, 1168, 21 |
| The master starts, but slaves do not reach OP | Slave AL Status Code | 0x001E, 0x001D, 0x0017, 0x001B and so on |
| OP is reached, but reading or writing parameters fails | SDO Abort Code | 0x06020000, 0x06090011, 0x08000022 and so on |
| Servo enable fails, or a fault is reported while running | StatusWord, 0x603F | CiA 402 fault codes |
| No slaves found in a scan, a slave drops out while running, communication jitter | Link, power supply, topology, real-time driver | No fixed error code; diagnose from the symptom |
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
5023appears in the error text. - The master can be created, but switching to SafeOp / OP fails.
What to do:
- Open the Software activation dialog and check the license status. Only the status “Verified” means the license is valid.
- Not activated: enter the activation code issued with your purchase and activate online.
- Expired, or a message says the seats are used up: renew as described in Licensing and activation, or contact technical support.
- 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:
- Make sure you are using the official installer and let the installer complete the driver installation.
- 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.
- 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.
- Scan for slaves again after the restart. If
1168still 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:
- Wait a few seconds and retry once.
- If it still fails, restart the computer and try again.
- 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 failureIn 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 code | Meaning | Common causes and what to do |
|---|---|---|
0x0003 | Invalid device setup | The coupler has no module inserted, or the module configuration does not match the hardware. Check the module order and the ESI configuration |
0x0017 | Invalid SM configuration | The SyncManager size or direction does not match the slave. Check the PDO configuration and the ESI |
0x001A | Synchronization error | The synchronization configuration is wrong. Check the SYNC0 cycle, the DC configuration and the master cycle time |
0x001B | SM watchdog timeout | The PDO cycle is too slow or communication was interrupted. Check the cycle time, the cabling, the slave power supply and the master load |
0x001D | Invalid output configuration | The output PDO configuration does not match what the slave supports. Check the RxPDO mapping |
0x001E | Invalid input configuration | The input PDO configuration does not match what the slave supports. Check the TxPDO mapping |
0x0024 | Invalid input mapping | The index, sub-index, length or order of the input mapping is wrong. Compare with the ESI and the device manual |
0x0025 | Invalid output mapping | The index, sub-index, length or order of the output mapping is wrong. Compare with the ESI and the device manual |
0x002D | Sync 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 |
0x0034 | DC synchronization timeout | The DC start time or the reference clock configuration is unreasonable. Check the DC settings and the slave manual |
0x0043 | Mailbox CoE error | CoE mailbox communication failed. Check the mailbox configuration, the slave state and the communication quality |
0x0051 | EEPROM error | Reading or writing the slave EEPROM failed. Try power-cycling the slave; if it persists, contact the device vendor |
0x0060 | Slave restarted | The 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
- Confirm which state it is stuck in: INIT, PreOp, SafeOp or OP. Each state corresponds to a different configuration stage.
- 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”.
- Check the PDO mapping: the index, sub-index, data type and length of every RxPDO / TxPDO must match the ESI and the device manual.
- Check the startup parameters: are all mandatory parameters present, and are the write timing (IP / PS / SP / SO) and the order correct?
- Check the DC configuration: whether the device requires DC, whether
AssignActivateis correct, and whether the SYNC0 cycle is reasonable. - 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 code | Meaning | What to do |
|---|---|---|
0x05030000 | Toggle bit not alternated | A communication timing problem. Retry once; if it recurs, check the cabling, the cycle and the mailbox configuration |
0x05040000 | SDO protocol timed out | The slave did not respond in time. Check the communication quality, the cycle time and the slave load, then retry |
0x06010000 | Unsupported access | The object does not support this type of access. Confirm whether you are reading or writing, and consult the object dictionary |
0x06010002 | Write to a read-only object | The object is read-only. Read it instead, or check whether the wrong index was written |
0x06020000 | Object does not exist | The index does not exist, or the ESI / firmware version does not match. Verify the object index against the device manual |
0x06070010 | Data type or length does not match | The number of bytes or the data type written is wrong. Write again using the data type from the object dictionary |
0x06090011 | Sub-index does not exist | The sub-index number is wrong. Check the sub-index list in the object dictionary |
0x06090030 | Value range exceeded | The value written is outside the permitted range. Check the limits and the unit |
0x08000020 | Data 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 |
0x08000021 | Cannot 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 |
0x08000022 | Cannot 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 |
0x08000000 | General 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 |
0x0D000001 | Request 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 |
0x0D000002 | Frame transmitted, but no device counted it (master-side) | Check whether that slave's mailbox is rejecting or full, and check the receive path |
0x0D000003 | Mailbox layer error (master-side) | The peer returned a mailbox Error frame. Check the mailbox SM configuration and the request length |
0x0D000004 | Transport 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 |
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
- 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.
- Confirm the current state: some objects can only be written in PreOp; writing them after entering OP returns
0x08000022. - Confirm the write length: write the number of bytes that matches the object's data type; do not write more or fewer.
- 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.
- 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 result | State | What to do |
|---|---|---|
(sw & 0x4F) == 0x40 | Switch on disabled | Send Controlword 0x06 |
(sw & 0x6F) == 0x21 | Ready to switch on | Send Controlword 0x07 |
(sw & 0x6F) == 0x23 | Switched on | Send Controlword 0x0F |
(sw & 0x6F) == 0x27 | Operation enabled | Already enabled; motion is possible |
(sw & 0x4F) == 0x08 | Fault | Remove the cause of the fault first, then perform a fault reset |
Common CiA 402 fault codes
| Fault code | Meaning | Common causes and what to do |
|---|---|---|
0x2310 | Output stage overcurrent | Load too high, acceleration too fast, short circuit, or motor parameters that do not match. Check the mechanical load and the current limits |
0x3210 | DC bus overvoltage | Deceleration too fast, too much regenerative energy, or supply voltage too high. Check the deceleration time and the braking resistor |
0x3220 | DC bus undervoltage | Insufficient supply, a supply dip, or a power loss during an emergency stop. Check the power supply capacity and the wiring |
0x4210 | Drive overtemperature | Poor cooling, ambient temperature too high, or prolonged overload. Improve the cooling and reduce the load |
0x4310 | Motor overtemperature | Motor overload, poor cooling, or a faulty temperature sensor. Check the load and the motor cooling |
0x8611 | Excessive following error | Unsuitable 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
- 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.
- Read and record
0x603F: confirm the specific fault code, and read0x1003to view the fault history if necessary. - Send a Fault Reset: write
0x6040to the Controlword (0x80) (a rising edge on bit7), hold it for a few cycles, then write0x00. - Enable again: advance the state machine again in the order
0x06→0x07→0x0F, waiting for the StatusWord to confirm each step. - The fault persists: do not keep resetting; use the fault code to check the protection conditions and the wiring in the device manual.
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)
- 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.
- Confirm that the slaves are powered, the cables are firmly inserted and the link LEDs are normal.
- 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.
- Confirm that the ESI file is in the correct directory and matches the device model and firmware version.
- 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
- Check the cables, connectors, power supply and grounding; rule out loose contacts, oxidation and electromagnetic interference.
- Look at the AL Status Code and the port error counters in the slave diagnostics.
- Check whether the PDO cycle is too short, the master load is too high, or the watchdog time is unreasonable.
- 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
- Use shielded cable of good quality and avoid routing it in parallel with power cables.
- Check the switch port, the NIC power-saving settings and sources of EMI.
- Close unnecessary background programs to reduce CPU load.
- Install and enable the official real-time driver, and tune the system as described in Building a professional industrial control system.
Servo enable fails
- Confirm that both the master and the slaves have reached OP.
- Advance the Controlword according to the StatusWord state, and confirm that every step is acknowledged by the StatusWord.
- Check whether the operating mode written to
0x6060is accepted by the drive (read0x6061to confirm). - Check the hardware limits
0x60FD, the software limits0x607Dand the vendor protection conditions. - Read
0x603Fto confirm whether a fault is present, and reset it before enabling; see Motor control FAQ for details.
FoE file download fails
| Error code | Meaning | What to do |
|---|---|---|
0x8001 | File not found | Confirm the file name and the path; mind the case |
0x8002 | Access denied | Confirm that the slave permits writing and that the file is not in use |
0x8003 | Disk full | Free storage space on the slave |
0x8004 | Illegal operation | Confirm that the slave supports FoE write |
0x8005 | Packet sequence error | Communication is unstable; retry and check the link |
0x8006 | File already exists | Decide whether to overwrite, or delete the old file first |
0x800A | Insufficient permissions | Confirm the safety state and the write permissions of the slave |
0x800B | Program error | The 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.