Hi,
i’m trying to use the worldzone.
in particular I would like to simulate a function that activates a digital signal when the robot is in the home position.
If I understand, through the function I used in the rapid code (under) I go to activate the signal when the joints of the robot are in the “home_pos” position, with a difference of 2 degrees.
But there are a problem (rapid program havn’t errors when i compile it) when i simulate it the simulation stops in the line 114 (see the image attached).
I have a doubt. I activated the “worldzone” function in the controller options, did I do it correctly? The robot is an IRB 120 and the controller is RobotWare 06.08.1040
Thanks in advance
Edoardo
PROC power_on()
VAR shapedata joint_space;
CONST jointtarget home_pos :=[[0,0,0,0,90,90],[9E+09,9E+09,9E+09,9E+09,9E+09,9E+09]];
CONST jointtarget delta_pos := [ [ 2, 2, 2, 2, 2, 2], [ 5, 9E9, 9E9, 9E9, 9E9, 9E9] ];
WZHomeJointDef \Inside, joint_space, home_pos, delta_pos;
WZDOSet \Stat, home\Inside, joint_space, do_homeSegnale,1;
ENDPROC

