Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1 Example project

We have no There is not EoE Example availeble. Take the source from ECS simpleConfig Example and Socket Interface Example.

2 Configuration packet

For EoE it is necessary to change the EtherCAT Set Configuration Packet.

add ECAT_SET_CONFIG_EOE falgflag:

ptConfigReq->tData.tBasicCfg.ulComponentInitialization |= ECAT_SET_CONFIG_DEVICEINFO | ECAT_SET_CONFIG_EOE;

...

Add in the ESI the EoE in the Mailbox area:

<Mailbox DataLinkLayer="1">

...

   <CoE SdoInfo="1" PdoUpload="1" CompleteAccess="1"/>

</Mailbox>

4 TwinCAT

Installe Install the new ESI in TwinCAT.

Now the EoE can be seen in TwinCAT in the advanced settings.

The MAC and IP settings will be written to the slave as with the startup parameter.

There is no other way to set the IP to the EtherCAT Slave.

...