[EthercatDevice_XXX]
Description
(CoE) Write the object to the EtherCAT Slave device. (unit32_t)
Format
int sdoDownload32(uint16_t od_index, uint8_t od_subindex, uint32_t value, uint32_t timeout_us = ECAT_DEFAULT_COE_TIMEOUT_US);
Syntax
EthercatDevice_XXX slave;
slave.sdoDownload32();
Parameters
uint16_t od_index
: CANOpen Object index.uint8_t od_subindex
: CANOpen Object sub-index.uint32_t value
: 4-byte data.uint32_t timeout_us
: Timeout, unit for microsecond.
Returns
Int.
- 0: successful.
- -48: timeout.
- -49: error with abort code.
Libraries Reference Home
The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.