| TwinCAT Diagnostics: ADS Return Codes |
Error codes: 0x000..., 0x500..., 0x700..., 0x1000..., 0x274C...
| Hex | Dec | Description |
|---|---|---|
| 0x0 | 0 | no error |
| 0x1 | 1 | Internal error |
| 0x2 | 2 | No Rtime |
| 0x3 | 3 | Allocation locked memory error |
| 0x4 | 4 | Insert mailbox error |
| 0x5 | 5 | Wrong receive HMSG |
| 0x6 | 6 | target port not found |
| 0x7 | 7 | target machine not found |
| 0x8 | 8 | Unknown command ID |
| 0x9 | 9 | Bad task ID |
| 0xA | 10 | No IO |
| 0xB | 11 | Unknown AMS command |
| 0xC | 12 | Win 32 error |
| 0xD | 13 | Port not connected |
| 0xE | 14 | Invalid AMS length |
| 0xF | 15 | Invalid AMS Net ID |
| 0x10 | 16 | Low Installation level |
| 0x11 | 17 | No debug available |
| 0x12 | 18 | Port disabled |
| 0x13 | 19 | Port already connected |
| 0x14 | 20 | AMS Sync Win32 error |
| 0x15 | 21 | AMS Sync Timeout |
| 0x16 | 22 | AMS Sync AMS error |
| 0x17 | 23 | AMS Sync no index map |
| 0x18 | 24 | Invalid AMS port |
| 0x19 | 25 | No memory |
| 0x1A | 26 | TCP send error |
| 0x1B | 27 | Host unreachable |
| Hex | Dec | Error type | Description |
|---|---|---|---|
| 0x500 | 1280 | internal |
ROUTERERR_NOLOCKEDMEMORY No locked memory can be allocated. |
| 0x501 | 1281 | internal |
ROUTERERR_RESIZEMEMORY The size of the router memory could not be changed. |
| 0x502 | 1282 | internal |
ROUTERERR_MAILBOXFULL The Mailbox of the AmsPort has reached the maximum number of possible entries. The current sent message was abolished. |
| 0x503 | 1283 | internal |
ROUTERERR_DEBUGBOXFULL The Mailbox of the Ams debugger port has reached the maximum number of possible entries. The sent message will not be displayed in the debug monitor. |
| 0x504 | 1284 | internal | ROUTERERR_UNKNOWNPORTTYPE |
| 0x505 | 1285 | internal |
ROUTERERR_NOTINITIALIZED Router is not (yet) initialised |
| 0x506 | 1286 | internal |
ROUTERERR_PORTALREADYINUSE The desired port number is already assigned. |
| 0x507 | 1287 | internal |
ROUTERERR_NOTREGISTERED Ams Port not registered |
| 0x508 | 1288 | internal |
ROUTERERR_NOMOREQUEUES The maximum number of Ams Ports reached. |
| 0x509 | 1289 | internal | ROUTERERR_INVALIDPORT |
| 0x50A | 1290 | internal |
ROUTERERR_NOTACTIVATED TwinCAT Router not (yet) active. |
| Hex | Dec | Description |
|---|---|---|
| 0x700 | 1792 | error class <device error> |
| 0x701 | 1793 | Service is not supported by server |
| 0x702 | 1794 | invalid index group |
| 0x703 | 1795 | invalid index offset |
| 0x704 | 1796 | reading/writing not permitted |
| 0x705 | 1797 | parameter size not correct |
| 0x706 | 1798 | invalid parameter value(s) |
| 0x707 | 1799 | device is not in a ready state |
| 0x708 | 1800 | device is busy |
| 0x709 | 1801 | invalid context (must be in Windows) |
| 0x70A | 1802 | out of memory |
| 0x70B | 1803 | invalid parameter value(s) |
| 0x70C | 1804 | not found (files, ...) |
| 0x70D | 1805 | syntax error in command or file |
| 0x70E | 1806 | objects do not match |
| 0x70F | 1807 | object already exists |
| 0x710 | 1808 | symbol not found |
| 0x711 | 1809 | symbol version invalid |
| 0x712 | 1810 | server is in invalid state |
| 0x713 | 1811 | AdsTransMode not supported |
| 0x714 | 1812 | Notification handle is invalid |
| 0x715 | 1813 | Notification client not registered |
| 0x716 | 1814 | no more notification handles |
| 0x717 | 1815 | size for watch too big |
| 0x718 | 1816 | device not initialized |
| 0x719 | 1817 | device has a timeout |
| 0x71A | 1818 | query interface failed |
| 0x71B | 1819 | wrong interface required |
| 0x71C | 1820 | class ID is invalid |
| 0x71D | 1821 | object ID is invalid |
| 0x71E | 1822 | request is pending |
| 0x71F | 1823 | request is aborted |
| 0x720 | 1824 | signal warning |
| 0x721 | 1825 | invalid array index |
| 0x722 | 1826 | symbol not active -> release handle and try again |
| 0x723 | 1827 | access denied |
| 0x740 | 1856 | Error class <client error> |
| 0x741 | 1857 | invalid parameter at service |
| 0x742 | 1858 | polling list is empty |
| 0x743 | 1859 | var connection already in use |
| 0x744 | 1860 | invoke ID in use |
| 0x745 | 1861 | timeout elapsed |
| 0x746 | 1862 | error in win32 subsystem |
| 0x748 | 1864 | ads-port not opened |
| 0x750 | 1872 | internal error in ads sync |
| 0x751 | 1873 | hash table overflow |
| 0x752 | 1874 | key not found in hash |
| 0x753 | 1875 | no more symbols in cache |
| 0x754 | 1876 | invalid response received |
| 0x755 | 1877 | sync port is locked |
| Hex | Dec | Error type | Description |
|---|---|---|---|
| 0x1000 | 4096 | internal |
RTERR_INTERNAL Internal fatal error in the TwinCAT real-time system |
| 0x1001 | 4097 | internal |
RTERR_BADTIMERPERIODS Timer value not vaild |
| 0x1002 | 4098 | internal |
RTERR_INVALIDTASKPTR Task pointer has the invalid value ZERO |
| 0x1003 | 4099 | internal |
RTERR_INVALIDSTACKPTR Task stack pointer has the invalid value ZERO. |
| 0x1004 | 4100 | internal |
RTERR_PRIOEXISTS The demand task priority is already assigned. |
| 0x1005 | 4101 | internal |
RTERR_NOMORETCB No more free TCB (Task Control Block) available. Maximum number of TCBs is 64. |
| 0x1006 | 4102 | internal |
RTERR_NOMORESEMAS No more free semaphores available. Maximum number of semaphores is 64. |
| 0x1007 | 4103 | internal |
RTERR_NOMOREQUEUES No more free queue available. Maximum number of queue is 64. |
| 0x1008 | 4104 | internal | TwinCAT reserved. |
| 0x1009 | 4105 | internal | TwinCAT reserved. |
| 0x100A | 4106 | internal | TwinCAT reserved. |
| 0x100B | 4107 | internal | TwinCAT reserved. |
| 0x100C | 4108 | internal | TwinCAT reserved. |
| 0x100D | 4109 | internal |
RTERR_EXTIRQALREADYDEF An external synchronisation interrupt is already applied. |
| 0x100E | 4110 | internal |
RTERR_EXTIRQNOTDEF No external synchronsiation interrupt applied. |
| 0x100F | 4111 | internal |
RTERR_EXTIRQINSTALLFAILED The apply of the external synchronisation interrupt failed. |
| 0x1010 | 4112 | internal |
RTERR_IRQLNOTLESSOREQUAL Call of a service function in the wrong context. |
| Hex | Dec | Description |
|---|---|---|
| 0x274c | 10060 | A socket operation was attempted to an unreachable host |
| 0x274d | 10061 | A connection attempt failed because the connected party did not
properly respond after a period of time, or established connection failed because connected host has failed to respond. |
| 0x2751 | 10065 | No connection could be made because the target machine actively refused it |
| Further Winsock error codes: Win32 Error Codes |