Appendix | Return values 7 Appendix | Appendix 7.1 Return values | Return values 7.1.1 ADS Return Codes | ADS Return Codes Grouping of error codes: Global error codes: 0x0000 [ } 40] ... (0x9811_0000 ...) Router error codes: 0x500 [ } 40] ... (0x9811_0500 ...) General ADS errors: 0x700 [ } 41] ... (0x9811_0700 ...) RTime error codes: 0x1000 [ } 43] ... (0x9811_1000 ...) Global error codes Router error codes TE132x 40 Version: 1.3.0 Hex Dec HRESULT Name Description 0x0 0 0x98110000 ERR NOERROR _ No error. 0x1 1 0x98110001 ERR INTERNAL _ Internal error. 0x2 2 0x98110002 ERR NORTIME _ No real time. 0x3 3 0x98110003 ERR ALLOCLOCKEDMEM _ Allocation locked – memory error.
0x4 4 0x98110004 ERR INSERTMAILBOX _ Mailbox full – the ADS message could not be sent. Reducing the number of ADS messages per cycle will help. 0x5 5 0x98110005 ERR WRONGRECEIVEHMSG _ Wrong HMSG. 0x6 6 0x98110006 ERR TARGETPORTNOTFOUND _ Target port not found – ADS server is not started, not reachable or not installed. 0x7 7 0x98110007 ERR TARGETMACHINENOTFOUND _ Target computer not found – AMS route was not found. 0x8 8 0x98110008 ERR UNKNOWNCMDID _ Unknown command ID. 0x9 9 0x98110009 ERR BADTASKID _ Invalid task ID. 0xA 10 0x9811000A ERR NOIO _ No IO. 0xB 11 0x9811000B ERR UNKNOWNAMSCMD _ Unknown AMS command. 0xC 12 0x9811000C ERR WIN32ERROR _ Win32 error.
0xD 13 0x9811000D ERR PORTNOTCONNECTED _ Port not connected. 0xE 14 0x9811000E ERR INVALIDAMSLENGTH _ Invalid AMS length. 0xF 15 0x9811000F ERR INVALIDAMSNETID _ Invalid AMS Net ID. 0x10 16 0x98110010 ERR LOWINSTLEVEL _ Installation level is too low –TwinCAT 2 license error. 0x11 17 0x98110011 ERR NODEBUGINTAVAILABLE _ No debugging available. 0x12 18 0x98110012 ERR PORTDISABLED _ Port disabled – TwinCAT system service not started. 0x13 19 0x98110013 ERR PORTALREADYCONNECTED _ Port already connected. 0x14 20 0x98110014 ERR AMSSYNC W32ERROR _ _ AMS Sync Win32 error. 0x15 21 0x98110015 ERR AMSSYNC TIMEOUT _ _ AMS Sync Timeout. 0x16 22 0x98110016 ERR AMSSYNC AMSERROR _ _ AMS Sync error.
0x17 23 0x98110017 ERR AMSSYNC NOINDEXINMAP _ _ No index map for AMS Sync available. 0x18 24 0x98110018 ERR INVALIDAMSPORT _ Invalid AMS port. 0x19 25 0x98110019 ERR NOMEMORY _ No memory. 0x1A 26 0x9811001A ERR TCPSEND _ TCP send error. 0x1B 27 0x9811001B ERR HOSTUNREACHABLE _ Host unreachable. 0x1C 28 0x9811001C ERR INVALIDAMSFRAGMENT _ Invalid AMS fragment. 0x1D 29 0x9811001D ERR TLSSEND _ TLS send error – secure ADS connection failed. 0x1E 30 0x9811001E ERR ACCESSDENIED _ Access denied – secure ADS access denied.