Types

3.2. Types

class EcWrapperDotNet.DN_EC_T_INIT_PARMS

Abstract initalization parameters.

Subclassed by EcWrapperDotNet.DN_EC_T_INIT_PARMS_DAQ, EcWrapperDotNet.DN_EC_T_INIT_PARMS_DAQ_READER, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MASTER, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MASTER_RAS_SERVER, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MBXGATEWAY_CLIENT, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MBXGATEWAY_SERVER, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MONITOR, EcWrapperDotNet.DN_EC_T_INIT_PARMS_MONITOR_RAS_SERVER, EcWrapperDotNet.DN_EC_T_INIT_PARMS_RAS_CLIENT, EcWrapperDotNet.DN_EC_T_INIT_PARMS_SIMULATOR, EcWrapperDotNet.DN_EC_T_INIT_PARMS_SIMULATOR_RAS_SERVER

class EcWrapperDotNet.DN_EC_T_INIT_MASTER_PARMS

DN_EC_T_INIT_MASTER_PARMS.

Public Members

DN_EC_T_LINK_PARMS oLinkParms

oLinkParms

DN_EC_T_LINK_PARMS oLinkParmsRed

oLinkParmsRed

uint dwBusCycleTimeNsec

[in] Bus cycle time [ns]

uint dwMaxBusSlaves

[in] Maximum pre-allocated bus slave objects ( default:

256 )

uint dwMaxAcycFramesQueued

[in] Maximum queued acyclic frames

uint dwAdditionalEoEEndpoints

[in] Additional EoE endpoints

uint dwMaxAcycBytesPerCycle

[in] Maximum bytes sent during eUsrJob_SendAcycFrames per cycle ( default:

4096 )

uint dwMaxAcycFramesPerCycle

[in] Maximum frames sent during eUsrJob_SendAcycFrames per cycle ( default:

32 )

uint dwMaxAcycCmdsPerCycle

[in] Maximum commands sent during eUsrJob_SendAcycFrames per cycle ( default:

124 )

uint dwMaxSlavesProcessedPerCycle

[in] Maximum slave-related state machine calls per cycle (default = all)

uint dwEcatCmdMaxRetries

[in] Maximum retries to send pending EtherCAT command frames ( default:

3 )

uint dwEcatCmdTimeout

[in] Timeout [ms] to send pending EtherCAT command frames ( default:

3 * bus cycle time, at least 2 ms )

DN_EC_LOG_LEVEL dwLogLevel

dwLogLevel

DN_EC_T_MASTER_RED_PARMS MasterRedParms

[in] Master Redundancy parameters

uint dwMaxS2SMbxSize

[in] Size of the queued S2S mailbox in bytes ( default:

0 )

uint dwMaxQueuedS2SMbxTfer

[in] S2S Fifo number of entries ( default:

0 )

ushort wMaxSlavesProcessedPerBusScanStep

[in] Maximum slave-related calls per cycle during bus scans (default = all)

bool bApiLockByApp

[in] Lock pending API against emDeinitMaster(). EC_FALSE (default): locked internally. EC_TRUE: application is responsible for locking.

DN_EC_T_PERF_MEAS_INTERNAL_PARMS PerfMeasInternalParms

[in] Internal performance measurement parameters

bool bNoConsecutiveAcycFrames

[in] EC_FALSE(default) : no restriction. EC_TRUE : Don’t process and send acyclic frames in the same cycle to reduce CPU load.

class EcWrapperDotNet.DN_EC_T_MASTER_RED_PARMS

Master Redundancy initialization parameters, see ecatInitMaster.

Public Members

bool bEnabled

[in] Set to EC_TRUE if using Master Redundancy

ushort wMasterPdOutSize

[in] ACTIVE to INACTIVE Master Process Data (in bytes)

ushort wMasterPdInSize

[in] INACTIVE to ACTIVE Master Process Data (in bytes)

uint dwMaxAcycFramesPerCycle

[in] Maximum acyclic Master Red frames sent per cycle

bool bUpdateSlavePdOut

[in] Set to EC_TRUE to update Slave OUTPUT Process Data Image at INACTIVE Master (from CSF)

bool bUpdateSlavePdIn

[in] Set to EC_TRUE to update Slave INPUT Process Data Image at INACTIVE Master (from CMF)

bool bSwitchTopology

[in] Set to EC_TRUE to enable switch topology

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_INTERNAL_PARMS

DN_EC_T_PERF_MEAS_INTERNAL_PARMS.

Public Members

bool bEnabled

[in] Enable/disable internal performance counters

DN_EC_T_PERF_MEAS_COUNTER_PARMS CounterParms

[in] Timer function settings. When not provided OsMeasGetCounterTicks is used.

DN_EC_T_PERF_MEAS_HISTOGRAM_PARMS HistogramParms

[in] Histogram settings. When not provided the histogram is disabled.

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_COUNTER_PARMS

DN_EC_T_PERF_MEAS_COUNTER_PARMS.

Public Members

ulong qwFrequency

[in] Frequency in Hz used by the timer in GetCounterTicks

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_HISTOGRAM_PARMS

DN_EC_T_PERF_MEAS_HISTOGRAM_PARMS.

Public Members

uint dwBinCount

[in] Amount of bins to use for the histogram

ulong qwMinTicks

[in] Results below qwMinTicks are stored in the first bin

ulong qwMaxTicks

[in] Results above qwMaxTicks are stored in the last bin

class EcWrapperDotNet.DN_EC_T_LOG_PARMS

DN_EC_T_LOG_PARMS.

Public Members

uint dwLogLevel

[in] Log level. See EC_LOG_LEVEL…

enum EcWrapperDotNet.DN_EC_LOG_LEVEL

DN_EC_LOG_LEVEL.

Values:

SILENT

SILENT.

ANY

ANY.

CRITICAL

CRITICAL.

ERROR

ERROR.

WARNING

WARNING.

INFO

INFO.

INFO_API

INFO_API.

VERBOSE

VERBOSE.

VERBOSE_CYC

VERBOSE_CYC.

UNDEFINED

UNDEFINED.

class EcWrapperDotNet.DN_EC_T_ADS_ADAPTER_START_PARMS

DN_EC_T_ADS_ADAPTER_START_PARMS.

Public Members

ulong cpuAffinityMask

cpuAffinityMask

uint dwThreadPriority

dwThreadPriority

uint dwStackSize

dwStackSize

DN_EC_T_AOE_NETID targetNetID

targetNetID

ushort targetPort

targetPort

class EcWrapperDotNet.DN_EC_T_AOE_NETID

AoE NetID.

Public Members

byte[] aby

AoE net id.

class EcWrapperDotNet.DN_EC_T_BUS_SLAVE_INFO

DN_EC_T_BUS_SLAVE_INFO.

Public Members

uint dwSlaveId

[out] The slave’s ID to bind bus slave and config slave information

uint[] adwPortSlaveIds

[out] The slave’s ID of the slaves connected to ports. See Port slave ID’s.

ushort wPortState

wPortState

ushort wAutoIncAddress

[out] The slave’s auto increment address

bool bDcSupport

[out] Slave supports DC (Bus Topology Scan)

bool bDc64Support

[out] Slave supports 64 Bit DC (Bus Topology Scan)

uint dwVendorId

[out] Vendor Identification stored in the EEPROM at offset 0x0008

uint dwProductCode

[out] Product Code stored in the EEPROM at offset 0x000A

uint dwRevisionNumber

[out] Revision number stored in the EEPROM at offset 0x000C

uint dwSerialNumber

[out] Serial number stored in the EEPROM at offset 0x000E

byte byESCType

[out] Type of ESC (Value of slave ESC register 0x0000)

byte byESCRevision

[out] Revision number of ESC (Value of slave ESC register 0x0001)

ushort wESCBuild

[out] Build number of ESC (Value of slave ESC register 0x0002)

byte byPortDescriptor

[out] Port descriptor (Value of slave ESC register 0x0007)

ushort wFeaturesSupported

[out] Features supported (Value of slave ESC register 0x0008)

ushort wStationAddress

[out] The slave’s station address (Value of slave ESC register 0x0010)

ushort wAliasAddress

[out] The slave’s alias address (Value of slave ESC register 0x0012)

ushort wAlStatus

[out] AL status (Value of slave ESC register 0x0130)

ushort wAlStatusCode

[out] AL status code. (Value of slave ESC register 0x0134 during last error acknowledge). This value is reset after a slave state change.

uint dwSystemTimeDifference

[out] System time difference. (Value of slave ESC register 0x092C)

ushort wMbxSupportedProtocols

[out] Supported Mailbox Protocols stored in the EEPROM at offset 0x001C

ushort wDlStatus

[out] DL status (Value of slave ESC register 0x0110)

ushort wPrevPort

[out] Connected port of the previous slave

ushort wIdentifyData

[out] Last read identification value see EC_T_CFG_SLAVE_INFO.wIdentifyAdo

bool bLineCrossed

[out] Line crossed was detected at this slave

uint dwSlaveDelay

[out] Delay behind slave [ns].

uint dwPropagDelay

[out] Propagation delay [ns]. ESC register 0x0928.

bool bIsRefClock

[out] Slave is reference clock

bool bIsDeviceEmulation

[out] Slave without Firmware. ESC register 0x0141, enabled by EEPROM offset 0x0000.8.

ushort wLineCrossedFlags

[out] Combination of Line crossed flags

uint dwCyclicWkcErrorCnt

[out] Counter for Cyclic WC Error

uint dwSlaveAbsentCnt

[out] Counter for Absent/Not Present Slaves

uint dwUnexpectedStateCnt

[out] Counter for Abnormal State Change

class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_INFO

ecatGetCfgSlaveInfo

Public Members

uint dwSlaveId

[out] Slave’s ID to bind bus slave and config slave information

string abyDeviceName

[out] Slave’s configured name (80 Byte) (from ENI file)

uint dwHCGroupIdx

[out] Index of Hot Connect group, 0 for mandatory

bool bIsPresent

[out] Slave present on bus

bool bIsHCGroupPresent

[out] Slave’s Hot Connect group present on bus

uint dwVendorId

[out] Vendor identification (from ENI file)

uint dwProductCode

[out] Product code (from ENI file)

uint dwRevisionNumber

[out] Revision number (from ENI file)

uint dwSerialNumber

[out] Serial number (from ENI file)

ushort wStationAddress

[out] Slave’s configured station address (from ENI file)

ushort wAutoIncAddress

[out] Slave’s auto increment address (may differ from ENI file)

uint dwPdOffsIn

[out] Process input data bit offset (from ENI file)

uint dwPdSizeIn

[out] Process input data bit size (from ENI file)

uint dwPdOffsOut

[out] Process output data bit offset (from ENI file)

uint dwPdSizeOut

[out] Process output data bit size (from ENI file)

uint dwPdOffsIn2

[out] 2nd sync unit process input data bit offset (from ENI file)

uint dwPdSizeIn2

[out] 2nd sync unit process input data bit size (from ENI file)

uint dwPdOffsOut2

[out] 2nd sync unit process output data bit offset (from ENI file)

uint dwPdSizeOut2

[out] 2nd sync unit process output data bit size (from ENI file)

uint dwPdOffsIn3

[out] 3rd sync unit process input data bit offset (from ENI file)

uint dwPdSizeIn3

[out] 3rd sync unit process input data bit size (from ENI file)

uint dwPdOffsOut3

[out] 3rd sync unit process output data bit offset (from ENI file)

uint dwPdSizeOut3

[out] 3rd sync unit process output data bit size (from ENI file)

uint dwPdOffsIn4

[out] 4th sync unit process input data bit offset (from ENI file)

uint dwPdSizeIn4

[out] 4th sync unit process input data bit size (from ENI file)

uint dwPdOffsOut4

[out] 4th sync unit process output data bit offset (from ENI file)

uint dwPdSizeOut4

[out] 4th sync unit process output data bit size (from ENI file)

uint dwMbxSupportedProtocols

[out] Mailbox protocols supported by the slave (from ENI file). Combination of Supported mailbox protocols flags.

uint dwMbxOutSize

[out] Mailbox output byte size (from ENI file)

uint dwMbxInSize

[out] Mailbox input byte size (from ENI file)

uint dwMbxOutSize2

[out] Bootstrap mailbox output byte size (from ENI file)

uint dwMbxInSize2

[out] Bootstrap mailbox input byte size (from ENI file)

bool bDcSupport

[out] Slave supports DC (from ENI file)

ushort wNumProcessVarsInp

[out] Number of input process data variables (from ENI file)

ushort wNumProcessVarsOutp

[out] Number of output process data variables (from ENI file)

ushort wPrevStationAddress

[out] Station address of the previous slave (from ENI file)

ushort wPrevPort

[out] Connected port of the previous slave (from ENI file)

ushort wIdentifyAdo

[out] ADO used for identification command (from ENI file)

ushort wIdentifyData

[out] Identification value to be validated (from ENI file)

byte byPortDescriptor

[out] Port descriptor (ESC register 0x0007) (from ENI file)

ushort[] wWkcStateDiagOffsIn

[out] Offset of WkcState bit in diagnosis image (ENI: ProcessData/Recv[1..4]/BitStart): 0xFFFFFFFF = offset not available. WkcState bit values: 0 = Data valid, 1 = Data invalid.

ushort[] wWkcStateDiagOffsOut

[out] Offset of WkcState bit in diagnosis image (ENI: ProcessData/Send[1..4]/BitStart): 0xFFFFFFFF = offset not available. WkcState bit values: 0 = Data valid, 1 = Data invalid.

ushort[] awMasterSyncUnitIn

[out] Sync Unit (ENI: ProcessData/TxPdo[1..4]@Su)

ushort[] awMasterSyncUnitOut

[out] Sync Unit (ENI: ProcessData/RxPdo[1..4]@Su)

bool bDisabled

[out] Slave disabled by API SetSlaveDisabled / SetSlavesDisabled.

bool bDisconnected

[out] Slave disconnected by API SetSlaveDisconnected / SetSlavesDisconnected.

bool bExtended

[out] Slave generated by API ConfigExtend

bool bDcReferenceClock

[out] Slave is reference clock (from ENI file)

bool bDcPotentialRefClock

[out] Slave can be used as a reference clock (from ENI file)

uint dwDcCycleTime0

[out] Cycle time of Sync0 event [ns] (from ENI file)

uint dwDcCycleTime1

[out] Calculated value dwDcCycleTime1 [ns] = Cycle time of Sync1 event - Cycle time of Sync1 event + Shift time of Sync0 event (from ENI file)

int nDcShiftTime

[out] Shift time of Sync0 event [ns] (from ENI file)

string szProductRevision

[out] Slave’s ProductRevision (ENI:Slave/Info/ProductRevision), e.g. “EK1100-0000-0018”. Empty string if not present in ENI.

class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_SM_INFO

DN_EC_T_CFG_SLAVE_SM_INFO.

Public Members

uint dwSlaveId

[out] Slave ID

uint dwSmInfoNumOf

[out] Number of available sync managers

DN_EC_T_CFG_SLAVE_SM_ENTRY[] aoSmInfos

[out] Sync managers info

class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_SM_ENTRY

ecatGetCfgSlaveSmInfo

Public Members

ushort wPhysAddr

[out] ESC (0x800 + y * 8)

ushort wLength

[out] ESC (0x802 + y * 8)

byte byOpMode

[out] Bits 0..1 ESC (0x804 + y * 8)

byte byDirection

[out] Bits 2..3 ESC (0x804 + y * 8)

uint dwPdBitOffs

[out] Process input data bit offset (from ENI file)

uint dwPdBitSize

[out] Process input data bit size (from ENI file)

ushort wWkcStateDiagBitOffs

[out] Offset of WkcState bit in diagnosis image

ushort wMasterSyncUnit

[out] Sync Unit (ENI: ProcessData/TxPdo[1..4]@Su)

class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_EOE_INFO

ecatGetCfgSlaveEoeInfo, ENI: Mailbox/EoE/InitCmds/InitCmd/Data

Public Members

uint dwSlaveId

[out] Slave ID

bool bMacAddr

[out] Indicates whether the MAC address could be read and is valid

byte[] abyMacAddr

[out] MAC address

bool bIpAddr

[out] Indicates whether the IP address could be read and is valid

DN_EC_T_IPADDR oIpAddr

[out] IP address

bool bSubnetMask

[out] Indicates whether the subnet mask could be read and is valid

DN_EC_T_IPADDR oSubnetMask

[out] Subnet mask

bool bDefaultGateway

[out] Indicates whether the default gateway could be read and is valid

DN_EC_T_IPADDR oDefaultGateway

[out] Default gateway

bool bDnsServer

[out] Indicates whether the DNS server could be read and is valid

DN_EC_T_IPADDR oDnsServer

[out] DNS server

bool bDnsName

[out] Indicates whether the DNS name could be read and is valid

string szDnsName

[out] DNS name

bool bDisableEoe

[out] Indicates whether the EoE is Disabled or not

uint[] dwRes

dwRes

class EcWrapperDotNet.DN_EC_T_IPADDR

DN_EC_T_IPADDR.

Public Members

DN_EC_T_INNER_IPADDR sAddr

sAddr

class EcWrapperDotNet.DN_EC_T_INNER_IPADDR

DN_EC_T_INNER_IPADDR.

Public Members

byte[] by

IPv4 address (endianness independent)

enum EcWrapperDotNet.DN_EC_T_CNF_TYPE

DN_EC_T_CNF_TYPE.

Values:

Unknown

Unknown.

Filename

pbyCnfData: ENI filename to read

Data

pbyCnfData: ENI data

Datadiag

pbyCnfData: ENI data for diagnosis

GenPreopENI

Generate ENI based on bus-scan result to get into PREOP state.

GenPreopENIWithCRC

Same as eCnfType_GenPreopENI with CRC protection.

GenOpENI

Generate ENI based on bus-scan result to get into OP state. The default PDO mapping read from the slaves is activated. See ETG2010 “SII Specification”, Table 14 “Structure Category TXPDO and RXPDO for each PDO”.

None

Reset configuration.

ConfigData

pbyCnfData: Binary structured configuration

GenOpENINoStrings

Generate ENI based on bus-scan result to get into OP state, does not read strings from EEPROM.

FileByApp

File access provided by user application, See EC_T_CNF_FILEBYAPP_DESC.

GenEBI

Generate EBI based on bus-scan result.

BCppDummy

BCppDummy.

class EcWrapperDotNet.DN_EC_T_COE_ENTRYDESC

Public Members

ushort wObIndex

object index

byte byObSubIndex

object sub-index

byte byValueInfo

value information, determines which of the following elements are valid

ushort wDataType

data type

ushort wBitLen

bit length of the object

byte byObAccess

object access

bool bRxPdoMapping

EC_TRUE if it is PDO mappable

bool bTxPdoMapping

EC_TRUE if PDO mappable object can be changed

bool bObCanBeUsedForBackup

Parameter may be back upped

bool bObCanBeUsedForSettings

Parameter may be used for Settings

ushort dwUnitType

length of the data

string szObName

length of the data

class EcWrapperDotNet.DN_EC_T_COE_OBDESC

Public Members

ushort wObIndex

object index

ushort wDataType

see DEFTYPE_…, refer to “Extended Data Type Area” in ETG.1000.6

byte byObjCode

see ECAT_COE_INFO_OBJCODE_…, defined in CiA DS 301, “Object code usage”

byte byObjCategory

category: 0=optional, 1=mandatory

byte byMaxNumSubIndex

maximum number of sub-indexes

string pchObName

object name (not a NULL terminated string!)

enum EcWrapperDotNet.DN_EC_T_COE_ODLIST_TYPE

EtherCAT CoE OD list type values.

Values:

Lengths

Lengths of each list type.

ALL

List contains all objects.

RxPdoMap

List with PDO mappable objects.

TxPdoMap

List with objects that can be changed.

StoredFRepl

Only stored for a device replacement objects.

StartupParm

Only startup parameter objects.

BCppDummy

BCppDummy.

class EcWrapperDotNet.DN_EC_T_CYC_CONFIG_DESC

Descriptor for EC_IOCTL_GET_CYCLIC_CONFIG_INFO.

Public Members

uint dwTaskId

[out] Task ID of selected cyclic entry (ENI: Cyclic/TaskId)

uint dwPriority

[out] Priority of selected cyclic entry

uint dwCycleTime

[out] Cycle time of selected cyclic entry

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG

DN_EC_T_DCM_CONFIG.

Public Members

DN_EC_T_DCM_MODE eMode

[in] DCM mode

DN_EC_T_DCM_CONFIG_BUSSHIFT BusShift

[in] BusShift configuration. Valid if eMode is set to eDcmMode_BusShift.

DN_EC_T_DCM_CONFIG_MASTERSHIFT MasterShift

[in] MasterShift configuration. Valid if eMode is set to eDcmMode_MasterShift.

DN_EC_T_DCM_CONFIG_LINKLAYERREFCLOCK LinkLayerRefClock

[in] LinkLayerRefClock configuration. Valid if eMode is set to eDcmMode_LinkLayerRefClock.

DN_EC_T_DCM_CONFIG_MASTERREFCLOCK MasterRefClock

[in] MasterRefClock configuration. Valid if eMode is set to eDcmMode_MasterRefClock.

DN_EC_T_DCM_CONFIG_DCX Dcx

[in] DCX configuration. Valid if eMode is set to eDcmMode_Dcx.

enum EcWrapperDotNet.DN_EC_T_DCM_MODE

DN_EC_T_DCM_MODE.

Values:

Off

DCM disabled.

BusShift

DCM BusShift mode.

MasterShift

DCM MasterShift mode.

LinkLayerRefClock

DCM LinkLayer Ref Clock mode.

MasterRefClock

DCM Master Ref Clock mode.

Dcx

DCM DCX External synchronization mode.

MasterShiftByApp

DCM MasterShift controlled by application mode.

BCppDummy

BCppDummy.

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG_BUSSHIFT

DN_EC_T_DCM_CONFIG_BUSSHIFT.

Public Members

int nCtlSetVal

[in] Controller set value [ns]. This is the time distance between the cyclic frame send time and the DC base on bus (SYNC0 if shift is zero).

int nCtlGain

[in] Proportional gain in ppt (part per thousand). Default is value 2. A value of 0 sets the default value.

int nCtlDriftErrorGain

[in] Multiplier for drift error. Default value is 3. A value of 0 sets the default value.

int nMaxValidVal

[in] Error inputs above this value are considered invalid. If error input prediction is valid then the difference between the error input and the expected value is taken. Default value is 3000. A value of 0 sets the default value.

bool bLogEnabled

[in] If set to EC_TRUE, logging information are generated and can be got by calling emDcmGetLog()

uint dwInSyncLimit

[in] Limit [ns] for InSync monitoring. Default value is 20% of the cycle time. A value of 0 sets the default value.

uint dwInSyncSettleTime

[in] Settle time [ms] for InSync monitoring. Default value is 1500ms. A value of 0 sets the default value.

bool bCtlOff

[in] If set to EC_TRUE, control loop is disabled. Combined with bLogEnabled, it makes possible to analyze the natural drift between the stack cycle and the reference clock.

bool bUseDcLoopCtlStdValues

[in] If set to EC_TRUE, the values of ESC DC time loop control register 0x930 and 0x934 are not changed by master. This could increase the time it takes to get the InSync. Use only if there are problems with the reference clock to get InSync.

uint dwInSyncStartDelayCycle

[in] Delay time [ms] before InSync monitoring start

IntPtr pGetTimeElapsedSinceCycleStartContext

[in] Optional context for the pfnGetTimeElapsedSinceCycleStart function, will be passed as first parameter to this function/static method

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG_MASTERSHIFT

DN_EC_T_DCM_CONFIG_MASTERSHIFT.

Public Members

int nCtlSetVal

[in] Controller set value [ns]. This is the time distance between the cyclic frame send time and the DC base on bus (SYNC0 if shift is zero).

int nCtlGain

[in] Proportional gain in ppt (part per thousand). Default is value 2. A value of 0 sets the default value.

int nCtlDriftErrorGain

[in] Multiplier for drift error. Default value is 3. A value of 0 sets the default value.

int nMaxValidVal

[in] Error inputs above this value are considered invalid. If error input prediction is valid then the difference between the error input and the expected value is taken. Default value is 3000. A value of 0 sets the default value.

bool bLogEnabled

[in] If set to EC_TRUE, logging information are generated and can be got by calling emDcmGetLog()

uint dwInSyncLimit

[in] Limit [ns] for InSync monitoring. Default value is 20% of the cycle time. A value of 0 sets the default value.

uint dwInSyncSettleTime

[in] Settle time [ms] for InSync monitoring. Default value is 1500ms. A value of 0 sets the default value.

bool bCtlOff

[in] If set to EC_TRUE, control loop is disabled. Combined with bLogEnabled, it makes possible to analyze the natural drift between the stack cycle and the reference clock. Also it provides reading of current adjustment value using emDcmGetAdjust function.

uint dwInSyncStartDelayCycle

[in] Delay time [ms] before InSync monitoring start

IntPtr pGetTimeElapsedSinceCycleStartContext

[in] Optional context for the pfnGetTimeElapsedSinceCycleStart function, will be passed as first parameter to this function/static method

IntPtr pAdjustCycleTimeContext

[in] Optional context for the pfnAdjustCycleTime function, will be passed as first parameter to this function/static method

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG_LINKLAYERREFCLOCK

DN_EC_T_DCM_CONFIG_LINKLAYERREFCLOCK.

Public Members

int nCtlSetVal

[in] Controller set value [ns]. This is the time distance between the cyclic frame send time and the DC base on bus (SYNC0 if shift is zero).

bool bLogEnabled

[in] If set to EC_TRUE, logging information are generated and can be got by calling emDcmGetLog()

uint dwInSyncLimit

[in] Limit [ns] for InSync monitoring. Default value is 20% of the cycle time. A value of 0 sets the default value.

uint dwInSyncSettleTime

[in] Settle time [ms] for InSync monitoring. Default value is 1500ms. A value of 0 sets the default value.

DN_EC_T_DC_STARTTIME_CB_DESC DcStartTimeCallbackDesc

[in] If not null, DC start time calculated by application, otherwise by master. See also EC_T_DC_STARTTIME_CB_DESC. Shift value configured in ENI will still be applied.

class EcWrapperDotNet.DN_EC_T_DC_STARTTIME_CB_DESC

DN_EC_T_DC_STARTTIME_CB_DESC.

Public Members

IntPtr pvContext

[in] Arbitrarily application-defined parameter passed to pfnCallback

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG_MASTERREFCLOCK

DN_EC_T_DCM_CONFIG_MASTERREFCLOCK.

Public Members

int nCtlSetVal

[in] Controller set value [ns]. This is the time distance between the cyclic frame send time and the DC base on bus (SYNC0 if shift is zero).

bool bLogEnabled

[in] If set to EC_TRUE, logging information are generated and can be got by calling emDcmGetLog()

uint dwInSyncLimit

[in] Limit [ns] for InSync monitoring. Default value is 20% of the cycle time. A value of 0 sets the default value.

uint dwInSyncSettleTime

[in] Settle time [ms] for InSync monitoring. Default value is 1500ms. A value of 0 sets the default value.

IntPtr pGetHostTimeContext

[in] Optional context for the pfnGetHostTime function, will be passed as first parameter to this function/static method

DN_EC_T_DC_STARTTIME_CB_DESC DcStartTimeCallbackDesc

[in] If not null, DC start time calculated by application, otherwise by master. See also EC_T_DC_STARTTIME_CB_DESC. Shift value configured in ENI will still be applied.

class EcWrapperDotNet.DN_EC_T_DCM_CONFIG_DCX

DN_EC_T_DCM_CONFIG_DCX.

Public Members

DN_EC_T_DCM_CONFIG_MASTERSHIFT MasterShift

[in] DCM MasterShift configuration

int nCtlSetVal

[in] Controller set value [ns]. This is the time distance between the cyclic frame send time and the DC base on bus (SYNC0 if shift is zero).

int nCtlGain

[in] Proportional gain in ppt (part per thousand). Default is value 2. A value of 0 sets the default value.

int nCtlDriftErrorGain

[in] Multiplier for drift error. Default value is 3. A value of 0 sets the default value.

int nMaxValidVal

[in] Error inputs above this value are considered invalid. If error input prediction is valid then the difference between the error input and the expected value is taken. Default value is 3000. A value of 0 sets the default value.

bool bLogEnabled

[in] If set to EC_TRUE, logging information are generated and can be got by calling emDcmGetLog()

uint dwInSyncLimit

[in] Limit [ns] for InSync monitoring. Default value is 20% of the cycle time. A value of 0 sets the default value.

uint dwInSyncSettleTime

[in] Settle time [ms] for InSync monitoring. Default value is 1500ms. A value of 0 sets the default value.

bool bCtlOff

[in] If set to EC_TRUE, control loop is disabled. Combined with bLogEnabled, it makes possible to analyze the natural drift between the stack cycle and the reference clock. Also it provides reading of current adjustment value using emDcmGetAdjust function.

ushort wExtClockFixedAddr

[in] Fixed address of external clock slave (publishing PDO 0x10F4) (optional if ENI is generated by EcEngineer)

uint dwExtClockTimeout

[in] Wait timeout for external clock slave

uint dwInSyncStartDelayCycle

[in] Delay time [ms] before InSync monitoring start

uint dwMaxErrCompensableOnExtClockReconnect

[in] Maximum error in nanoseconds that should be compensated after a reconnect of the external clock device. Synchronization restart if error exceeds this limit.

class EcWrapperDotNet.DN_EC_T_DC_CONFIGURE

DN_EC_T_DC_CONFIGURE.

Public Members

uint dwClntId

[in] Reserved

uint dwTimeout

[in] Timeout [ms] for the DC initialization in which time offsets and propagation delays are evaluated ( default:

12 sec )

uint dwDevLimit

dwDevLimit

uint dwSettleTime

dwSettleTime

uint dwTotalBurstLength

[in] Overall amount of burst frames sent ( default:

10000 )

uint dwBurstBulk

[in] Amount of burst frames per cycle during initialization burst ( default:

12 )

bool bBulkInLinkLayer

bBulkInLinkLayer

bool bAcycDistributionDisabled

[in] If EC_TRUE, acyclic distribution is disabled

uint dwDcStartTimeGrid

[in] Time grid [ns] to align DC start time. With the help of the grid, several EtherCAT networks can be synchronized without a random shift value between the SYNC signals.

bool bDcInitBeforeSlaveStateChange

[in] If EC_TRUE, DC is initialized before slaves state change to PREOP

enum EcWrapperDotNet.DN_EC_T_DEFTYPE

DN_EC_T_DEFTYPE.

Values:

NULL

NULL.

BOOLEAN

BOOLEAN.

INTEGER8

INTEGER8.

INTEGER16

INTEGER16.

INTEGER32

INTEGER32.

UNSIGNED8

UNSIGNED8.

UNSIGNED16

UNSIGNED16.

UNSIGNED32

UNSIGNED32.

REAL32

REAL32.

VISIBLESTRING

VISIBLESTRING.

OCTETSTRING

OCTETSTRING.

UNICODESTRING

UNICODESTRING.

TIMEOFDAY

TIMEOFDAY.

TIMEDIFFERENCE

TIMEDIFFERENCE.

DOMAIN

DOMAIN.

INTEGER24

INTEGER24.

REAL64

REAL64.

INTEGER40

INTEGER40.

INTEGER48

INTEGER48.

INTEGER56

INTEGER56.

INTEGER64

INTEGER64.

UNSIGNED24

UNSIGNED24.

UNSIGNED40

UNSIGNED40.

UNSIGNED48

UNSIGNED48.

UNSIGNED56

UNSIGNED56.

UNSIGNED64

UNSIGNED64.

GUID

GUID.

BYTE

BYTE.

WORD

WORD.

DWORD

DWORD.

PDOMAPPING

PDOMAPPING.

IDENTITY

IDENTITY.

COMMAND

COMMAND.

PDOCOMPAR

PDOCOMPAR.

ENUM

ENUM.

SMPAR

SMPAR.

RECORD

RECORD.

BACKUP_PARAMETER

BACKUP_PARAMETER.

MODULAR_DEVICE_PROFILE

MODULAR_DEVICE_PROFILE.

BITARR8

BITARR8.

BITARR16

BITARR16.

BITARR32

BITARR32.

BIT1

BIT1.

BIT2

BIT2.

BIT3

BIT3.

BIT4

BIT4.

BIT5

BIT5.

BIT6

BIT6.

BIT7

BIT7.

BIT8

BIT8.

BIT9

BIT9.

BIT10

BIT10.

BIT11

BIT11.

BIT12

BIT12.

BIT13

BIT13.

BIT14

BIT14.

BIT15

BIT15.

BIT16

BIT16.

ARRAY_OF_BYTE

ARRAY_OF_BYTE.

ARRAY_OF_UINT

ARRAY_OF_UINT.

ARRAY_OF_INT

ARRAY_OF_INT.

ARRAY_OF_SINT

ARRAY_OF_SINT.

ARRAY_OF_DINT

ARRAY_OF_DINT.

ARRAY_OF_UDINT

ARRAY_OF_UDINT.

ERROR_SETTING

ERROR_SETTING.

HISTORY

HISTORY.

DIAGNOSIS_OBJECT

DIAGNOSIS_OBJECT.

EXTERNAL_SYNC_STATUS

EXTERNAL_SYNC_STATUS.

EXTERNAL_SYNC_SETTINGS

EXTERNAL_SYNC_SETTINGS.

FSOEFRAME

FSOEFRAME.

FSOECOMMPAR

FSOECOMMPAR.

class EcWrapperDotNet.DN_EC_T_GET_SLAVE_INFO

ecatGetSlaveInfo

Public Members

uint dwScanBusStatus

Status during last Bus Scan.

uint dwVendorId

Vendor Identification.

uint dwProductCode

Product Code.

uint dwRevisionNumber

Revision Number.

uint dwSerialNumber

Serial Number.

ushort wPortState

[out] port link state (SB Instance)

bool bDcSupport

[out] Slave does support DC

bool bDc64Support

[out] Slave does support 64Bit DC

ushort wAliasAddress

[out] Slave alias address

ushort wPhysAddress

[out] Slave station address

uint dwPdOffsIn

[out] Process data offset of Input Data (in bits)

uint dwPdSizeIn

[out] Process data size of Input Data (in bits)

uint dwPdOffsOut

[out] Process data offset of Output Data (in bits)

uint dwPdSizeOut

[out] Process data size of Output Data

uint dwPdOffsIn2

[out] Process data offset of Input data (in bits)

uint dwPdSizeIn2

[out] Process data size of Input Data (in bits)

uint dwPdOffsOut2

[out] Process data offset of Output Data (in bits)

uint dwPdSizeOut2

[out] Process data size of Output Data

uint dwPdOffsIn3

[out] Process data offset of Input Data (in bits)

uint dwPdSizeIn3

[out] Process data size of Input Data (in bits)

uint dwPdOffsOut3

[out] Process data offset of Output Data (in bits)

uint dwPdSizeOut3

[out] Process data size of Output Data

uint dwPdOffsIn4

[out] Process data offset of Input Data (in bits)

uint dwPdSizeIn4

[out] Process data size of Input Data (in bits)

uint dwPdOffsOut4

[out] Process data offset of Output Data (in bits)

uint dwPdSizeOut4

[out] Process data size of Output Data

ushort wCfgPhyAddress

[out] Slave configured station address

string abyDeviceName

abyDeviceName

bool bIsMailboxSlave

[out] Whether slave support mailboxes

uint dwMbxOutSize

[out] Mailbox 1 output size

uint dwMbxInSize

[out] Mailbox 1 input size

uint dwMbxOutSize2

[out] Mailbox 2 output size

uint dwMbxInSize2

[out] Mailbox 2 input size

uint dwErrorCode

[out] Last return code

uint dwSBErrorCode

[out] Last return value from SB

byte byPortDescriptor

[out] Port Descriptor (ESC register 0x0007)

byte byESCType

[out] ESC Node Type

ushort wSupportedMbxProtocols

[out] Supported mailbox protocols: AoE, EoE, CoE, FoE, SoE

ushort wAlStatusValue

[out] AL Status Register Value (ESC register 0x0130)

ushort wAlStatusCode

[out] AL Status Code (ESC register 0x0134)

bool bIsOptional

[out] Slave is in an optional hot connect group

bool bIsPresent

[out] Slave is currently present on bus

ushort wNumProcessVarsInp

[out] Number of output process data variables

ushort wNumProcessVarsOutp

[out] Number of input process data variables

uint dwSlaveId

[out] Slave ID

bool bIsHCGroupPresent

[out] The hot connect group of the slave is present

uint[] aPortSlaveIds

[out] slave IDs connected to ports

uint dwSystemTimeDifference

dwSystemTimeDifference

class EcWrapperDotNet.DN_EC_T_HC_GROUP_INFO

DN_EC_T_HC_GROUP_INFO.

Public Members

uint dwHcGroupIdx

[out] Index of Hot Connect group

string szGroupName

[out] Hot connect group name (from ENI file)

uint dwNumOfSlaves

[out] Number of Slaves within the group

ushort wHeadSlaveStationAddress

[out] Physical address of the head slave of the HC group

ushort wIdentificationAdo

[out] Ado of Identification check

ushort wIdentificationVal

[out] Val of Identification check

bool bIsPresent

[out] EC_TRUE if HC group is present, EC_FALSE otherwise

bool bIsMandatory

[out] EC_TRUE if HC group is mandatory, EC_FALSE otherwise

DN_EC_T_LINK_VAR_INFO.

Public Members

[in] Arbitrarily application-defined parameter

[in] Pointer to application variable where process variable should be linked to

[in] Type of application variable

[in] Size of variable (in bits)

[in] Bit offset of variable

class EcWrapperDotNet.DN_EC_T_MASTER_INFO

ecatGetMasterInfo

Public Members

uint dwMasterVersion

Master version.

DN_EC_T_BUS_DIAGNOSIS_INFO BusDiagnosisInfo

Bus diagnostics.

DN_EC_T_MAILBOX_STATISTICS MailboxStatistics

Mailbox statistics.

DN_EC_T_REDUNDANCY_DIAGNOSIS_INFO RedundancyDiagnosisInfo

Redundancy diagnosis info.

uint dwMasterStateSummary

Master state summary.

uint dwMasterVersionType

Master version type. See EC_VERSION_TYPE.

ushort wMasterStateSummaryDiagBitOffset

Bit offset of Master state summary in diagnosis image.

ushort wMasterStateSummaryDiagBitSize

Bit offset size of Master state summary in diagnosis image.

class EcWrapperDotNet.DN_EC_T_BUS_DIAGNOSIS_INFO

See also Object 0x2002 Bus Diagnosis Object.

Public Members

uint dwCRC32ConfigCheckSum

CRC32 checksum of the loaded configuration.

uint dwNumSlavesFound

Number of slaves connected.

uint dwNumDCSlavesFound

Number of slaves with DC enabled connected.

uint dwNumCfgSlaves

Number of slaves in ENI.

uint dwNumMbxSlaves

Number of slaves in ENI with mailbox support.

uint dwTXFrames

Number of frames sent.

uint dwRXFrames

Number of frames received.

uint dwLostFrames

Number of lost frames.

uint dwCyclicFrames

Number of cyclic frames sent.

uint dwCyclicDatagrams

Number of cyclic datagrams / EtherCAT commands sent.

uint dwAcyclicFrames

Number of acyclic frames sent.

uint dwAcyclicDatagrams

Number of acyclic datagrams / EtherCAT commands sent.

uint dwClearCounters

Clear frame / datagram counter bit field.

uint dwCyclicLostFrames

Number of cyclic lost frames.

uint dwAcyclicLostFrames

Number of acyclic lost frames.

uint[] dwRes

dwRes

class EcWrapperDotNet.DN_EC_T_MAILBOX_STATISTICS

See also Object 0x2006 Mailbox Statistics Object.

Public Members

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Aoe

AoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Coe

CoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Eoe

EoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Foe

FoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Soe

SoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX Voe

VoE mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX RawMbx

Raw mailbox transfer statistics.

DN_EC_T_STATISTIC_TRANSFER_DUPLEX aRes

aRes

class EcWrapperDotNet.DN_EC_T_STATISTIC_TRANSFER_DUPLEX

See also Object 0x2006 Mailbox Statistics Object.

Public Members

DN_EC_T_STATISTIC_TRANSFER Read

Number of read transfers.

DN_EC_T_STATISTIC_TRANSFER Write

Number of write transfers.

class EcWrapperDotNet.DN_EC_T_STATISTIC_TRANSFER

See also Object 0x2006 Mailbox Statistics Object.

Public Members

DN_EC_T_STATISTIC Cnt

Number of transfers.

DN_EC_T_STATISTIC Bytes

Number of bytes transferred.

class EcWrapperDotNet.DN_EC_T_STATISTIC

See also Object 0x2006 Mailbox Statistics Object.

Public Members

uint dwTotal

Total.

uint dwLast

Last.

class EcWrapperDotNet.DN_EC_T_REDUNDANCY_DIAGNOSIS_INFO

See also Object 0x2003 Redundancy Diagnosis Object.

Public Members

bool bRedEnabled

Cable Redundancy Enabled.

uint dwMainSlaveCnt

Main Line Slave Count.

uint dwRedSlaveCnt

Red Line Slave Count.

bool bLineBreakDetected

Line Break Detected.

uint[] dwRes

dwRes

class EcWrapperDotNet.DN_EC_T_MSU_INFO

DN_EC_T_MSU_INFO.

Public Members

ushort wMsuId

[out] Master Sync Unit ID (ENI: Slave/ProcessData/RxPdo[1..4]@Su, Slave/ProcessData/TxPdo[1..4]@Su, comment at Cyclic/Frame/Cmd)

uint dwBitOffsIn

[out] Process Data Image INPUTs bit offset

uint dwBitSizeIn

[out] Process Data Image INPUTs bit length

uint dwBitOffsOut

[out] Process Data Image OUTPUTs bit offset

uint dwBitSizeOut

[out] Process Data Image OUTPUTs bit length

ushort wWkcStateDiagOffsIn

[out] INPUTs WkcState bit offset in Diagnosis Image. (Bit values: 0 = Process Data valid, 1 = Process Data invalid)

ushort wWkcStateDiagOffsOut

[out] OUTPUTs WkcState bit offset in Diagnosis Image. (Bit values: 0 = Process Data valid, 1 = Process Data invalid)

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_APP_PARMS
class EcWrapperDotNet.DN_EC_T_PERF_MEAS_HISTOGRAM

DN_EC_T_PERF_MEAS_HISTOGRAM.

Public Members

uint[] aBinsObj

aBinsObj

uint dwBinCount

Length of aBins.

ulong qwMinTicks

Results below qwMinTicks are stored in the first bin.

ulong qwMaxTicks

Results above qwMaxTicks are stored in the last bin.

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_INFO

DN_EC_T_PERF_MEAS_INFO.

Public Members

string szName

Name of the benchmark.

ulong qwFrequency

Frequency in Hz used by the timer.

DN_EC_T_USER_JOB eUserJob

UserJob associated with the benchmark.

uint dwBinCountHistogram

Length of Histogram Bins.

uint dwFlags

Flags associated with the benchmark (See EC_T_PERF_MEAS_FLAG…)

class EcWrapperDotNet.DN_EC_T_PERF_MEAS_VAL

DN_EC_T_PERF_MEAS_VAL.

Public Members

ulong qwCurrTicks

[ticks]

ulong qwMinTicks

[ticks]

ulong qwMaxTicks

[ticks]

ulong qwAvgTicks

[ticks]

class EcWrapperDotNet.DN_EC_T_PROCESS_VAR_INFO

emGetSlaveInpVarInfo / emGetSlaveOutpVarInfo

Public Members

string szName

[out] Name of the found process variable

ushort wDataType

[out] Data type of the found process variable (according to ETG.1000, section 5). See also EcType.h, DEFTYPE_BOOLEAN.

ushort wFixedAddr

[out] Station address of the slave that is owner of this variable

int nBitSize

[out] Size in bits of the found process variable

int nBitOffs

[out] Bit offset in the process data image

bool bIsInputData

[out] Determines whether the found process variable is an input variable or an output variable

class EcWrapperDotNet.DN_EC_T_PROCESS_VAR_INFO_EX

DN_EC_T_PROCESS_VAR_INFO_EX.

Public Members

string szName

[out] Name of the found process variable

ushort wDataType

[out] Data type of the found process variable (according to ETG.1000, section 5). See also EcType.h, DEFTYPE_BOOLEAN.

ushort wFixedAddr

[out] Station address of the slave that is owner of this variable

int nBitSize

[out] Size in bits of the found process variable

int nBitOffs

[out] Bit offset in the process data image

bool bIsInputData

[out] Determines whether the found process variable is an input variable or an output variable

ushort wIndex

[out] Object index

ushort wSubIndex

[out] Object sub index

ushort wPdoIndex

[out] Index of PDO (process data object)

ushort wWkcStateDiagOffs

[out] Bit offset in the diagnostic image (API GetDiagnosisImagePtr)

ushort wMasterSyncUnit

[out] Master Sync Unit ID (ENI: Slave/ProcessData/RxPdo[1..4]@Su, Slave/ProcessData/TxPdo[1..4]@Su, comment at Cyclic/Frame/Cmd)

ushort wRes1

wRes1

uint dwTaskId

[out] ID of task where process variable is located

DN_EC_T_CYC_COPY_INFO CopyInfo

[out] Copy Info if applied to the variable

class EcWrapperDotNet.DN_EC_T_CYC_COPY_INFO

The master has to copy valid input data of this command from the source offset (bit offs in the complete process image) to a destination offset.

Public Members

uint dwSrcBitOffs

dwSrcBitOffs

uint dwDstBitOffs

dwDstBitOffs

ushort wBitSize

wBitSize

ushort wTaskId

wTaskId

ushort wFlags

wFlags

ushort wRes

wRes

uint[] dwRes

dwRes

class EcWrapperDotNet.DN_EC_T_PROFILE_CHANNEL_INFO

DN_EC_T_PROFILE_CHANNEL_INFO.

Public Members

ushort wProfileNo

[out] ProfileNo: “low word of CoE object 0x1000”

ushort wAddInfo

[out] AddInfo : “high word of CoE object 0x1000”

string szDisplayName

[out] Display name

class EcWrapperDotNet.DN_EC_T_RAS_CONNECTION_INFO

DN_EC_T_RAS_CONNECTION_INFO.

Public Members

uint dwAccessControlActive

dwAccessControlActive

uint dwAccessLevel

dwAccessLevel

class EcWrapperDotNet.DN_EC_T_REGISTERRESULTS

Client register result.

Public Members

uint dwClntId

[out] Client ID

IntPtr pbyPDIn

[out] Pointer to process data input memory

uint dwPDInSize

[out] Size of process data input memory (in bytes)

IntPtr pbyPDOut

[out] Pointer to process data output memory

uint dwPDOutSize

[out] Size of process data output memory (in bytes)

class EcWrapperDotNet.DN_EC_T_SB_MISMATCH_DESC

DN_EC_T_SB_MISMATCH_DESC.

Public Members

ushort wPrevFixedAddress

[in] Previous slave station address

ushort wPrevPort

[in] Previous slave station address

ushort wPrevAIncAddress

[in] Previous slave auto-increment address

ushort wBusAIncAddress

[in] Unexpected slave (bus) auto-inc address

uint dwBusVendorId

[in] Unexpected slave (bus) vendor ID

uint dwBusProdCode

[in] Unexpected slave (bus) product code

uint dwBusRevisionNo

[in] Unexpected slave (bus) revision number

uint dwBusSerialNo

[in] Unexpected slave (bus) serial number

ushort wBusFixedAddress

[in] Unexpected slave (bus) station address

bool bIdentificationError

[in] Identification command sent to slave but failed

ushort wIdentificationAdo

[in] Identification register

ushort wIdentificationVal

[in] Last identification value read from slave according to the last used identification method

ushort wIdentificationValExpected

[in] Identification expected value

ushort wCfgFixedAddress

[in] Missing slave (config) station Address

ushort wCfgAIncAddress

[in] Missing slave (config) Auto-Increment Address

uint dwCfgVendorId

[in] Missing slave (config) Vendor ID

uint dwCfgProdCode

[in] Missing slave (config) Product code

uint dwCfgRevisionNo

[in] Missing slave (config) Revision Number

uint dwCfgSerialNo

[in] Missing slave (config) Serial Number

class EcWrapperDotNet.DN_EC_T_SB_SLAVEINFO_DESC

DN_EC_T_SB_SLAVEINFO_DESC.

Public Members

uint dwScanBusStatus

[out] Scan bus status (determined in the latest scan bus) emNotify EC_NOTIFY_SB_STATUS

uint dwVendorId

[out] Vendor Identification stored in the EEPROM at offset 0x0008

uint dwProductCode

[out] Product Code stored in the EEPROM at offset 0x000A

uint dwRevisionNumber

[out] Revision number stored in the EEPROM at offset 0x000C (Not read by default!)

uint dwSerialNumber

[out] Serial number stored in the EEPROM at offset 0x000E (Not read by default!)

class EcWrapperDotNet.DN_EC_T_SB_SLAVEINFO_REQ_DESC

DN_EC_T_SB_SLAVEINFO_REQ_DESC.

Public Members

DN_EC_T_eINFOENTRY eInfoEntry

[in] Info Entry to read

ushort wAutoIncAddress

[in] Auto-Increment address of the slave

enum EcWrapperDotNet.DN_EC_T_eINFOENTRY

DN_EC_T_eINFOENTRY.

Values:

unknown

unknown

pdoffs_in

pdoffs_in

pdsize_in

pdsize_in

pdoffs_out

pdoffs_out

pdsize_out

pdsize_out

phys_address

phys_address

portstate

portstate

dcsupport

dcsupport

dc64support

dc64support

alias_address

alias_address

cfgphy_address

cfgphy_address

device_name

device_name

ismailbox_slave

ismailbox_slave

pdoffs_in2

pdoffs_in2

pdsize_in2

pdsize_in2

pdoffs_out2

pdoffs_out2

pdsize_out2

pdsize_out2

pdoffs_in3

pdoffs_in3

pdsize_in3

pdsize_in3

pdoffs_out3

pdoffs_out3

pdsize_out3

pdsize_out3

pdoffs_in4

pdoffs_in4

pdsize_in4

pdsize_in4

pdoffs_out4

pdoffs_out4

pdsize_out4

pdsize_out4

mbx_outsize

mbx_outsize

mbx_insize

mbx_insize

mbx_outsize2

mbx_outsize2

mbx_insize2

mbx_insize2

isoptional

isoptional

ispresent

ispresent

esctype

esctype

BCppDummy

BCppDummy.

class EcWrapperDotNet.DN_EC_T_SB_SLAVEINFO_RES_DESC

DN_EC_T_SB_SLAVEINFO_RES_DESC.

Public Members

DN_EC_T_eINFOENTRY eInfoEntry

[out] Info entry read

uint dwInfoLength

[in, out] Length of Info Field (buffer, actually read length)

IntPtr pbyInfo

[out] Pointer to Info (-1 if no info found in XML file)

class EcWrapperDotNet.DN_EC_T_SB_STATUS_NTFY_DESC

DN_EC_T_SB_STATUS_NTFY_DESC.

Public Members

uint dwResultCode

[in] #EC_E_NOERROR: success, #EC_E_NOTREADY: no bus scan executed, #EC_E_BUSCONFIG_MISMATCH: bus configuration mismatch result of scanbus

uint dwSlaveCount

[in] Number of slaves connected to the bus

class EcWrapperDotNet.DN_EC_T_SELFTESTSCAN_PARMS

DN_EC_T_SELFTESTSCAN_PARMS.

Public Members

uint dwTimeout

[in] Timeout [ms], 0 or EC_NOWAIT defaults to 500ms

uint dwFrameCount

[in] Total number of frames sent during the self-test. Default value is 1500. A value of 0 sets the default value.

uint dwFrameSizeMin

[in] Min frame size [bytes]. Default value is 60. A value of 0 sets the default value.

uint dwFrameSizeMax

[in] Max frame size [bytes]. Default value is 1514. A value of 0 sets the default value.

uint dwFrameSizeStep

[in] Size [bytes] by which the frame increases or decreases continuously during the self-test. Default value is 1. A value of 0 sets the default value.

bool bDetectBadConnections

[in] Execute the bad connection detection after self-test

ulong qwFrameRoundtripTimeAvg

[out] Roundtrip time average [us]. Time taken from sending to receiving the frame (master application level).

ulong qwFrameRoundtripTimeMin

[out] Roundtrip time minimum [us]. Time taken from sending to receiving the frame (master application level).

ulong qwFrameRoundtripTimeMax

[out] Roundtrip time maximum [us]. Time taken from sending to receiving the frame (master application level).

bool bMeasureRoundtripTimeForSingleFrame

[in] Execute roundtrip time calculation for single frame

bool bClearSlaveErrorCounters

[in] Clear all slaves’ error counters before running the self-test

uint dwDuration

[in] Desired duration to run the self-test scan [s]. Stops as soon as dwDuration is reached. A value of 0 means no duration limit. If dwDuration is not zero, dwFrameCount is ignored.

enum EcWrapperDotNet.DN_EC_T_SLAVE_SELECTION

DN_EC_T_SLAVE_SELECTION.

Values:

eSlaveSelectionSingle

[in] Select only one slave

eSlaveSelectionTopoFollowers

[in] Select slave and his topological followers

eSlaveSelectionMasterSyncUnit

[in] Select slave and his topological followers

eSlaveSelectionDummy

eSlaveSelectionDummy

class EcWrapperDotNet.DN_EC_T_SLAVE_PROP

EtherCAT slave properties.

Public Members

ushort wStationAddress

Configured station address or INVALID_FIXED_ADDR.

ushort wAutoIncAddr

Configured auto increment address or INVALID_AUTO_INC_ADDR.

string achName

Configured name of the slave device (NULL terminated string)

class EcWrapperDotNet.DN_EC_T_SLVSTATISTICS_DESC

DN_EC_T_SLVSTATISTICS_DESC.

Public Members

byte[] abyInvalidFrameCnt

[out] Invalid Frame Counters per Slave Port

byte[] abyRxErrorCnt

[out] RX Error Counters per Slave Port

byte[] abyFwdRxErrorCnt

[out] Forwarded RX Error Counters per Slave Port

byte byProcessingUnitErrorCnt

[out] Processing Unit Error Counter

byte byPdiErrorCnt

[out] PDI Error Counter

ushort wAlStatusCode

[out] AL Status Code

byte[] abyLostLinkCnt

[out] Lost Link Counters per Slave Port

ulong qwReadTime

[out] Timestamp of the last read [ns]

ulong qwChangeTime

[out] Timestamp of the last counter change [ns]

enum EcWrapperDotNet.DN_EC_T_STATE

EtherCAT state.

Values:

UNKNOWN

Unknown state.

INIT

EtherCAT state INIT.

PREOP

EtherCAT state PREOP (pre-operational)

SAFEOP

EtherCAT state SAFEOP (safe operational)

OP

EtherCAT state OP (operational)

BOOTSTRAP

EtherCAT state BOOTSTRAP.

BCppDummy

BCppDummy.

enum EcWrapperDotNet.DN_EC_T_CMD

EtherCAT commands.

Values:

NOP

No operation.

APRD

Auto increment physical read.

APWR

Auto increment physical write.

APRW

Auto increment physical read write.

FPRD

Configured address physical read.

FPWR

Configured address physical write.

FPRW

Configured address physical read write.

BRD

Broadcast read.

BWR

Broadcast write.

BRW

Broadcast read write.

LRD

Logical memory read.

LWR

Logical memory write.

LRW

Logical memory read write.

ARMW

Auto increment physical read multiple write.

FRMW

Configured address physical read multiple write.

EXT

EXT.

BCppDummy

BCppDummy.

class EcWrapperDotNet.DN_EC_T_TRACE_DATA_INFO

DN_EC_T_TRACE_DATA_INFO.

Public Members

IntPtr pbyData

[out] Process data output buffer, containing trace data

uint dwOffset

[out] Trace data offset in bytes

ushort wSize

[out] Trace data size in bytes

enum EcWrapperDotNet.DN_EC_T_USER_JOB

EtherCAT user controlled execution job.

Values:

Undefined

Undefined.

ProcessAllRxFrames

Receive frames and process all received data. Polling mode only.

SendAllCycFrames

Send all cyclic frames.

MasterTimer

Run internal master and slave state machines for generic management.

SendAcycFrames

Send acyclic frames.

SendCycFramesByTaskId

Send cyclic frames related to a specific task id (ENI: Cyclic/TaskId)

MasterTimerMinimal

Run minimal master timer routine: no state change possible.

ProcessRxFramesByTaskId

Receive frames and process received data related to a specific task id (ENI: Cyclic/TaskId)

ProcessAcycRxFrames

Receive frames and process received data related to acyclic frames.

SwitchEoeFrames

Switch queued EoE frames (see EC_IOCTL_SET_EOE_DEFFERED_SWITCHING_ENABLED)

StartTask

Start new task.

StopTask

Stop currently running task.

StampSendAllCycFrames

Obsolete.

StampSendCycFramesByTaskId

Obsolete.

SimulatorTimer

Run EC-Simulator timer routine (generic management)

MonitorTimer

Run EC-Monitor timer routine (generic management)

BCppDummy

BCppDummy.

enum EcWrapperDotNet.DN_EC_T_VAR_DIRECTION

DN_EC_T_VAR_DIRECTION.

Values:

Undefined

Undefined Direction.

INPUT

INPUTs.

OUTPUT

OUTPUTs.

All

INPUTs and OUTPUTs.

BCppDummy

BCppDummy.

enum EcWrapperDotNet.DN_EC_T_VAR_SOURCE

DN_EC_T_VAR_SOURCE.

Values:

Undefined

Undefined Source.

All

Slaves and Master/Monitor/Simulator.

AllSlaves

All Slaves.

Slave

Slave.

Master

Master.

Monitor

Monitor.

Simulator

Simulator.

BCppDummy

BCppDummy.

enum EcWrapperDotNet.DN_ESC_SII_REG

DN_ESC_SII_REG.

Values:

PDICONTROL

PDICONTROL.

PDICONFIG

PDICONFIG.

SYNCIMPULSELENGTH

SYNCIMPULSELENGTH.

EXTENDEDPDICONFIG

EXTENDEDPDICONFIG.

ALIASADDRESS

ALIASADDRESS.

CHECKSUM

CHECKSUM.

VENDORID

VENDORID.

PRODUCTCODE

PRODUCTCODE.

REVISIONNUMBER

REVISIONNUMBER.

REVISIONNUMBER_LO

REVISIONNUMBER_LO.

REVISIONNUMBER_HI

REVISIONNUMBER_HI.

SERIALNUMBER

SERIALNUMBER.

BOOT_RECV_MBX

BOOT_RECV_MBX.

BOOT_RECV_MBX_OFFSET

BOOT_RECV_MBX_OFFSET.

BOOT_RECV_MBX_SIZE

BOOT_RECV_MBX_SIZE.

BOOT_SEND_MBX

BOOT_SEND_MBX.

BOOT_SEND_MBX_OFFSET

BOOT_SEND_MBX_OFFSET.

BOOT_SEND_MBX_SIZE

BOOT_SEND_MBX_SIZE.

STD_RECV_MBX

STD_RECV_MBX.

STD_RECV_MBX_OFFSET

STD_RECV_MBX_OFFSET.

STD_RECV_MBX_SIZE

STD_RECV_MBX_SIZE.

STD_SEND_MBX

STD_SEND_MBX.

STD_SEND_MBX_OFFSET

STD_SEND_MBX_OFFSET.

STD_SEND_MBX_SIZE

STD_SEND_MBX_SIZE.

MBX_PROTOCOL

MBX_PROTOCOL.

FIRSTCATEGORYHDR

FIRSTCATEGORYHDR.

class EcWrapperDotNet.DN_ETHERNET_ADDRESS

DN_ETHERNET_ADDRESS.

Public Members

byte[] b

MAC address.

enum EcWrapperDotNet.DN_NotifyCode

Specifies EtherCAT errors codes.

Values:

UNDEFINED
STATECHANGED
SB_STATUS
DC_STATUS
DC_SLV_SYNC
DCL_STATUS
DCM_SYNC
DCX_SYNC
SLAVE_STATECHANGED
SLAVES_STATECHANGED
RAWCMD_DONE
COE_TX_PDO
SLAVE_PRESENCE
SLAVES_PRESENCE
REFCLOCK_PRESENCE
MASTER_RED_STATECHANGED
MASTER_RED_FOREIGN_SRC_MAC
SLAVE_REGISTER_TRANSFER
PORT_OPERATION
SLAVE_IDENTIFICATION
RELEASE_FORCED_PROCESSDATA
SB_EEPROM_ACCESS_DENIED
SB_SLAVE_IDENT_TIMEOUT
CONFIG_LOAD
FSOE_CONNECTION_STATECHANGED
CYCCMD_WKC_ERROR
MASTER_INITCMD_WKC_ERROR
SLAVE_INITCMD_WKC_ERROR
EOE_MBXSND_WKC_ERROR
COE_MBXSND_WKC_ERROR
FOE_MBXSND_WKC_ERROR
FRAME_RESPONSE_ERROR
SLAVE_INITCMD_RESPONSE_ERROR
MASTER_INITCMD_RESPONSE_ERROR
MBSLAVE_INITCMD_TIMEOUT
NOT_ALL_DEVICES_OPERATIONAL
RED_LINEBRK
STATUS_SLAVE_ERROR
SLAVE_ERROR_STATUS_INFO
SLAVE_NOT_ADDRESSABLE
SOE_MBXSND_WKC_ERROR
SOE_WRITE_ERROR
MBSLAVE_COE_SDO_ABORT
CLIENTREGISTRATION_DROPPED
RED_LINEFIXED
FOE_MBSLAVE_ERROR
MBXRCV_INVALID_DATA
PDIWATCHDOG
SLAVE_NOTSUPPORTED
SLAVE_UNEXPECTED_STATE
ALL_DEVICES_OPERATIONAL
VOE_MBXSND_WKC_ERROR
AOE_MBXSND_WKC_ERROR
EEPROM_CHECKSUM_ERROR
JUNCTION_RED_CHANGE
SLAVES_UNEXPECTED_STATE
LINE_CROSSED
SLAVES_ERROR_STATUS
FRAMELOSS_AFTER_SLAVE
S2SMBX_ERROR
BAD_CONNECTION
COMMUNICATION_TIMEOUT
MBOXRCV
SB_MISMATCH
SB_DUPLICATE_HC_NODE
HC_DETECTADDGROUPS
HC_PROBEALLGROUPS
HC_TOPOCHGDONE