サイト内検索

検索

Shares

Table of Content

EthercatDevice.getEoEDetails()

[Ethercat Device]

説明

EtherCATスレーブデバイスでサポートされている Ethernet over EtherCAT(EoE) の詳細を取得します。

構文

int getEoEDetails();

戻り値

EtherCATスレーブデバイスでサポートされているEoEの詳細を戻します。

  • Bit 0: EoEが有効

戻り値が0未満の場合、 error codeを示します。.

備考

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

#include "Ethercat.h"

EthercatMaster master;
EthercatDevice_Generic slave;

void setup() {
  Serial.begin(115200);

  master.begin();
  slave.attach(0, master);

  Serial.println(slave.getEoEDetails());
}

void loop() {
  // put your main code here, to run repeatedly:

}

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

上部へスクロール