This is the function to read the EtherCAT Slave state machine.
Reads the EtherCAT Slave state machine