EthercatMaster.begin()

[EthercatMaster]

Description

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

The text of the 86Duino reference is a modification of the Arduino reference and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Leave a Comment

Scroll to Top