Hi mmi,
Thanks for your input. So I tried to activate a thread to update the float register as shown in my first post, and execute a MoveL command. So I send this script via Primary Interface.
“thread Thread_1():
while (True):
$ 9 “posewrtfeature?pose_trans(pose_inv(display_const),get_actual_tcp_pose())”
global posewrtfeature= pose_trans ( pose_inv (p[0.5391674406968558,0.2501721015613766,0.3385201982265926,0.7230735002351665,-0.7705353908790852,-1.3823487705853308]), get_actual_tcp_pose ())
$ 10 “write_output_float_register(0,posewrtfeature[0])”
write_output_float_register(0,posewrtfeature[0])
$ 11 “write_output_float_register(1,posewrtfeature[1])”
write_output_float_register(1,posewrtfeature[1])
$ 12 “write_output_float_register(2,posewrtfeature[2])”
write_output_float_register(2,posewrtfeature[2])
end
end
threadId_Thread_1 = run Thread_1()
movel(pose_add(get_target_waypoint(),pose_sub(pose_trans(p[0.5391674406968558,0.2501721015613766,0.3385201982265926,0.7230735002351665,-0.7705353908790852,-1.3823487705853308],p[0.020000000,0.000000000,0.000000000,0,0,0]),p[0.5391674406968558,0.2501721015613766,0.3385201982265926,0.7230735002351665,-0.7705353908790852,-1.3823487705853308])), a=1.0, v=0.03)”
So what I see, The MoveL command get executed and robot moves, but I dont see the Output_Float_Register[0,1,2] getting updated on RTDE side. But When I run a program like in my first post, they do get updated. Do I miss something ?