<div dir="ltr">Hello everyone.<div><br></div><div>When I request SAFEOP state for my slave (Mecapion L7N) using shell command</div><div><br></div><div>$ ethercat state --position 0 SAFEOP</div><div><br></div><div>the slave's flag changes from + to E, and the state stays at PREOP.</div><div><br></div><div><b>Additional Info:</b></div><div>In a previous project, I used SOEM library and had to deal with the same issue, which was fixed by manually enabling sync managers 2 & 3.</div><div><br></div><div>ec_slave[1].SM[2].SMflags |= 0x00010000;</div><div>ec_slave[2].SM[3].SMflags |= 0x00010000;</div><div><br></div><div>I tried to do the same by the adding following lines in my a simple code</div><div><br></div><div>ret1 = erct_slave_config_sync_<wbr>manager(sc, 2, EC_DIR_INPUT, EC_WD_ENABLE)</div><div>ret2 =
<span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">erct_slave_config_sync_<wbr>manager(sc, 3, EC_DIR_OUTPUT, EC_WD_ENABLE)</span>
</div><div><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div>Both function calls are successful (ret1=ret2=0) but the slave won't reach SAFEOP.</div><div><br></div><div><br></div></div>