![]() |
Functions | |
MLPIRESULT | mlpiEthercatGetSlavePortState (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, USHORT *portState) |
MLPIRESULT | mlpiEthercatReadSlaveRegister (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const USHORT registerOffset, UCHAR *data, const ULONG dataSize, ULONG *dataSizeRet) |
MLPIRESULT | mlpiEthercatWriteSlaveRegister (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const USHORT registerOffset, UCHAR *data, const ULONG dataSize) |
MLPIRESULT | mlpiEthercatResetSlaveController (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address) |
MLPIRESULT | mlpiEthercatReadSlaveEeprom (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const USHORT eepromOffset, USHORT *data, const ULONG numElements, ULONG *numElementsRet) |
MLPIRESULT | mlpiEthercatWriteSlaveEeprom (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const USHORT eepromOffset, USHORT *data, const ULONG numElements) |
MLPIRESULT | mlpiEthercatReloadSlaveEeprom (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address) |
MLPIRESULT | mlpiEthercatAssignSlaveEeprom (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const BOOL8 slavePdiAccessEnable, const BOOL8 forceAssign) |
MLPIRESULT | mlpiEthercatCheckSlaveEeprom (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, BOOL8 *slavePdiAccessActive) |
MLPIRESULT | mlpiEthercatReadSlaveIdentification (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, const USHORT ado, USHORT *value) |
MLPIRESULT | mlpiEthercatGetSlaveStatistics (const MLPIHANDLE connection, const ULONG interfaceNumber, const MlpiEthercatAddressType addressType, const USHORT address, MlpiEthercatSlaveStatistics *slaveStatistics) |
MLPIRESULT | mlpiEthercatResetSlaveStatistics (const MLPIHANDLE connection, const ULONG interfaceNumber) |
MLPIRESULT | mlpiEthercatSetSlaveStatisticsPeriod (const MLPIHANDLE connection, const ULONG interfaceNumber, const ULONG periodMs) |
MLPIRESULT | mlpiEthercatGetSlaveStatisticsPeriod (const MLPIHANDLE connection, const ULONG interfaceNumber, ULONG *periodMs) |
Contains functions to read/write information on the data link layer.
MLPIRESULT mlpiEthercatGetSlavePortState | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
USHORT * | portState | ||
) |
This function returns the state of the slave ports.
Slave port state is encoded as follows: USHORT consists out of four nibble. Each nibble signals one information for all four ports.
Port order within each nibble: 3210
Nibble: wwww.xxxx.yyyy.zzzz wwww: Signal detected 1=TRUE 0=FALSE xxxx: Loop closed 1=TRUE 0=FALSE yyyy: Link established 1=TRUE 0=FALSE zzzz: Slave connected 1=TRUE 0=FALSE (logical result of w,x,y)
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[out] | portState | Slave port state. |
MLPIRESULT mlpiEthercatReadSlaveRegister | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const USHORT | registerOffset, | ||
UCHAR * | data, | ||
const ULONG | dataSize, | ||
ULONG * | dataSizeRet | ||
) |
This function reads data from the EtherCAT Slave Controller memory of a specific device.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | registerOffset | Register offset, e.g. 0x0120 for AL Control register. |
[out] | data | Data buffer for uploaded data. |
[in] | dataSize | Number of bytes in 'data' available to read. |
[out] | dataSizeRet | Number of bytes used. |
MLPIRESULT mlpiEthercatWriteSlaveRegister | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const USHORT | registerOffset, | ||
UCHAR * | data, | ||
const ULONG | dataSize | ||
) |
This function writes data into the EtherCAT Slave Controller memory of a specific device.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | registerOffset | Register offset, e.g. 0x0120 for AL Control register. |
[in] | data | Data to be transferred. |
[in] | dataSize | Number of bytes in 'data' available to write. |
MLPIRESULT mlpiEthercatResetSlaveController | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address | ||
) |
This function resets a ESC (e.g., ET1100, ET1200, and IP Core) if it is capable of issuing a hardware reset. A special sequence of three independent and consecutive frames/commands has to be sent do the slave (Reset register ECAT 0x0040 or PDI 0x0041). Afterwards, the slave is reset.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
MLPIRESULT mlpiEthercatReadSlaveEeprom | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const USHORT | eepromOffset, | ||
USHORT * | data, | ||
const ULONG | numElements, | ||
ULONG * | numElementsRet | ||
) |
This function reads data from the EEPROM of a specific device.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | eepromOffset | EEPROM offset (word address to start reading from). |
[out] | data | Data buffer for EEPROM content. |
[in] | numElements | Number of words in 'data' available to read. |
[out] | numElementsRet | Number of words used. |
MLPIRESULT mlpiEthercatWriteSlaveEeprom | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const USHORT | eepromOffset, | ||
USHORT * | data, | ||
const ULONG | numElements | ||
) |
This function writes data into the EEPROM of a specific device.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | eepromOffset | EEPROM offset (word address to start reading from). |
[in] | data | Data buffer for EEPROM content. |
[in] | numElements | Number of words in 'data' available to write. |
MLPIRESULT mlpiEthercatReloadSlaveEeprom | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address | ||
) |
This function causes a specific slave to reload its EEPROM values to ESC registers.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
MLPIRESULT mlpiEthercatAssignSlaveEeprom | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const BOOL8 | slavePdiAccessEnable, | ||
const BOOL8 | forceAssign | ||
) |
This function assigns the slave EEPROM either to Slave PDI or EtherCAT Master.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | slavePdiAccessEnable | Assigns EEPROM to Slave PDI (TRUE) or EtherCAT master (FALSE). |
[in] | forceAssign | Force Assignment of EEPROM (only in case of assignment to EtherCAT master). |
MLPIRESULT mlpiEthercatCheckSlaveEeprom | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
BOOL8 * | slavePdiAccessActive | ||
) |
This function checks if the slave EEPROM is marked for slave PDI access or not.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[out] | slavePdiAccessActive | Assigns EEPROM to Slave PDI (TRUE) or EtherCAT master (FALSE). |
MLPIRESULT mlpiEthercatReadSlaveIdentification | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
const USHORT | ado, | ||
USHORT * | value | ||
) |
This function reads the identification value from a slave.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[in] | ado | ADO used for identification. |
[out] | value | Identification value. |
MLPIRESULT mlpiEthercatGetSlaveStatistics | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const MlpiEthercatAddressType | addressType, | ||
const USHORT | address, | ||
MlpiEthercatSlaveStatistics * | slaveStatistics | ||
) |
This function returns the slave's statistics counter. Counter can be used to detect errors on Ethernet Layer.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | addressType | Address type. |
[in] | address | Slave address (depending on addressType). |
[out] | slaveStatistics | Statistics of a slave. |
MLPIRESULT mlpiEthercatResetSlaveStatistics | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber | ||
) |
This function clears all error registers (statistics counter) in all slaves.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
MLPIRESULT mlpiEthercatSetSlaveStatisticsPeriod | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
const ULONG | periodMs | ||
) |
This function sets the update period of internal slave statistics collection.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[in] | periodMs | Update period in unit of milliseconds (0 means disable feature). |
MLPIRESULT mlpiEthercatGetSlaveStatisticsPeriod | ( | const MLPIHANDLE | connection, |
const ULONG | interfaceNumber, | ||
ULONG * | periodMs | ||
) |
This function returns the update period of internal slave statistics collection.
[in] | connection | Handle for multiple connections. |
[in] | interfaceNumber | Master interface number. |
[out] | periodMs | Update period in unit of milliseconds (0 means disabled feature). |