E_CMA_ErrorCode

These error codes are necessary in the realtime context only. Please, note that the analysis function blocks must be allocated in the PLC declaration part correctly.
The configuration errors should be solved first, followed by the initialization errors.
For example: If any instances throw the error eCMA_ErrConfig_InvalidOwnID this has to be solved first. Runtime errors at other function blocks can be subsequent errors.

code (HRESULT)

symbol

description / solution

0

eCMA_OK

No Error, everything is OK

configuration errors

16#9852_0101

eCMA_ErrConfig_InvalidOwnID

invalid transfer own ID was allocated

16#9852_0102

eCMA_ErrConfig_InvalidDestID

invalid transfer destination IDs were allocated

16#9852_0103

eCMA_ErrConfig_InvalidBufferNumber

invalid number of MultiArrays which should be initialized for results

16#9852_0104

eCMA_ErrConfig_InvalidTimeout

invalid timeout. condition: 0us << tTransferTimeout << task cycle time

initialization errors

16#9852_0201

eCMA_ErrInit_IllegalInitContext

initialization not possible. Illegal initialization context or internal members uninitialized.

16#9852_0202

eCMA_ErrInit_InitTransferTrayFailed

Initialization of transfer tray has been failed. Check TcCOM object states and router memory (see Memory management ). Check installed TwinCAT version (see System requirements ).

16#9852_0203

eCMA_ErrInit_NoStreamAllocated

The analysis chain is incorrect. Check all OwnIDs and DestIDs.

16#9852_0204

eCMA_ErrInit_StreamOverrun

Not enough streams available. Adjust ST_CM_TransferTray_InitPars

runtime errors

16#9852_0301

eCMA_ErrRTime_InvalidPointer

NULL pointer was allocated

16#9852_0302

eCMA_ErrRTime_InvalidDataBufferSize

invalid size of data buffer was allocated

16#9852_0303

eCMA_ErrRTime_InvalidElementType

invalid element type was allocated

16#9852_0304

eCMA_ErrRTime_InvalidElementCnt

element count does not match. (check number of elements, MultiArray buffer size and start index)

16#9852_0305

eCMA_ErrRTime_InvalidStartIndex

invalid pStartIndex was allocated (check buffer sizes)

16#9852_0311

eCMA_ErrRTime_MissingConfiguration

Argument not configured. Call method Configure() first.

16#9852_0321

eCMA_ErrRTime_NoMultiArrayAvailable

no multiarray available for result. Check analysis chain, task cycle times and the number of MultiArrays (usually at least 3 in each ring)

Requirements

Development environment

Target system type

PLC libraries to include

TwinCAT v3.1.4013

PC or CX (x86, x64)

Tc3_CM