[HELP] Camera Programming: setting robtargets for two controllers based on one image taken
epysj1
✭
Hi all,
I am using a YuMi IRB14000 robot. My sequence includes moving both of the right and left arm to taught positions based on the photo which YuMi takes using its right arm. At the moment, YuMi needs to take photo twice in order to move to desired positions for both arms. Does anyone know what to do in order to program the arms to vision taught targets based on one image (so that YuMi does not need to take the photo twice)?
Many thanks!
I am using a YuMi IRB14000 robot. My sequence includes moving both of the right and left arm to taught positions based on the photo which YuMi takes using its right arm. At the moment, YuMi needs to take photo twice in order to move to desired positions for both arms. Does anyone know what to do in order to program the arms to vision taught targets based on one image (so that YuMi does not need to take the photo twice)?
Many thanks!
0
Comments
-
Hi @epysj1
Just declare the workobject modifided by your vision job in the both tasks and modify the robtarget when the workobject is set.
Example:
T_ROB_L<div> TASK PERS tooldata tVison:=[TRUE,[[0,0,0],[1,0,0,0]],[0,[0,0,0],[1,0,0,0],0,0,0]];<br><br></div><div> TASK PERS tooldata tGripper:=[TRUE,[[0,0,0],[1,0,0,0]],[0,[0,0,0],[1,0,0,0],0,0,0]];<br><br></div><div> TASK PERS robtarget pPhoto:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];<br><br></div><div> TASK PERS robtarget pPick:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];<br><br></div><div> PERS wobjdata wbjVision:=[FALSE, TRUE, "",[[0, 0, 0],[1, 0, 0, 0]],[[0,0,0],[1,0,0,0]]];<br><br></div><div> VAR cameratarget cT;</div><div> <br><br></div><div> PROC moveToPhoto()<br><br></div><div> MoveL pPhoto,v1000,fine,tVison\WObj:=wobj0;<br><br></div><div> CamReqImage camL;<br><br></div><div> CamGetResult camL,cT;<br><br></div><div> </div><div> wbjVision.oframe:=cT.cframe;<br><br></div><div> MoveL Offs(pPick,0,0,100),v1000,z10,tGripper\WObj:=wbjVision;<br><br></div><div> MoveL pPick,v1000,fine,tGripper\WObj:=wbjVision;<br><br></div><div> !..<br><br></div><div> ! WaitSync with T_ROB_R<br><br></div><div> !..<br><br></div><div> ENDPROC<br><br></div><br>
T_ROB_R TASK PERS tooldata tVison:=[TRUE,[[0,0,0],[1,0,0,0]],[0,[0,0,0],[1,0,0,0],0,0,0]];<br><br><div><b> </b>TASK PERS tooldata tGripper:=[TRUE,[[0,0,0],[1,0,0,0]],[0,[0,0,0],[1,0,0,0],0,0,0]];<br><br></div><div> TASK PERS robtarget pPhoto:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];<br><br></div><div> TASK PERS robtarget pPick:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]];<br><br></div><div> PERS wobjdata wbjVision;</div><div> <br><br></div><div> PROC moveToPhoto()<br><br></div><div> !..<br><br></div><div> ! WaitSync with T_ROB_L<br><br></div><div> MoveL Offs(pPick,0,0,100),v1000,z10,tGripper\WObj:=wbjVision;<br><br></div><div> MoveL pPick,v1000,fine,tGripper\WObj:=wbjVision;<br><br></div><div> !..<br><br></div>
ENDPROC<br><br>
I Hope that is clear.
BR, U.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 800 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings