Skip to content

Commit b8154fe

Browse files
Merge pull request #124 from marcogario/patch-1
SdoAbortedError: Include error messages as of version 4.2.0 of the standard
2 parents 3a59759 + fbc6605 commit b8154fe

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

canopen/sdo/exceptions.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,34 @@ class SdoAbortedError(SdoError):
1414
0x05040002: "Invalid block size",
1515
0x05040003: "Invalid sequence number",
1616
0x05040004: "CRC error",
17+
0x05040005: "Out of memory",
1718
0x06010000: "Unsupported access to an object",
1819
0x06010001: "Attempt to read a write only object",
1920
0x06010002: "Attempt to write a read only object",
2021
0x06020000: "Object does not exist",
22+
0x06040041: "Object cannot be mapped to the PDO",
2123
0x06040042: "PDO length exceeded",
24+
0x06040043: "General parameter incompatibility reason",
25+
0x06040047: "General internal incompatibility in the device",
2226
0x06060000: "Access failed due to a hardware error",
2327
0x06070010: "Data type and length code do not match",
28+
0x06070012: "Data type does not match, length of service parameter too high",
29+
0x06070013: "Data type does not match, length of service parameter too low",
2430
0x06090011: "Subindex does not exist",
2531
0x06090030: "Value range of parameter exceeded",
32+
0x06090031: "Value of parameter written too high",
33+
0x06090032: "Value of parameter written too low",
34+
0x06090036: "Maximum value is less than minimum value",
2635
0x060A0023: "Resource not available",
2736
0x08000000: "General error",
37+
0x08000020: "Data cannot be transferred or stored to the application",
2838
0x08000021: ("Data can not be transferred or stored to the application "
2939
"because of local control"),
3040
0x08000022: ("Data can not be transferred or stored to the application "
31-
"because of the present device state")
41+
"because of the present device state"),
42+
0x08000023: ("Object dictionary dynamic generation fails or no object "
43+
"dictionary is present"),
44+
0x08000024: "No data available",
3245
}
3346

3447
def __init__(self, code):

0 commit comments

Comments
 (0)