function desligar(robCOMM)
% Fecha a ligação ao FANUC
fclose(robCOMM.handle);
% stop echo on port
echotcpip('off');
delete(robCOMM.handle);
clear robCOMM;
end