Table of Contents

Namespace TwinSharp.EtherCAT

Classes

EtherCatDevice

Describes an EtherCAT device, using all standard objects as defined from the EtherCAT standard. This class can be derived and extended to create a specific EtherCAT device.

EtherCatMaster

The EtherCatMaster class provides methods to interact with an EtherCAT master device. It allows for reading the current state, device type, and name of the master, as well as retrieving information about connected slaves, such as their configuration, state, and topology. Additionally, it can read unexpected state changes and convert device status to a string representation.

EtherCatSlave

Represents an EtherCAT slave device and provides methods to interact with it via TwinCAT ADS.

Structs

ST_EcCrcErrorEx

Structure containing the CRC error counters of the individual ports (A, B, C and D) of an EtherCAT slave device.

ST_EcSlaveConfigData

The structure ST_EcSlaveConfigData contains the EtherCAT configuration data for an EtherCAT slave device.

ST_EcSlaveIdentity

The structure ST_EcSlaveIdentity contains the EtherCAT identity data for an EtherCAT slave device.

ST_EcSlaveState

The structure ST_EcSlaveState contains the EtherCAT state and the link state of an EtherCAT slave device.

ST_PortAddr

The structure ST_PortAddr contains EtherCAT topology information for EtherCAT slave device. EtherCAT slave devices typically have 2 to 4 ports.

ST_TopologyDataEx

The structure ST_TopologyDataEx contains information on EtherCAT topology and hot-connect groups.

Enums

EcDeviceState

EtherCAT state of a slave. The status can adopt one of the following values:

EcLinkState

Link status of an EtherCAT slave. The Link state can consist of an ORing of the following bits: