1 Example project
We have no EoE Example. Take the source from simpleConfig Example.
2 Configuration packet
For EoE it is necessary to change the Set Configuration Packet.
add ECAT_SET_CONFIG_EOE falg:
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
Installe the new ESI in TwinCAT.
Now the EoE can be seen in TwinCAT.
The MAC and IP settings will be written to the slave as 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