我想找...

搜尋

分享

目錄

EthercatMaster.update()

[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.

返回頂端