beckhoff TwinCAT — 2 ADS Return Codes

ADS Return Codes 2 ADS Return Codes Grouping of error codes: Global error codes: ADS Return Codes [ } 8] ... (0x9811_0000 ...) Router error codes: ADS Return Codes [ } 8] ... (0x9811_0500 ...) General ADS errors: ADS Return Codes [ } 9] ... (0x9811_0700 ...) RTime error codes: ADS Return Codes [ } 10] ... (0x9811_1000 ...) Global error codes Router error codes Diagnostics 8 Version: 1.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. Re- ducing 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 or is not reachable. 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. Hex Dec HRESULT Name Description 0x500 1280 0x98110500 ROUTERERR NOLOCKEDMEMORY _ Locked memory cannot be allocated.

0x501 1281 0x98110501 ROUTERERR RESIZEMEMORY _ The router memory size could not be changed. 0x502 1282 0x98110502 ROUTERERR MAILBOXFULL _ The mailbox has reached the maximum number of possible messages. 0x503 1283 0x98110503 ROUTERERR DEBUGBOXFULL _ The Debug mailbox has reached the maximum num- ber of possible messages. 0x504 1284 0x98110504 ROUTERERR UNKNOWNPORTTYPE _ The port type is unknown. 0x505 1285 0x98110505 ROUTERERR NOTINITIALIZED _ The router is not initialized. 0x506 1286 0x98110506 ROUTERERR PORTALREADYINUSE _ The port number is already assigned.