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
ErrorRegister
Returns the error register of the EtherCAT device.
public byte ErrorRegister { get; }
Property Value
ManufacturerDeviceName
This parameter specifies the manufacturers device name of the device.
public string ManufacturerDeviceName { get; }
Property Value
ManufacturerHardwareVersion
This parameter specifies the hardware version of the device.
public string ManufacturerHardwareVersion { get; }
Property Value
ManufacturerSoftwareVersion
The Software Version object has the following parameter:
public string ManufacturerSoftwareVersion { get; }
Property Value
ProductCode
This parameter specifies the product code of the device.
public uint ProductCode { get; }
Property Value
RevisionNumber
The revision number of the EtherCAT device.
public uint RevisionNumber { get; }
Property Value
SerialNumber
The serial number of the EtherCAT device.
public uint SerialNumber { get; }
Property Value
VendorID
This parameter specifies the vendor ID of the device.
public uint VendorID { get; }
Property Value
Methods
CoeReadAny<T>(uint, uint)
Read any object from the CoE object dictionary.
public T CoeReadAny<T>(uint index, uint subIndex)
Parameters
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)