EtherCAT adapter needs to be updated with PLC.

Download the sample from the link given above.

Next, let’s try to understand persistent data https://www.hemelix.com/plc/twincat-3-database-server/

Ask questions related to Hemelix sample code and design at Google group https://groups.google.com/g/hemelix