[Ethercat Device]
Description
Write 32-bit data of SII EEPROM which starting from the specified offset for such EtherCAT slave device.
Syntax
int writeSII16(uint32_t offset, uint32_t value, uint32_t timeout_ms = 500);
Parameters
[in] uint32_t offset
The offset value of SII EEPROM for such EtherCAT slave device.[in] uint32_t value
The 32-bit value to be written to SII EEPROM for such EtherCAT slave device.[in] uint32_t timeout_ms
Timeout in milliseconds.
Return Value
Return an error code. If the returned value is zero, it indicates a successful execution of this function.
Comment
This function must be called after a successful execution of EthercatMaster::begin()
. This function is blocking and cannot be called within the Cyclic Callback.
Example
#include "Ethercat.h" EthercatMaster master; EthercatDevice_Generic slave; void setup() { master.begin(); slave.attach(0, master); slave.writeSII32(64, 0x55555555); } void loop() { // ... }
Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.