[EthercatDevice_XXX]
説明
Get EtherCAT Slave Product Code on the EtherCAT bus.
Format
uint32_t getProductCode();
Syntax
EthercatDevice_XXX slave;
slave.getProductCode();
Returns
uint32_t: the EtherCAT Slave Product Code on the EtherCAT bus.
Example
#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() {}
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。