ADS Return Codes

Grouping of error codes: ADS Return Codes, ADS Return Codes, ADS Return Codes, ADS Return Codes, ADS Return Codes...

Global error codes

Hex

Dec

Name

Description

0xFFFFE504

-6908

ERR_NOERROR

No error.

0xFFFFE503

-6909

ERR_INTERNAL

Internal error.

0xFFFFE502

-6910

ERR_NORTIME

No real-time.

0xFFFFE501

-6911

ERR_ALLOCLOCKEDMEM

Allocation locked – memory error.

0xFFFFE500

-6912

ERR_INSERTMAILBOX

Mailbox full – the ADS message could not be sent. Reducing the number of ADS messages per cycle will help.

0xFFFFE4FF

-6913

ERR_WRONGRECEIVEHMSG

Wrong HMSG.

0xFFFFE4FE

-6914

ERR_TARGETPORTNOTFOUND

Target port not found – ADS server is not started or is not reachable.

0xFFFFE4FD

-6915

ERR_TARGETMACHINENOTFOUND

Target computer not found – AMS route was not found.

0xFFFFE4FC

-6916

ERR_UNKNOWNCMDID

Unknown command ID.

0xFFFFE4FB

-6917

ERR_BADTASKID

Invalid task ID.

0xFFFFE4FA

-6918

ERR_NOIO

No IO.

0xFFFFE4F9

-6919

ERR_UNKNOWNAMSCMD

Unknown AMS command.

0xFFFFE4F8

-6920

ERR_WIN32ERROR

Win32 error.

0xFFFFE4F7

-6921

ERR_PORTNOTCONNECTED

Port not connected.

0xFFFFE4F6

-6922

ERR_INVALIDAMSLENGTH

Invalid AMS length.

0xFFFFE4F5

-6923

ERR_INVALIDAMSNETID

Invalid AMS Net ID.

0xFFFFE4F4

-6924

ERR_LOWINSTLEVEL

Installation level is too low –TwinCAT 2 license error.

0xFFFFE4F3

-6925

ERR_NODEBUGINTAVAILABLE

No debugging available.

0xFFFFE4F2

-6926

ERR_PORTDISABLED

Port disabled – TwinCAT system service not started.

0xFFFFE4F1

-6927

ERR_PORTALREADYCONNECTED

Port already connected.

0xFFFFE4F0

-6928

ERR_AMSSYNC_W32ERROR

AMS Sync Win32 error.

0xFFFFE4EF

-6929

ERR_AMSSYNC_TIMEOUT

AMS Sync Timeout.

0xFFFFE4EE

-6930

ERR_AMSSYNC_AMSERROR

AMS Sync error.

0xFFFFE4ED

-6931

ERR_AMSSYNC_NOINDEXINMAP

No index map for AMS Sync available.

0xFFFFE4EC

-6932

ERR_INVALIDAMSPORT

Invalid AMS port.

0xFFFFE4EB

-6933

ERR_NOMEMORY

No memory.

0xFFFFE4EA

-6934

ERR_TCPSEND

TCP send error.

0xFFFFE4E9

-6935

ERR_HOSTUNREACHABLE

Host unreachable.

0xFFFFE4E8

-6936

ERR_INVALIDAMSFRAGMENT

Invalid AMS fragment.

0xFFFFE4E7

-6937

ERR_TLSSEND

TLS send error – secure ADS connection failed.

0xFFFFE4E6

-6938

ERR_ACCESSDENIED

Access denied – secure ADS access denied.

Router error codes

Hex

Dec

Name

Description

0xFFFFE004

-8188

ROUTERERR_NOLOCKEDMEMORY

Locked memory cannot be allocated.

0xFFFFE003

-8189

ROUTERERR_RESIZEMEMORY

The router memory size could not be changed.

0xFFFFE002

-8190

ROUTERERR_MAILBOXFULL

The mailbox has reached the maximum number of possible messages.

0xFFFFE001

-8191

ROUTERERR_DEBUGBOXFULL

The Debug mailbox has reached the maximum number of possible messages.

0xFFFFE000

-8192

ROUTERERR_UNKNOWNPORTTYPE

The port type is unknown.

0xFFFFDEEF

-8193

ROUTERERR_NOTINITIALIZED

The router is not initialized.

0xFFFFDFFE

-8194

ROUTERERR_PORTALREADYINUSE

The port number is already assigned.

0xFFFFDFFD

-8195

ROUTERERR_NOTREGISTERED

The port is not registered.

0xFFFFDFFC

-8196

ROUTERERR_NOMOREQUEUES

The maximum number of ports has been reached.

0xFFFFDFFB

-8197

ROUTERERR_INVALIDPORT

The port is invalid.

0xFFFFDFFA

-8198

ROUTERERR_NOTACTIVATED

The router is not active.

0xFFFFDFF9

-8199

ROUTERERR_FRAGMENTBOXFULL

The mailbox has reached the maximum number for fragmented messages.

0xFFFFDFF8

-8200

ROUTERERR_FRAGMENTTIMEOUT

A fragment timeout has occurred.

0xFFFFDFF7

-8201

ROUTERERR_TOBEREMOVED

The port is removed.

General ADS error codes

Hex

Dec

Name

Description

0xFFFFDE04

-8700

ADSERR_DEVICE_ERROR

General device error.

0xFFFFDE03

-8701

ADSERR_DEVICE_SRVNOTSUPP

Service is not supported by the server.

0xFFFFDE02

-8702

ADSERR_DEVICE_INVALIDGRP

Invalid index group.

0xFFFFDE01

-8703

ADSERR_DEVICE_INVALIDOFFSET

Invalid index offset.

0xFFFFDE00

-8704

ADSERR_DEVICE_INVALIDACCESS

Reading or writing not permitted.

0xFFFFDDFF

-8705

ADSERR_DEVICE_INVALIDSIZE

Parameter size not correct.

0xFFFFDDFE

-8706

ADSERR_DEVICE_INVALIDDATA

Invalid data values.

0xFFFFDDFD

-8707

ADSERR_DEVICE_NOTREADY

Device is not ready to operate.

0xFFFFDDFC

-8708

ADSERR_DEVICE_BUSY

Device is busy.

0xFFFFDDFB

-8709

ADSERR_DEVICE_INVALIDCONTEXT

Invalid operating system context. This can result from use of ADS function blocks in different tasks. It may be possible to resolve this through multitasking synchronization in the PLC.

0xFFFFDDFA

-8710

ADSERR_DEVICE_NOMEMORY

Insufficient memory.

0xFFFFDDF9

-8711

ADSERR_DEVICE_INVALIDPARM

Invalid parameter values.

0xFFFFDDF8

-8712

ADSERR_DEVICE_NOTFOUND

Not found (files, ...).

0xFFFFDDF7

-8713

ADSERR_DEVICE_SYNTAX

Syntax error in file or command.

0xFFFFDDF6

-8714

ADSERR_DEVICE_INCOMPATIBLE

Objects do not match.

0xFFFFDDF5

-8715

ADSERR_DEVICE_EXISTS

Object already exists.

0xFFFFDDF4

-8716

ADSERR_DEVICE_SYMBOLNOTFOUND

Symbol not found.

0xFFFFDDF3

-8717

ADSERR_DEVICE_SYMBOLVERSIONINVALID

Invalid symbol version. This can occur due to an online change. Create a new handle.

0xFFFFDDF2

-8718

ADSERR_DEVICE_INVALIDSTATE

Device (server) is in invalid state.

0xFFFFDDF1

-8719

ADSERR_DEVICE_TRANSMODENOTSUPP

AdsTransMode not supported.

0xFFFFDDF0

-8720

ADSERR_DEVICE_NOTIFYHNDINVALID

Notification handle is invalid.

0xFFFFDDEF

-8721

ADSERR_DEVICE_CLIENTUNKNOWN

Notification client not registered.

0xFFFFDDEE

-8722

ADSERR_DEVICE_NOMOREHDLS

No further notification handle available.

0xFFFFDDED

-8723

ADSERR_DEVICE_INVALIDWATCHSIZE

Notification size too large.

0xFFFFDDEC

-8724

ADSERR_DEVICE_NOTINIT

Device not initialized.

0xFFFFDDEB

-8725

ADSERR_DEVICE_TIMEOUT

Device has a timeout.

0xFFFFDDEA

-8726

ADSERR_DEVICE_NOINTERFACE

Interface query failed.

0xFFFFDDE9

-8727

ADSERR_DEVICE_INVALIDINTERFACE

Wrong interface requested.

0xFFFFDDE8

-8728

ADSERR_DEVICE_INVALIDCLSID

Class ID is invalid.

0xFFFFDDE7

-8729

ADSERR_DEVICE_INVALIDOBJID

Object ID is invalid.

0xFFFFDDE6

-8730

ADSERR_DEVICE_PENDING

Request pending.

0xFFFFDDE5

-8731

ADSERR_DEVICE_ABORTED

Request is aborted.

0xFFFFDDE4

-8732

ADSERR_DEVICE_WARNING

Signal warning.

0xFFFFDDE3

-8733

ADSERR_DEVICE_INVALIDARRAYIDX

Invalid array index.

0xFFFFDDE2

-8734

ADSERR_DEVICE_SYMBOLNOTACTIVE

Symbol not active.

0xFFFFDDE1

-8735

ADSERR_DEVICE_ACCESSDENIED

Access denied.

0xFFFFDDE0

-8736

ADSERR_DEVICE_LICENSENOTFOUND

Missing license.

0xFFFFDDDF

-8737

ADSERR_DEVICE_LICENSEEXPIRED

License expired.

0xFFFFDDDE

-8738

ADSERR_DEVICE_LICENSEEXCEEDED

License exceeded.

0xFFFFDDDD

-8739

ADSERR_DEVICE_LICENSEINVALID

Invalid license.

0xFFFFDDDC

-8740

ADSERR_DEVICE_LICENSESYSTEMID

License problem: System ID is invalid.

0xFFFFDDDB

-8741

ADSERR_DEVICE_LICENSENOTIMELIMIT

License not limited in time.

0xFFFFDDDA

-8742

ADSERR_DEVICE_LICENSEFUTUREISSUE

License problem: Time in the future.

0xFFFFDDD9

-8743

ADSERR_DEVICE_LICENSETIMETOLONG

License period too long.

0xFFFFDDD8

-8744

ADSERR_DEVICE_EXCEPTION

Exception at system startup.

0xFFFFDDD7

-8745

ADSERR_DEVICE_LICENSEDUPLICATED

License file read twice.

0xFFFFDDD6

-8746

ADSERR_DEVICE_SIGNATUREINVALID

Invalid signature.

0xFFFFDDD5

-8747

ADSERR_DEVICE_CERTIFICATEINVALID

Invalid certificate.

0xFFFFDDD4

-8748

ADSERR_DEVICE_LICENSEOEMNOTFOUND

Public key not known from OEM.

0xFFFFDDD3

-8749

ADSERR_DEVICE_LICENSERESTRICTED

License not valid for this system ID.

0xFFFFDDD2

-8750

ADSERR_DEVICE_LICENSEDEMODENIED

Demo license prohibited.

0xFFFFDDD1

-8751

ADSERR_DEVICE_INVALIDFNCID

Invalid function ID.

0xFFFFDDD0

-8752

ADSERR_DEVICE_OUTOFRANGE

Outside the valid range.

0xFFFFDDCF

-8753

ADSERR_DEVICE_INVALIDALIGNMENT

Invalid alignment.

0xFFFFDDCE

-8754

ADSERR_DEVICE_LICENSEPLATFORM

Invalid platform level.

0xFFFFDDCD

-8755

ADSERR_DEVICE_FORWARD_PL

Context – forward to passive level.

0xFFFFDDCC

-8756

ADSERR_DEVICE_FORWARD_DL

Context – forward to dispatch level.

0xFFFFDDCB

-8757

ADSERR_DEVICE_FORWARD_RT

Context – forward to real-time.

0xFFFFDDC4

-8764

ADSERR_CLIENT_ERROR

Client error.

0xFFFFDDC3

-8765

ADSERR_CLIENT_INVALIDPARM

Service contains an invalid parameter.

0xFFFFDDC2

-8766

ADSERR_CLIENT_LISTEMPTY

Polling list is empty.

0xFFFFDDC1

-8767

ADSERR_CLIENT_VARUSED

Var connection already in use.

0xFFFFDDC0

-8768

ADSERR_CLIENT_DUPLINVOKEID

The called ID is already in use.

0xFFFFDDBF

-8769

ADSERR_CLIENT_SYNCTIMEOUT

Timeout has occurred – the remote terminal is not responding in the specified ADS timeout. The route setting of the remote terminal may be configured incorrectly.

0xFFFFDDBE

-8770

ADSERR_CLIENT_W32ERROR

Error in Win32 subsystem.

0xFFFFDDBD

-8771

ADSERR_CLIENT_TIMEOUTINVALID

Invalid client timeout value.

0xFFFFDDBC

-8772

ADSERR_CLIENT_PORTNOTOPEN

Port not open.

0xFFFFDDBB

-8773

ADSERR_CLIENT_NOAMSADDR

No AMS address.

0xFFFFDDB4

-8780

ADSERR_CLIENT_SYNCINTERNAL

Internal error in Ads sync.

0xFFFFDDB3

-8781

ADSERR_CLIENT_ADDHASH

Hash table overflow.

0xFFFFDDB2

-8782

ADSERR_CLIENT_REMOVEHASH

Key not found in the table.

0xFFFFDDB1

-8783

ADSERR_CLIENT_NOMORESYM

No symbols in the cache.

0xFFFFDDB0

-8784

ADSERR_CLIENT_SYNCRESINVALID

Invalid response received.

0xFFFFDDAF

-8785

ADSERR_CLIENT_SYNCPORTLOCKED

Sync Port is locked.

RTime error codes

Hex

Dec

Name

Description

0xFFFFD504

-11004

RTERR_INTERNAL

Internal error in the real-time system.

0xFFFDD503

-11005

RTERR_BADTIMERPERIODS

Timer value is not valid.

0xFFFFD502

-11006

RTERR_INVALIDTASKPTR

Task pointer has the invalid value 0 (zero).

0xFFFFD501

-11007

RTERR_INVALIDSTACKPTR

Stack pointer has the invalid value 0 (zero).

0xFFFFD500

-11008

RTERR_PRIOEXISTS

The request task priority is already assigned.

0xFFFFD4FF

-11009

RTERR_NOMORETCB

No free TCB (Task Control Block) available. The maximum number of TCBs is 64.

0xFFFFD4FE

-11010

RTERR_NOMORESEMAS

No free semaphores available. The maximum number of semaphores is 64.

0xFFFFD4FD

-11011

 

RTERR_NOMOREQUEUES

 

No free space available in the queue. The maximum number of positions in the queue is 64.

0xFFFFD4FC

-11012

RTERR_EXTIRQALREADYDEF

An external synchronization interrupt is already applied.

0xFFFFD4FB

-11013

RTERR_EXTIRQNOTDEF

No external sync interrupt applied.

0xFFFFD4FA

-11014

RTERR_EXTIRQINSTALLFAILED

Application of the external synchronization interrupt has failed.

0xFFFFD4F9

-11015

RTERR_IRQLNOTLESSOREQUAL

Call of a service function in the wrong context

0xFFFFD4F8

-11016

RTERR_VMXNOTSUPPORTED

Intel VT-x extension is not supported.

0xFFFFD4F7

-11017

RTERR_VMXDISABLED

Intel VT-x extension is not enabled in the BIOS.

0xFFFFD4F6

-11018

RTERR_VMXCONTROLSMISSING

Missing function in Intel VT-x extension.

0xFFFFD4F5

-11019

RTERR_VMXENABLEFAILS

Activation of Intel VT-x fails.

TCP Winsock error codes

Hex

Dec

Name

Description

0xFFFFBDB8

-16968

WSAETIMEDOUT

A connection timeout has occurred - error while establishing the connection, because the remote terminal did not respond properly after a certain period of time, or the established connection could not be maintained because the connected host did not respond.

0xFFFFBDB7

-16969

WSAECONNREFUSED

Connection refused - no connection could be established because the target computer has explicitly rejected it. This error usually results from an attempt to connect to a service that is inactive on the external host, that is, a service for which no server application is running.

0xFFFFBDB6

-16970

WSAEHOSTUNREACH

No route to host - a socket operation referred to an unavailable host.

More Winsock error codes: Win32 error codes