サイト内検索

検索

Shares

Table of Content

EthercatDevice.getFoEDetails()

[Ethercat Device]

説明

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

構文

int getFoEDetails();

戻り値

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

  • Bit 0: FoEが有効

戻り値が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.getFoEDetails());
}

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

}

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

上部へスクロール