Error Codes 6 Error Codes 6.1 ADS Return Codes Grouping of error codes: 0x000 [ } 38] ..., 0x500 [ } 38] ..., 0x700 [ } 39] ..., 0x1000 [ } 40] ... Global error codes Router error codes TS511x 38 Version: 1.0 Hex Dec HRESULT Name Description 0x0 0 0x9811 0000 ERR NOERROR _ No error. 0x1 1 0x9811 0001 ERR INTERNAL _ Internal error. 0x2 2 0x9811 0002 ERR NORTIME _ No real-time. 0x3 3 0x9811 0003 ERR ALLOCLOCKEDMEM _ Allocation locked – memory error. 0x4 4 0x9811 0004 ERR INSERTMAILBOX _ Mailbox full – the ADS message could not be sent. Reducing the number of ADS messages per cycle will help. 0x5 5 0x9811 0005 ERR WRONGRECEIVEHMSG _ Wrong HMSG.
0x6 6 0x9811 0006 ERR TARGETPORTNOTFOUND _ Target port not found – ADS server is not started or is not reachable. 0x7 7 0x9811 0007 ERR TARGETMACHINENOTFOUND _ Target computer not found – AMS route was not found. 0x8 8 0x9811 0008 ERR UNKNOWNCMDID _ Unknown command ID. 0x9 9 0x9811 0009 ERR BADTASKID _ Invalid task ID. 0xA 10 0x9811 000A ERR NOIO _ No IO. 0xB 11 0x9811 000B ERR UNKNOWNAMSCMD _ Unknown AMS command. 0xC 12 0x9811 000C ERR WIN32ERROR _ Win32 error. 0xD 13 0x9811 000D ERR PORTNOTCONNECTED _ Port not connected. 0xE 14 0x9811 000E ERR INVALIDAMSLENGTH _ Invalid AMS length. 0xF 15 0x9811 000F ERR INVALIDAMSNETID _ Invalid AMS Net ID.
0x10 16 0x9811 0010 ERR LOWINSTLEVEL _ Installation level is too low –TwinCAT 2 license er- ror. 0x11 17 0x9811 0011 ERR NODEBUGINTAVAILABLE _ No debugging available. 0x12 18 0x9811 0012 ERR PORTDISABLED _ Port disabled – TwinCAT system service not started. 0x13 19 0x9811 0013 ERR PORTALREADYCONNECTED _ Port already connected. 0x14 20 0x9811 0014 ERR AMSSYNC W32ERROR _ _ AMS Sync Win32 error. 0x15 21 0x9811 0015 ERR AMSSYNC TIMEOUT _ _ AMS Sync Timeout. 0x16 22 0x9811 0016 ERR AMSSYNC AMSERROR _ _ AMS Sync error. 0x17 23 0x9811 0017 ERR AMSSYNC NOINDEXINMAP _ _ No index map for AMS Sync available. 0x18 24 0x9811 0018 ERR INVALIDAMSPORT _ Invalid AMS port.
0x19 25 0x9811 0019 ERR NOMEMORY _ No memory. 0x1A 26 0x9811 001A ERR TCPSEND _ TCP send error. 0x1B 27 0x9811 001B ERR HOSTUNREACHABLE _ Host unreachable. 0x1C 28 0x9811 001C ERR INVALIDAMSFRAGMENT _ Invalid AMS fragment. 0x1D 29 0x9811 001D ERR TLSSEND _ TLS send error – secure ADS connection failed. 0x1E 30 0x9811 001E ERR ACCESSDENIED _ Access denied – secure ADS access denied. Hex Dec HRESULT Name Description 0x500 1280 0x9811 0500 ROUTERERR NOLOCKEDMEMORY _ Locked memory cannot be allocated. 0x501 1281 0x9811 0501 ROUTERERR RESIZEMEMORY _ The router memory size could not be changed.
0x502 1282 0x9811 0502 ROUTERERR MAILBOXFULL _ The mailbox has reached the maximum number of possible messages. 0x503 1283 0x9811 0503 ROUTERERR DEBUGBOXFULL _ The Debug mailbox has reached the maximum number of possible messages. 0x504 1284 0x9811 0504 ROUTERERR UNKNOWNPORTTYPE _ The port type is unknown.