EthercatMaster.start()

[EthercatMaster]

描述

啟動 EtherCAT 主站。如果成功,所有從站將進入 OP 狀態。

格式

int start(uint64_t cycletime_ns);

語法

EthercatMaster master;
master.begin();
master.start();

參數

  • uint64_t cycletime_ns: 循環時間模式。

回傳

Int:0表示成功;如果返回值小於0表示錯誤。

範例

#include "Ethercat.h"

EthercatMaster master;

void setup(void) {
    master.begin();
    master.start();
}

void loop() {}    

函式庫參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

上部へスクロール