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 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
- 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
- class EcWrapperDotNet.DN_EC_T_MASTER_RED_PARMS
Master Redundancy initialization parameters, see ecatInitMaster.
- class EcWrapperDotNet.DN_EC_T_PERF_MEAS_INTERNAL_PARMS
DN_EC_T_PERF_MEAS_INTERNAL_PARMS.
Public Members
- 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_ADS_ADAPTER_START_PARMS
DN_EC_T_ADS_ADAPTER_START_PARMS.
Public Members
- DN_EC_T_AOE_NETID targetNetID
targetNetID
- class EcWrapperDotNet.DN_EC_T_BUS_SLAVE_INFO
DN_EC_T_BUS_SLAVE_INFO.
Public Members
- 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.
- ushort wMbxSupportedProtocols
[out] Supported Mailbox Protocols stored in the EEPROM at offset 0x001C
- class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_INFO
ecatGetCfgSlaveInfo
Public Members
- uint dwMbxSupportedProtocols
[out] Mailbox protocols supported by the slave (from ENI file). Combination of Supported mailbox protocols flags.
- 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.
- class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_SM_INFO
DN_EC_T_CFG_SLAVE_SM_INFO.
Public Members
- DN_EC_T_CFG_SLAVE_SM_ENTRY[] aoSmInfos
[out] Sync managers info
- class EcWrapperDotNet.DN_EC_T_CFG_SLAVE_EOE_INFO
ecatGetCfgSlaveEoeInfo, ENI: Mailbox/EoE/InitCmds/InitCmd/Data
Public Members
- DN_EC_T_IPADDR oIpAddr
[out] IP address
- DN_EC_T_IPADDR oSubnetMask
[out] Subnet mask
- DN_EC_T_IPADDR oDefaultGateway
[out] Default gateway
- DN_EC_T_IPADDR oDnsServer
[out] DNS server
- class EcWrapperDotNet.DN_EC_T_IPADDR
DN_EC_T_IPADDR.
Public Members
- DN_EC_T_INNER_IPADDR sAddr
sAddr
- enum EcWrapperDotNet.DN_EC_T_CNF_TYPE
DN_EC_T_CNF_TYPE.
Values:
- 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”.
- 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.
- 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.
- 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.
- 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_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.
- class EcWrapperDotNet.DN_EC_T_DC_CONFIGURE
DN_EC_T_DC_CONFIGURE.
Public Members
- uint dwTimeout
[in] Timeout [ms] for the DC initialization in which time offsets and propagation delays are evaluated ( default:
12 sec )
- class EcWrapperDotNet.DN_EC_T_MASTER_INFO
ecatGetMasterInfo
Public Members
- 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.
- class EcWrapperDotNet.DN_EC_T_BUS_DIAGNOSIS_INFO
See also Object 0x2002 Bus Diagnosis Object.
Public Members
- 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_REDUNDANCY_DIAGNOSIS_INFO
See also Object 0x2003 Redundancy Diagnosis Object.
- 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)
- class EcWrapperDotNet.DN_EC_T_PERF_MEAS_INFO
DN_EC_T_PERF_MEAS_INFO.
Public Members
- DN_EC_T_USER_JOB eUserJob
UserJob associated with the benchmark.
- class EcWrapperDotNet.DN_EC_T_PROCESS_VAR_INFO_EX
DN_EC_T_PROCESS_VAR_INFO_EX.
Public Members
- ushort wDataType
[out] Data type of the found process variable (according to ETG.1000, section 5). See also EcType.h, DEFTYPE_BOOLEAN.
- bool bIsInputData
[out] Determines whether the found process variable is an input variable or an output variable
- 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)
- 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.
- 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
- 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
- class EcWrapperDotNet.DN_EC_T_SELFTESTSCAN_PARMS
DN_EC_T_SELFTESTSCAN_PARMS.
Public Members
- 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.
- 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).
- enum EcWrapperDotNet.DN_EC_T_USER_JOB
EtherCAT user controlled execution job.
Values: