ST_EcSlaveStateBits

The structure ST_EcSlaveStateBits contains the EtherCAT status and the Link status of an EtherCAT slave device.

TYPE ST_EcSlaveStateBits:
STRUCT
    bInit             : BOOL;
    bPreop            : BOOL;
    bBootStrap        : BOOL;
    bSafeOp           : BOOL;
    bOp               : BOOL;
    bError            : BOOL;
    bInvVPRS          : BOOL;
    bInitCmdError     : BOOL;

    bLinkNotPresent   : BOOL;
    bLinkWithoutComm  : BOOL;
    bLinkMissing      : BOOL;
    bAdditionalLink   : BOOL;
    bPortA            : BOOL;
    bPortB            : BOOL;
    bPortC            : BOOL;
    bPortD            : BOOL;
END_STRUCT
END_TYPE

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.10.0 or higher

PC or CX (x86)

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

TwinCAT v2.10.0 Build >= 1301 or higher

CX (ARM)