9.5. Diagnosis
9.5.1. emonGetDiagnosisImagePtr
9.5.2. emonGetDiagnosisImageSize
9.5.3. emonGetMasterSyncUnitInfoNumOf
9.5.4. emonGetMasterSyncUnitInfo
-
EC_T_DWORD emonGetMasterSyncUnitInfo(EC_T_DWORD dwInstanceID, EC_T_WORD wMsuId, EC_T_MSU_INFO *pMsuInfo)
Get information about specific Master Sync Unit.
- Parameters
dwInstanceID – [in] Instance ID (Multiple EtherCAT Network Support)
wMsuId – [in] Master Sync Unit to get the information from
pMsuInfo – [out] Pointer to an EC_T_MSU_INFO structure receiving the Master Sync Unit information
- Returns
EC_E_NOERROR or error code
MSU_ID_ALL_INFO_ENTRIES
retrieves the information from all master sync units at once. The application must ensure that pMsuInfo is capable for all entries.
-
struct EC_T_MSU_INFO
Public Members
-
EC_T_WORD wMsuId
[out] Master Sync Unit ID (ENI: Slave/ProcessData/RxPdo[1..4]@Su, Slave/ProcessData/TxPdo[1..4]@Su, comment at Cyclic/Frame/Cmd)
-
EC_T_WORD wWkcStateDiagOffsIn
[out] INPUTs WkcState bit offset in Diagnosis Image. (Bit values: 0 = Process Data valid, 1 = Process Data invalid)
-
EC_T_WORD wMsuId
See also
9.5.5. emonGetSlaveStatistics
-
EC_T_DWORD emonGetSlaveStatistics(EC_T_DWORD dwInstanceID, EC_T_DWORD dwSlaveId, EC_T_SLVSTATISTICS_DESC *pSlaveStatisticsDesc)
Get Slave’s statistics counter.
- Parameters
dwInstanceID – [in] Instance ID (Multiple EtherCAT Network Support)
dwSlaveId – [in] Slave id
pSlaveStatisticsDesc – [out] Pointer to structure EC_T_SLVSTATISTICS_DESC
- Returns
EC_E_NOERROR or error code
9.5.6. emonIoControl - EC_IOCTL_GET_SLVSTATISTICS
Get Slave’s statistics counter. Counters are collected on a regularly base (default: off) and show errors on Real-time Ethernet Drivers.
- emonIoControl - EC_IOCTL_GET_SLVSTATISTICS
- Parameter
pbyInBuf
: [in] Pointer to a EC_T_DWORD type variable containing the slave id.dwInBufSize
: [in] Size of the input buffer provided at pbyInBuf in bytes.pbyOutBuf
: [out] Pointer to struct EC_T_SLVSTATISTICS_DESCdwOutBufSize
: [in] Size of the output buffer provided at pbyOutBuf in bytes.pdwNumOutData
: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer.
9.5.7. emonClearSlaveStatistics
-
EC_T_DWORD emonClearSlaveStatistics(EC_T_DWORD dwInstanceID, EC_T_DWORD dwSlaveId)
Clears all error registers of a slave.
- Parameters
dwInstanceID – [in] Instance ID (Multiple EtherCAT Network Support)
dwSlaveId – [in] Slave Id, INVALID_SLAVE_ID clears all slaves
- Returns
EC_E_NOERROR or error code
Note
Only the buffered error register values are deleted. The actual counters on the slaves remain unchanged.
See also
9.5.8. emonIoControl - EC_IOCTL_CLR_SLVSTATISTICS
Clear all buffered error registers for all slaves. The actual counters on the slaves remain unchanged.
- emonIoControl - EC_IOCTL_CLR_SLVSTATISTICS
- Parameter
pbyInBuf
: [in] Should be set to EC_NULLdwInBufSize
: [in] Should be set to 0pbyOutBuf
: [out] Should be set to EC_NULLdwOutBufSize
: [in] Should be set to 0pdwNumOutData
: [out] Should be set to EC_NULL
9.5.9. emonIoControl - EC_IOCTL_SB_STATUS_GET
This call will get the status of the last bus scan.
- emonIoControl - EC_IOCTL_SB_STATUS_GET
- Parameter
pbyInBuf
: [in] Should be set to EC_NULLdwInBufSize
: [in] Should be set to 0pbyOutBuf
: [out] Pointer to EC_T_SB_STATUS_NTFY_DESC.dwOutBufSize
: [in] Size of the output buffer in bytes.pdwNumOutData
: [out] Pointer to EC_T_DWORD. Amount of bytes written to the output buffer.
See also