[EthercatDevice_XXX]
描述
獲取 EtherCAT 總線上的 EtherCAT 從站產品碼。
格式
uint32_t getProductCode();
語法
EthercatDevice_XXX slave;
slave.getProductCode();
回傳
uint32_t:EtherCAT 總線上的 EtherCAT 從站產品碼。
範例
#include "Ethercat.h" EthercatMaster master; EthercatDevice_QECR11DF0S slave; void setup(void) { uint32_t getProductCode; Serial.begin(115200); while (!Serial); master.begin(); slave.attach(0, master); master.start(); getProductCode = slave.getVendorID(); Serial.println(getProductCode); } void loop() {}
函式庫參考主頁面
86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。