[EthercatMaster]
説明
Get the EtherCAT Slave Vendor ID on the EtherCAT bus.
Format
uint32_t getVendorID(uint16_t slave_no);
Syntax
EthercatMaster master;
master.getVendorID();
Parameters
unit16_t slave_no
: the Slave position port that you want to get.
Returns
uint32_t: the EtherCAT Slave Vendor ID on the EtherCAT bus.
Example
#include "Ethercat.h" EthercatMaster master; void setup(void) { unit32_t slavevendorID; uint16_t slavecount=1; Serial.begin(115200); while (!Serial); master.begin(); slavevendorID = master. getVendorID(slavecount); Serial.println(slavevendorID); } void loop() {}
Libraries Reference Home
86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。