Moved to own topic from "Switching the ethercatmaster between states".
Did you check the sample in the library CXA_EtherCatMaster itself? As your code looks quite similar I guess yes. Could you try switching to one state at a time?
Do you also write "bExecute := true" after choosing "iSetMaster := 1", so that function block execution gets started?
... View more