[EthercatDevice_XXX]
説明
Get EtherCAT Slave Alias Address on the EtherCAT bus.
Format
int getAliasAddress();
Syntax
EthercatDevice_XXX slave;
slave.getAliasAddress();
Returns
Int: the EtherCAT Slave Alias Address on EtherCAT bus.
Example
#include "Ethercat.h" EthercatMaster master; EthercatDevice_QECR11DF0S slave; void setup(void) { int getAliasAddress; Serial.begin(115200); while (!Serial); master.begin(); slave.attach(0, master); master.start(); getAliasAddress = slave.getAliasAddress(); Serial.println(getAliasAddress); } void loop() {}
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。