05-23-2020, 11:04 PM
Hello, I have a Matlab script controlling RoboDK station (attached). I want to use robot.MoveL() function to move to target called '44'. But I am getting an error"
No public property 'TIMEOUT' for class 'Robolink'."
Here is my code:
Here is my Command window log with error mesages:
Here is my code:
Code:
%RoboDK inititalization
RDK = Robolink;
path = RDK.getParam('PATH_LIBRARY');
fprintf('Available items in the station:\n');
%disp(RDK.ItemList());
robot = RDK.Item('UR5e');
tool = RDK.Item('RobotiQ 2F85');
fprintf('Robot selected:\t%s\n', robot.Name());
robot.setVisible(1);
frameref = robot.Parent();
fprintf('Robot reference selected:\t%s\n', frameref.Name());
object = RDK.Item('base');
fprintf('Object selected:\t%s\n', object.Name());
targetMap = [3,3];
valueRow = targetMap(1);
valueColumn = targetMap(2);
home = RDK.Item('44');
robot.MoveL(home);
while robot.Busy()
暂停(100);
fprintf('Waiting for the robot to finish...\n');
end
Here is my Command window log with error mesages:
Code:
>> analysis_test
Robot selected: UR5e
Robot reference selected: UR5e Base
Object selected: UR5e Base
No public property 'TIMEOUT' for class 'Robolink'.
Error in RobolinkItem/WaitMove (line 706)
set(this.link.COM,'Timeout', this.link.TIMEOUT);
Error in Robolink/moveX (line 272)
itemrobot.WaitMove();% checks connection
Error in RobolinkItem/MoveL (line 578)
this.link.moveX(target,this,2,blocking);
Error in analysis_test (line 20)
robot.MoveL(home);