function [version,id] = readVersionId(H)

globalVar;
version = 255;
id = 255;

sendServo(H,READ_VERSION_ID,0,0,0,0,0,0);
[command,return1,return2] = readServo(H);

if(command == READ_VERSION_ID)
    version = return1;
    id = return2;
else
    disp('OPERATION FAILED: Read Version & ID');
end

