1 Example project
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 flag:
ptConfigReq->tData.tBasicCfg.ulComponentInitialization |= ECAT_SET_CONFIG_DEVICEINFO | ECAT_SET_CONFIG_EOE;
3 ESI
Add in the ESI the EoE in the Mailbox area:
<Mailbox DataLinkLayer="1">
<EoE IP="1" MAC="1"/>
<CoE SdoInfo="1" PdoUpload="1" CompleteAccess="1"/>
</Mailbox>
4 TwinCAT
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 with the startup parameter.
There is no other way to set the IP to the EtherCAT Slave.
5 application
To use the EoE in the application the socket API is necessary. Go to the Socket Interface Example for more application sourcecode:
netX 90 - Ethernet Interface - Examples