[Ethercat Master]
描述
獲得預期的工作計數器 (working counter)。
語法
int getExpectedWorkingCounter();
參數
無
回傳值
Return the expected working counter.
備註
This function must be called after a successful execution of EthercatMaster::start() and before EthercatMaster::stop(). This function is non-blocking and can be called within the callback functions.
範例
#include "Ethercat.h"
EthercatMaster master;
void setup() {
Serial.begin(115200);
master.begin();
master.start();
Serial.print("Expected Working Counter: ");
Serial.println(master.getExpectedWorkingCounter());
// ...
}
void loop() {
// ...
}Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.