Download this file
1 2 3 4 5 6
IsPluggedIntoEoN := FALSE; // we were allready connected, so we deregister that connection IF ItfPrevEoN <> 0 THEN ItfPrevEoN.DeregisterDevice( itfDevice := THIS^ ); ItfPrevEoN := 0; END_IF