EthercatMaster.begin()

[EthercatMaster]

説明

EtherCAT Master Initialize. All slaves will enter PRE-OP state if successful.

Format

int begin(EthernetPort eth = ECAT_ETH_0, const char *eni_filename = NULL);

Syntax

EthercatMaster master;
master.begin();

Parameters

  • EthernetPort: EtherCAT Master position port in the Ethernet system.
  • eni_filename: If you have, it’s the custom ENI file path.

Returns

int: 1 on a successful Initialize, 0 on failure.

Example

#include "Ethercat.h"

EthercatMaster master;

void setup(void) {
    master.begin();
}

void loop() {}

Libraries Reference Home

86Duino のリファレンスのテキストは Arduino レファレンス を編集したもので、 Creative Commons Attribution-ShareAlike 3.0 License下でライセンスされています。リファレンス内のコードサンプルはパブリックドメインとして公開されています。

コメントする

上部へスクロール