ST_EcLastProtErrInfo

Th structure ST_EcLastProtErrInfo contains additional error information about the last occurred "EtherCAT mailbox protocol error".

TYPE ST_EcSlaveState:
STRUCT
    ownAddr : ST_AmsAddr; 
    orgAddr : ST_AmsAddr;
    errCode : UDINT;        
    binDesc : ARRAY[0..MAX_STRING_LENGTH] OF BYTE;
END_STRUCT
END_TYPE

ownAddr: Own AMS address (address of communication participant which calls the error information).

orgAddr: AMS address of the error causer (address of communication participant which caused the protocol error).

errCode: Mailbox protocol error number (SoE, CoE, FoE error code).

binDesc: Additional error information as binary data.  The additional error information is device specific and contains e.g. a string or binary data.

Requirements

Development Environment

Target System

PLC libraries to include

TwinCAT v2.10.0 Build > 1307 or higher

PC or CX (x86, ARM)

TcEtherCAT.Lib
( Standard.Lib; TcBase.Lib; TcSystem.Lib, TcUtilities.Lib are included automatically )