Documentation

EtherCAT Sync SDO Download

Transmit data synchronously to slave device represented by service data object

  • Library:
  • EtherCAT

Description

The EtherCAT Sync SDO Download block writes to a CANopen dictionary entry in the specified EtherCAT® slave. The block then waits until it receives a response or until the timeout period is over.

The response to an operation can take several ticks of the main task sample time. Assign the synchronous blocks a sample time slower than the main task sample time.

Ports

Input

expand all

Input data for writing to the EtherCAT slave device.

Output

expand all

If no error occurs, this port transmits 0. Otherwise, it transmits a nonzero value.

Parameters

expand all

Specify the decimal index of the CANopen dictionary entry.

If you specify an invalid index, the block does not return an error or a timeout. The results are undefined.

Specify the decimal subindex of the CANopen dictionary entry.

If you specify an invalid subindex, the block does not return an error or a timeout. The results are undefined.

From the list, select the data type of the CANopen dictionary entry.

If you select a data type that does not match the type of the entry, the block returns an error.

Specify the row and column dimension of the CANopen dictionary entry.

Enter a value of 1. EtherCAT blocks support only scalars and vectors.

To associate a block with an EtherCAT network, copy the Device index value from the EtherCAT Init block representing that network into the Device index for the block.

From the list, select the name of the slave that contains the CANopen data dictionary variable.

The block populates this drop-down list with the contents of the configuration file.

Enter the base sample time or a multiple of the base sample time. -1 means that sample time is inherited.

Enter the number of milliseconds to wait for a response from the EtherCAT slave.

Introduced in R2010b

Was this topic helpful?