サイト内検索

検索

Shares

Table of Content

EthercatMaster.isRedundancy()

[Ethercat Master]

説明

Check if the EtherCAT master has Cable Redundancy enabled.

構文

bool isRedundancy();

媒介変数

なし

戻り値

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

備考

この関数は、 EthercatMaster::begin()の前に呼び出す必要があります。この関数はブロッキングされていないため、コールバック関数内で呼び出すことができます。

#include "Ethercat.h"

EthercatMaster master;

void setup() {
  Serial.begin(115200);
  master.begin();
  Serial.println(master.isRedundancy());
}

void loop() {

}

詳細は EtherCAT Library User Manual QEC EtherCAT命令とAPI使用法参照

上部へスクロール