function robCOMM=ligar()
% Defines the COMM variables
robCOMM.port = 4900;
robCOMM.ip = '192.168.0.230';
% Creates the tcpip object
robCOMM.handle = tcpip(robCOMM.ip, robCOMM.port);
% 1 sec timeout
set(robCOMM.handle, 'Timeout', 1);
% Opens the object
fopen(robCOMM.handle);
end