Table of Contents

Class EtherCatDevice

Namespace
TwinSharp
Assembly
TwinSharp.dll

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.

public class EtherCatDevice
Inheritance
EtherCatDevice
Inherited Members

Constructors

EtherCatDevice(AdsClient)

Creates a representation of an EtherCAT device. The client should typically be connected to the AmsNetId of the EtherCAT master and the port number is the slaves adress (example 1025).

public EtherCatDevice(AdsClient client)

Parameters

client AdsClient

Properties

DeviceType

The device type of the EtherCAT device.

public uint DeviceType { get; }

Property Value

uint

ErrorRegister

Returns the error register of the EtherCAT device.

public byte ErrorRegister { get; }

Property Value

byte

ManufacturerDeviceName

This parameter specifies the manufacturers device name of the device.

public string ManufacturerDeviceName { get; }

Property Value

string

ManufacturerHardwareVersion

This parameter specifies the hardware version of the device.

public string ManufacturerHardwareVersion { get; }

Property Value

string

ManufacturerSoftwareVersion

The Software Version object has the following parameter:

public string ManufacturerSoftwareVersion { get; }

Property Value

string

ProductCode

This parameter specifies the product code of the device.

public uint ProductCode { get; }

Property Value

uint

RevisionNumber

The revision number of the EtherCAT device.

public uint RevisionNumber { get; }

Property Value

uint

SerialNumber

The serial number of the EtherCAT device.

public uint SerialNumber { get; }

Property Value

uint

VendorID

This parameter specifies the vendor ID of the device.

public uint VendorID { get; }

Property Value

uint

Methods

CoeReadAny<T>(uint, uint)

Read any object from the CoE object dictionary.

public T CoeReadAny<T>(uint index, uint subIndex)

Parameters

index uint
subIndex uint

Returns

T

Type Parameters

T

CoeWriteAny(uint, uint, object)

Write any object to the CoE object dictionary.

public void CoeWriteAny(uint index, uint subIndex, object value)

Parameters

index uint
subIndex uint
value object