I have a system running TwinCAT with an EtherCAT master and several EtherCAT slaves. In some occasions the EtherCAT slaves are storing an Emergency (EMCY) message in their mailbox. On my system, I run a C++ program. From within that program I want to read the mailbox and get the EMCY messages either cyclically or whenever there is a new message.
My regular method of reading Process Data Objects (PDO) did not work, as the mailbox could not be assigned to a PDO. Also going a detour of reading the mailbox via Python code (pyads) was of no avail yet, as I also did not manage to do so. I'd be grateful for any solutions, examples or hints to the correct direction.