Drive related plc functions