[EthercatDevice_XXX]
Description
Get EtherCAT Slave Serial Number on the EtherCAT bus.
Format
uint32_t getSerialNumber();
Syntax
EthercatDevice_XXX slave;
slave.getSerialNumber();
Returns
uint32_t: the EtherCAT Slave Serial Number on the EtherCAT bus.
Example
#include "Ethercat.h" EthercatMaster master; EthercatDevice_QECR11DF0S slave; void setup(void) { uint32_t getSerialNumber; Serial.begin(115200); while (!Serial); master.begin(); slave.attach(0, master); master.start(); getSerialNumber = slave.getSerialNumber(); Serial.println(getSerialNumber); } void loop() {}
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.