[Ethercat Master]
Description
Update process data and handle acyclic commands. This can only operate under the ECAT_FREERUN_MANUAL control mode.
Syntax
void update();
Parameters
None.
Return Value
None.
Comment
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.
Example
#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.