itfNodeSlave := EK1100;
IF xDisable THEN
xDisable := FALSE;
itfNodeSlave.Enable := FALSE;
xReconfigure := TRUE;
END_IF
IF xEnable THEN
xEnable := FALSE;
itfNodeSlave.Enable := TRUE;
xReconfigure := TRUE;
END_IF
fbReconfigure(xExecute := xReconfigure, itfNode := EtherCAT_Master);
IF fbReconfigure.xDone THEN
xReconfigure := FALSE;
END_IF
EK1100(); // Necessary for the status to be updated
eState := EK1100.wState;
Start the project and test the functionality by deactivating and activating the slave.