I want to find...

Search

Shares

Table of Content

EthercatMaster.isRedundancy()

[Ethercat Master]

Description

Check if the EtherCAT master has Cable Redundancy enabled.

Syntax

bool isRedundancy();

Parameters

None.

Return Value

Return whether Cable Redundancy is enabled for the EtherCAT master. true indicates it is enabled, while false indicates it is not.

Comment

This function must be called after a successful execution of EthercatMaster::begin(). 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();
  Serial.println(master.isRedundancy());
}

void loop() {

}

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

Leave a Comment

Scroll to Top