EthercatDevice_XXX.getODlist()

[EthercatDevice_XXX]

Description

(CoE) Get the object list from the EtherCAT Slave device to EtherCAT Master.

Format

int getODlist(uint16_t *list, uint32_t list_size, uint32_t *abortcode = NULL, uint32_t timeout_us = ECAT_DEFAULT_COE_TIMEOUT_US);

Syntax

EthercatDevice_XXX slave;
slave.getODlist();

Parameters

  • uint16_t *list: pointer of the object list.
  • uint32_t list_size: pointer size of the object list.
  • uint32_t *abortcode: SDO abort code pointer.
  • uint32_t timeout_us: Timeout, unit for microsecond.

Returns

Int: >=0 for number of object in object list; if the return value is smaller than 0 means error.


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

Your email address will not be published. Required fields are marked *

上部へスクロール