我想找...

搜尋

分享

目錄

EthercatMaster.stop()

[Ethercat Master]

描述

Stop the EtherCAT master, and switch the EtherCAT state machine to the Pre-Operational state.

語法

int stop();

參數

回傳值

Return an error code. If the returned value is zero, it indicates a successful execution of this function.

備註

This function must be called after a successful execution of EthercatMaster::start(). This function is blocking and cannot be called within the callback functions.

範例

#include "Ethercat.h"

EthercatMaster master;

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

void loop() {
    // ...
}   

Please see the EtherCAT Library User Manual for more QEC EtherCAT instructions and API usage.

返回頂端