I want to find...

Search

Shares

Table of Content

EthercatMaster.getExpectedWorkingCounter()

[Ethercat Master]

Description

Get the expected working counter.

Syntax

int getExpectedWorkingCounter();

Parameters

None.

Return Value

Return the expected working counter.

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() {
  Serial.begin(115200);
  master.begin();
  master.start();

  Serial.print("Expected Working Counter: ");
  Serial.println(master.getExpectedWorkingCounter());
  // ...
}

void loop() {
  // ...
}

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

Leave a Comment

Scroll to Top