[Ethercat Master]
描述
Update process data and handle acyclic commands. This can only operate under the ECAT_FREERUN_MANUAL control mode.
語法
void update();
參數
無
回傳值
無
備註
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() {
master.begin();
master.start(1000000, ECAT_FREERUN_MANUAL);
}
void loop() {
// ...
master.update();
}Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.